/* kaiserswerth.de – Grundstil und V1 „nah am Original“: Farben, Wellen-Bänder und Menügruppen der Live-Seite.
   build.py: V1 = basis.css, V2 = basis.css + v2.css, Ziel jeweils css/stil.css */

/* ---------- Schriften (lokal, nur genutzte Schnitte) ---------- */
@font-face { font-family: 'Fira Sans'; src: url('/fonts/fira-sans-regular.woff2') format('woff2'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('/fonts/fira-sans-medium.woff2') format('woff2'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Fira Sans'; src: url('/fonts/fira-sans-semibold.woff2') format('woff2'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Roboto Serif'; src: url('/fonts/roboto-serif-var.woff2') format('woff2'); font-weight: 400 700; font-style: normal; font-display: swap; }

/* ---------- Farben ---------- */
:root {
    --orange: #ee8e5a;
    --hellblau: #a1b3c1;
    --tuerkis: #2db4a6;
    --petrol: #136c81;
    --rose: #c58a7d;
    --graublau: #8facba;
    --schiefer: #6b858e;
    --logo-dunkel: #004e58;

    --seite: #ffffff;
    --zart: #f4f1ee;
    --text: #263235;
    --text-stark: #13272b;
    --text-leise: #4c5b5f;
    --linie: #d9dfe0;
    --link: #0e5e70;
    --knopf: #136c81;
    --knopf-text: #ffffff;
    --knopf-hover: #0d5262;
    --fokus: #c2410c;
    --band-dunkel-text: #10282c;
    --karte: #ffffff;
    --fuss: #b3b3b4;
    --fuss-text: #172326;
    --schatten: 0 1px 2px rgb(0 0 0 / .08), 0 6px 18px rgb(0 0 0 / .08);

    --b-orange: var(--orange); --b-hellblau: var(--hellblau); --b-tuerkis: var(--tuerkis); --b-petrol: var(--petrol);
    --b-rose: var(--rose); --b-graublau: var(--graublau);
    --b-text-hell: var(--band-dunkel-text);   /* Text auf hellen Bandfarben */
    --b-text-petrol: #ffffff;

    --schrift: 'Fira Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
    --schrift-titel: 'Roboto Serif', Georgia, 'Times New Roman', serif;
    --rahmen: 75rem;
    --radius: .6rem;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --seite: #11191b;
    --zart: #182225;
    --text: #dfe7e8;
    --text-stark: #f3f7f7;
    --text-leise: #aebcbe;
    --linie: #2e3c40;
    --link: #8fd3df;
    --knopf: #5fc3d4;
    --knopf-text: #0b1d22;
    --knopf-hover: #86d4e1;
    --fokus: #ffb36b;
    --karte: #1a2528;
    --fuss: #0c1315;
    --fuss-text: #d4dcdd;
    --schatten: 0 1px 2px rgb(0 0 0 / .4), 0 6px 18px rgb(0 0 0 / .35);
    --b-orange: #6e3a1f; --b-hellblau: #314552; --b-tuerkis: #135650; --b-petrol: #0c3d49;
    --b-rose: #643a32; --b-graublau: #2e434c;
    --b-text-hell: #f2f6f6;
    --b-text-petrol: #f2f6f6;
    color-scheme: dark;
}

/* ohne JavaScript: Systemeinstellung */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --seite: #11191b; --zart: #182225; --text: #dfe7e8; --text-stark: #f3f7f7; --text-leise: #aebcbe; --linie: #2e3c40;
        --link: #8fd3df; --knopf: #5fc3d4; --knopf-text: #0b1d22; --knopf-hover: #86d4e1; --fokus: #ffb36b; --karte: #1a2528;
        --fuss: #0c1315; --fuss-text: #d4dcdd;
        --b-orange: #6e3a1f; --b-hellblau: #314552; --b-tuerkis: #135650; --b-petrol: #0c3d49; --b-rose: #643a32; --b-graublau: #2e434c;
        --b-text-hell: #f2f6f6; --b-text-petrol: #f2f6f6;
        color-scheme: dark;
    }
}

/* ---------- Grundlagen ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 1rem; }
body { margin: 0; font-family: var(--schrift); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--seite); overflow-x: hidden; overflow-wrap: break-word; }
img { max-width: 100%; height: auto; display: block; }
svg { width: 1.2em; height: 1.2em; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
h1, h2, h3, h4 { font-family: var(--schrift-titel); color: var(--text-stark); line-height: 1.2; margin: 0 0 .7em; font-weight: 600; -webkit-hyphens: auto; hyphens: auto; }
.band-text, .v2-text, .termin-text, .mitglied-text { min-width: 0; }
@media (min-width: 48em) { h1, h2, h3 { -webkit-hyphens: manual; hyphens: manual; } }
h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 2.9rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.15rem); }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.1rem; }
p, ul, ol, address, figure { margin: 0 0 1em; }
address { font-style: normal; }
a { color: var(--link); text-underline-offset: .18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; border-radius: 2px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 1rem; top: -100%; z-index: 1000; background: var(--knopf); color: var(--knopf-text); padding: .6rem 1rem; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: .75rem; }
.rahmen { width: 100%; max-width: var(--rahmen); margin-inline: auto; padding-inline: 1rem; }
@media (min-width: 40em) { .rahmen { padding-inline: 1.5rem; } }
.zentriert { text-align: center; }
.seitentitel { margin-bottom: 1.2rem; }
.haupt:focus { outline: none; }
.einleitung { font-size: 1.15rem; }
.dachzeile { font-family: var(--schrift); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; font-size: .85rem; margin: 0 0 .5rem; }

/* ---------- Knöpfe ---------- */
.knopf { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; padding: .7rem 1.3rem; border-radius: .35rem; border: 2px solid var(--knopf);
    background: var(--knopf); color: var(--knopf-text); font: 600 1rem/1.2 var(--schrift); text-decoration: none; cursor: pointer; }
