:root {
    --navy: #102b50;
    --ink: #243851;
    --heading: #102b50;
    --leaf: #438222;
    --leaf-text: #376622;
    --water: #10afd8;
    --water-light: #8ee4f6;
    --accent-text: #08627e;
    --paper: #f6fafb;
    --surface: #fff;
    --surface-tint: #e4f0f4;
    --hero-start: #f5fafb;
    --hero-end: #dfedf1;
    --white: #fff;
    --line: #c7dce4;
    --control-line: #637f98;
    --focus: #076992;
    --primary-bg: #102b50;
    --primary-fg: #fff;
    --primary-hover: #21456f;
    --support: #102b50;
    --reading-font: Verdana, "Segoe UI", sans-serif;
    --shell: 74rem;
    font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
    font-synthesis: none;
    color-scheme: light;
}

:root[data-theme="dark"],
:root[data-theme="dark"] body {
    --ink: #e0e9f3;
    --heading: #f4f8fc;
    --leaf: #9bc877;
    --leaf-text: #b6df99;
    --accent-text: #8ee4f6;
    --paper: #0b1524;
    --surface: #111f31;
    --surface-tint: #162941;
    --hero-start: #111f31;
    --hero-end: #162941;
    --line: #40576d;
    --control-line: #8099b2;
    --focus: #8ee4f6;
    --primary-bg: #a4dff2;
    --primary-fg: #0b1d34;
    --primary-hover: #c1effb;
    --support: #132a45;
    color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-offset, 0px); }
body { margin: 0; font-size: 1rem; line-height: 1.55; color: var(--ink); }
img, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea { font: inherit; }
h1, h2, h3, p, figure { margin: 0; }
p + p { margin-top: 1rem; }
h1, h2 { color: var(--heading); line-height: .99; letter-spacing: -.065em; overflow-wrap: anywhere; }
h2 { font-size: clamp(2.45rem, 5vw, 4.3rem); text-wrap: balance; }
:focus-visible { outline: .18rem solid var(--focus); outline-offset: .22rem; }
:is(main, .site-footer) :is(a, button, input, textarea, select, summary, video) { scroll-margin-top: .6rem; }
.support :focus-visible { outline-color: var(--water-light); }
.shell { width: min(var(--shell), 100% - 5rem); margin-inline: auto; }
.section { padding-block: clamp(2.65rem, 5.4vw, 4.6rem); }
.skip-link { position: fixed; left: 1rem; top: -8rem; z-index: 20; padding: .75rem 1rem; background: var(--surface); }
.skip-link:focus { top: 1rem; }

