/*
Theme Name: HaWo Wohnheim
Description: Das HaWo-Design mit Workspace, Wohnheimkalender und den bestehenden DE/EN-Menüs.
Template: hawo-editorial
Version: 1.2.3
Text Domain: hawo-wohnheim
*/
:root {
  --container-max: none;
  --wohnheim-pad: clamp(14px, 2.4vw, 48px);
  --wohnheim-paper: #fcfbf8;
  --wohnheim-line: #d9d9cf;
  --wohnheim-soft: #f2f1eb;
  --wohnheim-link: #a9360b;
}
html[data-theme="dark"] {
  --wohnheim-paper: #151715;
  --wohnheim-line: #454a40;
  --wohnheim-soft: #272b25;
  --wohnheim-link: #ffa178;
}
body { background:var(--wohnheim-paper); }
.on-main-container,.on-header-inner,.on-utility-bar,.on-site-footer { padding-inline:var(--wohnheim-pad); }
body.home .on-main-container { padding-inline:var(--wohnheim-pad); }
.on-site-header { background:var(--wohnheim-paper); backdrop-filter:none; border-color:var(--wohnheim-line); }
.on-site-header.is-hidden { transform:none; }
.on-header-inner { position:relative; gap:clamp(6px,1vw,20px); }
.on-main-nav { min-width:0; }
.on-menu-list { background:transparent; }
.on-header-actions { flex-shrink:0; align-items:center; }
.on-utility-left { align-items:center; }
.wohnheim-social { display:flex; align-items:center; gap:8px; flex-shrink:0; }
.wohnheim-social a { min-height:44px; display:inline-flex; align-items:center; gap:.3em; font-weight:700; font-size:.88rem; }
.social-instagram { color:#983954; }
.social-whatsapp { color:#226a39; }
html[data-theme="dark"] .social-instagram { color:#ffabc8; }
html[data-theme="dark"] .social-whatsapp { color:#8fdd9f; }
.wohnheim-social a:hover { text-decoration:underline; }
.wohnheim-social i { position:relative; width:1em; height:1em; display:inline-block; border:1.6px solid currentColor; }
.social-instagram i { border-radius:28%; }
.social-instagram i::before { content:""; position:absolute; inset:20%; border:1px solid currentColor; border-radius:50%; }
.social-whatsapp i { border-radius:55% 55% 55% 10%; }
.social-whatsapp i::before { content:""; position:absolute; inset:24%; border:solid currentColor; border-width:0 0 1.5px 1.5px; border-radius:0 0 0 70%; }
.wohnheim-workspace summary { min-height:44px; padding:.5rem .85rem; display:flex; align-items:center; justify-content:center; gap:.48em; border-radius:2rem; background:#bd390a; color:white; cursor:pointer; line-height:1.1; font-family:inherit; font-weight:700; font-size:.88rem; list-style:none; }
.wohnheim-workspace summary::-webkit-details-marker { display:none; }
.workspace-grid { width:17px; height:17px; background:radial-gradient(circle, currentColor 1.65px, transparent 2px) 0 0 / 5.67px 5.67px; }
.workspace-panel { position:absolute; top:calc(100% + 5px); right:var(--wohnheim-pad); z-index:12; width:min(340px,calc(100vw - 28px)); max-height:calc(100dvh - 11rem); overflow:auto; padding:16px; background:var(--bg-elevated); color:var(--text-primary); border:1px solid var(--wohnheim-line); border-radius:18px; box-shadow:0 10px 38px #19181130; }
.workspace-title { display:flex; justify-content:space-between; align-items:center; }
.workspace-title h2 { font-size:1.15rem; line-height:1.2; margin:0; }
.workspace-title button { min-width:44px; min-height:44px; border:0; border-radius:50%; background:var(--wohnheim-soft); color:inherit; font-size:1.3rem; cursor:pointer; }
.workspace-apps { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px; padding:.45rem 0; }
.workspace-apps a { display:grid; justify-items:center; align-content:start; text-align:center; gap:.22rem; padding:.7rem .24rem; border-radius:10px; line-height:1.25; }
.workspace-apps a:hover,.workspace-apps a:focus-visible { background:var(--wohnheim-soft); }
.workspace-apps img,.workspace-washer { width:44px; height:44px; object-fit:contain; }
.workspace-apps small { font-size:.77rem; color:var(--text-muted); }
.workspace-washer { background:var(--wohnheim-soft); position:relative; border-radius:8px; }
.workspace-washer::before { content:""; position:absolute; inset:8px 11px; border:2px solid #914826; background:#fff1df; border-radius:4px; }
.workspace-washer::after { content:""; position:absolute; inset:16px 15px 11px; border:1.5px solid #914826; border-radius:50%; }
.workspace-library { display:block; padding:.65rem; min-height:44px; text-align:center; border:1px solid var(--wohnheim-line); border-radius:2rem; font-weight:650; }
.wohnheim-hero { display:grid; margin:clamp(.65rem,1.3vw,1.5rem) var(--wohnheim-pad) 0; overflow:hidden; border:1px solid var(--wohnheim-line); border-radius:18px; background:var(--wohnheim-soft); }
.wohnheim-hero.with-events { grid-template-columns:minmax(0,1.95fr) minmax(0,1fr); }
.wohnheim-photo { position:relative; display:flex; min-height:clamp(13rem,20vw,24rem); align-items:flex-end; color:white; background:#283028; }
.wohnheim-cover,.wohnheim-photo::after { position:absolute; inset:0; width:100%; height:100%; }
.wohnheim-cover { object-fit:cover; object-position:50% 49%; }
.wohnheim-photo::after { content:""; background:linear-gradient(90deg,#121711ba,#11181130); }
.wohnheim-heading { position:relative; z-index:1; padding:clamp(1.2rem,2.4vw,3rem); overflow-wrap:anywhere; }
.wohnheim-word { width:clamp(6rem,10vw,11rem); height:auto; filter:invert(1); margin-bottom:.55rem; }
.wohnheim-heading h1,.wohnheim-lead h2,.wohnheim-directory h2,.wohnheim-quick h2 { font:500 clamp(1.8rem,3vw,3.35rem)/1.07 Georgia,"Times New Roman",serif; letter-spacing:-.035em; margin:0; }
.wohnheim-heading p,.wohnheim-heading>a { font-size:.92rem; color:#fff; margin:.4rem 0 0; }
.wohnheim-heading>a { display:inline-flex; align-items:center; min-height:38px; text-decoration:underline; }
.wohnheim-hero.is-subpage .wohnheim-photo { min-height:12rem; }
.wohnheim-event { align-self:center; padding:clamp(1rem,2.2vw,2.5rem); min-width:0; }
.wohnheim-event-head { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:.5rem; }
.wohnheim-event-head a { display:inline-flex; align-items:center; min-height:44px; color:var(--wohnheim-link); text-decoration:underline; }
.wohnheim-event .simcal-calendar { margin:0; background:transparent; color:inherit; }
.wohnheim-event .simcal-event-title { font:500 clamp(1.3rem,2vw,2rem)/1.14 Georgia,serif; }
.wohnheim-event ul { list-style:none; margin:0; padding:0; }
.wohnheim-event .simcal-default-calendar-list dt.simcal-day-label { background:transparent; color:inherit; border-color:var(--wohnheim-line); }
.wohnheim-event .simcal-default-calendar-list dt.simcal-day-label>span { background:transparent; color:inherit; }
.wohnheim-lead,.wohnheim-directory { margin:1.8rem var(--wohnheim-pad) 0; }
.wohnheim-quick h2,.wohnheim-directory h2,.wohnheim-lead h2 { font-size:clamp(1.6rem,2.6vw,2.8rem); }
.wohnheim-aside { min-width:0; }
.wohnheim-quick { margin-bottom:1.4rem; }
.wohnheim-quick a,.wohnheim-directory li li>a { display:flex; justify-content:space-between; align-items:center; min-height:44px; border-bottom:1px solid var(--wohnheim-line); }
.wohnheim-quick h2 { margin-bottom:.5rem; }
.wohnheim-directory { border-top:1px solid var(--wohnheim-line); padding:1.8rem 0 2.3rem; }
.wohnheim-directory ul { list-style:none; margin:0; padding:0; }
#wohnheim-directory { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,13rem),1fr)); gap:1.4rem; margin-top:1rem; }
#wohnheim-directory>li>a { display:inline-flex; align-items:center; min-height:44px; font-weight:700; }
.wohnheim-directory .menu-image,.wohnheim-directory .dashicons { display:none; }
.wohnheim-quick a:hover,.wohnheim-directory a:hover { text-decoration:underline; }
.on-mobile-toggle>span:first-child { width:auto; height:auto; background:none; font-size:1.05rem; line-height:1; }
.on-mobile-page-title { display:none !important; }
.on-post-card,.on-bento-widget { border-color:var(--wohnheim-line); }
.on-entry-content :is(p,li) { overflow-wrap:break-word; }
.on-entry-content p:not(.has-text-align-center,.has-text-align-right) { max-width:76ch; }
.on-entry-content :is(table,iframe,img,video) { max-width:100%; }
.on-primary-column,.on-layout-fullwidth,.on-post-inner { min-width:0; }
.on-reveal { opacity:1; transform:none; }
@media(min-width:1025px) {
  .on-logo-img { width:clamp(6.7rem,8.5vw,9rem); height:auto; }
  .on-header-inner .on-menu-list { flex-wrap:wrap !important; justify-content:center; padding:3px 0; }
  .on-header-inner .on-menu-list>li>a { padding:8px clamp(4px,.45vw,9px); }
  .on-layout-grid,.on-layout-grid.is-board-mode { grid-template-columns:minmax(0,2.15fr) minmax(15rem,1fr); }
  .on-layout-grid.is-board-mode .hawo-board-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,15rem),1fr)); }
  .on-menu-list>li:focus-within>.sub-menu { opacity:1; visibility:visible; pointer-events:auto; transform:none; }
}
@media(max-width:1024px) {
  .on-header-inner { flex-wrap:wrap; }
  .wohnheim-social { margin-left:auto; }
  .on-layout-grid,.on-layout-grid.is-board-mode { grid-template-columns:minmax(0,1fr); }
  body .wohnheim-aside .on-sidebar-column { display:flex !important; position:static; }
  .on-main-nav.is-open { max-height:65dvh; overflow:auto; }
}
@media(max-width:700px) {
  .on-header-inner { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:0 5px; padding-top:.35rem; padding-bottom:0; }
  .on-brand-logo { grid-column:1; grid-row:1; }
  .on-logo-img { width:clamp(4rem,20vw,6.1rem); height:auto; }
  .on-header-actions { grid-column:2; grid-row:1; gap:4px; }
  .on-header-actions :is(.on-search-trigger,.on-mobile-toggle) { min-width:44px; min-height:44px; padding:.45rem .6rem; }
  .on-header-actions .on-search-label,.wohnheim-menu-label { display:none; }
  .wohnheim-social { grid-column:1/-1; grid-row:2; margin:0; gap:1rem; }
  .on-main-nav { grid-column:1/-1; grid-row:3; }
  .on-utility-inner { align-items:center; align-content:center; }
  .on-utility-left { flex-wrap:wrap; gap:.15rem .4rem; }
  .on-utility-right { margin-left:auto; }
  .wohnheim-hero.with-events { grid-template-columns:1fr; }
  .wohnheim-photo,.wohnheim-hero.is-subpage .wohnheim-photo { min-height:9.5rem; }
  .wohnheim-event { width:100%; padding:.55rem 1rem .85rem; }
  .wohnheim-event .simcal-default-calendar-list .simcal-events { margin-bottom:0; }
  .wohnheim-lead { margin-top:1.35rem; }
}
@media(max-width:385px) {
  .workspace-label { display:none; }
  .wohnheim-workspace summary { width:44px; padding:0; }
  .on-utility-left { align-items:flex-start; flex-direction:column; }
}
@keyframes wohnheim-enter { from{opacity:0;transform:translateY(.55rem)} to{opacity:1;transform:none} }
@keyframes wohnheim-open { from{opacity:0;transform:translateY(-.3rem) scale(.96)} to{opacity:1;transform:none} }
@media(prefers-reduced-motion:no-preference) {
  .wohnheim-heading,.wohnheim-event,.on-reveal.is-visible { animation:wohnheim-enter .38s ease-out both; }
  .wohnheim-workspace[open] .workspace-panel { transform-origin:top right; animation:wohnheim-open .18s ease-out both; }
  .wohnheim-workspace[open] .workspace-apps a { animation:wohnheim-enter .26s ease-out both; }
  .workspace-apps a:nth-child(2) { animation-delay:30ms; }
  .workspace-apps a:nth-child(3) { animation-delay:55ms; }
  .workspace-apps a:nth-child(4) { animation-delay:80ms; }
}
@media(prefers-reduced-motion:reduce) {
  *,*::before,*::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; transition-duration:.001ms !important; scroll-behavior:auto !important; }
}