.knopf:hover { background: var(--knopf-hover); border-color: var(--knopf-hover); color: var(--knopf-text); }
.knopf--rand { background: transparent; color: var(--link); border-color: currentColor; }
.knopf--rand:hover { background: var(--knopf); color: var(--knopf-text); border-color: var(--knopf); }
.knopf--klein { padding: .45rem .9rem; font-size: .95rem; }
.knopf--hell { background: #fff; color: #0d4f5f; border-color: #fff; }
.knopf--hell:hover { background: #e9f4f6; border-color: #e9f4f6; color: #0d4f5f; }

/* ---------- Kopf ---------- */
.kopf { background: var(--seite); position: relative; z-index: 50; }
.kopf-innen { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: .5rem 1rem; padding-block: .75rem; }
.logo { display: block; line-height: 0; }
.logo img { height: 3.4rem; width: auto; }
.logo-dunkel, .logo-weiss { display: none; }
:root[data-theme="dark"] .logo-farbig { display: none; }
:root[data-theme="dark"] .logo-dunkel { display: block; }
.kopf-werkzeuge { display: flex; align-items: center; gap: .5rem; grid-column: 3; grid-row: 1; }
.sprachwahl { display: flex; list-style: none; margin: 0; padding: 0; gap: .15rem; }
.sprachwahl a { display: block; padding: .35rem .45rem; font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--text-leise); border-radius: .3rem; }
.sprachwahl a:hover { color: var(--text-stark); background: var(--zart); }
.sprachwahl a[aria-current] { color: var(--text-stark); box-shadow: inset 0 -2px 0 var(--petrol); }
.sprachwahl abbr { text-decoration: none; }
.thema-knopf { display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border: 1px solid var(--linie); border-radius: 50%; background: transparent; color: var(--text-stark); cursor: pointer; }
.thema-knopf:hover { background: var(--zart); }
.thema-sonne { display: none; }
:root[data-theme="dark"] .thema-sonne { display: inline; }
:root[data-theme="dark"] .thema-mond { display: none; }
.thema-knopf > span { line-height: 0; }

/* Navigation mobil */
.hauptnav { grid-column: 2; grid-row: 1; justify-self: end; }
.nav-knopf { display: inline-flex; align-items: center; gap: .55rem; padding: .55rem .8rem; border: 1px solid var(--linie); border-radius: .35rem; background: transparent; color: var(--text-stark); font: 600 .95rem var(--schrift); cursor: pointer; }
.nav-knopf-linien, .nav-knopf-linien::before, .nav-knopf-linien::after { display: block; width: 1.2rem; height: 2px; background: currentColor; position: relative; transition: transform .2s; }
.nav-knopf-linien::before, .nav-knopf-linien::after { content: ''; position: absolute; left: 0; }
.nav-knopf-linien::before { top: -6px; }
.nav-knopf-linien::after { top: 6px; }
.nav-knopf[aria-expanded="true"] .nav-knopf-linien { background: transparent; }
.nav-knopf[aria-expanded="true"] .nav-knopf-linien::before { transform: translateY(6px) rotate(45deg); }
.nav-knopf[aria-expanded="true"] .nav-knopf-linien::after { transform: translateY(-6px) rotate(-45deg); }
.menue { list-style: none; margin: 0; padding: 0; }
.menue-punkt { --tab: var(--schiefer); --tab-text: #fff; }
.menue--heimat { --tab: var(--orange); --tab-text: #10282c; }
.menue--kaiserfest { --tab: var(--hellblau); --tab-text: #10282c; }
.menue--erleben { --tab: var(--tuerkis); --tab-text: #10282c; }
.menue--leben { --tab: var(--petrol); --tab-text: #fff; }
.menue--kontakt { --tab: var(--rose); --tab-text: #10282c; }
.menue-kopf { display: flex; align-items: stretch; }
.menue-link { flex: 1; display: block; padding: .8rem 1rem; background: var(--tab); color: var(--tab-text); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; text-decoration: none; font-size: .95rem; }
.menue-link:hover { text-decoration: underline; }
.untermenue-knopf { display: inline-grid; place-items: center; width: 3rem; border: 0; border-left: 1px solid rgb(0 0 0 / .12); background: var(--tab); color: var(--tab-text); cursor: pointer; }
.untermenue-knopf svg { transition: transform .2s; }
.untermenue-knopf[aria-expanded="true"] svg { transform: rotate(180deg); }
.untermenue { list-style: none; margin: 0; padding: .3rem 0; background: var(--karte); }
.untermenue a { display: block; padding: .55rem 1rem .55rem 1.4rem; color: var(--text-stark); text-decoration: none; }
.untermenue a:hover, .untermenue a[aria-current] { text-decoration: underline; }
.untermenue a[aria-current] { font-weight: 600; }

@media (max-width: 63.99em) {
    .menue { display: none; position: absolute; left: 0; right: 0; top: 100%; background: var(--karte); box-shadow: var(--schatten); max-height: calc(100vh - 5rem); overflow-y: auto; }
    .menue-offen .menue { display: block; }
    .menue-punkt + .menue-punkt { border-top: 1px solid rgb(0 0 0 / .08); }
    .untermenue { display: none; }
    .menue-punkt.ist-offen .untermenue,
    .menue-punkt:has(.untermenue-knopf[aria-expanded="true"]) .untermenue { display: block; }
}

/* Navigation Desktop: farbige Reiter wie auf der Live-Seite */
@media (min-width: 64em) {
    .kopf-innen { grid-template-columns: auto 1fr; grid-template-rows: auto auto; padding-block: 1rem .9rem; }
    .logo { grid-row: 1 / span 2; }
    .logo img { height: 5.25rem; }
    .kopf-werkzeuge { grid-column: 2; grid-row: 1; justify-self: end; }
    .hauptnav { grid-column: 2; grid-row: 2; justify-self: stretch; }
    .nav-knopf { display: none; }
    .menue { display: flex; background: var(--schiefer); padding-inline: 2.5rem; justify-content: flex-end; }
    .menue-punkt { position: relative; }
    .menue-link { padding: .55rem 1.35rem; font-size: .92rem; text-align: center; }
    .untermenue-knopf { width: 1.9rem; margin-left: -1px; }
    .untermenue { position: absolute; top: 100%; left: 0; min-width: 16rem; display: none; box-shadow: 0 2px 4px rgb(0 0 0 / .08), 0 10px 24px rgb(0 0 0 / .16); border-radius: 0 0 .35rem .35rem; padding: .4rem 0; }
    .menue-punkt:hover .untermenue,
    .menue-punkt.ist-offen .untermenue,
    .menue-punkt:has(.untermenue-knopf[aria-expanded="true"]) .untermenue { display: block; }
    .menue-punkt:last-child .untermenue { left: auto; right: 0; }
    .menue-punkt.ist-aktiv .menue-link { box-shadow: inset 0 -3px 0 rgb(0 0 0 / .35); }
}

/* ---------- Brotkrumen ---------- */
.brotkrumen { font-size: .9rem; padding-block: .6rem; }
.brotkrumen ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .5rem; margin: 0; padding: 0; }
.brotkrumen li + li::before { content: '›'; margin-right: .5rem; color: var(--text-leise); }
.brotkrumen a { color: var(--text-leise); }
.brotkrumen [aria-current] { color: var(--text-stark); }

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero-bild { width: 100%; height: clamp(14rem, 40vw, 32rem); object-fit: cover; }
.hero--start { background: var(--b-petrol); }
.hero--start .hero-bild { height: clamp(18rem, 52vw, 38rem); }
.hero-inhalt { padding-block: 1.5rem 3.5rem; color: #fff; display: grid; gap: 1.25rem; }
.hero-titel { color: #fff; margin: 0; font-size: clamp(2rem, 1.5rem + 2.5vw, 3.4rem); }
.hero-seite { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 1rem; }
.hero-plakat { display: block; width: 9rem; border: 4px solid #fff; border-radius: .4rem; box-shadow: var(--schatten); }
.hero-plakat img { width: 100%; }
@media (min-width: 56em) {
    .hero-inhalt { position: absolute; inset: 0; align-content: end; grid-template-columns: 1fr auto; align-items: end; padding-block: 2rem 7rem;
        background: linear-gradient(to top, rgb(0 0 0 / .55), rgb(0 0 0 / 0) 55%); max-width: none; padding-inline: max(1.5rem, calc((100% - var(--rahmen)) / 2 + 1.5rem)); }
    .hero-titel { text-shadow: 0 2px 12px rgb(0 0 0 / .45); max-width: none; }
    .hero-seite { flex-direction: column; align-items: center; }
    .hero-plakat { width: 13rem; }
}

/* ---------- Bänder mit Wellenkante ---------- */
.band { --b: var(--seite); --b-fg: var(--text); position: relative; background: var(--b); color: var(--b-fg); padding-block: 3rem 3.5rem; }
.band--orange { --b: var(--b-orange); --b-fg: var(--b-text-hell); }
.band--hellblau { --b: var(--b-hellblau); --b-fg: var(--b-text-hell); }
.band--tuerkis { --b: var(--b-tuerkis); --b-fg: var(--b-text-hell); }
.band--petrol { --b: var(--b-petrol); --b-fg: var(--b-text-petrol); }
.band--rose { --b: var(--b-rose); --b-fg: var(--b-text-hell); }
.band--graublau { --b: var(--b-graublau); --b-fg: var(--b-text-hell); }
.band--zart { --b: var(--zart); }
.band--weiss { --b: var(--seite); }
.band:not(.band--weiss):not(.band--zart) :is(h1, h2, h3, h4, a:not(.knopf), .dachzeile) { color: var(--b-fg); }
.band:not(.band--weiss):not(.band--zart) a:not(.knopf) { text-decoration-thickness: 1px; }
.band--petrol .knopf, :root[data-theme="dark"] .band:not(.band--weiss):not(.band--zart) .knopf { background: #fff; color: #0d4f5f; border-color: #fff; }
.band--petrol .knopf--rand { background: transparent; color: #fff; border-color: #fff; }
.welle { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); height: clamp(2.2rem, 7vw, 6.5rem); background: var(--b); pointer-events: none;
    -webkit-mask: url('/bilder/welle-1.png') center bottom / 100% 100% no-repeat; mask: url('/bilder/welle-1.png') center bottom / 100% 100% no-repeat; }
.welle--2 { -webkit-mask-image: url('/bilder/welle-2.png'); mask-image: url('/bilder/welle-2.png'); }
.welle--3 { -webkit-mask-image: url('/bilder/welle-3.png'); mask-image: url('/bilder/welle-3.png'); }
.band:has(> .welle) { margin-top: clamp(2.2rem, 7vw, 6.5rem); }
.hero + .band:has(> .welle), .hero + .termin-info + .band:has(> .welle) { margin-top: 0; }
.band-raster { display: grid; gap: 2rem; }
.band-text > :last-child { margin-bottom: 0; }
@media (min-width: 56em) {
    .band { padding-block: 3.5rem 4.5rem; }
    .band-raster.hat-bilder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
    .band--gespiegelt .band-raster.hat-bilder > .bildpaar { order: -1; }
}

/* Bilder paarweise versetzt mit weißem Rahmen (wie live) */
.bildpaar { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; align-items: start; }
.bildpaar.anzahl-1 { grid-template-columns: 1fr; }
.bildpaar .bild { margin: 0; }
.bildpaar.anzahl-2 .bild:nth-child(2) { margin-top: 2.5rem; }
.bildpaar.anzahl-3 .bild:nth-child(3) { grid-column: 1 / -1; }
.bild img { width: 100%; border-radius: var(--radius); border: 4px solid #fff; box-shadow: var(--schatten); }
.bildpaar.anzahl-2 .bild img, .bildpaar.anzahl-3 .bild:not(:nth-child(3)) img { aspect-ratio: 4 / 5; object-fit: cover; }
.bildpaar.anzahl-3 .bild:nth-child(3) img { aspect-ratio: 16 / 9; object-fit: cover; }
:root[data-theme="dark"] .bild img { border-color: #2b3a3e; }
a.zoom { display: block; cursor: zoom-in; }

/* Icon-Kacheln (Startseite) */
.iconboxen { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.iconbox { display: flex; flex-direction: column; align-items: center; gap: .6rem; text-align: center; font-family: var(--schrift-titel); font-weight: 600; font-size: 1.1rem; }
.iconbox-icon { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--b-petrol); color: #fff; }
.iconbox-icon svg { width: 1.7rem; height: 1.7rem; }
@media (min-width: 56em) { .iconboxen { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Galerie ---------- */
.galerie { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(9.5rem, 45%), 1fr)); gap: .6rem; }
.galerie img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: .35rem; }
.galerie a:hover img { filter: brightness(1.08); }
.logo-raster { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: 1rem; }
.logo-kachel { background: #fff; border-radius: var(--radius); padding: .5rem; display: grid; place-items: center; box-shadow: var(--schatten); }
.logo-kachel img { width: 100%; aspect-ratio: 1; object-fit: contain; }

/* ---------- Event-Infobox ---------- */
.termin-info { position: relative; z-index: 2; margin-top: -2.5rem; margin-bottom: 1rem; }
.termin-info-innen { background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten); padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.termin-info-innen p { margin: 0; display: flex; gap: .5rem; align-items: center; }
.termin-vergangen { flex-basis: 100%; color: var(--text-leise); }
.termin-info + .band:has(> .welle) { margin-top: clamp(2.2rem, 7vw, 6.5rem); }

/* ---------- Termine / Events ---------- */
.termine-titel { margin-top: 2rem; }
.termine { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(17rem, 100%), 1fr)); }
.termin-karte { height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: var(--karte); color: var(--text); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.termin-karte--ohne-bild { grid-template-rows: 1fr auto; }
.termin-bild { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.termin--vergangen .termin-bild { filter: grayscale(.55); }
.termin-text { padding: 1rem 1.15rem .5rem; }
.termin-text p { display: flex; gap: .5rem; align-items: flex-start; margin: 0 0 .35rem; }
.termin-text svg { margin-top: .2em; }
.band .termin-karte :is(h3, a:not(.knopf)) { color: var(--text-stark); }
.termin-titel { font-size: 1.2rem; margin: .5rem 0 .6rem; }
.termin-titel a { text-decoration: none; }
.termin-titel a:hover { text-decoration: underline; }
.termin-aktion { padding: .5rem 1.15rem 1.15rem; }
.status { display: inline-block; padding: .15rem .55rem; border-radius: 1rem; font-size: .8rem; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.status--vergangen { background: #e3e7e8; color: #3b4649; }
.status--kommend { background: #d3efe9; color: #0b4d43; }
.status--angekuendigt { background: #fbe3d3; color: #7a3612; }
:root[data-theme="dark"] .status--vergangen { background: #2f3c40; color: #d6dfe0; }
:root[data-theme="dark"] .status--kommend { background: #134c45; color: #d4f3ec; }
:root[data-theme="dark"] .status--angekuendigt { background: #5a3018; color: #fde3d1; }

/* ---------- Beiträge (Aktuelles) ---------- */
.beitraege { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); }
.beitrag-karte { height: 100%; display: grid; grid-template-rows: auto 1fr auto; background: var(--karte); color: var(--text); border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten); }
.beitrag-bild img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.beitrag-text { padding: 1rem 1.15rem 0; }
.beitrag-datum { font-size: .9rem; color: var(--text-leise); margin: 0 0 .3rem; }
.band .beitrag-karte :is(h2, a:not(.knopf)) { color: var(--text-stark); }
.beitrag-titel { font-size: 1.2rem; }
.beitrag-titel a { text-decoration: none; }
.beitrag-aktion { padding: .5rem 1.15rem 1.15rem; }

/* ---------- Mitgliederverzeichnis ---------- */
.filter { margin: 0 0 1rem; }
.filter-titel { font-weight: 600; margin: 0 0 .5rem; }
.filter-liste { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-knopf { padding: .45rem .9rem; border-radius: 2rem; border: 1px solid var(--linie); background: var(--karte); color: var(--text-stark); font: 500 .95rem var(--schrift); cursor: pointer; }
.filter-knopf:hover { border-color: var(--knopf); }
.filter-knopf[aria-pressed="true"] { background: var(--knopf); border-color: var(--knopf); color: var(--knopf-text); }
.filter-zahl { opacity: .8; font-size: .85em; margin-left: .2rem; }
.verzeichnis-zahl { color: var(--text-leise); font-size: .95rem; }
.mitglieder-liste { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.mitglied[hidden] { display: none; }
.mitglied-karte { display: grid; grid-template-columns: 5rem minmax(0, 1fr); gap: 1rem 1.25rem; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem; }
.mitglied-logo { width: 5rem; }
.mitglied-logo-bild { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: .35rem; }
.mitglied-initialen { display: grid; place-items: center; width: 100%; aspect-ratio: 1; border-radius: .35rem; background: var(--zart); color: var(--petrol); font: 600 1.4rem var(--schrift-titel); }
:root[data-theme="dark"] .mitglied-initialen { color: var(--link); }
.mitglied-name { font-size: 1.2rem; margin: .2rem 0 .4rem; overflow-wrap: anywhere; hyphens: auto; }
.mitglied-kategorien { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .3rem; }
.mitglied-kategorien li { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--text-leise); }
.mitglied-kategorien li + li::before { content: '·'; margin-right: .3rem; }
.mitglied-text p { margin: 0 0 .3rem; display: flex; gap: .45rem; align-items: flex-start; }
.mitglied-text p svg { margin-top: .25em; color: var(--text-leise); }
.mitglied-person { color: var(--text-leise); }
.mitglied-info { font-size: .95rem; margin-top: .5rem; }
.mitglied-info p { display: block; }
.mitglied-social { list-style: none; padding: 0; margin: .4rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; font-size: .95rem; }
.mitglied-aktion { grid-column: 1 / -1; justify-self: start; }
@media (min-width: 48em) {
    .mitglied-karte { grid-template-columns: 7.5rem minmax(0, 1fr) 11rem; align-items: start; padding: 1.25rem; }
    .mitglied-logo { width: 7.5rem; }
    .mitglied-aktion { grid-column: 3; justify-self: stretch; }
    .mitglied-aktion .knopf { width: 100%; }
}

/* ---------- Karten (maps.prexma.com) ---------- */
.karte-rahmen { margin: 0 0 1.5rem; }
.karte-rahmen[hidden] { display: none; }
.karte { height: clamp(18rem, 55vw, 30rem); border-radius: var(--radius); overflow: hidden; background: var(--zart); border: 1px solid var(--linie); }
.bildnachweis { font-size: .9rem; margin: 1rem 0 0; }
.karte-hinweis { font-size: .9rem; color: var(--text-leise); margin: .5rem 0 0; }
.band:not(.band--weiss):not(.band--zart) .karte-hinweis { color: inherit; }
.karte-marker { --marker: #136c81; display: block; padding: 0; border: 0; background: none; cursor: pointer; }
.karte-pin { display: block; width: 1.3rem; height: 1.3rem; border: 2px solid #fff; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
    background: var(--marker); box-shadow: 0 1px 4px rgb(0 0 0 / .45); }
.karte-marker[hidden] { display: none; }
.karte-marker:hover .karte-pin { filter: brightness(1.15); }
.karte-marker:focus-visible { outline: 3px solid var(--fokus); outline-offset: 3px; }
.karte-legende { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; font-size: .9rem; }
.karte-legende li { display: flex; align-items: center; gap: .4rem; }
.karte-legende-punkt { --marker: #66737a; width: .8rem; height: .8rem; border-radius: 50%; background: var(--marker); border: 1px solid rgb(255 255 255 / .7); }
.karte-popup { font: .95rem/1.45 var(--schrift); color: #1b2629; }
.karte-popup strong { display: block; font-family: var(--schrift-titel); font-size: 1.05rem; margin: 0 1.2rem .3rem 0; }
.karte-popup p { margin: 0 0 .25rem; }
.karte-popup a { color: #0e5e70; }
.maplibregl-popup-close-button { font-size: 1.3rem; width: 1.8rem; height: 1.8rem; }
:root[data-theme="dark"] .maplibregl-popup-content { background: #1b2527; }
:root[data-theme="dark"] .maplibregl-popup-tip { border-top-color: #1b2527; border-bottom-color: #1b2527; }
:root[data-theme="dark"] .karte-popup { color: #e6ecec; }
:root[data-theme="dark"] .karte-popup a { color: #8fd3df; }
:root[data-theme="dark"] .maplibregl-popup-close-button { color: #e6ecec; }

/* ---------- Formulare ---------- */
.formular { display: grid; gap: 1rem; }
.feld-raster { display: grid; gap: 1rem; }
@media (min-width: 40em) { .feld-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); } .feld--breit { grid-column: 1 / -1; } }
.feld { display: grid; gap: .3rem; }
.feld label { font-weight: 500; }
.feld input:not([type="checkbox"]):not([type="radio"]), .feld textarea { width: 100%; padding: .65rem .75rem; border: 1px solid #7d8b8f; border-radius: .35rem; background: var(--karte); color: var(--text); font: inherit; }
.feld input:focus-visible, .feld textarea:focus-visible { outline: 3px solid var(--fokus); outline-offset: 1px; }
.feld--check { grid-template-columns: auto 1fr; align-items: start; gap: .6rem; }
.feld--check input, .option input { width: 1.15rem; height: 1.15rem; margin-top: .25rem; accent-color: var(--knopf); }
.feld-hilfe { font-size: .9rem; color: var(--text-leise); margin: 0; }
.pflicht { color: #b42318; }
:root[data-theme="dark"] .pflicht { color: #ff9a8f; }
.formular-hinweis { background: var(--zart); border: 1px solid var(--linie); border-radius: var(--radius); padding: .8rem 1rem; color: var(--text); }
.formular button[type="submit"] { justify-self: start; }
fieldset { border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.25rem 1.25rem; margin: 0; min-width: 0; }
legend { font-family: var(--schrift-titel); font-weight: 600; font-size: 1.15rem; padding: 0 .4rem; max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
.standbuchung .schritt { background: var(--karte); color: var(--text); display: grid; gap: 1rem; }
.standbuchung .schritt > legend { font-size: 1.3rem; color: var(--text-stark); }
.band .standbuchung :is(h3, a:not(.knopf)) { color: var(--text-stark); }
.auswahl { display: grid; gap: .45rem; }
.auswahl legend { font-family: var(--schrift); font-size: 1rem; }
.option { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; }
.newsletter-formular .feld--check label { font-weight: 400; font-size: .95rem; }
.kontakt-raster { display: grid; gap: 2rem; }
@media (min-width: 56em) { .kontakt-raster { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); } }
.kontakt-liste { list-style: none; padding: 0; }
.kontakt-liste li { display: flex; gap: .6rem; align-items: center; margin-bottom: .5rem; }
.hinweis-kasten { background: var(--karte); color: var(--text); border: 1px solid var(--linie); border-radius: var(--radius); padding: .9rem 1.1rem; }
.band .hinweis-kasten a { color: var(--link); }
.hinweis-sprache { background: var(--zart); border-radius: var(--radius); padding: 1rem 1.25rem; margin-bottom: 1.5rem; }

/* Mitgliedsantrag */
.antrag-wahl ul { list-style: none; padding: 0; margin: 0 0 2rem; display: flex; flex-wrap: wrap; gap: .75rem; }
.antraege { display: grid; gap: 3rem; }
.antrag h2 { margin-bottom: .4rem; }
.antrag-beitrag { display: inline-block; font-family: var(--schrift); font-size: 1rem; font-weight: 600; color: var(--text-leise); margin-left: .3rem; }
.antrag-pflicht { color: var(--text-leise); }
.antrag-formular { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1.25rem; }
.antrag-gruppe { background: transparent; }
.feld select { width: 100%; padding: .65rem .75rem; border: 1px solid #7d8b8f; border-radius: .35rem; background: var(--karte); color: var(--text); font: inherit; }
.feld [aria-invalid="true"] { border-color: #b42318; box-shadow: 0 0 0 1px #b42318; }
:root[data-theme="dark"] .feld [aria-invalid="true"] { border-color: #ff9a8f; box-shadow: 0 0 0 1px #ff9a8f; }
.formular-meldung { margin: 0 0 1rem; }
.formular-meldung.ist-fehler { border-color: #b42318; color: #b42318; }
:root[data-theme="dark"] .formular-meldung.ist-fehler { border-color: #ffb4ab; color: #ffb4ab; }
.fuss .formular-meldung { color: #172326; background: #fff; }
.feld-fehler { margin: .15rem 0 0; color: #b42318; font-size: .92rem; font-weight: 500; grid-column: 1 / -1; }
:root[data-theme="dark"] .feld-fehler { color: #ffb4ab; }
.honigtopf { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Satzung, Rechtstexte ---------- */
.satzung .paragraph { margin-bottom: 2rem; }
.paragraph-nr { color: var(--text-leise); margin-right: .3rem; }
.band--rose .paragraph-nr { color: inherit; opacity: .8; }
.rechtstext h1 { margin-bottom: 1.5rem; }
.rechtstext h2 { margin-top: 2rem; font-size: 1.5rem; }
.rechtstext h3 { margin-top: 1.5rem; font-size: 1.15rem; }
.rechtstext h4 { font-size: 1.05rem; margin-top: 1.2rem; }
.rechtstext { overflow-wrap: anywhere; }

/* ---------- Fuß ---------- */
.fuss { background: var(--fuss); color: var(--fuss-text); margin-top: 0; }
.fuss a { color: var(--fuss-text); }
.fuss-innen { display: grid; gap: 2rem; padding-block: 3rem 2rem; }
.fuss-logo img { width: 10rem; height: auto; }
.logo-weiss { display: block; }
.fuss-titel { font-family: var(--schrift); font-size: 1rem; font-weight: 600; color: var(--fuss-text); margin: 0 0 .5rem; }
.fuss-nav ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.fuss-nav li { margin-bottom: .25rem; }
.fuss-newsletter .feld input { background: #fff; color: #172326; border-color: #6b7679; }
.fuss-newsletter .knopf { background: #33393b; border-color: #33393b; color: #fff; }
:root[data-theme="dark"] .fuss-newsletter .knopf { background: var(--knopf); border-color: var(--knopf); color: var(--knopf-text); }
.fuss .formular-hinweis { color: #172326; background: #fff; }
.fuss-kacheln { display: grid; grid-template-columns: repeat(7, 1fr); height: .9rem; }
.fuss-kacheln span:nth-child(1), .fuss-kacheln span:nth-child(7) { background: var(--schiefer); }
.fuss-kacheln span:nth-child(2) { background: var(--orange); }
.fuss-kacheln span:nth-child(3) { background: var(--tuerkis); }
.fuss-kacheln span:nth-child(4) { background: var(--petrol); }
.fuss-kacheln span:nth-child(5) { background: var(--hellblau); }
.fuss-kacheln span:nth-child(6) { background: var(--rose); }
.fuss-copy { font-size: .85rem; padding-block: .8rem; margin: 0; }
@media (min-width: 56em) { .fuss-innen { grid-template-columns: auto 1fr 1fr 1.4fr; } }

/* Modal für Fotos und PDFs: Modul _tools/module/lightbox (lightbox.css wird beim Bau an stil.css angehängt) */

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .kopf, .fuss, .welle, .skip-link { display: none !important; } .band { background: none !important; color: #000 !important; } }

/* Mitgliedsantrag: Umschalter Gewerbetreibende / Privatperson mit Beitrag */
.antrag-anker { display: block; position: relative; top: calc(-1 * var(--kopf-hoehe, 5rem) - 1rem); }
.umschalter { border: 0; padding: 0; margin: 0 0 1.5rem; }
.umschalter legend { font-weight: 600; margin-bottom: .6rem; }
.umschalter-leiste { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(13rem, 100%), 1fr)); gap: .75rem; }
.umschalter-option { position: relative; }
.umschalter-option input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.umschalter-option label { display: grid; gap: .15rem; padding: 1rem 1.15rem; border: 2px solid var(--linie); border-radius: var(--radius); background: var(--seite, #fff);
    cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.umschalter-titel { font-weight: 600; font-size: 1.1rem; color: var(--text-stark, var(--text)); }
.umschalter-preis { color: var(--text-leise); font-weight: 600; }
.umschalter-option input:checked + label { border-color: var(--petrol, #136c81); background: color-mix(in srgb, var(--petrol, #136c81) 9%, var(--karte)); box-shadow: 0 0 0 1px var(--petrol, #136c81); }
.umschalter-option input:checked + label .umschalter-preis { color: var(--petrol-tief, var(--petrol, #136c81)); }
.umschalter-option input:focus-visible + label { outline: 3px solid var(--fokus); outline-offset: 2px; }
.antrag-gruppe[hidden] { display: none; }

/* ==========================================================================
   V2 „Besucher zuerst“ – ruhige Rhein-/Papier-Gestaltung mit dezenter Bewegung.
   Wird an basis.css angehängt und überschreibt Farben, Kopf, Navigation, Abschnitte und Fuß.
   Maßstab: Abstände --a1…--a6, Schriftgrößen über h1–h3, Radius --radius.
   ========================================================================== */
:root {
    --seite: #fbf9f5;
    --zart: #f3eee5;
    --papier: #f3eee5;
    --text: #29323a;
    --text-stark: #15232a;
    --text-leise: #56626a;
    --linie: #ddd5c6;
    --link: #1a5566;
    --knopf: #1d4652;
    --knopf-hover: #133640;
    --knopf-text: #ffffff;
    --akzent: #9c4a2f;
    --rhein: #1d4652;
    --rhein-text: #f4f1ea;
    --karte: #ffffff;
    --fuss: #16232a;
    --fuss-text: #e3ded3;
    --fokus: #b4501f;
    --radius: .6rem;
    --a1: .5rem; --a2: 1rem; --a3: 1.5rem; --a4: 2.5rem; --a5: 4rem; --a6: 6rem;
    --schatten-1: 0 1px 2px rgb(20 35 42 / .06), 0 4px 14px rgb(20 35 42 / .07);
    --schatten-2: 0 2px 6px rgb(20 35 42 / .08), 0 16px 36px rgb(20 35 42 / .14);
    --kopf-hoehe: 4.25rem;
    --weich: cubic-bezier(.2, .7, .2, 1);
}
:root[data-theme="dark"] {
    --seite: #10171a;
    --zart: #172126;
    --papier: #152025;
    --text: #d9ddd8;
    --text-stark: #f2efe7;
    --text-leise: #a9b0ad;
    --linie: #2b3a40;
    --link: #93cad8;
    --knopf: #93cad8;
    --knopf-hover: #b9dfe8;
    --knopf-text: #0d1b20;
    --akzent: #e7a585;
    --rhein: #0f2b33;
    --rhein-text: #eef0ea;
    --karte: #1a252a;
    --fuss: #0a1013;
    --fuss-text: #d2cfc6;
    --fokus: #ffb47a;
    --schatten-1: 0 1px 2px rgb(0 0 0 / .35), 0 4px 14px rgb(0 0 0 / .3);
    --schatten-2: 0 2px 6px rgb(0 0 0 / .4), 0 16px 36px rgb(0 0 0 / .45);
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --seite: #10171a; --zart: #172126; --papier: #152025; --text: #d9ddd8; --text-stark: #f2efe7; --text-leise: #a9b0ad;
        --linie: #2b3a40; --link: #93cad8; --knopf: #93cad8; --knopf-hover: #b9dfe8; --knopf-text: #0d1b20; --akzent: #e7a585;
        --rhein: #0f2b33; --rhein-text: #eef0ea; --karte: #1a252a; --fuss: #0a1013; --fuss-text: #d2cfc6; --fokus: #ffb47a;
    }
}
@media (min-width: 64em) { :root { --kopf-hoehe: 5rem; } }

body { font-size: 1.075rem; line-height: 1.7; padding-top: var(--kopf-hoehe); }
h1, h2, h3 { font-weight: 560; letter-spacing: -.01em; }
h1 { font-size: clamp(2.1rem, 1.6rem + 2.2vw, 3.3rem); }
h2 { font-size: clamp(1.6rem, 1.3rem + 1.2vw, 2.3rem); }
h3 { font-size: 1.3rem; }
.dachzeile { color: var(--akzent); letter-spacing: .1em; }
:focus-visible { outline-color: var(--fokus); }

/* ---------- Knöpfe ---------- */
.knopf { border-radius: 2rem; padding: .7rem 1.35rem; transition: background-color .2s, border-color .2s, color .2s, transform .2s var(--weich), box-shadow .2s; }
.knopf:hover { transform: translateY(-1px); box-shadow: var(--schatten-1); }
.knopf:active { transform: none; }
.knopf--klein { padding: .45rem 1rem; }

/* ---------- Kopf (fest, schrumpft beim Scrollen) ---------- */
.kopf { position: fixed; top: 0; left: 0; right: 0; z-index: 60; border-bottom: 1px solid transparent;
    background: color-mix(in srgb, var(--seite) 92%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
    transition: box-shadow .3s, border-color .3s; }
.kopf.ist-klein { box-shadow: 0 6px 24px rgb(20 35 42 / .1); border-bottom-color: var(--linie); }
.kopf-innen { height: var(--kopf-hoehe); padding-block: 0; transition: height .3s var(--weich); }
.kopf.ist-klein .kopf-innen { height: calc(var(--kopf-hoehe) - 1rem); }
.logo img { height: 2.8rem; transition: height .3s var(--weich); }
.kopf.ist-klein .logo img { height: 2.2rem; }
@media (min-width: 64em) {
    .kopf-innen { grid-template-columns: auto 1fr auto; grid-template-rows: auto; gap: 0 1.5rem; }
    .logo { grid-row: 1; }
    .logo img { height: 3.4rem; }
    .kopf.ist-klein .logo img { height: 2.6rem; }
    .hauptnav { grid-column: 2; grid-row: 1; justify-self: end; }
    .kopf-werkzeuge { grid-column: 3; grid-row: 1; }
}

/* Navigation */
.menue-punkt, .menue--entdecken, .menue--essen, .menue--events, .menue--anreise, .menue--mitmachen, .menue--kontakt { --tab: transparent; --tab-text: var(--text-stark); }
.menue-link { text-transform: none; letter-spacing: 0; font-size: 1.02rem; font-weight: 500; }
.untermenue-knopf { border-left: 0; }
.untermenue a { border-radius: .4rem; }
.menue-sprachen ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem 0; }
.menue-sprachen li + li::before { content: '·'; padding: 0 .55rem; color: var(--text-leise); }
.menue-sprachen a { color: var(--text-stark); text-decoration: none; }
.menue-sprachen a[aria-current] { font-weight: 600; text-decoration: underline; text-underline-offset: .3em; }
@media (max-width: 63.99em) {
    .menue { background: var(--karte); padding: var(--a1) 0 var(--a2); border-top: 1px solid var(--linie); }
    .menue-link { padding: .85rem 1.25rem; }
    .menue-punkt + .menue-punkt { border-top-color: var(--linie); }
    .menue-punkt.ist-aktiv > .menue-kopf .menue-link, .menue-punkt.ist-aktiv > .menue-link { color: var(--akzent); }
    .untermenue { padding: 0 0 .5rem; }
    /* „Mitmachen“ mobil als eigener Knopf unten im Menü */
    .menue--mitmachen { border-top: 0 !important; padding: var(--a2) 1.25rem 0; }
    .menue--mitmachen .menue-kopf { background: var(--knopf); border-radius: 2rem; overflow: hidden; }
    .menue--mitmachen .menue-link, .menue--mitmachen .untermenue-knopf { color: var(--knopf-text); background: transparent; }
    .menue--mitmachen .menue-link { text-align: center; font-weight: 600; }
    .menue--mitmachen .untermenue { background: transparent; padding-top: .5rem; }
    .menue-sprachen { padding: var(--a2) 1.25rem 0; border-top: 1px solid var(--linie); margin-top: var(--a2); }
    .sprachmenue { display: none; }
}
@media (min-width: 64em) {
    .menue { background: none; padding: 0; gap: .15rem; align-items: center; }
    .menue-link { padding: .55rem .75rem; position: relative; border-radius: .4rem; }
    .menue-link::after { content: ''; position: absolute; left: .75rem; right: .75rem; bottom: .25rem; height: 2px; background: var(--akzent);
        transform: scaleX(0); transform-origin: left; transition: transform .25s var(--weich); }
    .menue-link:hover { text-decoration: none; }
    .menue-link:hover::after, .menue-punkt.ist-aktiv > .menue-kopf .menue-link::after, .menue-punkt.ist-aktiv > .menue-link::after { transform: scaleX(1); }
    .menue-punkt.ist-aktiv .menue-link { box-shadow: none; }
    .untermenue-knopf { width: 1.5rem; }
    /* sanft einblendendes Untermenü */
    .untermenue { display: block; visibility: hidden; opacity: 0; transform: translateY(-6px); pointer-events: none;
        transition: opacity .2s, transform .25s var(--weich), visibility 0s .25s;
        border-top: 0; border-radius: var(--radius); padding: .5rem; min-width: 17rem; box-shadow: var(--schatten-2); }
    .menue-punkt:hover .untermenue, .menue-punkt.ist-offen .untermenue,
    .menue-punkt:has(.untermenue-knopf[aria-expanded="true"]) .untermenue { visibility: visible; opacity: 1; transform: none; pointer-events: auto; transition-delay: 0s; }
    .untermenue a { padding: .5rem .8rem; }
    .untermenue a:hover { background: var(--zart); text-decoration: none; }
    /* Mitmachen: deutlich abgesetzter Knopf */
    .menue--mitmachen { margin-left: .75rem; }
    .menue--mitmachen .menue-kopf { background: var(--knopf); border-radius: 2rem; transition: background-color .2s; }
    .menue--mitmachen .menue-kopf:hover { background: var(--knopf-hover); }
    .menue--mitmachen .menue-link, .menue--mitmachen .untermenue-knopf { color: var(--knopf-text); background: transparent; }
    .menue--mitmachen .menue-link { padding-inline: 1.1rem .4rem; font-weight: 600; }
    .menue--mitmachen .menue-link::after { display: none; }
    .menue--mitmachen .untermenue-knopf { width: 2rem; padding-right: .4rem; }
    .menue-sprachen { display: none; }
}

/* Sprachmenü: Wort statt Kürzel, schlichtes Ausklappmenü (ohne Rahmen, Pillen oder Flaggen) */
.sprachwahl { display: none; }
.sprachmenue { position: relative; }
.sprach-knopf { display: inline-flex; align-items: center; gap: .3rem; border: 0; background: none; color: var(--text-stark);
    font: 500 .98rem var(--schrift); padding: .5rem .4rem; cursor: pointer; border-radius: .4rem; }
.sprach-knopf:hover { color: var(--akzent); }
.sprach-knopf svg { width: 1em; height: 1em; transition: transform .2s; }
.sprach-knopf[aria-expanded="true"] svg { transform: rotate(180deg); }
.sprachen-liste { list-style: none; margin: 0; padding: .4rem; position: absolute; right: 0; top: calc(100% + .35rem); min-width: 10rem;
    background: var(--karte); border-radius: var(--radius); box-shadow: var(--schatten-2);
    visibility: hidden; opacity: 0; transform: translateY(-6px); transition: opacity .2s, transform .25s var(--weich), visibility 0s .25s; }
.sprachmenue.ist-offen .sprachen-liste { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }
.sprachen-liste a { display: block; padding: .45rem .75rem; border-radius: .35rem; color: var(--text-stark); text-decoration: none; }
.sprachen-liste a:hover { background: var(--zart); }
.sprachen-liste a[aria-current] { font-weight: 600; }
.thema-knopf { border: 0; }
.thema-knopf:hover { background: var(--zart); }

/* ---------- Kopfbild: scharf und vollständig, dahinter unscharf ---------- */
.hero2 { position: relative; background: #1a272c; overflow: hidden; }
.hero2-buehne { position: relative; height: clamp(15rem, 75vw, 70vh); display: grid; place-items: center; overflow: hidden; }
@media (min-width: 56em) { .hero2-buehne { height: clamp(20rem, 50vh, 36rem); } }
.hero2--start .hero2-buehne { height: clamp(15rem, 75vw, 70vh); }
@media (min-width: 56em) { .hero2--start .hero2-buehne { height: clamp(22rem, calc(100svh - var(--kopf-hoehe) - 17rem), 40rem); } }
.hero2-unschaerfe { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: blur(28px) saturate(1.1) brightness(.72); transform: scale(1.1); }
.hero2-bild { position: relative; height: 100%; width: min(100%, 90rem); display: grid; place-items: center; }
.hero2-bild img { grid-area: 1 / 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain;
    box-shadow: 0 10px 40px rgb(0 0 0 / .35); transition: opacity 1.2s ease; }
.hero2-bild img.ist-neu { opacity: 0; }
.hero2-text { position: relative; color: #fff; padding-block: var(--a3) var(--a4); }
.hero2-text h1 { color: #fff; margin: 0 0 .5rem; font-size: clamp(2.2rem, 1.5rem + 3.2vw, 4rem); }
.hero2-text .dachzeile { color: #f6d9c9; }
.hero2-satz { font-size: 1.15rem; margin: 0 0 1rem; }
.hero2-fakten { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.75rem; font-weight: 500; }
.hero2-fakten li { white-space: nowrap; }
.zaehler { font-variant-numeric: tabular-nums; font-weight: 600; }
@media (min-width: 56em) {
    .hero2--start .hero2-text { position: absolute; inset: auto 0 0 0; max-width: none; padding-block: var(--a5) 7rem;
        padding-inline: max(1.5rem, calc((100% - var(--rahmen)) / 2 + 1.5rem)); background: linear-gradient(to top, rgb(8 18 22 / .82), rgb(8 18 22 / .4) 60%, rgb(8 18 22 / 0)); }
    .hero2--start .hero2-text h1 { text-shadow: 0 2px 18px rgb(0 0 0 / .35); }
}
@media (max-width: 55.99em) { .hero2--start .hero2-text { background: #1a272c; } }

/* ---------- Startseite ---------- */
.v2-kacheln { position: relative; z-index: 2; padding-block: var(--a4) var(--a2); }
@media (min-width: 56em) { .v2-kacheln { margin-top: -6rem; padding-top: 0; } .v2-kacheln .kachel-bild img { aspect-ratio: 16 / 10; } }
/* Handy: Kacheln zweispaltig und kompakt, damit sie gleich unter dem Kopfbild zu sehen sind */
@media (max-width: 39.99em) {
    .v2-kacheln .kachel-raster { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
    .v2-kacheln .kachel-text { padding: .7rem .8rem 2.2rem; }
    .v2-kacheln .kachel-titel { font-size: 1.05rem; }
    .v2-kacheln .kachel-unter { font-size: .85rem; line-height: 1.35; }
    .hero2--start .hero2-satz { font-size: 1rem; }
}
.kachel-raster { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--a2); grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); }
.kachel-link { display: grid; grid-template-rows: auto 1fr; height: 100%; position: relative; background: var(--karte); border-radius: var(--radius);
    overflow: hidden; box-shadow: var(--schatten-1); color: var(--text-stark); text-decoration: none; transition: box-shadow .3s, transform .3s var(--weich); }
.kachel-link:hover, .kachel-link:focus-visible { box-shadow: var(--schatten-2); transform: translateY(-3px); }
.kachel-bild { display: block; overflow: hidden; }
.kachel-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--weich); }
.kachel-link:hover img, .kachel-link:focus-visible img { transform: scale(1.05); }
.kachel-text { display: grid; gap: .15rem; padding: var(--a2) 3rem var(--a2) var(--a2); }
.kachel-titel { font-family: var(--schrift-titel); font-size: 1.35rem; font-weight: 600; }
.kachel-unter { color: var(--text-leise); font-size: .95rem; }
.kachel-link > svg { position: absolute; right: var(--a2); bottom: 1.35rem; color: var(--akzent); transition: transform .25s var(--weich); }
.kachel-link:hover > svg { transform: translateX(4px); }

.v2-events { background: var(--rhein); color: var(--rhein-text); padding-block: var(--a4); margin-top: var(--a3); }
.v2-start-karte .karte { height: clamp(18rem, 40vw, 24rem); }
.v2-events :is(h2, .abschnitt-kopf a) { color: var(--rhein-text); }
.v2-events .termin-karte :is(h3, a:not(.knopf)) { color: var(--text-stark); }
.abschnitt-kopf { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .5rem 1.5rem; margin-bottom: var(--a3); }
.abschnitt-kopf h2 { margin: 0; }
.abschnitt-kopf a { display: inline-flex; align-items: center; gap: .4rem; font-weight: 500; }
.abschnitt-kopf a svg { transition: transform .25s var(--weich); }
.abschnitt-kopf a:hover svg { transform: translateX(3px); }

.teaser-raster { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--a2) var(--a3); grid-template-columns: repeat(auto-fill, minmax(min(30rem, 100%), 1fr)); }
/* Teaser kompakt: Bild links (4:3), Text rechts – hält die Startseite kurz */
.teaser-karte { position: relative; height: 100%; display: grid; grid-template-columns: 7rem minmax(0, 1fr); grid-template-rows: 1fr auto;
    background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s, transform .3s var(--weich); }
.teaser-bild { grid-row: 1 / span 2; }
.teaser-bild img { height: 100%; }
@media (min-width: 40em) { .teaser-karte { grid-template-columns: 11rem minmax(0, 1fr); } }
/* Dreispaltig (Alex, 06.11.2026: „dreispaltig sieht schöner aus“): Karten mit Bild oben, Stationskacheln zu dritt */
@media (min-width: 52em) {
    .teaser-raster--drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .teaser-raster--drei .teaser-karte { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr auto; }
    .teaser-raster--drei .teaser-bild { grid-row: auto; }
    .teaser-raster--drei .teaser-bild img { height: auto; min-height: 0; aspect-ratio: 3 / 2; }
    .kachel-raster.sehenswuerdigkeiten { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.teaser-karte:hover, .teaser-karte:focus-within { box-shadow: var(--schatten-2); transform: translateY(-3px); }
.teaser-bild { overflow: hidden; }
.teaser-bild img { width: 100%; min-height: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .6s var(--weich); }
.teaser-karte:hover .teaser-bild img { transform: scale(1.05); }
.teaser-text { padding: var(--a2) var(--a2) 0; }
.teaser-text h3 { font-size: 1.15rem; }
.teaser-text h3 { margin-bottom: .4rem; }
.teaser-text h3 a { color: var(--text-stark); text-decoration: none; }
.teaser-text h3 a::after { content: ''; position: absolute; inset: 0; }   /* ganze Karte klickbar */
.teaser-text p { margin: 0; }
.teaser-aktion { display: flex; align-items: center; gap: .4rem; padding: .5rem var(--a2) var(--a2); margin: 0; font-size: .95rem; color: var(--link); font-weight: 500; }

/* ---------- Mitmach-Hinweis (ruhig, ohne Akzentbalken) ---------- */
.mitmachen-hinweis { padding-block: var(--a3); }
.mitmachen-innen { display: grid; gap: var(--a3); align-items: center; background: var(--zart); border-radius: var(--radius); padding: var(--a3) var(--a3); }
.mitmachen-text h2 { font-size: clamp(1.35rem, 1.15rem + .8vw, 1.8rem); margin-bottom: .4rem; }
.mitmachen-text p:last-child { margin: 0; }
.mitmachen-knoepfe { display: flex; flex-wrap: wrap; gap: .75rem; margin: 0; }
@media (min-width: 56em) { .mitmachen-innen { grid-template-columns: minmax(0, 1fr) auto; padding: var(--a4); gap: var(--a4); } }
.v2-events + .mitmachen-hinweis { padding-top: var(--a4); }

/* ---------- Abschnitte der Unterseiten ---------- */
.v2-abschnitt { padding-block: var(--a4); }
.v2-abschnitt--papier { background: var(--papier); }
.v2-abschnitt--weiss { background: var(--seite); }
.v2-raster { display: grid; gap: var(--a4); }
.v2-text > :last-child { margin-bottom: 0; }
@media (min-width: 56em) {
    .v2-abschnitt { padding-block: var(--a5); }
    .v2-raster.hat-bilder { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; align-items: start; }
    .v2-raster.hat-bilder.ist-gespiegelt { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); }
    .v2-raster.ist-gespiegelt > .v2-bilder { order: -1; }
}
.v2-bilder { display: grid; gap: .75rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.v2-bilder.anzahl-1 { grid-template-columns: 1fr; }
.v2-bilder .bild { margin: 0; overflow: hidden; border-radius: var(--radius); }
.v2-bilder .bild img { border: 0; border-radius: var(--radius); box-shadow: none; aspect-ratio: 3 / 4; object-fit: cover; transition: transform .6s var(--weich); }
.v2-bilder .zoom:hover img { transform: scale(1.04); }
.v2-bilder.anzahl-1 .bild img { aspect-ratio: auto; }
.v2-bilder.anzahl-3 .bild:nth-child(3) { grid-column: 1 / -1; }
.v2-bilder.anzahl-3 .bild:nth-child(3) img { aspect-ratio: 3 / 2; }
.brotkrumen { padding-block: var(--a2) 0; }
.iconbox-icon { background: var(--rhein); }

/* Event-Infobox */
.termin-info { margin-top: var(--a3); }
.termin-info-innen { background: var(--papier); box-shadow: none; border: 1px solid var(--linie); }

/* Karten: gleich hoch, ruhig */
.termine { grid-auto-rows: 1fr; }
.termin-karte, .beitrag-karte { box-shadow: none; border: 1px solid var(--linie); transition: box-shadow .3s, transform .3s var(--weich); }
.termin-karte:hover, .beitrag-karte:hover { box-shadow: var(--schatten-1); transform: translateY(-2px); }
.v2-events .termin-karte { border: 0; }
.termin-bild { aspect-ratio: 3 / 2; }
.beitrag-bild img { aspect-ratio: 3 / 2; }
.mitglied-karte { border-color: var(--linie); }
.mitglied-marke { display: inline-block; margin: .6rem 0 0 !important; font-size: .8rem; font-weight: 600; color: var(--akzent); letter-spacing: .03em; }
.karte-popup-marke { font-size: .8rem; font-weight: 600; color: #9c4a2f; margin-top: .35rem !important; }
:root[data-theme="dark"] .karte-popup-marke { color: #e7a585; }
.filter-knopf { border-radius: 2rem; transition: background-color .2s, border-color .2s, color .2s; }
.filter-knopf[aria-pressed="true"] { background: var(--rhein); border-color: var(--rhein); color: #fff; }
:root[data-theme="dark"] .filter-knopf[aria-pressed="true"] { background: var(--knopf); border-color: var(--knopf); color: var(--knopf-text); }
.mitglied-initialen { color: var(--akzent); }
.status--kommend { background: #dcebe6; }
.galerie { grid-template-columns: 1fr; gap: .75rem; margin-inline: calc(-1 * min(6rem, max(0rem, (100vw - var(--rahmen)) / 2))); }
@media (min-width: 40em) { .galerie { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 80em) { .galerie { grid-template-columns: repeat(3, minmax(0, 1fr)); } .galerie > li:first-child { grid-column: span 2; grid-row: span 2; } }
.galerie > li[hidden] { display: none; }
.galerie a { display: block; height: 100%; overflow: hidden; border-radius: var(--radius); }
.galerie img { width: 100%; height: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; transition: transform .7s var(--weich), filter .3s; }
.galerie-mehr { margin-top: var(--a3); }
.bewegung .galerie > li:not(.ist-sichtbar) { clip-path: inset(0 0 100% 0); }
.bewegung .galerie > li { clip-path: inset(0 0 0 0); }
.bewegung .galerie > li:nth-child(3n+2) { transition-delay: .1s; }
.bewegung .galerie > li:nth-child(3n) { transition-delay: .2s; }
.galerie a:hover img { transform: scale(1.03); }
.antrag-formular { border-radius: var(--radius); }

/* ---------- Anlass-Seiten: Ausblick und Rückblick ---------- */
.anlass-beschreibung { margin-bottom: var(--a3); }
.ausblick h2 { font-size: clamp(1.4rem, 1.2rem + .9vw, 1.9rem); }
.ausblick-karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: var(--a3); display: grid; gap: .5rem; }
.ausblick-karte p { margin: 0; display: flex; gap: .5rem; align-items: flex-start; flex-wrap: wrap; }
.ausblick-karte .termin-datum { font-size: 1.15rem; font-weight: 600; color: var(--text-stark); }
.ausblick-aktion { margin-top: .5rem !important; align-items: center !important; }
.ausgabe { border-top: 1px solid var(--linie); }
.ausgabe:last-of-type { border-bottom: 1px solid var(--linie); }
.ausgabe > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: .25rem 1rem; padding: var(--a2) 2.5rem var(--a2) 0; position: relative; }
.ausgabe > summary::-webkit-details-marker { display: none; }
.ausgabe > summary::after { content: ''; position: absolute; right: .4rem; top: 50%; width: .7rem; height: .7rem; border-right: 2px solid var(--akzent);
    border-bottom: 2px solid var(--akzent); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--weich); }
.ausgabe[open] > summary::after { transform: translateY(-30%) rotate(225deg); }
.ausgabe > summary h3 { margin: 0; font-size: 1.4rem; }
.ausgabe-meta { color: var(--text-leise); }
.ausgabe-inhalt { padding-bottom: var(--a4); }
.ausgabe-inhalt h4 { font-family: var(--schrift-titel); font-size: 1.15rem; margin-top: 1.4em; }
.partner-logos { margin: var(--a3) 0 0; background: #fff; border-radius: var(--radius); padding: var(--a2); }
.partner-logos figcaption { font-weight: 600; color: #15232a; margin-bottom: .5rem; }
.ausgabe[id] { scroll-margin-top: calc(var(--kopf-hoehe) + 1rem); }

/* ---------- Fuß ---------- */
.fuss-kacheln { display: none; }
.fuss--v2 { background: var(--fuss); color: var(--fuss-text); }
.fuss--v2 .fuss-innen { padding-block: var(--a5) var(--a4); gap: var(--a4); }
@media (min-width: 56em) { .fuss--v2 .fuss-innen { grid-template-columns: 1.3fr 1fr 1fr 1.4fr; } }
.fuss-spalte ul { list-style: none; padding: 0; margin: 0; }
.fuss-spalte li { margin-bottom: .35rem; }
.fuss--v2 a { color: var(--fuss-text); text-decoration-color: rgb(255 255 255 / .35); }
.fuss--v2 a:hover { text-decoration-color: currentColor; }
.fuss--v2 .fuss-logo { display: inline-block; margin-bottom: var(--a2); }
.fuss--v2 .fuss-logo img { width: 9rem; height: auto; }
.fuss--v2 .fuss-titel { font-family: var(--schrift); font-size: .85rem; text-transform: uppercase; letter-spacing: .1em; color: rgb(230 225 214 / .75); margin-bottom: var(--a2); }
.fuss-newsletter .knopf { background: #e3ded3; border-color: #e3ded3; color: #16232a; }
.fuss-newsletter .feld input { border-color: #e3ded3; }
.fuss-unten { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1.5rem; padding-block: var(--a2); border-top: 1px solid rgb(255 255 255 / .12); font-size: .9rem; }
.fuss-unten .fuss-copy { padding: 0; }
/* Hinweis auf prexma und webatlas.eu: eigene Zeile unter dem Fuß, leiser als der Rest */
.fuss-macher { margin-block: 0; padding-block: 0 var(--a2); font-size: .75rem; letter-spacing: .01em; color: rgb(230 225 214 / .73); }
.fuss--v2 .fuss-macher a { color: inherit; text-decoration-color: rgb(230 225 214 / .25); }
.fuss--v2 .fuss-macher a:hover { color: rgb(230 225 214 / .9); }
.fuss-macher .herz { color: #e5584f; font-size: .9em; margin-inline: .05em; }
.fuss-unten .fuss-recht { list-style: none; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; margin: 0; padding: 0; }

/* ---------- Rundgang ---------- */
.rundgang-fakten { list-style: none; padding: 0; margin: 0 0 var(--a3); display: flex; flex-wrap: wrap; gap: .5rem 2rem; font-size: 1.1rem; }
.rundgang-fakten strong { font-family: var(--schrift-titel); font-size: 1.5rem; color: var(--text-stark); margin-right: .2rem; }
.rundgang-hinweis { font-size: .92rem; color: var(--text-leise); margin: 0; }
.rundgang-raster { display: grid; gap: var(--a4); }
.rundgang-seite { order: -1; }
.rundgang-karte > summary { cursor: pointer; font-weight: 600; padding: .5rem 0; }
.karte--rundgang { height: clamp(16rem, 60vw, 22rem); }
@media (min-width: 64em) {
    .rundgang-raster { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; }
    .rundgang-seite { order: 0; position: sticky; top: calc(var(--kopf-hoehe) + 1rem); }
    .rundgang-karte > summary { display: none; }
    .karte--rundgang { height: calc(100vh - var(--kopf-hoehe) - 6rem); min-height: 24rem; }
}
.stationen { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--a4); counter-reset: station; }
.station { scroll-margin-top: calc(var(--kopf-hoehe) + 1rem); }
.station-karte { display: grid; gap: var(--a2) var(--a3); background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: var(--a2); transition: box-shadow .3s; }
.station.ist-aktiv .station-karte, .station:target .station-karte { box-shadow: var(--schatten-2); }
@media (min-width: 40em) {
    .station-karte { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); padding: var(--a3); }
    .station--gespiegelt .station-fotos { order: 2; }
    .station--ohne-foto .station-karte { grid-template-columns: 1fr; }
}
.station-fotos { display: grid; grid-template-columns: 1fr; gap: .5rem; align-content: start; position: relative; translate: 0 var(--px, 0); }
.station-foto { display: block; overflow: hidden; border-radius: var(--radius); }
.station-foto img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform .7s var(--weich); }
.station-foto:hover img { transform: scale(1.04); }
.station-foto-klein { display: block; width: 42%; margin-top: -22%; margin-left: auto; margin-right: -.4rem; position: relative; border: 4px solid var(--karte);
    border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten-1); }
.station-foto-klein img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.station-nr { display: block; font-family: var(--schrift-titel); font-size: 3rem; line-height: 1; font-weight: 600; color: var(--akzent); margin-bottom: .25rem; }
.station-text h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.85rem); }
.station-lage { font-size: .88rem; color: var(--text-leise); margin: .5rem 0 0; }
.rundgang-weitere { margin-top: var(--a5); }
.stationen--ohne { margin-top: var(--a3); }
.personen { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--a2); grid-template-columns: repeat(auto-fill, minmax(min(16rem, 100%), 1fr)); grid-auto-rows: 1fr; }
.person { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: var(--a3); }
.person h3 { margin-bottom: .2rem; }
.person-daten { font-family: var(--schrift-titel); color: var(--akzent); font-weight: 600; margin: 0 0 .5rem; }
.person p:last-child { margin: 0; }
.sehenswuerdigkeiten { margin-top: var(--a3); }
.karte-marker--nr .karte-pin { width: 1.9rem; height: 1.9rem; border-radius: 50%; transform: none; display: grid; place-items: center;
    font: 600 .85rem/1 var(--schrift); color: #fff; background: #1d4652; transition: transform .25s var(--weich), background-color .25s; }
.karte-marker--nr.ist-aktiv .karte-pin { background: #9c4a2f; transform: scale(1.3); }
.karte-marker--nr.ist-aktiv { z-index: 2; }
.karte-marker:not(.karte-marker--nr):not(.karte-marker--zeichen).ist-aktiv { z-index: 3; }
.karte-marker:not(.karte-marker--nr):not(.karte-marker--zeichen).ist-aktiv .karte-pin { transform: rotate(-45deg) scale(1.6); box-shadow: 0 0 0 4px color-mix(in srgb, var(--marker) 35%, transparent), 0 4px 12px rgb(0 0 0 / .35); }
.mitglied.ist-aktiv .mitglied-karte, .mitglied:hover .mitglied-karte { border-color: var(--bereich, var(--petrol)); box-shadow: var(--schatten-1); }
.karte-start { display: block; width: .9rem; height: .9rem; border-radius: 50%; background: #fff; border: 3px solid #9c4a2f; box-shadow: 0 1px 3px rgb(0 0 0 / .4); }

/* ---------- Abschnittsübergänge: geschwungene Kante (Welle aus V1 neu interpretiert), bewegt sich beim Scrollen ---------- */
.v2-events, .v2-abschnitt--papier, .fuss--v2 { position: relative; }
.v2-events::before, .v2-abschnitt--papier::before, .fuss--v2::before {
    content: ''; position: absolute; left: -50%; width: 200%; bottom: calc(100% - 1px); height: clamp(1.2rem, 3vw, 2.6rem);
    background: inherit; pointer-events: none; transform: translate3d(var(--wx, 0px), 0, 0);
    -webkit-mask: url('/bilder/welle-2.png') left bottom / 50% 100% repeat-x; mask: url('/bilder/welle-2.png') left bottom / 50% 100% repeat-x; }
.v2-abschnitt--papier::before { -webkit-mask-image: url('/bilder/welle-3.png'); mask-image: url('/bilder/welle-3.png'); }
.hero2 + .brotkrumen + .v2-abschnitt--papier::before, .rundgang-kopf::before { display: none; }

/* ---------- Bewegung (nur wenn thema.js „bewegung“ gesetzt hat: JS aktiv, kein reduced motion) ---------- */
.bewegung :is(.haupt h2, .v2-text, .v2-bilder, .kachel, .teaser, .termin, .beitrag, .mitglied, .mitmachen-innen, .karte-rahmen, .galerie li, .antrag, .station, .person, .ausblick-karte, .ausgabe) {
    transition: opacity .8s var(--weich), transform .8s var(--weich), clip-path 1.1s var(--weich); }
.bewegung :is(.v2-text, .kachel, .teaser, .termin, .beitrag, .mitglied, .mitmachen-innen, .karte-rahmen, .galerie li, .antrag, .station, .person, .ausblick-karte, .ausgabe):not(.ist-sichtbar) { opacity: 0; transform: translateY(32px); }
.bewegung .haupt h2:not(.ist-sichtbar) { opacity: 0; transform: translateY(20px); }
.bewegung .haupt h2 { transition-duration: .6s; }
/* Bilder decken sich mit einem Wisch auf */
.bewegung .v2-bilder:not(.ist-sichtbar) { clip-path: inset(0 0 100% 0); }
.bewegung .v2-bilder.ist-sichtbar { clip-path: inset(0 0 0 0); }
.bewegung .station:not(.ist-sichtbar) .station-fotos, .bewegung .teaser:not(.ist-sichtbar) .teaser-bild, .bewegung .kachel:not(.ist-sichtbar) .kachel-bild { clip-path: inset(0 100% 0 0); }
.bewegung :is(.station-fotos, .teaser-bild, .kachel-bild) { clip-path: inset(0 0 0 0); transition: clip-path 1.1s var(--weich) .15s; }
.bewegung .gestaffelt > :nth-child(2) { transition-delay: .1s; }
.bewegung .gestaffelt > :nth-child(3) { transition-delay: .2s; }
.bewegung .gestaffelt > :nth-child(4) { transition-delay: .3s; }
.bewegung .gestaffelt > :nth-child(5) { transition-delay: .4s; }
.bewegung .gestaffelt > :nth-child(6) { transition-delay: .5s; }
.bewegung .termine > :nth-child(2) { transition-delay: .1s; }
.bewegung .termine > :nth-child(3) { transition-delay: .2s; }
.bewegung .termine > :nth-child(4) { transition-delay: .3s; }
.bewegung .termine > :nth-child(5) { transition-delay: .4s; }
/* Datumsblock der Termin-Karten blendet nach */
.bewegung .termin .termin-datum { transition: opacity .6s var(--weich) .45s, transform .6s var(--weich) .45s; }
.bewegung .termin:not(.ist-sichtbar) .termin-datum { opacity: 0; transform: translateX(-14px); }
/* Kopfbild: Ken-Burns mit Schwenk, Text kommt gestaffelt herein */
.bewegung .hero2-bild img { animation: kenburns 14s ease-in-out infinite alternate; }
@keyframes kenburns { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.09) translate(-1.6%, -1.2%); } }
.bewegung .hero2-text > * { animation: einfliegen .9s var(--weich) both; }
.bewegung .hero2-text > :nth-child(1) { animation-delay: .15s; }
.bewegung .hero2-text > :nth-child(2) { animation-delay: .3s; }
.bewegung .hero2-text > :nth-child(3) { animation-delay: .45s; }
.bewegung .hero2-text > :nth-child(4) { animation-delay: .6s; }
@keyframes einfliegen { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
/* Parallax (Wert aus main.js) */
.hero2-bild, .v2-bilder, .partner-logos { translate: 0 var(--px, 0); }
/* Kartenmarker fallen gestaffelt ein */
.bewegung .karte-pin { animation: fallen .6s var(--weich) both; animation-delay: var(--verz, 0ms); }
@keyframes fallen { from { opacity: 0; translate: 0 -28px; } to { opacity: 1; translate: 0 0; } }
/* Knöpfe: kleine Mikroanimation */
.knopf:active { transform: scale(.97); }
.kachel-link:hover, .kachel-link:focus-visible { transform: translateY(-6px); }

@media (prefers-reduced-motion: reduce) {
    .bewegung * { animation: none !important; transition: none !important; }
    .hero2-bild img { animation: none !important; }
    .kachel-link:hover, .teaser-karte:hover, .knopf:hover { transform: none; }
    .hero2-bild, .v2-bilder, .station-fotos, .partner-logos { translate: none !important; }
}


/* ==========================================================================
   Farben der Altseite (Leitsystem je Bereich) – Werte aus daten.py → FARBEN / BEREICHSFARBE
   ========================================================================== */
html, body { overflow-x: clip; }
:root { --knopf: var(--logo-petrol, #136c81); --knopf-hover: var(--logo-dunkel, #004e58); --link: #136c81; --fuss: #004e58; }
:root[data-theme="dark"] { --knopf: #7fc0d0; --knopf-hover: #a7d6e2; --link: #8fd3df; --fuss: #071c20; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --knopf: #7fc0d0; --knopf-hover: #a7d6e2; --link: #8fd3df; --fuss: #071c20; } }
.dachzeile { color: var(--bereich-tief, var(--akzent)); }

/* Kopf: Logo ×1,5 */
:root { --kopf-hoehe: 5.5rem; }
@media (min-width: 64em) { :root { --kopf-hoehe: 6.75rem; } }
.logo img { height: 4.2rem; }
.kopf.ist-klein .logo img { height: 3.3rem; }
@media (min-width: 64em) {
    .logo img { height: 5.1rem; }
    .kopf.ist-klein .logo img { height: 3.9rem; }
    .kopf-innen { gap: 0 1rem; }
    .menue-link { padding-inline: .6rem; }
}
@media (min-width: 64em) and (max-width: 79.99em) {
    .menue-link { font-size: .95rem; padding-inline: .45rem; }
    .menue--mitmachen { margin-left: .35rem; }
    .sprach-knopf { padding-inline: .2rem; }
}
@media (max-width: 22em) { .logo img { height: 3.6rem; } .nav-knopf-text { display: none; } }
.station, .ausgabe[id], [id^="antrag-"] { scroll-margin-top: calc(var(--kopf-hoehe) + 1rem); }
html { scroll-padding-top: calc(var(--kopf-hoehe) + .5rem); }

/* Menü: Farbpunkt je Bereich, Unterstreichung in der Bereichsfarbe, zarte Tönung im Mega-Menü */
.menue-punkt:not(.menue--mitmachen) > .menue-kopf > .menue-link::before,
.menue-punkt:not(.menue--mitmachen) > .menue-link::before {
    content: ''; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--bereich); margin-right: .45rem; vertical-align: .1em;
    transition: transform .25s var(--weich); }
.menue-link:hover::before { transform: scale(1.35); }
@media (min-width: 64em) {
    .menue-link::after { background: var(--bereich-tief); height: 2px; }
    .menue--mitmachen .menue-kopf { background: var(--rose-tief); }
    .menue--mitmachen .menue-kopf:hover { background: var(--rose-tief); filter: brightness(1.08); }
    :root[data-theme="dark"] .menue--mitmachen .menue-kopf { background: #92503f; }
    /* Mega-Menü: alle Unterseiten sichtbar, zwei Spalten, Titel + eine Zeile */
    .untermenue { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .15rem .5rem; width: min(38rem, 90vw); padding: .75rem;
        background: var(--karte); border: 1px solid var(--linie); }
    .menue--events .untermenue, .menue--essen .untermenue { left: 50%; translate: -50% 0; }
    .menue--mitmachen .untermenue { left: auto; right: 0; }
    .untermenue a { display: grid; gap: .1rem; padding: .55rem .75rem; }
    .untermenue a:hover, .untermenue a[aria-current] { background: var(--bereich-zart); }
    .mm-titel { font-weight: 600; color: var(--text-stark); }
    .mm-zeile { font-size: .85rem; color: var(--text-leise); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 63.99em) {
    .mm-zeile { display: none; }
    .menue-punkt.ist-aktiv > .menue-kopf .menue-link, .menue-punkt.ist-aktiv > .menue-link { color: var(--bereich-tief); }
    .menue--mitmachen .menue-kopf { background: var(--rose-tief); }
    :root[data-theme="dark"] .menue--mitmachen .menue-kopf { background: #92503f; }
    .untermenue a:hover { background: var(--bereich-zart); }
}

/* Seitenkopf der Unterseiten in der Bereichsfarbe (zart), Brotkrumen mit Bereichspunkt */
.haupt > .brotkrumen { background: var(--bereich-zart); box-shadow: 0 0 0 100vmax var(--bereich-zart); clip-path: inset(0 -100vmax); padding-bottom: .5rem; }
.brotkrumen [aria-current] { color: var(--bereich-tief); font-weight: 600; }
.brotkrumen [aria-current]::before { content: ''; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: var(--bereich); margin-right: .4rem; vertical-align: .1em; }
.haupt > .brotkrumen + .v2-abschnitt { background: var(--bereich-zart); }
.haupt > .brotkrumen + .v2-abschnitt::before { display: none; }
.haupt > .brotkrumen + .v2-abschnitt h1 { color: var(--text-stark); }

/* Kacheln: Bereichsfarbe an Pfeil, Titel-Unterstreichung, Stationsnummer */
.kachel-link > svg { color: var(--bereich-tief, var(--akzent)); }
.kachel-titel { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .2em; text-decoration-thickness: 2px; transition: text-decoration-color .25s; }
.kachel-link:hover .kachel-titel, .kachel-link:focus-visible .kachel-titel { text-decoration-color: var(--bereich); }
.kachel-nr { font-family: var(--schrift-titel); font-weight: 600; color: var(--bereich-tief); font-size: 1.1rem; }
.kachel.ist-aktiv .kachel-link { box-shadow: var(--schatten-2); transform: translateY(-4px); }
.teaser-aktion { color: var(--bereich-tief, var(--link)); }

/* „Direkt zu“-Zeile */
.direkt { display: flex; flex-wrap: wrap; align-items: baseline; gap: .4rem 1.25rem; margin-top: var(--a3); }
.direkt-titel { margin: 0; font-weight: 600; color: var(--text-stark); }
.direkt ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; }
.direkt { align-items: center; }
.direkt ul { gap: .5rem; }
.direkt a { display: inline-block; padding: .45rem .9rem; border-radius: 999px; background: var(--bereich-tief); color: #fff; font-weight: 600;
    text-decoration: none; line-height: 1.3; box-shadow: var(--schatten-1); transition: transform .25s var(--weich), box-shadow .25s, filter .25s; }
.direkt a:hover, .direkt a:focus-visible { transform: translateY(-2px); box-shadow: var(--schatten-2); filter: brightness(1.08); }
:root[data-theme="dark"] .direkt a { color: #10181b; background: var(--bereich); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .direkt a { color: #10181b; background: var(--bereich); } }

/* Farbbänder der Startseite (vollflächig, geschwungene Kante über ::before) */
.v2-events { background: var(--tuerkis-tief); }
:root[data-theme="dark"] .v2-events { background: #0f3b37; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v2-events { background: #0f3b37; } }
.v2-abschnitt--graublau { background: var(--graublau-zart); position: relative; }
.v2-abschnitt--graublau::before { content: ''; position: absolute; left: -50%; width: 200%; bottom: calc(100% - 1px); height: clamp(1.2rem, 3vw, 2.6rem);
    background: inherit; pointer-events: none; transform: translate3d(var(--wx, 0px), 0, 0);
    -webkit-mask: url('/bilder/welle-1.png') left bottom / 50% 100% repeat-x; mask: url('/bilder/welle-1.png') left bottom / 50% 100% repeat-x; }
.mitmachen-hinweis { background: var(--rose-zart); position: relative; padding-block: var(--a4); }
.mitmachen-hinweis::before { content: ''; position: absolute; left: -50%; width: 200%; bottom: calc(100% - 1px); height: clamp(1.2rem, 3vw, 2.6rem);
    background: inherit; pointer-events: none; transform: translate3d(var(--wx, 0px), 0, 0);
    -webkit-mask: url('/bilder/welle-2.png') left bottom / 50% 100% repeat-x; mask: url('/bilder/welle-2.png') left bottom / 50% 100% repeat-x; }
.mitmachen-innen { background: transparent; padding-inline: 0; }
.mitmachen-hinweis .dachzeile { color: var(--rose-tief); }
.mitmachen-hinweis .knopf:not(.knopf--rand) { background: var(--rose-tief); border-color: var(--rose-tief); color: #fff; }
:root[data-theme="dark"] .mitmachen-hinweis .knopf:not(.knopf--rand) { background: #92503f; border-color: #92503f; }
.mitmachen-hinweis .knopf--rand { color: var(--rose-tief); }

/* Mitmachen-Übersicht */
.mitmachen-fakten { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--a2); grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr)); grid-auto-rows: 1fr; }
.mitmachen-fakten li { display: grid; grid-template-rows: auto 1fr auto; gap: .35rem; background: var(--rose-zart); border-radius: var(--radius); padding: var(--a3); }
.mitmachen-fakten .knopf { justify-self: start; }
.fakt-zahl { font-family: var(--schrift-titel); font-size: 1.35rem; font-weight: 600; color: var(--text-stark); }
.fakt-klein { font-size: .9rem; color: var(--text-leise); }

/* Anlässe */
.termin--entfaellt .termin-bild { filter: grayscale(.7); }
.ausblick-ausfall { font-size: 1.15rem; font-weight: 600; color: var(--text-stark); }

/* Karten: Marker der Bereiche */
.karte-marker--nr .karte-pin { background: #a64a1a; }
.karte-marker--nr.ist-aktiv .karte-pin { background: #6f2f0e; box-shadow: 0 0 0 3px #fff, 0 2px 8px rgb(0 0 0 / .4); }
.karte-popup--ort { display: grid; gap: .35rem; }
.karte-popup--ort img { width: 100%; height: auto; border-radius: .3rem; }
.orte-raster .kachel-raster { grid-template-columns: repeat(auto-fill, minmax(min(14rem, 100%), 1fr)); }

/* Fuß in Logo-Petrol und Farbleiste der Altseite */
.fuss--v2 { background: var(--fuss); }
.farbleiste { display: grid; grid-template-columns: repeat(5, 1fr); height: clamp(.75rem, 3.125vw, 3.75rem); }
.farbleiste span { background: var(--bereich); }

/* ---------- Startseite: Events-Abschnitt passt sich der Anzahl der Termine an ---------- */
.termine--drei, .termine--jaehrlich { grid-template-columns: 1fr; }
.events-zwei, .events-eins { display: grid; gap: var(--a3); }
.termine--zwei, .termine--eins { grid-template-columns: 1fr; margin: 0; }
@media (min-width: 48em) {
    .termine--drei { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .termine--jaehrlich { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .events-zwei { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
    .events-zwei .termine--zwei { grid-column: span 2; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .events-eins { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: stretch; }
}
@media (min-width: 64em) { .termine--jaehrlich { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.termin--gross .termin-karte { grid-template-columns: 1fr; }
@media (min-width: 48em) { .termin--gross .termin-karte { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); grid-template-rows: 1fr auto; }
    .termin--gross .termin-bildrahmen { grid-row: 1 / span 2; } .termin--gross .termin-bild { height: 100%; aspect-ratio: auto; min-height: 18rem; } }
.termin-datumsblock { font-family: var(--schrift-titel); font-size: 1.2rem; font-weight: 600; color: var(--tuerkis-tief); margin: 0 0 .25rem; }
.termin--gross .termin-datumsblock { font-size: 1.6rem; }
:root[data-theme="dark"] .termin-datumsblock { color: var(--tuerkis-tief); }
.termin-kurz { color: var(--text-leise); }
.events-seite { display: grid; gap: var(--a2); align-content: start; }
.jaehrlich, .newsletter-kachel { background: var(--karte); color: var(--text); border-radius: var(--radius); padding: var(--a3); }
.v2-events .jaehrlich h3, .v2-events .newsletter-kachel h3 { color: var(--text-stark); font-size: 1.25rem; }
.v2-events .jaehrlich a, .v2-events .newsletter-kachel a { color: var(--link); }
.jaehrlich-liste { list-style: none; margin: 0 0 var(--a2); padding: 0; }
.jaehrlich-liste li { display: grid; gap: .1rem; padding: .55rem 0; border-bottom: 1px solid var(--linie); }
.jaehrlich-liste li a { font-weight: 600; }
.jaehrlich-liste li span { font-size: .92rem; color: var(--text-leise); }
.events-newsletter { margin-top: var(--a3); }
.events-newsletter .newsletter-kachel { display: grid; gap: var(--a2); }
@media (min-width: 56em) { .events-newsletter .newsletter-kachel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); align-items: center; } }
.newsletter-kachel .newsletter-formular .feld input { background: #fff; color: #15232a; }

/* ---------- Mitglieder-Seiten: niedriges Kopfbild mit Titel, sofort Werkzeugleiste, Liste + Karte ---------- */
.hero2--kompakt .hero2-buehne { height: clamp(11rem, 30vh, 16rem); }
@media (min-width: 56em) { .hero2--kompakt .hero2-buehne { height: clamp(14rem, 40vh, 22rem); } }
.hero2--text .hero2-text { padding-block: var(--a2) var(--a3); }
.hero2--text .hero2-text h1 { font-size: clamp(1.9rem, 1.4rem + 2.2vw, 3rem); margin: 0; }
.hero2--text .hero2-satz { margin: .35rem 0 0; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 56em) {
    .hero2--text .hero2-text { position: absolute; inset: auto 0 0 0; max-width: none; padding-block: var(--a4) var(--a3);
        padding-inline: max(1.5rem, calc((100% - var(--rahmen)) / 2 + 1.5rem)); background: linear-gradient(to top, rgb(8 18 22 / .78), rgb(8 18 22 / 0)); }
}
@media (max-width: 55.99em) { .hero2--text .hero2-text { background: #1a272c; } }
.verzeichnis-abschnitt { padding-block: var(--a2) var(--a4) !important; }
.werkzeugleiste { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: var(--a2); }
.werkzeugleiste .filter { margin: 0; }
.werkzeugleiste .filter-liste { gap: .35rem; }
.werkzeugleiste .filter-knopf { padding: .35rem .8rem; font-size: .9rem; }
.werkzeugleiste .verzeichnis-zahl { margin: 0; font-weight: 600; color: var(--text-stark); }
.verzeichnis-suche { margin-left: auto; }
.verzeichnis-suche input { padding: .45rem .8rem; border: 1px solid var(--linie); border-radius: 2rem; background: var(--karte); color: var(--text); font: inherit; width: 14rem; max-width: 100%; }
.ansicht-wahl { display: inline-flex; gap: .25rem; }
.ansicht-knopf { border: 0; background: none; font: 500 .95rem var(--schrift); color: var(--text-leise); padding: .35rem .5rem; cursor: pointer; border-bottom: 2px solid transparent; }
.ansicht-knopf[aria-pressed="true"] { color: var(--text-stark); border-bottom-color: var(--bereich-tief); }
.verzeichnis-raster { display: grid; gap: var(--a3); }
.verzeichnis--v2 .karte-rahmen { margin: 0; }
@media (max-width: 63.99em) {
    .verzeichnis--v2 .verzeichnis-karte { display: none; }
    .verzeichnis--v2.zeigt-karte .verzeichnis-karte { display: block; }
    .verzeichnis--v2.zeigt-karte .mitglieder-liste { display: none; }
    .verzeichnis-suche { margin-left: 0; flex: 1 1 100%; }
    .verzeichnis-suche input { width: 100%; }
}
@media (min-width: 64em) {
    .ansicht-wahl { display: none; }
    .verzeichnis-raster { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
    .verzeichnis-karte { position: sticky; top: calc(var(--kopf-hoehe) + 1rem); }
    .verzeichnis-karte .karte { height: calc(100vh - var(--kopf-hoehe) - 5rem); min-height: 22rem; }
    .verzeichnis--v2 .mitglied-karte { grid-template-columns: 5.5rem minmax(0, 1fr); }
    .verzeichnis--v2 .mitglied-logo { width: 5.5rem; }
    .verzeichnis--v2 .mitglied-aktion { grid-column: 2; justify-self: start; }
    .verzeichnis--v2 .mitglied-aktion .knopf { width: auto; }
}
.newsletter-kachel .feld-raster { grid-template-columns: 1fr; }

/* ==========================================================================
   Scroll-Storytelling (nur mit .bewegung: JS aktiv, kein reduced motion; sonst normale Abschnitte untereinander)
   --p (0–1) setzt main.js je Szene in einer einzigen requestAnimationFrame-Schleife.
   Animiert werden nur transform, opacity, clip-path, filter.
   ========================================================================== */
.wort { display: inline-block; }
.typo-moment { padding-block: var(--a5) var(--a4); overflow: hidden; }
.typo-zeile { position: relative; margin: 0; font-family: var(--schrift-titel); font-weight: 600; line-height: 1.05; letter-spacing: -.02em;
    font-size: clamp(2.6rem, 1rem + 7vw, 7.5rem); }
.typo-blass { color: color-mix(in srgb, var(--text-stark) 18%, transparent); }
.typo-voll { position: absolute; inset: 0; color: var(--orange-tief); clip-path: inset(0 calc((1 - var(--p, 1)) * 100%) 0 0); }
.geschichte { position: relative; background: var(--orange-zart); padding-block: var(--a4); }
.geschichte h2 { margin-bottom: var(--a3); }
.geschichte-kopf { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: var(--a3); }
.geschichte-kopf h2 { margin: 0; }
.slider-knoepfe { display: flex; gap: .5rem; }
.slider-knopf { width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 2px solid var(--orange-tief); background: var(--karte); color: var(--orange-tief);
    display: grid; place-items: center; cursor: pointer; transition: background-color .2s, color .2s; }
.slider-knopf:hover:not(:disabled) { background: var(--orange-tief); color: #fff; }
.slider-knopf:disabled { opacity: .35; cursor: default; }
.slider-knopf svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.slider-knopf--zurueck svg { transform: scaleX(-1); }
.szenen { list-style: none; margin: 0 auto; padding: 0 max(1rem, calc((100% - var(--rahmen)) / 2 + 1rem)); display: flex; gap: var(--a3);
    overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scroll-padding-inline: max(1rem, calc((100% - var(--rahmen)) / 2 + 1rem));
    scrollbar-width: none; overscroll-behavior-x: contain; }
.szenen::-webkit-scrollbar { display: none; }
.szene { flex: 0 0 min(100%, calc(var(--rahmen) - 2rem)); scroll-snap-align: start; display: grid; gap: var(--a2); opacity: .3; transition: opacity .5s var(--weich); }
.szene.ist-aktiv { opacity: 1; }
.szene-bild { overflow: hidden; border-radius: var(--radius); }
.szene-bild img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transform: scale(1.06); transition: transform 1.4s var(--weich); }
.szene.ist-aktiv .szene-bild img { transform: none; }
.szene-text h3 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.2rem); }
.szene-fortschritt { display: flex; gap: .35rem; justify-content: center; padding-top: var(--a2); }
.szene-punkt { width: 1.5rem; height: 1.5rem; border: 0; padding: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.szene-punkt::before { content: ''; width: .6rem; height: .6rem; border-radius: 50%; background: color-mix(in srgb, var(--orange-tief) 30%, transparent); transition: transform .3s, background-color .3s; }
.szene-punkt[aria-current="true"]::before { background: var(--orange-tief); transform: scale(1.4); }
.geschichte-link { margin-top: var(--a3); }
@media (prefers-reduced-motion: reduce) { .szenen { scroll-behavior: auto; } .szene-bild img { transform: none; transition: none; } }
@media (max-width: 47.99em) { .szene { flex-basis: 86%; } }
@media (min-width: 48em) { .szene { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: center; gap: var(--a4); } }

@media screen {
    /* 1. Kopfbild der Startseite: bildschirmfüllend, zoomt zur Bildkarte heraus */
    .bewegung .erzaehl-hero > .hero2 { background: var(--seite); }
    .bewegung .erzaehl-hero .hero2-buehne { transform: scale(calc(1 - .06 * var(--p, 0))); clip-path: inset(0 round calc(var(--p, 0) * 1.25rem));
        will-change: transform; background: #1a272c; }
    .bewegung .worte .wort { animation: einfliegen .9s var(--weich) both; }
    .bewegung .worte .wort:nth-child(1) { animation-delay: .1s; } .bewegung .worte .wort:nth-child(2) { animation-delay: .22s; }
    .bewegung .worte .wort:nth-child(3) { animation-delay: .34s; } .bewegung .worte .wort:nth-child(4) { animation-delay: .46s; }
    .bewegung .worte .wort:nth-child(5) { animation-delay: .58s; } .bewegung .worte .wort:nth-child(6) { animation-delay: .7s; }
    .bewegung .hero2--start .hero2-satz { animation-delay: .85s !important; }
    .bewegung .hero2--start .hero2-fakten { animation-delay: 1s !important; }

    /* 3./4. Kacheln: Parallax-Ebenen und leichtes Kippen beim Einblenden */
    .bewegung .kachel-raster > .kachel, .bewegung .teaser-raster > .teaser { translate: 0 var(--px, 0); }
    .bewegung :is(.kachel, .teaser, .termin, .station, .person):not(.ist-sichtbar) { transform: perspective(900px) rotateX(6deg) translateY(36px); transform-origin: 50% 100%; }

    /* 5. Wellenkanten verformen sich leicht */
    .v2-events::before, .v2-abschnitt--papier::before, .v2-abschnitt--graublau::before, .mitmachen-hinweis::before, .fuss--v2::before {
        transform: translate3d(var(--wx, 0px), 0, 0) scaleY(var(--wy, 1)); transform-origin: 50% 100%; }

    /* 6. Unterseiten: Kopfbild zoomt beim ersten Scrollen leicht heraus */
    .bewegung .hero2:not(.hero2--start) .hero2-buehne { transform: scale(calc(1 - .08 * var(--p, 0))); clip-path: inset(0 round calc(var(--p, 0) * 1.25rem)); }
    .bewegung .hero2:not(.hero2--start) { background: var(--seite); }
}
@media print { .szenen { flex-direction: column; overflow: visible; } .szene { opacity: 1 !important; } .slider-knoepfe, .szene-fortschritt { display: none; } }

/* Kopfbild: Rasterzeile mit fester Höhe, damit max-height: 100% greift (Bild immer vollständig, nie beschnitten) */
.hero2-bild { grid-template-rows: 100%; grid-template-columns: 100%; height: 100%; }
.hero2-bild img { max-height: 100%; max-width: 100%; width: auto; height: auto; justify-self: center; align-self: center; }
.hero2-bild { position: absolute; inset: 0; margin-inline: auto; width: min(100%, 90rem); height: 100%; display: grid; grid-template-rows: 100%; grid-template-columns: 100%; place-items: center; }
@media (min-width: 64em) {
    .menue-punkt .untermenue, .menue-punkt:hover .untermenue, .menue-punkt.ist-offen .untermenue,
    .menue-punkt:has(.untermenue-knopf[aria-expanded="true"]) .untermenue { display: grid; }
}
.fuss-newsletter .feld-raster, .newsletter-formular .feld-raster { grid-template-columns: 1fr; }
.karte-popup--ort img { width: 14rem; max-width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
/* Startseite: Kopftext über den hereinragenden Kacheln (überschreibt die kompakten .hero2--text-Regeln) */
.hero2--start.hero2--text .hero2-satz { white-space: normal; overflow: visible; }
@media (min-width: 56em) {
    .hero2--start.hero2--text .hero2-text { padding-block: var(--a5) 8rem; background: linear-gradient(to top, rgb(8 18 22 / .85), rgb(8 18 22 / .4) 60%, rgb(8 18 22 / 0)); }
    .hero2--start.hero2--text .hero2-text h1 { font-size: clamp(2.2rem, 1.4rem + 2.6vw, 3.6rem); }
}
/* Typo-Zeile „über 1300 Jahre Geschichte“ immer in einer Zeile */
.typo-zeile { white-space: nowrap; font-size: min(5.6rem, calc((100vw - 3rem) / 14.5)); }
.typo-zeile:lang(nl) { font-size: min(5rem, calc((100vw - 3rem) / 17.5)); }
/* Startseite: Bildstreifen im Kopf – drei Bilder nebeneinander, läuft langsam nach links durch */
.hero2--streifen .hero2-buehne { display: block; }
.streifen { display: flex; width: max-content; height: 100%; animation: streifen-lauf calc(var(--anzahl) * 22s) linear infinite; }
.streifen-spur { display: flex; gap: 6px; list-style: none; margin: 0; padding: 0 6px 0 0; height: 100%; }
.streifen-spur li { width: 82vw; height: 100%; flex: none; }
@media (min-width: 36em) { .streifen-spur li { width: 50vw; } }
@media (min-width: 56em) { .streifen-spur li { width: calc((100vw - 12px) / 3); } }
.streifen-spur img { width: 100%; height: 100%; object-fit: cover; }
.hero2--streifen:hover .streifen, .hero2--streifen.ist-angehalten .streifen { animation-play-state: paused; }
@keyframes streifen-lauf { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .streifen { animation: none; } .streifen-pause { display: none; } }
.streifen-pause { position: absolute; z-index: 3; right: 1rem; top: 1rem; width: 2.5rem; height: 2.5rem; border: 0; border-radius: 50%;
    background: rgb(8 18 22 / .55); color: #fff; display: grid; place-items: center; cursor: pointer; }
.streifen-pause:hover { background: rgb(8 18 22 / .8); }
.streifen-symbol { width: .8rem; height: .9rem; border-inline: .26rem solid currentColor; box-sizing: border-box; }
.streifen-pause[aria-pressed="true"] .streifen-symbol { border: 0; width: 0; height: 0; border-left: .75rem solid currentColor; border-block: .45rem solid transparent; margin-left: .2rem; }
@media print { .streifen { animation: none; } .streifen-pause { display: none; } }
/* PDF-Titelbild (Anreise): als Vorschau, nicht formatfüllend */
.bild--pdf { max-width: 16rem; }
.bild--pdf a { display: block; border-radius: var(--radius); overflow: hidden; box-shadow: var(--schatten-1); transition: box-shadow .25s, transform .25s var(--weich); }
.bild--pdf a:hover, .bild--pdf a:focus-visible { box-shadow: var(--schatten-2); transform: translateY(-2px); }
.bild--pdf figcaption { margin-top: .5rem; font-weight: 600; color: var(--link); }
/* Kurzer Clip ohne Ton (Rückblick Kaiserfest) */
.video-clip { margin: var(--a4) 0; }
.video-rahmen { position: relative; border-radius: var(--radius); overflow: hidden; background: #1a272c; box-shadow: var(--schatten-1); }
.video-rahmen video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.video-clip figcaption { margin-top: .6rem; color: var(--text-leise); }
.video-clip figcaption strong { color: var(--text-stark); margin-right: .35rem; }
/* Folgt uns: Facebook und Instagram */
.social-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.social-links a { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; border: 2px solid currentColor; font-weight: 600; text-decoration: none; }
.social-links svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2; }
.social-links svg.icon-voll { fill: currentColor; stroke: none; }
.social-links a:hover, .social-links a:focus-visible { background: var(--petrol-tief, #0e5566); border-color: var(--petrol-tief, #0e5566); color: #fff; }
.fuss--v2 .social-links a:hover, .fuss--v2 .social-links a:focus-visible { background: #fff; border-color: #fff; color: var(--fuss); }
.fuss-folgen { margin-top: var(--a3); }
.folgen-titel { margin: var(--a2) 0 .5rem; font-weight: 600; }
/* Kopfstreifen: auf allen Seiten gleich hoch, unabhängig von der beim Scrollen schrumpfenden Kopfleiste */
.hero2--streifen .hero2-buehne { height: clamp(15rem, 75vw, 70vh); }
@media (min-width: 56em) { .hero2--streifen .hero2-buehne { height: clamp(22rem, calc(100svh - 24rem), 40rem); } }
/* Anreise: Parkplätze und Haltestelle als Verzeichnis */
.ort-zeichen { display: grid; place-items: center; width: 4.5rem; height: 4.5rem; border-radius: var(--radius); color: #fff; font-family: var(--schrift); font-weight: 700; font-size: 2.2rem; }
.ort-zeichen--parken { background: var(--graublau-tief); }
.ort-zeichen--oepnv { background: var(--petrol-tief); border-radius: 50%; }
.ort-fakten { list-style: none; margin: .35rem 0 .6rem; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem; }
.ort-fakten li { padding: .15rem .6rem; border-radius: 999px; background: var(--graublau-zart); color: var(--text-stark); font-size: .9rem; font-weight: 600; }
.ort-text p { margin: 0 0 .5rem; }
.ort-hinweis { margin-top: var(--a3); }
.ort-hinweis h3 { font-size: 1.1rem; margin-bottom: .35rem; }
.karte-marker--zeichen .karte-pin { width: 1.9rem; height: 1.9rem; border-radius: .4rem; transform: none; display: grid; place-items: center;
    background: var(--marker); color: #fff; font: 700 1rem/1 var(--schrift); }
.karte-marker--zeichen.ist-aktiv .karte-pin { transform: scale(1.35); box-shadow: 0 0 0 4px color-mix(in srgb, var(--marker) 35%, transparent), 0 4px 12px rgb(0 0 0 / .35); }
.karte-marker--zeichen.ist-aktiv { z-index: 3; }
/* Fotocredits: dezent senkrecht am rechten Bildrand (von unten nach oben zu lesen), ohne Fläche, dünne Schrift; im Modal in der Titelzeile
   (Alex, 06.11.2026: „dezenter, nicht auf Schwarz, nicht fett, dass man es nicht sofort sieht“) */
.galerie a, .bild a.zoom, .streifen-spur li, .kachel-bild, .teaser-bild, .szene-bild { position: relative; }
.foto-credit { position: absolute; right: .3rem; bottom: .5rem; z-index: 1; max-height: calc(100% - 1rem);
    writing-mode: vertical-rl; transform: rotate(180deg);
    color: rgb(255 255 255 / .78); text-shadow: 0 0 2px rgb(0 0 0 / .65), 0 0 5px rgb(0 0 0 / .3);
    font-size: .625rem; line-height: 1.2; font-weight: 400; letter-spacing: .05em;
    white-space: nowrap; overflow: hidden; pointer-events: none; }
.streifen-spur .foto-credit { bottom: .7rem; right: .45rem; }
.foto-credit-text { display: inline-block; font-size: .85em; }
@media print { .foto-credit { writing-mode: horizontal-tb; transform: none; text-shadow: none; color: #555; position: static; } }
/* Verzeichniseintrag als Sprungziel (Admin: „Mitgliederliste der Website“ führt mit #eintrag-<id> direkt zur Karte) */
.mitglied[id] { scroll-margin-top: calc(var(--kopf-hoehe) + 1rem); }
.mitglied:target .mitglied-karte { border-color: var(--bereich, var(--petrol)); box-shadow: var(--schatten-2); }
/* Kaiserfest-Tombola: Gewinnnummern je Tag und Sponsor, Unterseiten einer Ausgabe */
.ausgabe-seiten { list-style: none; display: flex; flex-wrap: wrap; gap: .75rem; margin: var(--a3) 0 0; padding: 0; }
.tombola-tag + .tombola-tag { margin-top: var(--a4); }
.tombola-anzahl { color: var(--text-leise, var(--text)); margin: 0 0 var(--a3); }
.tombola-raster { display: grid; gap: var(--a3); grid-template-columns: repeat(auto-fill, minmax(min(18rem, 100%), 1fr)); align-items: start; }
.tombola-sponsor { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 1rem 1.1rem; }
.tombola-sponsor h3 { font-size: 1.05rem; margin: 0 0 .5rem; }
.tombola-liste { list-style: none; margin: 0; padding: 0; }
.tombola-liste li { display: grid; grid-template-columns: 4rem minmax(0, 1fr); gap: .75rem; align-items: baseline; padding: .4rem 0; border-top: 1px solid var(--linie); }
.tombola-los { font-weight: 600; font-variant-numeric: tabular-nums; text-align: center; background: var(--zart); border-radius: .3rem; padding: .1rem .4rem; color: var(--text-stark); }
/* Stift für angemeldete Redakteure: Laravel setzt ihn nur, wenn der Benutzer den Datensatz im Admin ändern darf (App\Support\Site\EditLink) */
.mitglied-karte, .termin-karte, .beitrag-karte, .ausblick-karte { position: relative; }
.bearbeiten { position: absolute; top: .6rem; right: .6rem; z-index: 3; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%;
    background: var(--karte); color: var(--link); border: 1px solid var(--linie); box-shadow: var(--schatten-1); transition: transform .15s, box-shadow .15s; }
.bearbeiten:hover, .bearbeiten:focus-visible { transform: scale(1.1); box-shadow: var(--schatten-2); }
.bearbeiten svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mitglied-karte > .bearbeiten { top: -.7rem; right: -.7rem; }
.bearbeiten--zeile { position: static; display: inline-grid; vertical-align: middle; margin-left: .6rem; }
@media print { .bearbeiten { display: none; } }
/* Karten-Editor (intern, ?punkte-setzen) */
.punkte-editor { margin-bottom: .75rem; padding: .75rem 1rem; border: 2px dashed var(--orange-tief); border-radius: var(--radius); background: var(--karte); }
.punkte-editor textarea { width: 100%; font: .8rem/1.4 ui-monospace, monospace; margin: .5rem 0; }
.karte-marker--neu .karte-pin { background: #b42318 !important; }
.karte-marker-name { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: .2rem; white-space: nowrap; font-size: .7rem; font-weight: 600;
    background: #fff; color: #15232a; padding: 0 .3rem; border-radius: .2rem; box-shadow: 0 1px 3px rgb(0 0 0 / .3); }
.karte-marker--neu { position: relative; }

/* ==========================================================================
   Signature-Look aus dem Kaiserfest-Plakat 2026 (Hinweis Kundin, 24.10.2026):
   Plakat-Grün #319688 (große Flächen), Kronen-Petrol #00474B, Terrakotta #B25D49 (Kronenform), Farbleiste wie gehabt.
   Wo kleine weiße Schrift auf Grün steht, die abgedunkelte Stufe #27806F (Kontrast ≥ 4,5:1).
   ========================================================================== */
:root { --plakat-gruen: #319688; --plakat-gruen-tief: #27806f; --plakat-petrol: #00474b; --plakat-terrakotta: #b25d49; --plakat-terrakotta-tief: #9a4b39; }
:root:not([data-theme="dark"]) { --knopf: var(--plakat-gruen-tief); --knopf-hover: var(--plakat-petrol); --link: #1f6b5e; --fuss: var(--plakat-petrol); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --knopf: #7fcbbd; --knopf-hover: #a5dccf; --link: #8fd6c8; } }
/* Veranstaltungsband und Kopftext (Handy) in Plakat-Grün */
:root:not([data-theme="dark"]) .v2-events { background: var(--plakat-gruen-tief); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .v2-events { background: #123f38; } }
@media (max-width: 55.99em) { :root:not([data-theme="dark"]) :is(.hero2--start, .hero2--text) .hero2-text { background: var(--plakat-petrol); } }
@media (min-width: 56em) {
    .hero2--start.hero2--text .hero2-text { background: linear-gradient(to top, rgb(0 52 55 / .88), rgb(0 52 55 / .45) 60%, rgb(0 52 55 / 0)); }
}
/* „Mitmachen“ und Hauptaktionen in Terrakotta wie die Krone auf dem Plakat */
.menue--mitmachen .menue-kopf { background: var(--plakat-terrakotta-tief) !important; }
.menue--mitmachen .menue-kopf:hover { background: #7f3c2d !important; }
.mitmachen-hinweis .knopf:not(.knopf--rand) { background: var(--plakat-terrakotta-tief); border-color: var(--plakat-terrakotta-tief); color: #fff; }
.mitmachen-hinweis .knopf:not(.knopf--rand):hover { background: #7f3c2d; border-color: #7f3c2d; }
/* Dachzeile im Kopf wie die Datumszeile des Plakats */
.hero2-text .dachzeile { color: #c9efe6; }

/* Bildausschnitte aus daten.py → BILD_FOKUS */
.fokus-173-kaiserswerth { object-position: 50% 12%; }
.fokus-2025-09-13-vorstand-02-1920px { object-position: 50% 12%; }
.fokus-vorstand-wir-kaiserswerther-2025 { object-position: 50% 15%; }
.fokus-img-2540 { object-position: 50% 40%; }
.fokus-229-kaiserswerth { object-position: 50% 35%; }
.fokus-158-kaiserswerth { object-position: 50% 50%; }
.fokus-153-kaiserswerth { object-position: 50% 45%; }
.fokus-338-kaiserswerth { object-position: 50% 60%; }
.fokus-202-kaiserswerth { object-position: 50% 40%; }
.fokus-186-kaiserswerth { object-position: 50% 45%; }
.fokus-004-kaiserswerth { object-position: 50% 40%; }
.fokus-128-kaiserswerth { object-position: 50% 30%; }
.fokus-kaiserfest-plakat-2026 { object-position: 50% 8%; }
.fokus-wk-kaiserfest-plakat-10x152 { object-position: 50% 8%; }
.fokus-2025-04-29-kaiserswerth-149-1200px { object-position: 50% 25%; }
.fokus-2025-12-07-beleuchtung-040-1920px-1 { object-position: 50% 55%; }
.fokus-251121-weihnachtsbeleuchtung { object-position: 50% 55%; }
.fokus-220-kaiserswerth { object-position: 50% 20%; }

/* Farben der Altseite und Bereichsfarben aus daten.py → FARBEN, BEREICHSFARBE */
:root { --orange: #ee8e5a; --orange-tief: #a64a1a; --orange-zart: #fbe8dc; --tuerkis: #2db4a6; --tuerkis-tief: #0e6c62; --tuerkis-zart: #ddf2ef; --petrol: #136c81; --petrol-tief: #0f5c6e; --petrol-zart: #dcebef; --graublau: #8facba; --graublau-tief: #476674; --graublau-zart: #e6edf1; --rose: #c58a7d; --rose-tief: #92503f; --rose-zart: #f5e6e2; --hellblau: #a1b3c1; --hellblau-tief: #4b6272; --hellblau-zart: #e8eef2; --logo-petrol: #136c81; --logo-dunkel: #004e58; }
:root[data-theme="dark"] { --orange: #c9774b; --orange-tief: #f3a87f; --orange-zart: #36241a; --tuerkis: #2a9a8f; --tuerkis-tief: #62cbbf; --tuerkis-zart: #122e2b; --petrol: #1d6577; --petrol-tief: #7fc0d0; --petrol-zart: #11303a; --graublau: #6f8a97; --graublau-tief: #aac3cf; --graublau-zart: #1d2a31; --rose: #a8766b; --rose-tief: #e2aa9d; --rose-zart: #33221e; --hellblau: #7f93a2; --hellblau-tief: #b3c4d1; --hellblau-zart: #1f2a32; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --orange: #c9774b; --orange-tief: #f3a87f; --orange-zart: #36241a; --tuerkis: #2a9a8f; --tuerkis-tief: #62cbbf; --tuerkis-zart: #122e2b; --petrol: #1d6577; --petrol-tief: #7fc0d0; --petrol-zart: #11303a; --graublau: #6f8a97; --graublau-tief: #aac3cf; --graublau-zart: #1d2a31; --rose: #a8766b; --rose-tief: #e2aa9d; --rose-zart: #33221e; --hellblau: #7f93a2; --hellblau-tief: #b3c4d1; --hellblau-zart: #1f2a32; } }
.bereich--entdecken { --bereich: var(--orange); --bereich-tief: var(--orange-tief); --bereich-zart: var(--orange-zart); }
.bereich--essen { --bereich: var(--petrol); --bereich-tief: var(--petrol-tief); --bereich-zart: var(--petrol-zart); }
.bereich--events { --bereich: var(--tuerkis); --bereich-tief: var(--tuerkis-tief); --bereich-zart: var(--tuerkis-zart); }
.bereich--anreise { --bereich: var(--graublau); --bereich-tief: var(--graublau-tief); --bereich-zart: var(--graublau-zart); }
.bereich--mitmachen { --bereich: var(--rose); --bereich-tief: var(--rose-tief); --bereich-zart: var(--rose-zart); }

/* Lightbox-Modul (prexma / webatlas), Version 1 – gehört zu lightbox.js.
   Sieht in jedem Projekt gleich aus; anpassen nur über diese Variablen (z. B. in :root):
   --lightbox-flaeche (Hintergrund), --lightbox-text, --lightbox-text-leise, --lightbox-knopf, --lightbox-knopf-aktiv,
   --lightbox-fokus, --lightbox-radius, --lightbox-schrift */
.lightbox {
    --_flaeche: var(--lightbox-flaeche, rgb(9 13 15 / .93));
    --_text: var(--lightbox-text, #f5f2eb);
    --_leise: var(--lightbox-text-leise, rgb(245 242 235 / .6));
    --_knopf: var(--lightbox-knopf, rgb(255 255 255 / .11));
    --_knopf-aktiv: var(--lightbox-knopf-aktiv, rgb(255 255 255 / .24));
    --_fokus: var(--lightbox-fokus, #ffb36b);
    --_radius: var(--lightbox-radius, .5rem);
    position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
    display: none; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden;
    background: transparent; color: var(--_text); font-family: var(--lightbox-schrift, inherit);
}
.lightbox[open] { display: grid; animation: lightbox-auf .22s ease-out; }
.lightbox::backdrop { background: var(--_flaeche); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.lightbox[open]::backdrop { animation: lightbox-ein .22s ease-out; }
@keyframes lightbox-auf { from { opacity: 0; transform: scale(.985); } }
@keyframes lightbox-ein { from { opacity: 0; } to { opacity: 1; } }
@keyframes lightbox-dreht { to { transform: rotate(1turn); } }

.lightbox-leiste { display: flex; align-items: center; gap: .5rem; padding: .75rem clamp(.75rem, 2vw, 1.25rem); }
.lightbox-info { flex: 1; min-width: 0; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    font-size: .875rem; letter-spacing: .08em; font-variant-numeric: tabular-nums; color: var(--_leise); }
.lightbox--pdf .lightbox-info { font-size: 1rem; letter-spacing: 0; color: var(--_text); }

.lightbox-knopf { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; flex: none; min-width: 2.75rem; height: 2.75rem; padding: 0;
    border: 0; border-radius: 999px; background: var(--_knopf); color: var(--_text); font: inherit; font-size: .9rem; line-height: 1; text-decoration: none;
    cursor: pointer; transition: background-color .15s ease; }
.lightbox-knopf:hover { background: var(--_knopf-aktiv); color: var(--_text); }
.lightbox-knopf:focus-visible { outline: 2px solid var(--_fokus); outline-offset: 2px; }
.lightbox-knopf svg { width: 1.3rem; height: 1.3rem; flex: none; }
.lightbox-knopf[hidden] { display: none; }
.lightbox-download { padding: 0 1.1rem 0 .85rem; }

.lightbox-buehne { display: grid; grid-template: minmax(0, 1fr) / minmax(0, 1fr); place-items: center; min-height: 0; padding: 0 clamp(.5rem, 6vw, 5rem); touch-action: pan-y pinch-zoom; }
.lightbox-bild { grid-area: 1 / 1; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; border-radius: var(--_radius);
    box-shadow: 0 1.25rem 3.5rem rgb(0 0 0 / .55); opacity: 0; transition: opacity .28s ease; -webkit-user-drag: none; user-select: none; }
.lightbox-bild.ist-da { opacity: 1; }
.lightbox.laedt .lightbox-buehne::after { content: ''; grid-area: 1 / 1; width: 2.25rem; height: 2.25rem; border-radius: 50%; opacity: 0;
    border: 3px solid var(--_knopf-aktiv); border-top-color: var(--_text); animation: lightbox-dreht .8s linear infinite, lightbox-ein .2s .3s forwards; }

.lightbox-pfeil { position: absolute; top: 50%; width: 3rem; height: 3rem; margin-top: -1.5rem; }
.lightbox-zurueck { left: clamp(.5rem, 1.5vw, 1.25rem); }
.lightbox-vor { right: clamp(.5rem, 1.5vw, 1.25rem); }
@media (max-width: 40em) { .lightbox-pfeil { width: 2.5rem; height: 2.5rem; min-width: 2.5rem; margin-top: -1.25rem; background: rgb(9 13 15 / .55); } }

.lightbox-text { margin: 0; padding: .8rem 1rem 1.1rem; min-height: 3.6rem; text-align: center; font-size: .95rem; line-height: 1.45; text-wrap: balance; }
.lightbox-credit { display: block; margin-top: .1rem; font-size: .78rem; letter-spacing: .03em; color: var(--_leise); }
.lightbox-credit:empty { display: none; }

.lightbox--pdf .lightbox-text { display: none; }
.lightbox--pdf .lightbox-buehne { padding: 0 clamp(.5rem, 2vw, 1.25rem) clamp(.5rem, 2vw, 1.25rem); }
.lightbox-pdf { grid-area: 1 / 1; width: min(100%, 70rem); height: 100%; border: 0; border-radius: var(--_radius); background: #fff; box-shadow: 0 1.25rem 3.5rem rgb(0 0 0 / .55); }

.lightbox-offen { overflow: hidden; }
@media (prefers-reduced-motion: reduce) {
    .lightbox[open], .lightbox[open]::backdrop { animation: none; }
    .lightbox-bild { transition: none; }
}
@media print { .lightbox { display: none !important; } }