.site-header { color: var(--ink); background: var(--surface); }
.site-header.is-sticky { position: sticky; top: 0; z-index: 5; }
.site-header[data-header-tone="hero"] { background: linear-gradient(108deg, var(--hero-start) 28%, var(--hero-end) 100%); }
.site-header[data-header-tone="tint"] { background: var(--surface-tint); }
.site-header[data-header-tone="paper"] { background: var(--paper); }
.site-header[data-header-tone="support"] { color: #edf2f8; background: var(--support); }
.site-header[data-header-tone="support"] .nav-action { color: var(--white); border-color: #9bb0c4; }
.site-header[data-header-tone="support"] .nameplate { color: var(--navy); background: #eaf5fa; }
:root[data-theme="dark"] .site-header .nameplate { color: var(--heading); background: transparent; clip-path: none; }
.site-header[data-header-tone="support"] :focus-visible { outline-color: var(--water-light); }
.header-inner, .footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; }
.header-inner { min-height: 5.1rem; }
.nav-toggle { display: none; }
.wordmark { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .68rem; color: var(--heading); font-size: 1.15rem; font-weight: 750; text-decoration: none; line-height: 1.12; }
.site-header .wordmark { flex-direction: column; align-items: flex-start; gap: .18rem; color: inherit; }
.site-header .wordmark small { font-size: .85rem; font-weight: 600; line-height: 1.25; }
:root[data-theme="dark"] .site-header .nameplate { margin-inline-start: calc(-1 * var(--name-inset)); }
.wordmark { --name-inset: .72rem; }
.rose-lettering { display: block; width: 5.45em; max-width: 100%; height: auto; fill: currentColor; }
.nameplate { display: inline-block; padding: .4rem var(--name-inset) .44rem; color: var(--white); background: var(--navy); font-size: 1.35rem; font-weight: 800; letter-spacing: -.04em; clip-path: polygon(2% 5%, 100% 0, 98% 95%, 0 100%); }
nav { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(.65rem, 2.8vw, 2.2rem); }
nav a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .94rem; font-weight: 650; text-decoration: none; }
nav a:hover, .text-link:hover { text-decoration: underline; text-underline-offset: .2rem; }
.site-header a[aria-current="page"], .site-footer a[aria-current="page"] { text-decoration: underline; text-underline-offset: .2rem; }
.nav-action { padding: .5rem .95rem; border: 1px solid var(--control-line); border-radius: .25rem; color: var(--heading); }
.display-options { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem 1rem; }
.display-options[hidden] { display: none; }
.theme-control, .reading-control { display: inline-flex; min-height: 2.75rem; flex-wrap: wrap; align-items: center; gap: .5rem; color: var(--ink); font-size: .9rem; font-weight: 650; }
.theme-control select { min-height: 2.75rem; padding: .4rem .5rem; border: 1px solid var(--control-line); border-radius: .27rem; color: var(--heading); background: var(--surface); font: inherit; }
.reading-control { cursor: pointer; }
.reading-control input { width: 1.18rem; height: 1.18rem; margin: 0; accent-color: var(--primary-bg); }

.hero { padding-block: clamp(2.4rem, 5vw, 4.5rem); background: linear-gradient(108deg, var(--hero-start) 28%, var(--hero-end) 100%); }
.hero-grid { display: grid; grid-template-columns: 1.23fr .77fr; align-items: center; gap: clamp(1.8rem, 5.5vw, 5rem); }
.eyebrow { display: flex; align-items: center; gap: .7rem; margin-bottom: 1.05rem; color: var(--accent-text); font-size: .87rem; line-height: 1.3; letter-spacing: .105em; font-weight: 780; text-transform: uppercase; }
.eyebrow::before { content: ""; flex: 0 0 1.8rem; height: .22rem; background: var(--water); }
.hero h1 { font-size: clamp(3.15rem, 6.45vw, 6rem); line-height: .96; }
.hero h1 span { display: block; margin-top: .05em; }
.hero h1 em { position: relative; display: inline-block; font-style: normal; }
.hero h1 em::after { content: ""; position: absolute; right: 3%; bottom: -.235em; left: 5%; height: .12em; border-top: .048em solid var(--leaf); border-radius: 50%; transform: rotate(-2deg); }
.hero-lead { max-width: 32rem; margin-top: 1.65rem; font-size: clamp(1.08rem, 1.75vw, 1.28rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .9rem 1.4rem; margin-top: 1.7rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3.05rem; padding: .63rem 1.26rem; border: 0; border-radius: .27rem; font-weight: 750; text-decoration: none; cursor: pointer; }
.primary { color: var(--primary-fg); background: var(--primary-bg); }
.primary:hover { background: var(--primary-hover); }
.text-link { display: inline-flex; align-items: center; min-height: 2.75rem; font-weight: 680; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .23rem; }
.hero-portrait { position: relative; isolation: isolate; width: min(100%, 26rem); margin-right: .65rem; justify-self: end; }
.hero-portrait::before { content: ""; position: absolute; z-index: -1; inset: .62rem -.62rem -.62rem .62rem; background: var(--water); }
.hero-image { width: 100%; aspect-ratio: 1170 / 1752; height: auto; object-fit: cover; }

.places { background: var(--surface); }
.places-heading { margin-bottom: 1.55rem; }
.places h2 { max-width: none; }
.place-photo { position: relative; }
.place-photo img { width: 100%; aspect-ratio: 3.2 / 1; height: auto; object-fit: cover; object-position: center 55%; }
.place-photo figcaption { position: absolute; inset-inline-end: .5rem; inset-block-end: .5rem; }
.place-photo a {
    display: inline-flex;
    min-height: 24px;
    align-items: center;
    padding: .16rem .4rem;
    border: 1px solid var(--white);
    border-radius: .25rem;
    color: var(--white);
    background: var(--navy);
    font-size: .8rem;
    font-weight: 650;
    text-underline-offset: .15rem;
}
.place-photo a:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; box-shadow: 0 0 0 5px var(--navy); }
.places-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem clamp(1.4rem, 4vw, 3.6rem); margin-top: 1.55rem; }
.places-grid h3 { margin-bottom: .42rem; color: var(--heading); font-size: clamp(1.35rem, 2.2vw, 1.75rem); letter-spacing: -.045em; line-height: 1.1; }
.places-grid p { max-width: 37ch; }

