:root {
  --ink: #3c3638;
  --muted: #6d6366;
  --paper: #fcfaf6;
  --paper-soft: #f1e9e3;
  --rose: #c89396;
  --rose-dark: #805a5d;
  --taupe: #927864;
  --line: rgba(91, 69, 71, .18);
  --shadow: 0 22px 62px rgba(61, 49, 52, .14);
  --radius: 9px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
  --quote-size: clamp(1.1rem, 1.55vw, 1.3rem);
  --quote-source-size: .85rem;
  --heading-1-size: clamp(2rem, 3.25vw, 3.1rem);
  --heading-2-size: clamp(1.55rem, 2.5vw, 2.25rem);
  --heading-card-size: clamp(1.2rem, 1.7vw, 1.4rem);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: #e4e2dc var(--site-background, url('/assets/images/wassertropfen-hintergrund.jpg')) center 12% / cover fixed no-repeat;
  font: 400 1rem/1.74 var(--sans);
}
body::before { content: ''; position: fixed; inset: 0; z-index: -1; background: rgba(249, 246, 241, .52); }
a { color: var(--rose-dark); text-underline-offset: .18em; }
a:hover { color: #623e40; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { margin: 0 0 .65em; line-height: 1.12; font-weight: 500; text-wrap: balance; }
h1, h2 { font-family: var(--serif); }
h1 { max-width: 15ch; color: #433a3c; font-size: var(--heading-1-size); letter-spacing: -.035em; }
h2 { font-size: var(--heading-2-size); letter-spacing: -.025em; }
h3 { font-size: var(--heading-card-size); }
p { margin: 0 0 1.2em; }
p, li, dd { overflow-wrap: break-word; word-break: normal; line-break: auto; }
blockquote { margin: 1.5rem 0 .4rem; padding-left: 1rem; border-left: 3px solid var(--rose); font: italic var(--quote-size)/1.5 var(--serif); color: var(--rose-dark); text-wrap: balance; }
cite { color: var(--muted); font-size: var(--quote-source-size); font-style: normal; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #6b506f; outline-offset: 3px; }
#inhalt:focus-visible { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; opacity: 0; white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: 1rem; z-index: 100; transform: translateY(-180%); padding: .75rem 1rem; background: var(--ink); color: white; }
.skip-link:focus { transform: none; }

.top-note { width: fit-content; max-width: calc(100% - 2rem); margin: .75rem auto 0; padding: .5rem .8rem .5rem .55rem; display: flex; align-items: center; gap: .7rem; background: rgba(255,255,255,.96); border: 1px solid rgba(128,90,93,.3); border-radius: 999px; box-shadow: 0 8px 24px rgba(61,49,52,.12); color: #4a4144; font-size: .84rem; line-height: 1.45; letter-spacing: .01em; text-decoration: none; transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; }
.top-note:hover { transform: translateY(-1px); border-color: rgba(128,90,93,.56); box-shadow: 0 11px 28px rgba(61,49,52,.16); color: #4a4144; }
.top-note__label { flex: 0 0 auto; padding: .28rem .58rem; border-radius: 999px; background: var(--rose-dark); color: #fff; font-size: .68rem; font-weight: 750; letter-spacing: .08em; line-height: 1.25; text-transform: uppercase; }
.top-note + .site-header { margin-top: .75rem; }
.site-header { width: min(1180px, calc(100% - 2rem)); margin: 1.2rem auto 0; padding: 1.1rem 1.35rem .8rem; display: grid; grid-template-columns: minmax(260px, 445px) 1fr; align-items: end; gap: 2rem; background: linear-gradient(110deg, rgba(242,229,224,.98) 0%, rgba(239,232,228,.98) 54%, rgba(228,235,227,.98) 100%); border-radius: var(--radius) var(--radius) 0 0; border-top: 3px solid rgba(156, 130, 108, .72); border-bottom: 2px solid rgba(128,90,93,.34); box-shadow: 0 -8px 34px rgba(61,49,52,.06), 0 10px 28px rgba(61,49,52,.08); }
.brand img { width: 100%; }
.main-nav { display: flex; justify-content: flex-end; align-items: center; gap: .3rem; }
.main-nav a { padding: .75rem .63rem; color: var(--ink); text-decoration: none; font-size: .88rem; white-space: nowrap; border-bottom: 2px solid transparent; }
.main-nav a:hover, .main-nav a[aria-current='page'] { color: var(--rose-dark); border-color: var(--rose); }
.menu-button { display: none; width: 46px; height: 46px; padding: 11px; border: 1px solid var(--line); background: #fffdf9; border-radius: 50%; transition: background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.menu-button span:not(.sr-only) { display: block; height: 1px; margin: 5px 0; background: var(--ink); transition: transform .22s ease, opacity .16s ease; }

.page-shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto 2rem; overflow: hidden; background: rgba(252, 249, 244, .96); border-inline: 1px solid rgba(92, 72, 72, .11); border-radius: 0 0 var(--radius) var(--radius); box-shadow: var(--shadow); }
.hero, .page-hero, .page-intro, .section, .quote-band, .footer-contact, .legal { padding: clamp(3.5rem, 7vw, 7.5rem); }
.hero--home { min-height: 620px; padding: clamp(3rem, 6vw, 6rem); display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); grid-template-areas: 'intro portrait' 'body paths' 'closing .'; align-items: start; column-gap: clamp(2.25rem, 4vw, 4rem); row-gap: 1.35rem; background: linear-gradient(110deg, rgba(253,250,246,.98) 0%, rgba(249,242,237,.92) 58%, rgba(226,232,225,.78) 100%), var(--site-background, url('/assets/images/wassertropfen-hintergrund.jpg')) center / cover no-repeat; }
.hero h1 em { color: var(--rose-dark); font-weight: 400; }
.hero__intro { grid-area: intro; min-width: 0; max-width: 700px; }
.hero__body { grid-area: body; min-width: 0; max-width: 700px; }
.hero__closing { grid-area: closing; min-width: 0; max-width: 700px; }
.hero--home h1 { font-size: var(--heading-1-size); }
.hero__credentials { max-width: 62ch; margin: -.15rem 0 1.6rem; color: var(--muted); font-size: .92rem; line-height: 1.55; }
.hero__paths { max-width: 680px; margin: 1.8rem 0 2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.hero__paths .button { min-height: 46px; padding: .65rem .75rem; font-size: .88rem; line-height: 1.25; text-align: center; }
.hero--home > .hero__paths { grid-area: paths; max-width: none; margin: .45rem 0 0; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; align-self: start; }
.hero--home > .hero__paths--four { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; }
.hero--home > .hero__paths--four .button { height: 100%; }
.hero__quote { max-width: 30ch; margin: 1.7rem 0 .3rem; font-size: var(--quote-size); text-wrap: balance; }
.hero__quote + cite { display: block; margin-bottom: 1.6rem; }
.lead { max-width: 68ch; color: #4f494d; font: 1.1rem/1.65 var(--serif); }
.lead--wide { max-width: none; }
.eyebrow { margin-bottom: .9rem; color: var(--rose-dark); font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.portrait { margin: 0; display: grid; grid-template-columns: minmax(145px, .82fr) minmax(185px, 1.08fr); align-items: center; gap: clamp(.9rem, 2vw, 1.4rem); }
.hero--home > .portrait { grid-area: portrait; margin-top: 2.4rem; align-self: start; align-items: start; }
.portrait img { width: 100%; aspect-ratio: 1 / 1.04; object-fit: cover; border: 9px solid rgba(255, 253, 249, .98); border-radius: 5px; outline: 1px solid rgba(92,72,72,.16); box-shadow: 14px 16px 0 rgba(156,130,108,.17), 0 18px 42px rgba(43,37,39,.14); }
.portrait figcaption { margin: 0; font-family: var(--serif); font-size: 1.05rem; }
.portrait figcaption span { color: var(--muted); font: .8rem/1.4 var(--sans); }
.portrait figcaption .hero__quote { margin: 0 0 .45rem; padding-left: 1rem; border-left: 3px solid var(--rose); font-size: var(--quote-size); }
.portrait figcaption .hero__quote + cite { margin: 0 0 0 1rem; }
.button-row { display: flex; flex-wrap: wrap; align-items: center; gap: 1.3rem; margin-top: 2rem; }
.button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: .78rem 1.25rem; border: 1px solid var(--ink); border-radius: 5px; background: var(--ink); color: white; text-decoration: none; font-weight: 650; cursor: pointer; transition: background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { background: var(--rose-dark); border-color: var(--rose-dark); color: white; }
.button--small { min-height: 40px; padding: .55rem .9rem; font-size: .9rem; }
.button--ghost { background: white; color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 650; }
.text-link::after { content: '→'; }
.detail-back { padding: 1rem clamp(2.5rem, 5vw, 4.5rem); background: rgba(255,253,249,.96); border-bottom: 1px solid var(--line); }
.detail-back a { width: fit-content; display: inline-flex; align-items: center; gap: .55rem; color: var(--rose-dark); font-size: .92rem; font-weight: 650; text-decoration: none; }
.detail-back a:hover { color: #623e40; text-decoration: underline; }
.detail-back a span { font-size: 1.1em; transition: transform .18s ease; }
.detail-back a:hover span { transform: translateX(-2px); }

.section { position: relative; padding-block: clamp(3rem, 6vw, 6.5rem); background: rgba(255, 253, 249, .92); border-top: 1px solid var(--line); }
.page-hero + .section, .page-intro + .section { padding-top: clamp(2.5rem, 4.5vw, 4.75rem); }
.section:nth-of-type(even) { background: linear-gradient(135deg, rgba(241,233,227,.86), rgba(252,249,245,.94)); }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 2rem; margin-bottom: 2.5rem; }
.section-heading h2 { max-width: 16ch; }
.section-heading > :only-child { flex: 1 1 100%; min-width: 0; }
.section-heading > :only-child h2 { max-width: none; }
.contact-prompt { display: flex; align-items: center; justify-content: space-between; gap: clamp(2rem, 6vw, 5rem); background: linear-gradient(135deg, rgba(241,233,227,.92), rgba(252,249,245,.96)); }
.contact-prompt > div { max-width: 720px; }
.contact-prompt h2 { margin-bottom: .3rem; font-size: var(--heading-2-size); }
.contact-prompt p:last-child { margin-bottom: 0; }
.contact-prompt .button { flex: 0 0 auto; }
.service-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; }
.service-grid--three { grid-template-columns: repeat(3, 1fr); }
.service-card { min-height: 270px; padding: 1.6rem; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #fbf7f2; box-shadow: 0 8px 24px rgba(79,61,63,.07); color: var(--ink); text-decoration: none; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.service-card:hover { transform: translateY(-2px); border-color: rgba(199,143,146,.78); box-shadow: 0 15px 34px rgba(54,46,49,.12); color: var(--ink); }
.service-card > span { margin-bottom: auto; color: var(--rose-dark); font-size: .75rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.service-card h2, .service-card h3 { margin-top: 2rem; font: 500 var(--heading-card-size)/1.2 var(--serif); }
.service-card p { margin-bottom: 0; color: var(--muted); font-size: .93rem; }
.service-card--media { min-height: 300px; padding: 0; overflow: hidden; }
.service-card--media img { width: 100%; height: 172px; object-fit: cover; border-bottom: 4px solid rgba(199,143,146,.62); filter: saturate(.86) contrast(.97); transform: scale(1.025); transform-origin: center; transition: transform .26s ease, filter .26s ease; }
.service-card--media h2, .service-card--media h3 { margin: auto 1.5rem .55rem; padding-top: 1.25rem; }
.service-card > .service-card__link { margin: 0 1.5rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: .6rem; color: var(--rose-dark); font-size: .82rem; font-weight: 700; letter-spacing: 0; line-height: 1.25; text-transform: none; }
.service-card__link span { flex: 0 0 auto; color: var(--rose-dark); font-size: 1rem; transition: transform .18s ease; }
.service-card:hover .service-card__link span { transform: translateX(3px); }
.service-card--media:hover img { transform: scale(1.055); filter: saturate(1) contrast(1); }
.related-services { background: linear-gradient(135deg, rgba(244,236,230,.94), rgba(252,249,245,.98)); }
.related-services__header { max-width: 720px; margin-bottom: 2rem; }
.related-services__header h2 { max-width: 22ch; margin-bottom: .45rem; font-size: var(--heading-2-size); }
.related-services__header p:last-child { margin-bottom: 0; color: var(--muted); }
.related-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; }
.related-link { min-height: 74px; padding: 1rem 1.15rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; border: 1px solid rgba(128,90,93,.28); border-radius: 6px; background: rgba(255,253,249,.86); color: var(--ink); font-weight: 650; line-height: 1.35; text-decoration: none; transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease; }
.related-link:hover { transform: translateY(-2px); border-color: rgba(128,90,93,.62); background: #fff; box-shadow: 0 10px 24px rgba(61,49,52,.09); color: var(--ink); }
.related-link span:last-child { flex: 0 0 auto; color: var(--rose-dark); font-size: 1.2rem; transition: transform .18s ease; }
.related-link:hover span:last-child { transform: translateX(3px); }
.related-link--accent { grid-column: -2 / -1; border-color: var(--rose-dark); background: var(--rose-dark); color: #fff; }
.related-link--accent span:last-child { color: #fff; }
.related-link--accent:hover { border-color: #623e40; background: #623e40; color: #fff; }
.related-overview { width: fit-content; margin-top: 1.25rem; display: inline-flex; align-items: center; gap: .45rem; color: var(--rose-dark); font-weight: 650; text-decoration: none; }
.related-overview:hover { color: #623e40; text-decoration: underline; }
.related-overview span { transition: transform .18s ease; }
.related-overview:hover span { transform: translateX(3px); }
.related-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.6rem; }
.work-intro { display: grid; grid-template-columns: minmax(220px, .7fr) minmax(0, 1.3fr); align-items: start; gap: clamp(2rem, 7vw, 7rem); }
.work-intro .lead { margin: 0; }
.process-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.process-grid article { min-height: 245px; padding: 1.5rem; background: rgba(253,250,246,.97); border: 1px solid var(--line); border-top: 4px solid rgba(199,143,146,.64); border-radius: 6px; box-shadow: 0 9px 28px rgba(79,61,63,.07); }
.process-grid article > span { color: var(--rose-dark); font: 1.6rem/1 var(--serif); }
.process-grid h3 { margin: 1.4rem 0 .7rem; font: 500 var(--heading-card-size)/1.25 var(--serif); }
.process-grid p { margin-bottom: 0; color: var(--muted); }
.work-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 2rem 0 0; background: var(--line); border: 1px solid var(--line); }
.work-facts div { min-width: 0; padding: 1.35rem; background: rgba(255,253,249,.98); }
.work-facts dt { margin-bottom: .45rem; color: var(--rose-dark); font-size: .78rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.work-facts dd { margin: 0; line-height: 1.55; }
.course-choice { --course-accent: #788f93; min-height: 440px; border-top: 4px solid var(--course-accent); }
.course-choice--msc { --course-accent: #a4767f; }
.course-choice--practice { --course-accent: #927a61; }
.course-choice__media { position: relative; overflow: hidden; }
.course-choice__media img { display: block; height: 190px; border-bottom-color: color-mix(in srgb, var(--course-accent) 68%, white); }
.course-choice__badge { position: absolute; top: .9rem; left: .9rem; margin: 0; padding: .4rem .65rem; border-radius: 999px; background: color-mix(in srgb, var(--course-accent) 88%, #332d2e); box-shadow: 0 4px 14px rgba(45,38,39,.16); color: #fff; font-size: .7rem; font-weight: 750; letter-spacing: .1em; line-height: 1; text-transform: uppercase; }
.course-choice__body { min-height: 246px; padding: 1.25rem 1.4rem 1.35rem; display: flex; flex-direction: column; align-items: flex-start; }
.course-choice__body .course-choice__focus { margin: 0 0 .55rem; color: var(--course-accent); font-size: .76rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.course-choice__body h2 { margin: 0 0 .75rem; padding: 0; font-size: var(--heading-card-size); }
.course-choice__body > p:not(.course-choice__focus) { margin: 0 0 1.1rem; }
.course-choice__link { margin: auto 0 0; color: var(--course-accent); font-size: .88rem; font-weight: 750; }
.course-choice__link::after { content: ' \2192'; }
.course-choice:hover { border-color: var(--course-accent); }
.quote-band { padding: clamp(2.5rem, 5vw, 4.5rem); text-align: left; background: linear-gradient(rgba(241,232,226,.91), rgba(249,244,238,.93)), var(--site-background, url('/assets/images/wassertropfen-hintergrund.jpg')) center 44% / cover no-repeat; border-block: 1px solid rgba(156,130,108,.2); }
.quote-band blockquote { max-width: 48ch; margin: 0 0 .5rem; font-size: var(--quote-size); }
.quote-band blockquote + cite { display: block; margin-left: 1rem; }

.page-hero { min-height: 0; padding: clamp(2.5rem, 5vw, 4.5rem); display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(240px, .65fr); align-items: center; gap: clamp(2rem, 5vw, 5rem); background: linear-gradient(110deg, rgba(253,250,246,.98) 0%, rgba(249,242,237,.92) 58%, rgba(226,232,225,.77) 100%), var(--site-background, url('/assets/images/wassertropfen-hintergrund.jpg')) center / cover no-repeat; }
.page-hero h1, .page-intro h1 { font-size: var(--heading-1-size); }
.page-hero__quote { max-width: 38ch; margin: .9rem 0 .3rem; padding-left: 1rem; border-left-width: 3px; font-size: var(--quote-size); }
.page-hero__quote + cite { display: block; margin: 0 0 1.2rem 1rem; }
.page-hero img { width: 100%; max-width: 360px; justify-self: end; aspect-ratio: 4 / 3; object-fit: cover; border: 8px solid rgba(255,253,249,.98); border-radius: 5px; outline: 1px solid rgba(92,72,72,.16); box-shadow: 13px 15px 0 rgba(199,143,146,.22), 0 18px 42px rgba(61,48,50,.15); }
.page-hero--portrait img { aspect-ratio: 1 / 1.04; }
.page-hero--portrait .page-hero__quote + p { margin-top: .8rem; }
.page-hero--aligned { grid-template-columns: minmax(0, 1.05fr) minmax(380px, .95fr); align-items: start; }
.page-hero__heading { min-width: 0; }
.page-hero--with-copy { grid-template-areas: 'heading visual' 'copy visual'; row-gap: 1.5rem; }
.page-hero--with-copy .page-hero__heading { grid-area: heading; }
.page-hero--with-copy .page-hero__visual { grid-area: visual; }
.page-hero__copy { grid-area: copy; min-width: 0; }
.page-hero__copy > :last-child { margin-bottom: 0; }
.page-hero__visual { margin: 2.4rem 0 0; display: grid; grid-template-columns: minmax(145px, .82fr) minmax(185px, 1.08fr); align-items: start; gap: clamp(.9rem, 2vw, 1.4rem); }
.page-hero__visual figcaption { min-width: 0; }
.page-hero__visual .page-hero__quote { margin: 0 0 .45rem; }
.page-hero__visual .page-hero__quote + cite { margin: 0 0 0 1rem; }
.page-hero--aligned .page-hero__visual img { width: 100%; max-width: none; aspect-ratio: 4 / 3; align-self: start; }
.page-intro { padding: clamp(2.8rem, 5vw, 5rem); background: linear-gradient(110deg, rgba(253,250,246,.98), rgba(246,237,232,.91)), var(--site-background, url('/assets/images/wassertropfen-hintergrund.jpg')) center / cover no-repeat; }
.page-intro h1 { max-width: 19ch; }
.headline--wide { max-width: none; }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(3rem, 8vw, 8rem); }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.check-list li { position: relative; padding: .85rem 0 .85rem 1.6rem; border-top: 1px solid var(--line); }
.check-list li::before { content: ''; position: absolute; left: .1rem; top: 1.45rem; width: 6px; height: 6px; border-radius: 50%; background: var(--rose); }
.section :is(p, ul, ol, dl) + :is(h2, h3) { margin-top: clamp(1.6rem, 3vw, 2.3rem); }
.section--continuation { padding-top: .6rem; }
.course-availability { max-width: 48rem; margin: 1.4rem 0 0; padding: 1rem 1.2rem; border-left: 3px solid var(--rose); background: rgba(255,253,249,.65); }
.family-overview__conclusion { margin-top: clamp(1.6rem, 2.5vw, 2.4rem); }
.topics-section h2 { max-width: 31ch; }
.check-list--columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(2rem, 6vw, 5rem); }
.contact-card, .soft-panel, .notice-box { padding: 2rem; background: rgba(244,236,230,.96); border-left: 3px solid var(--rose); border-radius: 0 6px 6px 0; box-shadow: 0 8px 26px rgba(79,61,63,.07); }
.contact-card--large { border-left: 0; border-top: 3px solid var(--rose); border-radius: 6px; }
.soft-panel h2, .contact-card h2 { font-size: var(--heading-card-size); }
.soft-panel--definition { border: 1px solid var(--line); border-radius: 6px; background: rgba(248,242,237,.82); box-shadow: 0 8px 26px rgba(79,61,63,.05); }
.soft-panel--definition .check-list { margin-top: .7rem; }
.soft-panel--definition .check-list li:first-child { border-top: 0; }
.soft-panel--definition h3 { margin: 1.8rem 0 0; color: var(--rose-dark); font-family: inherit; font-size: .78rem; font-weight: 750; letter-spacing: .1em; text-transform: uppercase; }
.small { color: var(--muted); font-size: .84rem; }

.course-list { display: grid; gap: 1.2rem; }
.course-card { padding: clamp(1.5rem, 4vw, 2.7rem); border: 1px solid var(--line); border-top: 4px solid rgba(199,143,146,.64); border-radius: 6px; background: rgba(253,250,246,.97); box-shadow: 0 9px 28px rgba(79,61,63,.07); }
.course-card__top { display: flex; justify-content: space-between; gap: 2rem; align-items: baseline; }
.course-card__top h2 { max-width: 28ch; margin-bottom: .3rem; font-size: var(--heading-card-size); }
.course-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 1.5rem 0 1.6rem; border: 1px solid var(--line); background: var(--line); }
.course-facts div { min-width: 0; padding: 1.05rem 1.2rem; background: rgba(255,253,249,.98); }
.course-facts .course-fact--dates { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(110px, .24fr) 1fr; gap: 1rem; align-items: baseline; padding: 1.1rem 1.2rem; border-left: 3px solid var(--rose); background: rgba(239,232,226,.95); }
.course-facts dt { margin-bottom: .45rem; color: var(--rose-dark); font-size: .76rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.course-facts .course-fact--dates dt { margin-bottom: 0; }
.course-facts dd { margin: 0; font-size: .96rem; line-height: 1.55; }
.course-fact--dates dd { font-weight: 650; }
.course-fact--scope dd { font-size: .92rem; letter-spacing: -.01em; }
.course-fact--included dd { font-size: .92rem; }
.course-card__actions { display: flex; justify-content: flex-start; }
.empty-state { padding: 2rem; background: var(--paper-soft); }

.contact-layout { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(2rem, 6vw, 5rem); align-items: stretch; }
.contact-side { min-width: 0; display: grid; align-content: start; gap: 1rem; }
.contact-layout .contact-card--large { height: auto; }
/* Form first in reading/tab order; preserve the established desktop columns. */
.contact-layout .contact-form { grid-column: 2; grid-row: 1; }
.contact-layout .contact-side { grid-column: 1; grid-row: 1; }
.contact-form input, .contact-form select, .contact-form textarea { font-size: 1rem; }
.contact-direct { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.5rem; margin: .5rem 0 0; font-size: .95rem; }
.contact-direct a { display: inline-flex; align-items: center; min-height: 44px; }
.map-section .section-heading { margin-bottom: 1.7rem; }
.map-section .section-heading h2 { max-width: none; }
.map-frame { min-height: 410px; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: #e7ece7; box-shadow: 0 9px 28px rgba(79,61,63,.08); }
.map-frame iframe { display: block; width: 100%; min-height: 410px; border: 0; }
.map-placeholder { min-height: 410px; padding: 2rem; display: grid; place-content: center; justify-items: center; text-align: center; background: radial-gradient(circle at 25% 28%, rgba(255,255,255,.78) 0 4%, transparent 4.5%), linear-gradient(135deg, rgba(226,232,225,.95), rgba(241,233,227,.9)); }
.map-placeholder h3 { margin: .9rem 0 .45rem; font: 500 var(--heading-card-size)/1.25 var(--serif); }
.map-placeholder p { max-width: 48ch; color: var(--muted); }
.map-pin { position: relative; width: 42px; height: 42px; border: 2px solid white; border-radius: 50% 50% 50% 0; background: var(--rose-dark); box-shadow: 0 8px 20px rgba(79,61,63,.2); transform: rotate(-45deg); }
.map-pin::after { content: ''; position: absolute; inset: 11px; border-radius: 50%; background: white; }
.map-actions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); width: 100%; max-width: 38rem; gap: .75rem; }
.map-attribution { margin: .65rem 0 0; color: var(--muted); font-size: .76rem; }
.contact-form, .login-card form { display: grid; gap: 1rem; }
.contact-form { scroll-margin-top: 1rem; }
.contact-form > h2 { margin-bottom: 0; }
.contact-form__required { margin: -.4rem 0 0; }
.message-label { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .15rem .65rem; }
.message-count { margin-left: auto; color: var(--muted); font-size: .78rem; font-weight: 400; white-space: nowrap; font-variant-numeric: tabular-nums; }
.contact-form__submit { display: grid; gap: .7rem; }
.contact-form__submit p { margin: 0; line-height: 1.45; }
.contact-form__submit .check { line-height: 1.45; min-height: 44px; align-items: start; align-content: center; }
.contact-form__submit .check input[type='checkbox'] { margin-top: calc(.725em - 9px); }
.contact-form__submit .button { width: 100%; min-height: 48px; margin-top: .1rem; }
.contact-security { min-width: 0; --altcha-max-width: 100%; --altcha-font-family: inherit; }
.contact-security > p { margin: 0 0 .65rem; }
.contact-security altcha-widget { display: block; }
.contact-security [data-contact-retry] { margin-top: .65rem; }
.contact-security [data-contact-retry][hidden] { display: none; }
.contact-security--preview { border: 1px solid var(--line, #d7ddd8); border-radius: .75rem; padding: 1rem; }
.contact-security--preview p:last-child { margin-bottom: 0; }
[data-contact-status] { overflow-wrap: anywhere; }
label { display: grid; gap: .35rem; color: var(--ink); font-size: .88rem; font-weight: 650; }
input, select, textarea { width: 100%; padding: .78rem .85rem; border: 1px solid #bdb4b6; border-radius: 5px; background: #fffdfb; color: var(--ink); }
textarea { resize: vertical; }
.check { grid-template-columns: 18px minmax(0, 1fr); align-items: start; gap: .55rem; font-weight: 400; }
.check input[type='checkbox'] { width: 18px; min-width: 18px; height: 18px; margin: .3rem 0 0; padding: 0; appearance: auto; accent-color: var(--rose-dark); }
.form-note { padding: .9rem; background: #faf6f4; border-left: 3px solid var(--taupe); font-size: .88rem; }
.trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.legal { max-width: 880px; }
.legal h1 { font-size: var(--heading-1-size); }
.legal h2 { margin-top: 2.4rem; font: 600 var(--heading-card-size)/1.35 var(--sans); }
.notice-box { margin-top: 2rem; }
.sitemap-list { columns: 2; padding-left: 1.1rem; }
.sitemap-list li { margin-bottom: .75rem; break-inside: avoid; }

.footer-contact { --footer-column-gap: clamp(3rem, 8vw, 8rem); display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--footer-column-gap); row-gap: 1.6rem; align-items: start; background: linear-gradient(rgba(67,57,60,.91), rgba(61,52,55,.95)), var(--site-background, url('/assets/images/wassertropfen-hintergrund.jpg')) center / cover no-repeat; color: white; }
.footer-contact__heading { grid-column: 1 / -1; padding-bottom: 1.35rem; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--footer-column-gap); align-items: center; border-bottom: 1px solid rgba(255,255,255,.34); }
.footer-contact__heading .button--footer { justify-self: start; margin-left: calc(var(--footer-column-gap) + 1px); }
.footer-contact > div:nth-child(3) { padding-left: var(--footer-column-gap); border-left: 1px solid rgba(255,255,255,.28); }
.footer-contact h2 { max-width: none; margin: 0; color: white; }
.footer-contact p { margin: 0; }
.footer-contact .footer-contact__label { margin-bottom: .65rem; color: white; font-size: .82rem; font-weight: 750; letter-spacing: .14em; text-transform: uppercase; }
.footer-contact a { color: white; }
.footer-contact .button--footer { min-height: 44px; padding: .65rem 1rem; background: #fff; border-color: #fff; color: var(--ink); }
.footer-contact .button--footer:hover { background: var(--rose); border-color: var(--rose); color: #2f292b; }
.site-footer { width: min(1180px, calc(100% - 2rem)); margin: 0 auto 2rem; display: flex; justify-content: space-between; gap: 2rem; padding: 1.25rem 1.5rem; color: #4d494b; font-size: .78rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: .25rem; font-size: .875rem; }
.status-page { min-height: 100vh; padding: 2rem; display: grid; place-items: center; }
.status-page > div { max-width: 660px; padding: clamp(2rem, 7vw, 5rem); background: white; box-shadow: var(--shadow); }
.status-page h1 { font-size: var(--heading-1-size); }
.preview-banner { padding: .75rem 1rem; position: sticky; top: 0; z-index: 20; text-align: center; background: #fff0c8; border-bottom: 1px solid #d6b967; font-weight: 700; }
.preview-banner a { margin-left: .5rem; }

/* Admin */
.admin-body { background: #f2f0ee; }
.admin-body::before { display: none; }
.admin-shell { width: min(1100px, calc(100% - 2rem)); margin: 2rem auto 6rem; }
.login-card { width: min(480px, 100%); margin: 8vh auto; padding: 2.5rem; background: white; box-shadow: var(--shadow); }
.login-card img { margin-bottom: 2rem; }
.login-card h1, .admin-header h1 { font-size: clamp(2.2rem, 5vw, 3.5rem); }
.admin-header { display: flex; justify-content: space-between; align-items: center; gap: 2rem; margin-bottom: 2rem; }
.admin-header__intro { max-width: 620px; margin: .6rem 0 0; color: var(--muted); }
.admin-actions { display: flex; gap: .7rem; }
.admin-panel { margin-bottom: 1.2rem; padding: clamp(1.4rem, 4vw, 2.5rem); background: white; border: 1px solid var(--line); }
.admin-panel--muted { background: #f8f6f4; }
.admin-panel h2 { font-size: 2rem; }
.admin-panel__intro { max-width: 700px; color: var(--muted); }
.admin-panel__heading { display: flex; align-items: center; justify-content: space-between; gap: 2rem; }
.admin-section-nav { margin: 0 0 1.2rem; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.admin-section-nav button { min-height: 112px; padding: 1rem 1.1rem; display: grid; grid-template-columns: auto 1fr; grid-template-areas: 'number title' 'number description'; align-items: center; column-gap: .9rem; text-align: left; color: var(--ink); background: #fff; border: 1px solid var(--line); cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.admin-section-nav button:hover { transform: translateY(-2px); border-color: var(--rose-dark); box-shadow: 0 8px 20px rgba(54,44,46,.08); }
.admin-section-nav button.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.admin-section-nav button > span { grid-area: number; font: 1.8rem/1 var(--serif); opacity: .55; }
.admin-section-nav button > strong { grid-area: title; font-size: 1rem; }
.admin-section-nav button > small { grid-area: description; opacity: .72; }
.admin-quick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.admin-quick-grid button { min-height: 150px; padding: 1.25rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end; gap: .35rem; text-align: left; color: var(--ink); background: linear-gradient(145deg, #faf7f5, #f0e8e5); border: 1px solid var(--line); cursor: pointer; }
.admin-quick-grid button:hover { border-color: var(--rose-dark); }
.admin-quick-grid span { color: var(--rose-dark); font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-quick-grid strong { font: 1.35rem/1.2 var(--serif); }
.admin-quick-grid small { color: var(--muted); }
.admin-grid { display: grid; gap: 1rem; }
.admin-grid--stats { grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; }
.stat-card { padding: 1.4rem; display: grid; gap: .6rem; background: var(--ink); color: white; }
.stat-card span { font-size: .8rem; }
.stat-card strong { font: 2.4rem/1 var(--serif); }
.analytics-grid, .field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.field-grid--single { grid-template-columns: 1fr; }
.bar-row { display: flex; justify-content: space-between; gap: 1rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.demo-badge { padding: .45rem .7rem; color: #61484b; background: #ead8d5; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.analytics-trend { margin-top: 1.6rem; display: grid; gap: .8rem; }
.analytics-trend__row { display: grid; grid-template-columns: 130px minmax(150px, 1fr) 110px 82px; align-items: center; gap: 1rem; }
.analytics-trend__month { font-weight: 700; }
.analytics-trend__row progress { width: 100%; height: 12px; overflow: hidden; appearance: none; border: 0; border-radius: 999px; background: #e7dfdc; }
.analytics-trend__row progress::-webkit-progress-bar { background: #e7dfdc; border-radius: 999px; }
.analytics-trend__row progress::-webkit-progress-value { background: var(--rose-dark); border-radius: 999px; }
.analytics-trend__row progress::-moz-progress-bar { background: var(--rose-dark); border-radius: 999px; }
.analytics-trend__row > strong { font-size: .92rem; text-align: right; }
.analytics-trend__row > strong small { font-weight: 500; }
.analytics-trend__row > span:last-child { color: var(--muted); font-size: .86rem; text-align: right; }
.analytics-subheading { margin: 2rem 0 .8rem; font-size: 1rem; }
.year-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; }
.year-summary article { padding: 1rem; display: grid; gap: .35rem; background: #fff; border: 1px solid var(--line); }
.year-summary article > span { color: var(--rose-dark); font-size: .78rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.year-summary article > strong { font: 2rem/1 var(--serif); }
.year-summary article > small { color: var(--muted); }
.analytics-details { margin-top: 1.5rem; border-top: 1px solid var(--line); }
.analytics-details summary { padding: 1rem 0; color: var(--rose-dark); font-weight: 750; cursor: pointer; }
.analytics-details__heading { margin-bottom: .6rem; }
.analytics-details__heading p { margin: 0; font-weight: 700; }
.analytics-privacy { margin: 1.3rem 0 0; color: var(--muted); }
.field-grid--course { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.course-editor-list { margin-top: 1.5rem; display: grid; gap: .8rem; }
.course-editor { background: #fff; border: 1px solid var(--line); }
.course-editor[open] { border-color: #b69a9b; box-shadow: 0 10px 24px rgba(61,49,52,.07); }
.course-editor summary { min-height: 82px; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; cursor: pointer; list-style: none; }
.course-editor summary::-webkit-details-marker { display: none; }
.course-editor summary::after { content: '+'; flex: 0 0 auto; font: 1.6rem/1 var(--serif); color: var(--rose-dark); }
.course-editor[open] summary::after { content: '−'; }
.course-editor summary > span:first-child { min-width: 0; display: grid; gap: .25rem; }
.course-editor summary small { color: var(--rose-dark); font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.course-editor summary strong { overflow-wrap: anywhere; font: 1.08rem/1.3 var(--serif); }
.course-editor__status { margin-left: auto; padding: .32rem .55rem; color: #395d45; background: #edf6ef; border-radius: 999px; font-size: .72rem; font-weight: 700; }
.course-editor__body { padding: 1.4rem; border-top: 1px solid var(--line); }
.remove-link { margin-top: 1rem; padding: 0; border: 0; background: none; color: #8e3039; text-decoration: underline; cursor: pointer; }
.sticky-save { margin-top: 1.2rem; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(33, 27, 29, .1); }
.sticky-save p { margin: 0; font-size: .85rem; }
.sticky-save p.is-dirty { color: #8e3039; font-weight: 750; }
.sticky-save .button { min-height: 44px; padding: .65rem .9rem; font-size: .9rem; }
.sticky-save .admin-reset-button { color: #774e52; border-color: #bda6a7; }
.sticky-save .admin-reset-button:hover { color: #fff; background: #774e52; border-color: #774e52; }
.alert { padding: 1rem; background: #edf6ef; border-left: 3px solid #39784b; }
.alert--error { background: #fff0f0; border-color: #9c343b; }
.draft-bar { margin-bottom: 1rem; padding: 1rem 1.2rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff4cf; border: 1px solid #d8bd66; }
.draft-bar > div, .save-actions { display: flex; gap: 1rem; }
.draft-bar > div { flex-wrap: wrap; }
.save-actions { flex-wrap: wrap; }
.draft-bar .text-link { font-size: .84rem; }
.draft-bar form { margin: 0; }
.admin-shell [hidden] { display: none !important; }

@media (max-width: 1030px) {
  .site-header { position: relative; z-index: 40; grid-template-columns: minmax(230px, 360px) auto; align-items: center; }
  .menu-button { position: relative; z-index: 42; display: block; justify-self: end; box-shadow: 0 7px 20px rgba(61,49,52,.08); }
  .menu-button:hover, .menu-button[aria-expanded='true'] { border-color: rgba(128,90,93,.58); background: #fff; box-shadow: 0 9px 24px rgba(61,49,52,.16); }
  .menu-button[aria-expanded='true'] span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .menu-button[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
  .menu-button[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
  .main-nav { position: absolute; z-index: 41; top: calc(100% + .65rem); right: .35rem; width: min(360px, calc(100vw - 1.5rem)); min-height: 0; padding: .7rem; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: .25rem; visibility: hidden; opacity: 0; transform: translateY(-.6rem) scale(.975); transform-origin: top right; background: rgba(255,255,255,.985); border: 1px solid rgba(67,58,60,.28); border-radius: 18px; box-shadow: 0 28px 64px rgba(40,34,35,.26), inset 0 1px 0 rgba(255,255,255,.9); transition: opacity .2s ease, transform .22s ease, visibility .2s ease; }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; }
  .main-nav a { padding: .82rem 1rem; border: 1px solid rgba(91,69,71,.1); border-radius: 12px; background: #f8f4f1; color: #3c3437; font-size: .98rem; white-space: normal; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
  .main-nav a:hover, .main-nav a[aria-current='page'] { background: #f1e3e2; border-color: rgba(128,90,93,.5); color: #68474b; transform: translateX(2px); }
  .service-grid { grid-template-columns: repeat(2, 1fr); }
  .service-grid--three .service-card:last-child { grid-column: 1 / -1; width: calc(50% - .5rem); justify-self: center; }
  .service-grid--courses .course-choice:last-child { width: 100%; }
}

@media (max-width: 900px) {
  .hero--home { min-height: 0; grid-template-columns: 1fr; grid-template-areas: 'intro' 'portrait' 'body' 'paths' 'closing'; gap: 0; }
  .hero--home h1 { max-width: 20ch; }
  .hero--home .portrait { width: min(620px, 100%); margin: 1.5rem 0 2.2rem; justify-self: center; }
  .hero--home > .hero__paths { width: 100%; max-width: 680px; margin: 0 0 2rem; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
  .hero--home > .hero__paths--four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-hero--aligned { grid-template-columns: 1fr; gap: 0; }
  .page-hero--with-copy { grid-template-areas: 'heading' 'visual' 'copy'; }
  .page-hero--with-copy .page-hero__copy { margin-top: 1.5rem; }
  .page-hero--aligned .page-hero__visual { width: min(620px, 100%); margin: 1.5rem 0 0; justify-self: start; }
}

@media (max-width: 820px) {
  body { background-attachment: scroll; }
  .top-note { text-align: left; }
  .site-header, .page-shell, .site-footer { width: calc(100% - 1rem); }
  .site-header { margin-top: .5rem; padding: .8rem; grid-template-columns: minmax(0, 1fr) auto; gap: .75rem; }
  .brand { width: min(300px, 100%); }
  .hero, .page-hero, .page-intro, .section, .quote-band, .footer-contact, .legal { padding: 2.2rem 1.25rem; }
  .section { padding-block: 1.9rem; }
  .page-hero + .section, .page-intro + .section { padding-top: 1.65rem; }
  .detail-back { padding: .9rem 1.25rem; }
  .hero--home, .page-hero, .page-hero--portrait, .split, .contact-layout, .work-intro { grid-template-columns: 1fr; }
  .contact-layout .contact-form { grid-column: 1; grid-row: 1; }
  .contact-layout .contact-side { grid-column: 1; grid-row: 2; }
  .hero--home { min-height: 0; }
  .hero--home .portrait { width: min(620px, 100%); }
  .page-hero { min-height: 0; }
  .page-hero img { max-width: 420px; }
  .page-hero--compact-media {
    grid-template-columns: minmax(0, 1.2fr) minmax(130px, .8fr);
    align-items: start;
    gap: clamp(.75rem, 3vw, 1.25rem);
  }
  .page-hero--compact-media img {
    width: 100%;
    max-width: 260px;
    margin-top: .15rem;
    border-width: 6px;
    box-shadow: 8px 10px 0 rgba(199,143,146,.18), 0 12px 28px rgba(61,48,50,.12);
  }
  .service-grid, .service-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
  .service-grid--three .service-card:last-child { grid-column: auto; width: 100%; }
  .service-grid--courses .course-choice:last-child { grid-column: 1 / -1; min-height: 325px; }
  .service-grid--courses .course-choice:last-child .course-choice__body { min-height: 170px; }
  .service-card { min-height: 205px; }
  .service-card--media { min-height: 205px; }
  .service-card--media img { height: 102px; }
  .service-card--media h2, .service-card--media h3 { margin: auto .8rem .3rem; padding-top: .7rem; font-size: clamp(1rem, 4vw, 1.1rem); }
  .service-card > .service-card__link { margin: 0 .8rem .75rem; font-size: .76rem; font-weight: 700; }
  .service-card__link span { font-size: .92rem; }
  .process-grid, .work-facts { grid-template-columns: 1fr; }
  .course-choice { min-height: 390px; }
  .course-choice__media img { height: 150px; }
  .course-choice__body { min-height: 236px; padding: 1rem; }
  .course-choice__body h2 { margin: 0 0 .65rem; padding: 0; font-size: var(--heading-card-size); }
  .course-card__top, .section-heading, .contact-prompt, .admin-panel__heading, .admin-header, .sticky-save { align-items: flex-start; flex-direction: column; }
  .course-facts { grid-template-columns: 1fr; }
  .course-facts div { padding: 1rem 1.1rem; }
  .course-facts .course-fact--dates { grid-column: auto; grid-template-columns: 1fr; gap: .35rem; padding: 1rem 1.1rem; border-left: 3px solid var(--rose); }
  .map-frame, .map-frame iframe, .map-placeholder { min-height: 330px; }
  .map-actions { grid-template-columns: 1fr; }
  .footer-contact { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-contact__heading { grid-column: auto; display: flex; align-items: flex-start; flex-direction: column; gap: 1.5rem; }
  .footer-contact .button--footer { width: fit-content; max-width: 100%; margin-left: 0; align-self: flex-start; text-align: center; }
  .footer-contact > div:nth-child(3) { padding: 1.2rem 0 0; border-left: 0; border-top: 1px solid rgba(255,255,255,.28); }
  .site-footer { flex-direction: column; }
  .sitemap-list { columns: 1; }
  .admin-section-nav, .admin-grid--stats, .admin-quick-grid, .analytics-grid, .field-grid, .field-grid--course, .year-summary { grid-template-columns: 1fr; }
  .analytics-trend__row { grid-template-columns: 1fr auto auto; gap: .35rem .8rem; padding-bottom: .75rem; border-bottom: 1px solid var(--line); }
  .analytics-trend__row progress { grid-column: 1 / -1; grid-row: 2; }
  .analytics-trend__row > strong { text-align: left; }
  .admin-section-nav button { min-height: 86px; }
  .admin-actions { flex-wrap: wrap; }
  .save-actions { width: 100%; flex-wrap: wrap; }
  .check-list--columns { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .top-note {
    width: calc(100% - 1rem);
    max-width: none;
    margin-top: .5rem;
    padding: .5rem .7rem .6rem;
    display: grid;
    grid-template-columns: 1fr;
    justify-items: start;
    gap: .28rem;
    border-radius: 14px;
    box-shadow: none;
    font-size: .81rem;
    line-height: 1.35;
    transition: border-color .18s ease;
  }
  .top-note:hover, .top-note:active { transform: none; box-shadow: none; }
  .top-note__label { margin: 0; padding: .24rem .55rem; }
}

@media (max-width: 520px) {
  :root { --quote-size: 1.1rem; --quote-source-size: .85rem; }
  .related-links { grid-template-columns: 1fr; }
  .service-grid--courses { grid-template-columns: 1fr; }
  .service-grid--courses .course-choice:last-child { grid-column: auto; }
  .service-grid--courses .course-choice:last-child .course-choice__body { min-height: 220px; }
  .course-choice { min-height: 0; }
  .course-choice__media img { height: 170px; }
  .course-choice__body { min-height: 220px; }
  .hero__paths, .hero--home > .hero__paths { grid-template-columns: 1fr; }
  .hero--home .portrait { width: 100%; grid-template-columns: 1fr; gap: .9rem; }
  .hero--home .portrait figcaption { width: 100%; }
  .hero--home .portrait figcaption .hero__quote { padding-left: .75rem; }
  .hero--home .portrait figcaption .hero__quote + cite { margin-left: .75rem; }
  .hero--home .portrait img { width: min(220px, 64vw); justify-self: start; border-width: 6px; box-shadow: 8px 10px 0 rgba(156,130,108,.17), 0 12px 28px rgba(43,37,39,.12); }
  .page-hero--aligned .page-hero__visual { width: 100%; grid-template-columns: 1fr; gap: .9rem; }
  .page-hero--aligned .page-hero__visual figcaption { width: 100%; }
  .page-hero__visual .page-hero__quote { padding-left: .75rem; }
  .page-hero__visual .page-hero__quote + cite { margin-left: .75rem; }
  .page-hero--aligned .page-hero__visual img { width: min(220px, 64vw); justify-self: start; border-width: 6px; box-shadow: 8px 10px 0 rgba(199,143,146,.18), 0 12px 28px rgba(61,48,50,.12); }
  .page-hero--compact-media {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .page-hero--compact-media img {
    width: min(220px, 64vw);
    margin-top: 0;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media print {
  .top-note, .site-header, .detail-back, .related-services, .footer-contact, .site-footer, .button { display: none !important; }
  body, body::before, .page-shell { background: white; box-shadow: none; }
  .page-shell { width: 100%; }
}

@media (max-width: 900px) {
  .page-hero--aligned .page-hero__visual { grid-template-columns: 1fr; }
  .page-hero--aligned .page-hero__visual img { width: min(280px, 100%); justify-self: start; }
  .page-hero--compact-media { grid-template-columns: 1fr; gap: 1.5rem; }
  .page-hero--compact-media img { width: min(280px, 100%); max-width: 280px; justify-self: start; }
}
@media (max-width: 560px) {
  .page-hero--compact-media img, .page-hero--aligned .page-hero__visual img { width: min(220px, 64vw); }
}

/* Image maintenance uses the existing panel and form language. */
.media-editor { margin: 1rem 0; border: 1px solid var(--line); border-radius: 6px; }
.media-editor summary { padding: 1rem; cursor: pointer; font-weight: 600; }
.media-form { padding: 0 1rem 1rem; }
.media-editor__layout { display: grid; grid-template-columns: minmax(160px, .65fr) minmax(0, 1fr); gap: 1.5rem; }
.media-preview { width: 100%; max-height: 220px; object-fit: contain; object-position: left top; }
.media-pages { padding-left: 1.2rem; overflow-wrap: anywhere; }
@media (max-width: 650px) { .media-editor__layout { grid-template-columns: 1fr; } }

.text-token { white-space: nowrap; }

/* A hidden map notice must stay hidden despite its grid layout. */
.map-frame [hidden] { display: none; }
.map-loaded { display: grid; gap: .75rem; padding-bottom: 1rem; }
.map-evidence, .map-status { margin: 0 1rem 1rem; overflow-wrap: anywhere; }
.map-evidence summary { cursor: pointer; padding-block: .5rem; }
.map-frame > .map-info { margin: 0 1rem 1rem; }
.map-disable { justify-self: center; max-width: calc(100% - 2rem); }
.map-privacy { line-height: 1.5; }

/* Compact map notice with optional, keyboard-accessible details. */
.map-placeholder .map-notice { max-width: 46ch; margin: .25rem 0 0; font-size: .82rem; line-height: 1.5; }
.map-info { min-height: 44px; padding: .5rem .65rem; margin: 0 0 .5rem; border: 0; background: transparent; color: var(--rose-dark); font-size: .82rem; text-decoration: underline; text-underline-offset: .18em; cursor: pointer; }
.map-info:hover { color: #623e40; }
.map-dialog { width: min(32rem, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); margin: auto; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); color: var(--ink); text-align: left; box-shadow: var(--shadow); }
.map-dialog::backdrop { background: rgba(40, 33, 35, .35); }
.map-dialog h2 { max-width: none; font-size: 1.4rem; }
.map-dialog p { max-width: none; font-size: .9rem; line-height: 1.6; }
.map-dialog .button { min-height: 44px; padding: .5rem 1rem; font-size: .9rem; }

/* A recovery code stays readable and selectable on small screens. */
[data-recovery-code] { overflow-wrap: anywhere; user-select: all; }
