/* Masthead, social identities and the editorial layouts. */
:root {
  --wh-forest: #243f35; --wh-on-forest: #f7f5e9;
  --wh-sage: #e4ecdf; --wh-clay: #f3e5d7; --wh-blue: #e2ebec;
  --wh-ink: #263b32; --wh-serif: Georgia, "Times New Roman", serif;
}
html[data-theme="dark"] {
  --wh-sage: #27382f; --wh-clay: #3a3028; --wh-blue: #26353a; --wh-ink: #f0f3e8;
}
.on-utility-bar { background: #20392f; padding: 0 var(--wohnheim-pad); color: #f3f5ea; }
.on-utility-inner { min-height: 34px; }
.on-utility-left .on-status-pill { background: none; padding: 0; }
.on-utility-left .on-pulse-dot { animation: none; box-shadow: none; background: #c4de9b; }
.on-utility-left .on-utility-temp { color: #f3f5ea; border-inline-start: 1px solid #79917f; padding-inline-start: .7rem; }
.on-utility-right .on-a11y-btn { border-radius: .25rem; background: none; padding: .5rem .3rem; color: #f3f5ea; }
.wohnheim-mast { box-shadow: none; border-bottom: 1px solid var(--wohnheim-line); }
.wohnheim-mast .on-header-inner { display: flex; flex-wrap: wrap; min-height: 68px; gap: clamp(.6rem,1.6vw,1.6rem); padding: .45rem var(--wohnheim-pad); }
.wohnheim-mast .on-brand-logo { gap: clamp(.65rem,1.1vw,1.35rem); color: var(--text-primary); }
.wohnheim-mast .on-logo-img { width: clamp(5.1rem, 8.6vw, 9.4rem); height: auto; }
.wohnheim-brand-name { border-left: 1px solid var(--wohnheim-line); padding-left: .85rem; font: 500 1.07rem/1.05 var(--wh-serif); letter-spacing: -.025em; }
.wohnheim-mast .wohnheim-social { display: flex; margin-inline-start: auto; gap: .45rem; }
.wohnheim-social a { display: inline-flex; gap: .55rem; align-items: center; min-height: 44px; border-radius: 2rem; padding: .38rem .95rem .38rem .48rem; font: 650 .9rem/1.1 system-ui,sans-serif; text-decoration: none; }
.wohnheim-social .social-instagram { background: #f6e5ec; color: #81334f; }
.wohnheim-social .social-whatsapp { background: #dfeddb; color: #26553a; }
html[data-theme="dark"] .wohnheim-social .social-instagram { background: #402634; color: #ffd3e4; }
html[data-theme="dark"] .wohnheim-social .social-whatsapp { background: #203d2c; color: #cef0cb; }
.wohnheim-brand-icon { width: 1.75rem; height: 1.75rem; border-radius: 50%; display: grid; place-items: center; background: var(--brand-ink); color: white; }
.social-instagram { --brand-ink: #91375b; --brand-mark: url('instagram.svg'); }
.social-whatsapp { --brand-ink: #2b6744; --brand-mark: url('whatsapp.svg'); }
.wohnheim-brand-icon::before,.hawo-quicklinks-list a[href*="instagram.com/"]::before,.hawo-quicklinks-list a[href*="whatsapp.com/"]::before { content: ''; width: 1.03rem; height: 1.03rem; display: block; background: currentColor; mask: var(--brand-mark) center / contain no-repeat; }
.wohnheim-mast .on-header-actions { gap: .42rem; }
.wohnheim-mast :is(.on-search-trigger,.on-mobile-toggle),.wohnheim-workspace summary { min-height: 44px; border-radius: .58rem; box-shadow: none; }
.wohnheim-mast :is(.on-search-trigger,.on-mobile-toggle) { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; color: var(--text-primary); background: transparent; border: 1px solid var(--wohnheim-line); padding: .65rem .82rem; }
.wohnheim-mast .on-mobile-toggle { display: none; }
.wohnheim-mast .wohnheim-workspace summary { background: var(--wh-forest); color: var(--wh-on-forest); }
.wohnheim-mast .wohnheim-search-icon { display: inline-block; width: .9rem; height: .9rem; border: 1.6px solid currentColor; border-radius: 50%; position: relative; }
.wohnheim-search-icon::after { content: ''; height: .4rem; width: 1.6px; background: currentColor; position: absolute; right: -.12rem; bottom: -.28rem; transform: rotate(-42deg); }
.wohnheim-mast .on-mobile-toggle .wohnheim-menu-icon { display: inline-block; width: 1.1rem; height: .72rem; border-block: 1.6px solid currentColor; border-radius: 0; position: relative; }
.wohnheim-menu-icon::after { content: ''; position: absolute; top: calc(50% - .8px); left: 0; right: 0; border-top: 1.6px solid; }
.wohnheim-mast .on-main-nav { border-top: 1px solid var(--wohnheim-line); padding-inline: var(--wohnheim-pad); margin: 0; }
.wohnheim-mast .on-menu-list { justify-content: flex-start; gap: clamp(.45rem,1.7vw,2rem); background: transparent; border: 0; border-radius: 0; padding: 0; }
.wohnheim-mast .on-menu-list > li > a { min-height: 44px; padding: .5rem .08rem; border-radius: 0; border-bottom: 2px solid transparent; font-size: .94rem; box-shadow: none; background: transparent; color: var(--text-primary); }
.wohnheim-mast .on-menu-list > li:is(:hover,:focus-within,.current-menu-item,.current-menu-parent) > a { color: var(--wohnheim-link); border-color: currentColor; }
.wohnheim-mast .on-menu-list .sub-menu { background: var(--bg-elevated); border: 1px solid var(--wohnheim-line); border-radius: .7rem; padding: .35rem; }
.wohnheim-mast .sub-menu a { min-height: 40px; }
.wohnheim-mast .workspace-panel { right: var(--wohnheim-pad); }
.wohnheim-section-head { margin: clamp(.8rem,1.6vw,2rem) var(--wohnheim-pad) 0; overflow: hidden; border-radius: .9rem; color: var(--wh-ink); }
.wohnheim-section-type { padding: clamp(1.35rem,3.8vw,4.6rem); align-self: center; min-width: 0; }
.wohnheim-section-head h1 { font: 500 clamp(2.5rem,5.25vw,6.6rem)/.99 var(--wh-serif); letter-spacing: -.055em; overflow-wrap: anywhere; hyphens: auto; margin: 0; color: inherit; }
.wohnheim-section-head { background: var(--wh-sage); }
.wohnheim-section-head.with-photo { display: grid; grid-template-columns: minmax(0,1.65fr) minmax(0,1fr); }
.wohnheim-section-head:not(.with-photo) .wohnheim-section-type { border-inline-start: .35rem solid var(--wohnheim-link); }
.wohnheim-section-head[data-kind=room],.wohnheim-section-head[data-kind=journal],.wohnheim-section-head[data-kind=archive] { background: var(--wh-clay); }
.wohnheim-section-head:is([data-kind=weather],[data-kind=calendar],[data-kind=service],[data-kind=gallery]) { background: var(--wh-blue); }
.wohnheim-section-head:is([data-kind=legal],[data-kind=missing],[data-kind=search]) { background: var(--wohnheim-soft); }
.wohnheim-section-head h1 { font-size: clamp(2.25rem,4.5vw,5.7rem); max-width: 28ch; }
.wohnheim-section-media { position: relative; min-height: 9.5rem; }
.wohnheim-section-image { position: absolute; width: 100%; height: 100%; object-fit: cover; }
.wohnheim-crumbs,.wohnheim-byline { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .9rem; }
.wohnheim-crumbs { margin-bottom: clamp(.6rem,1.2vw,1.5rem); }
.wohnheim-crumbs a,.wohnheim-byline a,.wohnheim-agenda a { color: inherit; text-decoration: underline; text-underline-offset: .21em; }
.wohnheim-byline { margin-top: 1rem; }
.wohnheim-agenda { display: flex; align-items: baseline; flex-wrap: wrap; gap: .35rem 1.2rem; margin: 1rem var(--wohnheim-pad); padding: .75rem 0; border-block: 1px solid var(--wohnheim-line); }
.wohnheim-agenda > strong { color: var(--wohnheim-link); font-size: .94rem; }
.wohnheim-agenda > a { margin-left: auto; min-height: 40px; display: inline-flex; align-items: center; gap: .3rem; }
.wohnheim-agenda-event { flex: 1 1 19rem; min-width: 0; }
.wohnheim-agenda .simcal-default-calendar-list,.wohnheim-agenda .simcal-events-list-container,.wohnheim-agenda .simcal-events,.wohnheim-agenda .simcal-day,.wohnheim-agenda .simcal-event { margin: 0!important; padding: 0; list-style: none; }
.wohnheim-agenda .simcal-events-list-container { display: flex; flex-wrap: wrap; align-items: baseline; gap: .5rem 1rem; }
.wohnheim-agenda .simcal-day-label,.wohnheim-agenda .simcal-day-label span { border: 0!important; color: var(--text-secondary)!important; background: transparent!important; padding: 0!important; }
.wohnheim-agenda .simcal-event-title { font: 500 1.3rem/1.15 var(--wh-serif); }
.wohnheim-agenda .simcal-event-details p { margin: 0; }
.wohnheim-reading .wohnheim-chapters { border-block: 1px solid var(--wohnheim-line); padding: .15rem 0; margin-bottom: 1.2rem; }
.wohnheim-chapters summary { cursor: pointer; min-height: 44px; align-content: center; font-weight: 650; color: var(--wohnheim-link); }
.wohnheim-chapters ul { padding: 0 0 .65rem 1.2rem; margin: 0; columns: 2 17rem; }
.wohnheim-chapters li { break-inside: avoid; }
.wohnheim-chapters a { display: inline-block; padding: .35rem .2rem; text-decoration: underline; text-underline-offset: .18em; }
.wohnheim-reading h2[id] { scroll-margin-block-start: 9rem; }
#site-content[data-kind=directory] .hawo-facilities-grid { grid-template-columns: repeat(auto-fit,minmax(min(100%,16rem),1fr)); gap: .75rem; }
#site-content[data-kind=directory] .hawo-facilities-grid > li { background: var(--wh-sage); border: 0; border-radius: .55rem; padding: clamp(.9rem,1.6vw,1.7rem); }
#site-content[data-kind=directory] .hawo-facilities-grid li strong { font: 500 1.5rem/1.15 var(--wh-serif); }
#site-content[data-kind=room] .wp-block-gallery { gap: .65rem; }
#site-content[data-kind=room] figure img { border-radius: .45rem; }
#site-content[data-kind=people] .hawo-team-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(100%,15.5rem),1fr)); gap: .7rem; }
#site-content[data-kind=people] .hawo-member-card { display: grid; grid-template-columns: 3.3rem minmax(0,1fr); align-content: start; gap: .3rem .85rem; }
#site-content[data-kind=people] .hawo-member-card > * { grid-column: 2; min-width: 0; }
#site-content[data-kind=people] .hawo-member-card .hawo-member-avatar { grid-column: 1; grid-row: 1 / span 4; width: 3.3rem; height: 3.3rem; border: 0; margin: 0; }
#site-content[data-kind=people] .hawo-member-name { font: 500 1.28rem/1.12 var(--wh-serif); }
#site-content[data-kind=people] .hawo-member-room { background: transparent; padding: 0; }
#site-content[data-kind=legal] .on-entry-content { max-width: 78ch; }
#site-content[data-kind=legal] .on-entry-content > ol > li { padding: .55rem 0; }
#site-content[data-kind=gallery] .c-accordion__title { padding: 1.15rem .65rem; }
#site-content[data-kind=gallery] .c-accordion__item.is-open { background: var(--wohnheim-soft); }
#site-content[data-kind=weather] .hawo-weather-statusbar { border-radius: .6rem; padding: .8rem 1rem; background: var(--wh-blue); }
#site-content[data-kind=calendar] .simcal-calendar-head { background: var(--wh-sage); color: var(--wh-ink); }
#site-content[data-kind=journal] .on-entry-content > p:first-of-type { font-size: 1.12em; }
#site-content .hawo-quicklinks-list a:is([href*="instagram.com/"],[href*="whatsapp.com/"]) { justify-content: start; gap: .55rem; }
.hawo-quicklinks-list a[href*="instagram.com/"] { --brand-mark: url('instagram.svg'); }
.hawo-quicklinks-list a[href*="whatsapp.com/"] { --brand-mark: url('whatsapp.svg'); }
#site-content .hawo-quicklinks-list a > span:last-child:not(:first-child) { margin-left: auto; }
#site-content .on-reveal.is-visible { animation: none; }
@media (min-width: 1025px) { .wohnheim-mast .on-main-nav { display: block; } }
@media (max-width: 1024px) {
  .wohnheim-mast .on-main-nav { position: static; width: 100%; background: var(--wohnheim-paper); }
  .wohnheim-mast .on-main-nav:not(.is-open) { display: none; }
  .wohnheim-mast .on-main-nav.is-open { display: block; overflow: auto; max-height: 55dvh; }
  .wohnheim-mast .on-mobile-toggle { display: inline-flex; }
  .wohnheim-mast .on-menu-list { display: block; }
  .wohnheim-mast .on-menu-list > li > a { width: 100%; }
}
@media (max-width: 700px) {
  .wohnheim-mast .on-header-inner { gap: .25rem .65rem; min-height: auto; padding-block: .4rem; }
  .wohnheim-mast .on-brand-logo { flex: 0 0 auto; max-width: 100%; flex-wrap: wrap; row-gap: .15rem; }
  .wohnheim-mast .on-header-actions { margin-inline-start: auto; }
  .wohnheim-mast .wohnheim-social { order: 1; flex: 0 0 100%; flex-wrap: wrap; margin: 0; }
  .wohnheim-mast .on-logo-img { width: clamp(4.3rem,15vw,5.2rem); }
  .wohnheim-brand-name { font-size: .86rem; padding-left: .5rem; }
  .wohnheim-mast .on-header-actions :is(.on-search-trigger,.on-mobile-toggle) { padding: .6rem; }
  .wohnheim-social a { min-height: 44px; padding-block: .28rem; }
  .wohnheim-section-head.with-photo { grid-template-columns: 1fr; }
  .wohnheim-section-head.with-photo .wohnheim-section-media { min-height: clamp(5rem,17vw,8rem); }
  .wohnheim-agenda { gap: .25rem .6rem; }
  .wohnheim-agenda > strong { flex-basis: 100%; }
  .wohnheim-agenda-event { flex: 1 1 9rem; }
  .on-utility-bar .on-utility-left { flex-direction: row; align-items: center; }
}
@media (max-width: 30rem) {
  .wohnheim-mast .workspace-label { display: none; }
  .wohnheim-mast .wohnheim-workspace summary { width: 44px; padding-inline: 0; }
}
@media (max-width: 420px) {
  .wohnheim-mast .on-brand-logo { gap: .38rem; }
  .wohnheim-brand-name { padding-left: .4rem; }
  .wohnheim-mast .on-logo-img { width: min(3.65rem,17vw); }
  .on-utility-bar .on-utility-left { flex-direction: column; align-items: flex-start; }
  .on-utility-left .on-utility-temp { padding: 0; border: 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .wohnheim-section-type { animation: wohnheim-type-in .34s ease-out; }
  .wohnheim-social a { transition: box-shadow .18s ease; }
  .wohnheim-social a:hover { box-shadow: inset 0 0 0 1px currentColor; }
  @keyframes wohnheim-type-in { from { transform: translateY(4px); } to { transform: none; } }
}

.wohnheim-lead h1 { font: 500 clamp(2.1rem, 3.5vw, 4rem)/1.07 var(--wh-serif); letter-spacing: -.045em; margin: 0; }
.wohnheim-address { color: #e2e5df; }