.about { background: var(--surface); }
.about-copy { display: flow-root; }
.about h2 + p, .program h2 + p, .support h2 + p, .contact h2 + p { margin-top: 1.25rem; }
.about-copy > h2 { max-width: none; font-size: clamp(2rem, 3.6vw, 3.15rem); }
.about-copy > h2 ~ p { font-size: 1.06rem; }
.about-copy > .video-card { float: right; width: min(48%, 29rem); margin: 1rem 0 1rem clamp(1.3rem, 3vw, 2.5rem); }
.about-copy > .video-card + p { margin-top: 1rem; }
.video-card { border: 1px solid var(--line); border-radius: .3rem; background: var(--surface); }
.video-stage { position: relative; container-type: inline-size; aspect-ratio: 71 / 40; }
.video-card video { width: 100%; aspect-ratio: 71 / 40; border-radius: .3rem .3rem 0 0; background: var(--navy); }
.video-cover { position: absolute; inset: 0; width: 100%; padding: 0; border: 0; border-radius: .3rem .3rem 0 0; color: var(--white); background: var(--navy); cursor: pointer; }
.video-card [hidden] { display: none; }
.video-cover img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
.video-cover-title { position: absolute; inset: 17% 4% auto 48%; color: var(--navy); text-align: start; line-height: 1.14; overflow-wrap: anywhere; pointer-events: none; }
.video-cover[hidden] + .video-cover-title { display: none; }
.video-cover-title strong, .video-cover-title > span { display: table; max-width: 100%; padding: .22em .42em; }
.video-cover-title strong { color: var(--white); background: var(--navy); font-size: .95rem; font-size: clamp(.95rem, 5cqw, 1.75rem); font-weight: 800; }
.video-cover-title > span { margin-top: .15em; background: var(--white); font-size: .72rem; font-size: clamp(.72rem, 3.5cqw, 1.15rem); font-weight: 750; }
.video-play-label { position: absolute; right: 4%; bottom: 8%; display: inline-flex; min-height: 2.75rem; max-width: 70%; align-items: center; gap: .55rem; padding: .45rem .72rem; border: 1px solid var(--white); border-radius: .35rem; color: var(--white); background: var(--navy); font-size: .875rem; font-weight: 750; text-align: start; }
.video-cover:hover .video-play-label { background: #21456f; }
.play-icon { flex: 0 0 auto; width: 0; height: 0; border-block: .39rem solid transparent; border-left: .61rem solid currentColor; }
video::cue { color: var(--white); background-color: #101010; }
.video-card p, .support-preview > p { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .35rem .65rem; padding: .65rem .85rem; font-size: .9rem; font-weight: 660; }
.video-card a { display: inline-flex; align-items: center; min-height: 2.75rem; color: var(--heading); text-underline-offset: .2rem; }
.video-card .video-status { margin-top: 0; padding-top: 0; font-size: .82rem; font-weight: 500; }
.video-dialog {
    width: 100%;
    max-width: none;
    max-height: 100vh;
    max-height: 100dvh;
    margin: auto;
    padding: 0;
    border: 0;
    color: var(--ink);
    background: var(--surface);
}
.video-dialog:not([open]) { display: none; }
.video-dialog::backdrop { background: rgb(5 15 29 / .78); }
.video-dialog-header { display: flex; justify-content: space-between; align-items: center; gap: .55rem 1rem; padding: .75rem 1rem; }
.video-dialog-header h2 { min-width: 0; font-size: clamp(1rem, 3.5vw, 1.35rem); line-height: 1.2; letter-spacing: normal; }
.video-dialog-header form { flex: 0 0 auto; }
.video-dialog-header .button { min-height: 2.75rem; padding-inline: .85rem; }
.video-dialog-player { display: grid; place-items: center; background: #061b33; }
.video-dialog-player video {
    max-height: calc(100vh - 4.25rem);
    max-height: calc(100dvh - 4.25rem);
    border-radius: 0;
    object-fit: contain;
}
.video-dialog .video-status { padding-top: .65rem; }
.support-preview span { white-space: nowrap; font-weight: 450; }

.motivation { background: var(--surface-tint); }
.motivation-quote { margin: 0; }
.motivation-quote h2 { font-size: clamp(2.15rem, 5.2vw, 4.65rem); line-height: 1.06; }
.motivation-quote h2 > span { display: block; text-wrap: balance; }
.motivation-quote p { margin-top: 1.25rem; font-size: clamp(1.05rem, 2vw, 1.45rem); line-height: 1.45; }

.program { background: var(--surface); }
.program-grid { display: grid; grid-template-columns: .94fr 1.26fr; align-items: start; gap: clamp(1.7rem, 6vw, 6rem); }
.program-heading > p:last-child { max-width: 33ch; font-size: 1.06rem; }
.program-topics { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; justify-content: space-between; align-items: center; gap: .7rem; min-height: 2.75rem; padding: 1.15rem .05rem; color: var(--heading); font-size: clamp(1.18rem, 2.3vw, 1.5rem); font-weight: 740; cursor: pointer; list-style: none; line-height: 1.18; letter-spacing: -.02em; }
summary::-webkit-details-marker { display: none; }
summary::after { content: ""; flex: 0 0 .75rem; width: .75rem; height: .75rem; margin-right: .15rem; border: solid var(--leaf); border-width: 0 .13rem .13rem 0; transform: rotate(45deg) translate(-.12rem, -.12rem); }
details[open] summary::after { transform: rotate(225deg) translate(-.12rem, -.12rem); }
summary:hover { color: var(--leaf-text); }
.topic-body { padding: 0 .3rem 1.15rem 0; }
.topic-body ul { margin: .7rem 0 0; padding-left: 1.25rem; }
.topic-body li + li { margin-top: .46rem; }
.topic-body li::marker { color: var(--leaf); }

.support { background: var(--support); color: #edf2f8; color-scheme: dark; }
.support-grid { display: grid; grid-template: "intro preview" auto "picker preview" auto "adjustment preview" auto / 1.12fr .88fr; align-items: start; gap: 1.12rem clamp(2rem, 8vw, 8rem); }
.support-intro { grid-area: intro; }
.photo-adjustment { grid-area: adjustment; }
.support .eyebrow { color: var(--water-light); }
.support h2 { color: var(--white); }
.support h2 + p { max-width: 41ch; }
.photo-picker { grid-area: picker; }
.file-label { display: block; margin-bottom: .42rem; color: var(--white); font-weight: 710; }
input[type="file"] { display: block; width: 100%; max-width: 29rem; padding: .42rem; border: 1px solid #6d839d; border-radius: .55rem; color: var(--white); font-size: .92rem; }
input::file-selector-button { margin-right: .65rem; padding: .43rem .62rem; border: 0; border-radius: .27rem; color: var(--navy); background: #e9eef6; font: inherit; font-weight: 650; cursor: pointer; }
.photo-note, .photo-status { margin-top: .55rem; font-size: .88rem; color: #d0ddec; }
.photo-controls { display: grid; grid-template-columns: minmax(6.1rem, auto) 1fr; align-items: center; gap: .55rem .7rem; min-width: 0; width: 100%; max-width: 29rem; margin: 0 0 1rem; padding: .65rem .82rem .8rem; border: 1px solid #6d839d; border-radius: .55rem; }
.photo-controls legend { padding-inline: .3rem; font-weight: 650; }
.photo-controls label { font-size: .91rem; }
.photo-controls input { width: 100%; min-height: 1.5rem; margin: 0; accent-color: var(--water-light); }
.photo-controls:disabled { opacity: .67; }
.download { color: var(--navy); background: var(--water-light); }
.download:enabled:hover { background: #b5f0fb; }
.download:disabled { color: #d8e3ee; background: #384f6c; cursor: default; }
.photo-status { min-height: 1.4rem; }
.support-preview { grid-area: preview; width: min(100%, 24.5rem); place-self: center; }
.support-preview canvas { width: 100%; height: auto; aspect-ratio: 4 / 5; border-radius: .3rem; background: #243e59; }
.support-preview canvas[data-movable] { cursor: grab; }
.support-preview canvas[data-moving] { cursor: grabbing; }
.support-preview > p { padding: .72rem 0 0; }
.support-preview #foto-vorschau-titel { font-weight: 660; }
.support-preview a { text-underline-offset: .18rem; }

.contact { background: var(--surface-tint); }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; gap: 1.4rem clamp(1.8rem, 5vw, 4.6rem); }
.contact h2 { max-width: 12ch; }
.contact h2 + p { max-width: 39ch; }
.question-form { padding: clamp(1rem, 3vw, 1.7rem); border: 1px solid var(--line); border-radius: .45rem; background: var(--paper); }
.question-form fieldset { display: grid; gap: 1rem; min-inline-size: 0; margin: 0; padding: 0; border: 0; }
.question-form legend { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.question-form label { display: block; margin-bottom: .3rem; color: var(--heading); font-weight: 700; }
.question-form :is(input[type="email"], textarea) { display: block; width: 100%; min-height: 2.75rem; padding: .55rem .65rem; border: 1px solid var(--control-line); border-radius: .27rem; color: var(--ink); background: var(--surface); }
.question-form textarea { resize: vertical; }
.question-form .button { justify-self: start; }
.question-form .button:disabled { color: var(--ink); background: var(--surface-tint); cursor: default; }
.question-note { font-size: .92rem; }
.question-form textarea + .question-note, .question-form > .question-note { margin-top: .4rem; }
.question-status { margin-bottom: 1rem; padding: .65rem .75rem; border-inline-start: .2rem solid var(--accent-text); color: var(--heading); background: var(--surface-tint); scroll-margin-top: .6rem; }
.question-form [aria-invalid="true"] { border-width: 2px; }
.site-footer { padding-block: 1.65rem .9rem; background: var(--paper); }
.site-footer small { display: block; margin-top: .24rem; color: var(--ink); font-size: .79rem; font-weight: 500; }
.site-footer nav { justify-content: flex-start; }
.footer-credit { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: .2rem 1rem; margin-top: 1.1rem; padding-top: .55rem; border-top: 1px solid var(--line); }
.page-views { color: #64696e; font-size: .78rem; font-variant-numeric: tabular-nums; }
:root[data-theme="dark"] .page-views { color: #a1a7ae; }
.ramea-credit { display: inline-flex; min-height: 2.75rem; align-items: center; gap: .6rem; color: var(--ink); font-size: .875rem; text-decoration: none; }
.ramea-mark { display: block; flex: 0 0 auto; width: 36px; height: 32px; border-radius: .22rem; background: #061b33 url("ramea-schaltkreis-r.png") center / 80% auto no-repeat; }
@supports (mask-image: url("ramea-schaltkreis-r.png")) {
    .ramea-mark { border-radius: 0; background: linear-gradient(110deg, #006b77 9%, #102b50 71%); mask: url("ramea-schaltkreis-r.png") center / contain no-repeat; }
}
:root[data-theme="dark"] .ramea-mark { mask: none; background: url("ramea-schaltkreis-r.png") center / contain no-repeat; }
.ramea-credit strong { color: var(--heading); }
.ramea-credit:hover .ramea-credit-text { text-decoration: underline; text-underline-offset: .2rem; }
.content-page { max-width: 46rem; padding-block: clamp(2.5rem, 7vw, 5rem); }
.content-page h1 { margin-block: 1.65rem 1.5rem; font-size: clamp(2.8rem, 8vw, 5rem); }
.content-page section { margin-top: 1.75rem; }
.content-page h2 { margin-bottom: .5rem; font-size: clamp(1.3rem, 4vw, 1.65rem); letter-spacing: -.03em; line-height: 1.2; text-wrap: initial; }
.content-page address { font-style: normal; }
.page-links { justify-content: flex-start; gap: .25rem 1.25rem; }
.simple-page { max-width: 44rem; font-family: var(--reading-font); font-size: 1.125rem; line-height: 1.7; letter-spacing: .01em; word-spacing: .04em; }
.simple-page h1, .simple-page h2, .simple-page h3 { letter-spacing: normal; }
.simple-page h1 { line-height: 1.15; }
.simple-page h3 { margin-block: 1.1rem .42rem; color: var(--heading); font-size: 1.12em; line-height: 1.3; }
.simple-page h2 { margin-block: .7rem; }
.simple-page section + section { margin-top: 2.5rem; }
.simple-page :is(p, li) { max-width: 60ch; }
.simple-page li + li { margin-top: .4rem; }
.simple-nav { justify-content: flex-start; margin-block: 1rem; gap: .2rem 1.2rem; }
.simple-links { padding-inline-start: 1.25rem; }

:root[data-reading] { font-family: var(--reading-font); font-size: 112.5%; }
:root[data-reading] body { line-height: 1.7; letter-spacing: .02em; word-spacing: .06em; }
:root[data-reading] :is(h1, h2, h3, summary, .nameplate) { letter-spacing: normal; line-height: 1.18; }
:root[data-reading] .eyebrow { text-transform: none; letter-spacing: .025em; }
:root[data-reading] .hero h1 em { font-style: normal; }
:root[data-reading] .hero h1 em::after { display: none; }
:root[data-reading] :is(main p, .topic-body li) { max-width: 62ch; }
:root[data-reading] .motivation-quote { max-width: 62ch; }

@media (max-width: 58rem) {
    .header-inner { flex-wrap: wrap; padding-block: .65rem; }
}

@media (max-width: 52rem) {
    .shell { width: calc(100% - 3rem); }
    .hero-grid { grid-template-columns: 1.2fr .8fr; gap: 1.5rem; }
    .hero h1 { font-size: clamp(3rem, 6.4vw, 4.6rem); }
    .place-photo img { aspect-ratio: 2.4 / 1; }
}

@media (max-width: 42rem) {
    .shell { width: calc(100% - 2.25rem); }
    .header-inner { padding-block: .68rem; min-height: 0; justify-content: center; flex-wrap: wrap; gap: .55rem 1.2rem; }
    .header-inner .wordmark { max-inline-size: calc(100% - 3.95rem); overflow-wrap: anywhere; }
    .header-inner > nav { flex-basis: 100%; }
    .nav-toggle:not([hidden]) { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; margin-inline-start: auto; padding: 0; border: 1px solid currentColor; border-radius: .3rem; color: inherit; background: transparent; cursor: pointer; }
    .nav-toggle span, .nav-toggle span::before, .nav-toggle span::after { display: block; width: 1.35rem; border-top: 2px solid currentColor; }
    .nav-toggle span { position: relative; }
    .nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
    .nav-toggle span::before { top: -8px; }
    .nav-toggle span::after { top: 4px; }
    .nav-toggle[aria-expanded="true"] span { transform: rotate(45deg); }
    .nav-toggle[aria-expanded="true"] span::before { top: -2px; transform: rotate(90deg); }
    .nav-toggle[aria-expanded="true"] span::after { display: none; }
    .nav-toggle:not([hidden])[aria-expanded="false"] + nav { display: none; }
    .nav-toggle[aria-expanded="true"] + nav { display: grid; justify-content: stretch; gap: .25rem; max-height: calc(100vh - 1rem - var(--header-offset, 5rem)); max-height: calc(100dvh - 1rem - var(--header-offset, 5rem)); overflow-y: auto; padding: .65rem; background: var(--surface); color: var(--ink); border: 1px solid var(--control-line); border-radius: .35rem; }
    .nav-toggle[aria-expanded="true"] + nav a { padding-inline: .75rem; color: inherit; }
    .site-header .nav-toggle[aria-expanded="true"] + nav .nav-action { color: inherit; border-color: var(--control-line); }
    .site-header .nav-toggle[aria-expanded="true"] + nav a:focus-visible { outline-color: var(--focus); outline-offset: 0; }
    nav { justify-content: center; gap: .45rem .87rem; }
    nav a { font-size: .875rem; }
    .nav-action { padding: .26rem .65rem; }
    .hero-grid, .places-grid, .contact-grid, .program-grid { grid-template-columns: 1fr; }
    .about-copy > .video-card { float: none; width: 100%; margin: 1.25rem 0; }
    .hero-grid { gap: 2rem; }
    .hero h1 { font-size: clamp(2.6rem, 10.7vw, 4.4rem); }
    .hero-portrait { grid-row: 1; width: min(calc(100% - .65rem), 26rem); justify-self: center; }
    .places-grid p { max-width: 45ch; }
    .place-photo img { aspect-ratio: 1.65 / 1; }
    .support-grid { grid-template: "intro" auto "picker" auto "preview" auto "adjustment" auto / minmax(0, 1fr); }
    .support-preview { width: min(100%, 20rem); }
    .footer-inner { flex-wrap: wrap; gap: 1rem; }
    .footer-credit { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}

@media (forced-colors: active) {
    :focus-visible, .support :focus-visible, .site-header[data-header-tone="support"] :focus-visible { outline-color: Highlight; }
    .nameplate { clip-path: none; border: 1px solid ButtonText; }
    :root[data-theme="dark"] .site-header .nameplate { margin-inline-start: 0; }
    .button { border: 1px solid ButtonText; }
    .ramea-mark, :root[data-theme="dark"] .ramea-mark {
        forced-color-adjust: none;
        background: LinkText;
        mask: url("ramea-schaltkreis-r.png") center / contain no-repeat;
    }
}
