/* ==========================================================================
   Freiwillige Feuerwehr Barderup – Design-System
   ========================================================================== */

@font-face { font-family: "Inter"; src: url("../fonts/inter-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-600.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-700.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("../fonts/barlow-condensed-800.woff2") format("woff2"); font-weight: 800; font-display: swap; }

:root {
    --red: #c8102e;
    --red-600: #a50d26;
    --red-700: #820a1e;
    --red-50: #fdecee;
    --yellow: #ffcc00;
    --ink: #0f1115;
    --ink-2: #1a1d23;
    --ink-3: #262a32;

    --bg: #f6f4f1;
    --bg-elev: #ffffff;
    --bg-sunken: #eceae6;
    --text: #16181d;
    --text-2: #4a4f59;
    --text-3: #6f7480;
    --border: #e1ded8;
    --accent: var(--red);
    --accent-text: #b00e28;
    --ring: color-mix(in srgb, var(--red) 45%, transparent);

    --font-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-display: "Barlow Condensed", "Arial Narrow", var(--font-sans);

    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-sm: 0 1px 2px rgb(16 18 24 / .06), 0 1px 1px rgb(16 18 24 / .04);
    --shadow: 0 10px 30px -12px rgb(16 18 24 / .18), 0 4px 10px -6px rgb(16 18 24 / .10);
    --shadow-lg: 0 30px 60px -20px rgb(16 18 24 / .35);
    --container: 1200px;
    --gutter: clamp(16px, 4vw, 32px);
    --header-h: 76px;
    --ease: cubic-bezier(.2, .7, .2, 1);
    color-scheme: light;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0f1115; --bg-elev: #171a20; --bg-sunken: #0b0d10; --text: #eef0f3; --text-2: #b7bcc6; --text-3: #8b919d;
        --border: #2a2f38; --accent-text: #ff5a6e; --red-50: #2a1418; color-scheme: dark;
        --shadow: 0 10px 30px -12px rgb(0 0 0 / .6); --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / .7);
    }
}
:root[data-theme="dark"] {
    --bg: #0f1115; --bg-elev: #171a20; --bg-sunken: #0b0d10; --text: #eef0f3; --text-2: #b7bcc6; --text-3: #8b919d;
    --border: #2a2f38; --accent-text: #ff5a6e; --red-50: #2a1418; color-scheme: dark;
    --shadow: 0 10px 30px -12px rgb(0 0 0 / .6); --shadow-lg: 0 30px 60px -20px rgb(0 0 0 / .7);
}

/* ------------------------------------------------------------------ Basis */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
    margin: 0; background: var(--bg); color: var(--text);
    font: 400 1.0625rem/1.65 var(--font-sans); font-feature-settings: "cv11", "ss01";
    -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
    overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; height: auto; }
a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 700; line-height: 1.05; letter-spacing: .005em; margin: 0 0 .5em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; text-transform: uppercase; }
h2 { font-size: clamp(2rem, 4vw, 3rem); text-transform: uppercase; }
h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); }
h4 { font-size: 1.25rem; }
p { margin: 0 0 1em; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.sr-only { position: absolute; 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: 16px; top: -60px; z-index: 100; background: var(--red); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 820px; }
.section { padding-block: clamp(64px, 10vw, 120px); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section--dark { background: var(--ink); color: #eef0f3; --text-2: #b7bcc6; --text-3: #8b919d; --border: #2a2f38; --bg-elev: var(--ink-2); --accent-text: #ff5a6e; }
.section--sunken { background: var(--bg-sunken); }

.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; margin-bottom: 1rem;
    font: 700 .8rem/1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text);
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; border-radius: 2px; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--text-2); max-width: 62ch; }
.muted { color: var(--text-3); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head h2 { margin: 0; }
.section-head .lead { margin: .75rem 0 0; }

/* ------------------------------------------------------------------ Buttons */

.btn {
    --btn-bg: var(--red); --btn-fg: #fff; --btn-bd: transparent;
    display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
    min-height: 48px; padding: .75rem 1.35rem; border-radius: 999px; border: 1.5px solid var(--btn-bd);
    background: var(--btn-bg); color: var(--btn-fg); font: 600 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
    transition: transform .2s var(--ease), background-color .2s, box-shadow .2s, border-color .2s;
}
.btn:hover { background: var(--red-600); transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgb(200 16 46 / .7); }
.btn:active { transform: translateY(0); }
.btn .icon { transition: transform .2s var(--ease); }
.btn:hover .icon--arrow { transform: translateX(3px); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--text); --btn-bd: var(--border); }
.btn--ghost:hover { background: var(--bg-elev); border-color: var(--text-3); box-shadow: none; }
.btn--light { --btn-bg: rgb(255 255 255 / .12); --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .35); backdrop-filter: blur(8px); }
.btn--light:hover { background: rgb(255 255 255 / .22); box-shadow: none; }
.btn--yellow { --btn-bg: var(--yellow); --btn-fg: var(--ink); }
.btn--yellow:hover { background: #ffd83d; box-shadow: 0 10px 24px -10px rgb(255 204 0 / .7); }
.btn--sm { min-height: 38px; padding: .5rem 1rem; font-size: .9rem; }
.btn--block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: .4rem; font-weight: 600; text-decoration: none; }
.link-arrow:hover .icon { transform: translateX(3px); }
.link-arrow .icon { transition: transform .2s var(--ease); }

/* ------------------------------------------------------------------ Header */

.site-header {
    position: fixed; inset: 0 0 auto; z-index: 50; height: var(--header-h);
    color: var(--text); transition: background-color .3s, box-shadow .3s, color .3s, transform .3s var(--ease);
}
.site-header::before { content: ""; position: absolute; inset: 0; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px); border-bottom: 1px solid var(--border); z-index: -1; transition: opacity .3s; }
.site-header--overlay:not(.is-scrolled) { color: #fff; }
.site-header--overlay:not(.is-scrolled)::before { opacity: 0; }
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner { height: 100%; display: flex; align-items: center; gap: 1.5rem; }

.brand { display: flex; align-items: center; gap: .75rem; color: inherit; text-decoration: none; flex: none; }
.brand img { width: 46px; height: 46px; border-radius: 50%; box-shadow: 0 4px 14px -4px rgb(200 16 46 / .6); transition: transform .4s var(--ease); }
.brand:hover img { transform: rotate(-8deg) scale(1.04); }
.brand-text { display: grid; line-height: 1; }
.brand-text small { font: 600 .68rem/1.1 var(--font-sans); letter-spacing: .14em; text-transform: uppercase; opacity: .75; }
.brand-text strong { font: 800 1.6rem/1 var(--font-display); letter-spacing: .02em; text-transform: uppercase; }

.main-nav { margin-left: auto; }
.main-nav ul { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: .25rem; }
.main-nav a {
    position: relative; display: block; padding: .6rem .85rem; border-radius: 999px; color: inherit; text-decoration: none;
    font: 600 .95rem/1 var(--font-sans); transition: background-color .2s;
}
.main-nav a:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.main-nav a[aria-current="page"]::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .2rem; height: 2px; border-radius: 2px; background: var(--red); }
.site-header--overlay:not(.is-scrolled) .main-nav a[aria-current="page"]::after { background: var(--yellow); }

.header-actions { display: flex; align-items: center; gap: .5rem; }
.icon-btn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 0;
    background: transparent; color: inherit; cursor: pointer; text-decoration: none; transition: background-color .2s;
}
.icon-btn:hover { background: color-mix(in srgb, currentColor 12%, transparent); }
.emergency-pill {
    display: inline-flex; align-items: center; gap: .45rem; padding: .55rem 1rem; border-radius: 999px;
    background: var(--red); color: #fff; font: 800 1.05rem/1 var(--font-display); letter-spacing: .06em; text-decoration: none;
    box-shadow: 0 0 0 0 rgb(200 16 46 / .5); animation: pulse 2.8s infinite;
}
.emergency-pill:hover { background: var(--red-600); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgb(200 16 46 / .55); } 70% { box-shadow: 0 0 0 12px rgb(200 16 46 / 0); } 100% { box-shadow: 0 0 0 0 rgb(200 16 46 / 0); } }
.nav-toggle { display: none; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }

@media (max-width: 1020px) {
    .nav-toggle { display: inline-grid; }
    .main-nav {
        position: fixed; inset: 0; z-index: 60; margin: 0; padding: calc(var(--header-h) + 12px) var(--gutter) 32px;
        background: var(--ink); color: #fff; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
    }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a { padding: 1rem 0; border-radius: 0; border-bottom: 1px solid rgb(255 255 255 / .1); font: 700 2rem/1 var(--font-display); text-transform: uppercase; }
    .main-nav a:hover { background: none; color: var(--yellow); }
    .main-nav a[aria-current="page"] { color: var(--yellow); }
    .main-nav a[aria-current="page"]::after { display: none; }
    body.nav-open { overflow: hidden; }
    body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    body.nav-open .site-header { color: #fff; }
    body.nav-open .site-header::before { opacity: 0; }
    .header-actions { margin-left: auto; position: relative; z-index: 61; }
    .brand { position: relative; z-index: 61; }
    .emergency-pill span { display: none; }
}
@media (max-width: 420px) { .brand-text small { display: none; } .brand img { width: 40px; height: 40px; } }

main { min-height: 60vh; }
.page-offset { padding-top: var(--header-h); }

/* ------------------------------------------------------------------ Hero (Startseite) */

.hero { position: relative; min-height: min(92svh, 920px); display: grid; align-items: end; color: #fff; overflow: hidden; isolation: isolate; background: var(--ink); }
.hero-slides { position: absolute; inset: 0; z-index: -2; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1.6s ease; }
.hero-slide.is-active { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.06); }
.hero-slide.is-active img { animation: kenburns 9s ease-out forwards; }
@keyframes kenburns { from { transform: scale(1.12); } to { transform: scale(1.02); } }
.hero::after {
    content: ""; position: absolute; inset: 0; z-index: -1;
    background:
        linear-gradient(180deg, rgb(10 11 14 / .55) 0%, rgb(10 11 14 / .05) 30%, rgb(10 11 14 / .35) 55%, rgb(10 11 14 / .92) 100%),
        linear-gradient(90deg, rgb(10 11 14 / .75) 0%, rgb(10 11 14 / 0) 65%);
}
.hero-content { padding-block: calc(var(--header-h) + 60px) clamp(40px, 7vw, 88px); display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 2rem 3rem; align-items: end; }
.hero h1 { font-size: clamp(3rem, 9vw, 7.25rem); line-height: .9; margin-bottom: 1.25rem; text-shadow: 0 6px 40px rgb(0 0 0 / .35); }
.hero h1 em { font-style: normal; color: var(--yellow); }
.hero .lead { color: rgb(255 255 255 / .85); margin-bottom: 2rem; }
.hero-badge { display: inline-flex; align-items: center; gap: .6rem; padding: .45rem .9rem .45rem .5rem; margin-bottom: 1.5rem; border-radius: 999px; background: rgb(255 255 255 / .1); border: 1px solid rgb(255 255 255 / .2); backdrop-filter: blur(10px); font: 600 .85rem/1 var(--font-sans); }
.hero-badge b { display: inline-grid; place-items: center; height: 24px; padding: 0 .55rem; border-radius: 999px; background: var(--yellow); color: var(--ink); font-weight: 800; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-dots { display: flex; gap: .5rem; margin-top: 2rem; }
.hero-dots button { width: 28px; height: 4px; padding: 0; border: 0; border-radius: 4px; background: rgb(255 255 255 / .35); cursor: pointer; transition: width .3s, background-color .3s; }
.hero-dots button.is-active { width: 48px; background: #fff; }

.next-event {
    display: block; padding: 1.5rem; border-radius: var(--radius-lg); color: #fff; text-decoration: none;
    background: rgb(20 22 27 / .55); border: 1px solid rgb(255 255 255 / .16); backdrop-filter: blur(18px) saturate(1.4);
    box-shadow: var(--shadow-lg); transition: transform .3s var(--ease), border-color .3s;
}
.next-event:hover { transform: translateY(-4px); border-color: rgb(255 255 255 / .35); }
.next-event .eyebrow { color: var(--yellow); margin-bottom: .75rem; }
.next-event h3 { margin-bottom: .5rem; font-size: 1.9rem; text-transform: uppercase; }
.next-event p { margin: 0; color: rgb(255 255 255 / .8); display: flex; align-items: center; gap: .5rem; }
@media (max-width: 860px) { .hero-content { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Seitenkopf (Unterseiten) */

.page-hero { position: relative; padding: calc(var(--header-h) + clamp(48px, 8vw, 96px)) 0 clamp(40px, 6vw, 72px); background: var(--ink); color: #fff; overflow: hidden; isolation: isolate; }
.page-hero::before {
    content: ""; position: absolute; inset: 0; z-index: -1; opacity: .9;
    background: radial-gradient(900px 400px at 85% -10%, rgb(200 16 46 / .55), transparent 60%), radial-gradient(600px 300px at -10% 120%, rgb(200 16 46 / .25), transparent 60%);
}
.page-hero--image::before { background: linear-gradient(90deg, rgb(10 11 14 / .92), rgb(10 11 14 / .55)); opacity: 1; }
.page-hero-bg { position: absolute; inset: 0; z-index: -2; }
.page-hero-bg img { width: 100%; height: 100%; object-fit: cover; }
.page-hero h1 { margin-bottom: .75rem; max-width: 18ch; }
.page-hero .lead { color: rgb(255 255 255 / .8); margin: 0; }
.page-hero .eyebrow { color: var(--yellow); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 0 1.25rem; padding: 0; list-style: none; font-size: .9rem; color: rgb(255 255 255 / .6); }
.breadcrumb a { color: rgb(255 255 255 / .8); text-decoration: none; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }
.breadcrumb li + li::before { content: "/"; margin-right: .4rem; opacity: .5; }

/* ------------------------------------------------------------------ Kennzahlen */

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-radius: var(--radius-lg); overflow: hidden; background: var(--border); gap: 1px; box-shadow: var(--shadow); margin-top: calc(-1 * clamp(40px, 6vw, 64px)); position: relative; z-index: 2; }
.stat { background: var(--bg-elev); padding: clamp(20px, 3vw, 32px); }
.stat strong { display: block; font: 800 clamp(2.25rem, 4vw, 3.25rem)/1 var(--font-display); color: var(--accent-text); }
.stat span { color: var(--text-2); font-size: .95rem; }
@media (max-width: 760px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------------ Karten & Raster */

.grid { display: grid; gap: clamp(16px, 2.5vw, 28px); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }

.card {
    position: relative; display: flex; flex-direction: column; background: var(--bg-elev); border: 1px solid var(--border);
    border-radius: var(--radius-lg); overflow: hidden; color: inherit; text-decoration: none;
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s;
}
a.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card-media { aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-sunken); }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
a.card:hover .card-media img { transform: scale(1.06); }
.card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.5rem 1.6rem; flex: 1; }
.card-body h3 { margin: 0; }
.card-body p { margin: 0; color: var(--text-2); font-size: .98rem; }
.card-body .link-arrow { margin-top: auto; padding-top: .75rem; color: var(--accent-text); }
.card-tag { position: absolute; top: 14px; left: 14px; padding: .35rem .7rem; border-radius: 999px; background: rgb(15 17 21 / .75); color: #fff; font: 600 .75rem/1 var(--font-sans); letter-spacing: .04em; backdrop-filter: blur(6px); }

/* Terminkarte */
.event-card { display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; padding: 1.25rem; }
.event-card .card-body { padding: 0; gap: .35rem; }
.date-badge {
    display: grid; place-items: center; width: 78px; padding: .7rem 0 .6rem; border-radius: var(--radius); text-align: center;
    background: var(--red); color: #fff; box-shadow: 0 10px 22px -12px rgb(200 16 46 / .9);
}
.date-badge b { font: 800 2.2rem/1 var(--font-display); }
.date-badge span { font: 700 .78rem/1.2 var(--font-sans); letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.date-badge small { font: 500 .7rem/1 var(--font-sans); opacity: .75; margin-top: 2px; }
.date-badge--muted { background: var(--bg-sunken); color: var(--text); box-shadow: none; }
.event-meta { display: flex; flex-wrap: wrap; gap: .35rem 1rem; color: var(--text-3); font-size: .9rem; }
.event-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.event-meta .icon { width: 1rem; height: 1rem; }
.cal-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--dot, var(--red)); }

.event-list { display: grid; gap: 1rem; }
.event-row {
    display: grid; grid-template-columns: 88px 1fr auto; gap: 1.25rem; align-items: center; padding: 1rem 1.25rem 1rem 1rem;
    background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); color: inherit; text-decoration: none;
    transition: transform .3s var(--ease), box-shadow .3s, border-color .3s;
}
.event-row:hover { transform: translateX(4px); box-shadow: var(--shadow); border-color: transparent; }
.event-row h3 { margin: 0 0 .25rem; font-size: 1.5rem; }
.event-row .date-badge { width: 88px; }
.event-row > .icon { color: var(--text-3); width: 1.5rem; height: 1.5rem; transition: transform .3s var(--ease), color .3s; }
.event-row:hover > .icon { color: var(--accent-text); transform: translateX(4px); }
.event-row--past .date-badge { background: var(--ink-3); box-shadow: none; }
@media (max-width: 560px) { .event-row { grid-template-columns: 72px 1fr; } .event-row .date-badge { width: 72px; } .event-row > .icon { display: none; } .event-row h3 { font-size: 1.25rem; } }

.month-label { display: flex; align-items: center; gap: 1rem; margin: 2.5rem 0 1rem; font: 700 1.1rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); }
.month-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.month-label:first-child { margin-top: 0; }

/* Tabs / Segment */
.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--bg-sunken); border: 1px solid var(--border); }
.tabs a, .tabs button { padding: .55rem 1.1rem; border: 0; border-radius: 999px; background: transparent; color: var(--text-2); font: 600 .92rem/1 var(--font-sans); text-decoration: none; cursor: pointer; }
.tabs [aria-selected="true"], .tabs .is-active { background: var(--bg-elev); color: var(--text); box-shadow: var(--shadow-sm); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--border); color: var(--text-2); text-decoration: none; font: 600 .88rem/1 var(--font-sans); }
.chip:hover { border-color: var(--text-3); color: var(--text); }
.chip.is-active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* ------------------------------------------------------------------ Notruf-Band */

.emergency {
    position: relative; overflow: hidden; border-radius: var(--radius-lg); padding: clamp(28px, 5vw, 56px);
    background: linear-gradient(120deg, var(--red-700), var(--red) 55%, #e2283f); color: #fff; isolation: isolate;
    display: grid; grid-template-columns: auto 1fr; gap: clamp(24px, 4vw, 56px); align-items: center;
}
.emergency::before { content: "112"; position: absolute; right: -2%; bottom: -28%; z-index: -1; font: 800 clamp(10rem, 26vw, 22rem)/1 var(--font-display); color: rgb(255 255 255 / .08); letter-spacing: -.02em; }
.emergency-number { font: 800 clamp(5rem, 12vw, 9rem)/.8 var(--font-display); letter-spacing: -.02em; text-shadow: 0 8px 30px rgb(0 0 0 / .25); }
.emergency-number small { display: block; font: 700 .9rem/1.2 var(--font-sans); letter-spacing: .16em; text-transform: uppercase; margin-top: .75rem; opacity: .85; text-shadow: none; }
.emergency h2 { color: #fff; margin-bottom: 1rem; }
.w-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .6rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.w-list li { padding: .75rem .9rem; border-radius: var(--radius-sm); background: rgb(255 255 255 / .12); border: 1px solid rgb(255 255 255 / .18); font-weight: 500; font-size: .95rem; }
.w-list b { display: block; font: 800 1.35rem/1 var(--font-display); color: var(--yellow); }
@media (max-width: 760px) { .emergency { grid-template-columns: 1fr; } }

/* ------------------------------------------------------------------ Split / Feature */

.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(32px, 6vw, 88px); align-items: center; }
.split--reverse > :first-child { order: 2; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .split--reverse > :first-child { order: 0; } }
.media-frame { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--tilt { transform: rotate(-1.5deg); }
.media-stack { position: relative; }
.media-stack .media-frame + .media-frame { position: absolute; width: 46%; right: -4%; bottom: -12%; border: 6px solid var(--bg); transform: rotate(3deg); }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .75rem; align-items: start; }
.check-list .icon { color: var(--red); margin-top: .2rem; }

/* ------------------------------------------------------------------ Fließtext */

.prose { font-size: 1.075rem; color: var(--text); max-width: 72ch; }
.prose h2 { font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 2.2em 0 .6em; }
.event-heading { font-size: clamp(1.7rem, 3vw, 2.25rem); margin: 0 0 .6em; }
.prose h3 { font-size: 1.5rem; margin: 1.8em 0 .5em; }
.prose h4 { margin: 1.5em 0 .5em; }
.prose > :first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.2em; }
.prose li { margin-bottom: .45em; }
.prose li::marker { color: var(--red); }
.prose li > p { margin: 0; }
.prose img { border-radius: var(--radius); margin: 1.5em 0; }
.prose blockquote { margin: 1.5em 0; padding: 1em 1.5em; border-left: 4px solid var(--red); background: var(--bg-elev); border-radius: 0 var(--radius) var(--radius) 0; }
.prose hr { border: 0; height: 1px; background: var(--border); margin: 2.5em 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 1.5em 0; font-size: .95rem; }
.prose th, .prose td { padding: .6rem .75rem; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose strong { font-weight: 650; }
.content-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: clamp(32px, 5vw, 72px); align-items: start; }
.content-layout aside { position: sticky; top: calc(var(--header-h) + 24px); display: grid; gap: 1.25rem; }
@media (max-width: 960px) { .content-layout { grid-template-columns: 1fr; } .content-layout aside { position: static; } }

.panel { background: var(--bg-elev); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; }
.panel h3 { font-size: 1.35rem; margin-bottom: 1rem; }
.panel--accent { background: var(--red); color: #fff; border-color: transparent; }
.panel--accent a { color: #fff; }
.info-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.info-list li { display: flex; gap: .8rem; align-items: start; }
.info-list .icon { color: var(--accent-text); margin-top: .15rem; }
.panel--accent .info-list .icon { color: var(--yellow); }
.info-list small { display: block; color: var(--text-3); font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }

/* Downloads */
.file-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.file-item {
    display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: var(--radius); border: 1px solid var(--border);
    background: var(--bg-elev); color: inherit; text-decoration: none; transition: border-color .2s, transform .2s var(--ease), box-shadow .2s;
}
.file-item:hover { border-color: transparent; box-shadow: var(--shadow); transform: translateY(-2px); }
.file-icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--red-50); color: var(--accent-text); flex: none; font: 800 .72rem/1 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; }
.file-item .file-name { font-weight: 600; line-height: 1.3; word-break: break-word; }
.file-item .file-meta { display: block; color: var(--text-3); font-size: .85rem; font-weight: 400; }
.file-item .icon { margin-left: auto; color: var(--text-3); }

/* Galerie */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: .75rem; }
.gallery a { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--bg-sunken); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease), filter .3s; }
.gallery a:hover img { transform: scale(1.06); filter: brightness(1.05); }

/* Lightbox */
.lightbox { padding: 0; border: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: rgb(8 9 11 / .96); color: #fff; }
.lightbox::backdrop { background: rgb(8 9 11 / .9); }
.lightbox figure { margin: 0; height: 100%; display: grid; place-items: center; padding: 64px 16px; }
.lightbox img { max-width: min(1400px, 100%); max-height: calc(100dvh - 140px); object-fit: contain; border-radius: 8px; box-shadow: 0 30px 80px rgb(0 0 0 / .6); }
.lightbox figcaption { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: rgb(255 255 255 / .75); font-size: .9rem; }
.lightbox-btn { position: absolute; display: grid; place-items: center; width: 52px; height: 52px; border: 0; border-radius: 50%; background: rgb(255 255 255 / .1); color: #fff; cursor: pointer; transition: background-color .2s; }
.lightbox-btn:hover { background: rgb(255 255 255 / .22); }
.lightbox-close { top: 16px; right: 16px; }
.lightbox-prev { left: 16px; top: 50%; translate: 0 -50%; }
.lightbox-next { right: 16px; top: 50%; translate: 0 -50%; }

/* Chronik-Viewer */
.chronik { display: grid; gap: 1.5rem; }
.chronik-stage { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; padding: 14px; border-radius: var(--radius-lg); background: linear-gradient(180deg, #2a2420, #1a1612); box-shadow: var(--shadow-lg); perspective: 2000px; }
.chronik-stage img { width: 100%; aspect-ratio: 724 / 1024; object-fit: cover; background: #f3eee6; border-radius: 4px; box-shadow: 0 2px 10px rgb(0 0 0 / .35); transition: opacity .35s, transform .5s var(--ease); }
.chronik-stage.is-turning img { opacity: .2; }
.chronik-stage img:first-child { border-radius: 6px 2px 2px 6px; }
.chronik-stage img:last-child { border-radius: 2px 6px 6px 2px; }
.chronik-stage::after { content: ""; position: absolute; top: 14px; bottom: 14px; left: 50%; width: 30px; translate: -50% 0; background: linear-gradient(90deg, transparent, rgb(0 0 0 / .25), transparent); pointer-events: none; }
.chronik-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; }
.chronik-controls output { min-width: 9ch; text-align: center; font: 700 1.1rem/1 var(--font-display); letter-spacing: .08em; }
.chronik-thumbs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .5rem; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.chronik-thumbs button { flex: none; width: 64px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: none; cursor: pointer; scroll-snap-align: center; opacity: .6; transition: opacity .2s, border-color .2s; }
.chronik-thumbs button.is-active { border-color: var(--red); opacity: 1; }
.chronik-thumbs button:hover { opacity: 1; }
@media (max-width: 640px) { .chronik-stage { grid-template-columns: 1fr; } .chronik-stage img:last-child { display: none; } .chronik-stage::after { display: none; } }

/* ------------------------------------------------------------------ Formulare */

.form { display: grid; gap: 1.1rem; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1.1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-weight: 600; font-size: .92rem; }
.field input, .field textarea, .field select {
    width: 100%; min-height: 50px; padding: .8rem 1rem; border-radius: 12px; border: 1.5px solid var(--border);
    background: var(--bg-elev); color: var(--text); font: inherit; transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--text-3); }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--ring); }
.field .error { color: var(--accent-text); font-size: .88rem; font-weight: 500; }
.field.has-error input, .field.has-error textarea { border-color: var(--red); }
.checkbox { display: flex; gap: .75rem; align-items: start; font-size: .94rem; color: var(--text-2); }
.checkbox input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--red); flex: none; }
.hp { position: absolute; left: -9999px; }

.alert { display: flex; gap: .75rem; align-items: start; padding: 1rem 1.2rem; border-radius: var(--radius); margin-bottom: 1.25rem; font-weight: 500; }
.alert .icon { margin-top: .15rem; }
.alert--success { background: #e7f6ec; color: #13552b; border: 1px solid #bfe5cb; }
.alert--error { background: var(--red-50); color: #8b0b20; border: 1px solid #f5c2ca; }
:root[data-theme="dark"] .alert--success { background: #0f2a19; color: #9be3b4; border-color: #1d4a2d; }
:root[data-theme="dark"] .alert--error { color: #ffb3bd; border-color: #5a1d27; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .alert--success { background: #0f2a19; color: #9be3b4; border-color: #1d4a2d; } :root:not([data-theme="light"]) .alert--error { color: #ffb3bd; border-color: #5a1d27; } }
.toast-stack { position: fixed; z-index: 90; right: 16px; bottom: 16px; display: grid; gap: .5rem; max-width: min(420px, calc(100vw - 32px)); }
.toast-stack .alert { box-shadow: var(--shadow-lg); margin: 0; animation: toast-in .4s var(--ease); }
@keyframes toast-in { from { opacity: 0; transform: translateY(12px); } }

/* ------------------------------------------------------------------ Login / Intern */

.auth-shell { min-height: 100svh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.auth-visual { position: relative; overflow: hidden; color: #fff; display: grid; align-content: end; padding: clamp(32px, 5vw, 64px); isolation: isolate; }
.auth-visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.auth-visual::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgb(10 11 14 / .2), rgb(10 11 14 / .9)), linear-gradient(90deg, rgb(200 16 46 / .35), transparent); }
.auth-visual h2 { color: #fff; font-size: clamp(2.2rem, 4vw, 3.5rem); }
.auth-panel { display: grid; place-items: center; padding: calc(var(--header-h) + 24px) var(--gutter) 48px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: clamp(2.2rem, 4vw, 3rem); }
@media (max-width: 900px) { .auth-shell { grid-template-columns: 1fr; } .auth-visual { display: none; } }

.member-nav { display: flex; gap: .5rem; overflow-x: auto; padding: .4rem; margin-bottom: 2rem; border-radius: 999px; background: var(--bg-elev); border: 1px solid var(--border); scrollbar-width: none; }
.member-nav a { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border-radius: 999px; color: var(--text-2); text-decoration: none; font-weight: 600; white-space: nowrap; }
.member-nav a:hover { color: var(--text); background: var(--bg-sunken); }
.member-nav a[aria-current="page"] { background: var(--red); color: #fff; }
.member-nav form { margin-left: auto; }
.member-nav button { display: inline-flex; align-items: center; gap: .5rem; padding: .65rem 1.1rem; border: 0; border-radius: 999px; background: none; color: var(--text-2); font: 600 1rem/1 var(--font-sans); cursor: pointer; white-space: nowrap; }
.member-nav button:hover { background: var(--bg-sunken); color: var(--text); }

.tile { display: flex; flex-direction: column; gap: .75rem; padding: 1.5rem; border-radius: var(--radius-lg); background: var(--bg-elev); border: 1px solid var(--border); color: inherit; text-decoration: none; transition: transform .3s var(--ease), box-shadow .3s; }
a.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--red-50); color: var(--accent-text); }
.tile-icon .icon { width: 26px; height: 26px; }
.tile strong { font: 800 2.4rem/1 var(--font-display); }
.tile h3 { margin: 0; font-size: 1.4rem; }
.tile p { margin: 0; color: var(--text-2); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.list-plain li { padding: .8rem 0; border-bottom: 1px solid var(--border); }
.list-plain li:last-child { border-bottom: 0; }
.list-plain a { color: inherit; text-decoration: none; font-weight: 600; }
.list-plain a:hover { color: var(--accent-text); }
.empty { padding: 2.5rem; text-align: center; color: var(--text-3); border: 1.5px dashed var(--border); border-radius: var(--radius-lg); }

.mail-frame { width: 100%; min-height: 70vh; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }

/* ------------------------------------------------------------------ Footer */

.site-footer { background: var(--ink); color: #c9cdd4; padding: clamp(56px, 8vw, 96px) 0 32px; position: relative; overflow: hidden; }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--red), var(--yellow), var(--red)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(28px, 4vw, 56px); }
.site-footer h4 { color: #fff; font-size: 1.1rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.site-footer a { color: #c9cdd4; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer .brand { color: #fff; margin-bottom: 1.25rem; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; margin-top: clamp(40px, 6vw, 72px); padding-top: 24px; border-top: 1px solid rgb(255 255 255 / .1); font-size: .9rem; color: #8b919d; }
.footer-bottom nav { display: flex; gap: 1.25rem; }
.footer-wordmark { position: absolute; right: -1%; bottom: -6%; font: 800 clamp(6rem, 18vw, 16rem)/1 var(--font-display); color: rgb(255 255 255 / .03); text-transform: uppercase; pointer-events: none; user-select: none; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-grid > :first-child { grid-column: 1 / -1; } }

/* ------------------------------------------------------------------ Animation beim Scrollen */

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--delay, 0s); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
}

/* Druck */
@media print {
    .site-header, .site-footer, .hero-dots, .btn, .member-nav { display: none !important; }
    .page-hero { background: none; color: #000; padding: 0 0 1rem; }
    body { background: #fff; color: #000; }
}

/* Korrekturen */
.site-footer a.btn, .site-footer a.btn:hover { color: var(--btn-fg); text-decoration: none; }
:root[data-theme="dark"] .section--dark { background: #171a20; border-block: 1px solid #22262e; }
:root[data-theme="dark"] .section--sunken { background: #0b0d10; }
@media (max-width: 560px) {
    .header-inner { gap: .5rem; }
    .header-actions { gap: .15rem; }
    .header-actions .theme-toggle { display: none; }
    .icon-btn { width: 40px; height: 40px; }
    .emergency-pill { padding: .55rem .75rem; }
    .brand-text strong { font-size: 1.4rem; }
}

/* ------------------------------------------------------------------ Kopfbereich: größer & kontrastreicher */
:root { --header-h: 92px; --container: 1320px; }
.header-inner { gap: 2rem; }
.brand { gap: .9rem; }
.brand img { width: 60px; height: 60px; }
.brand-text small { font-size: .78rem; letter-spacing: .16em; opacity: .9; }
.brand-text strong { font-size: 2.15rem; letter-spacing: .03em; }
.main-nav ul { gap: .35rem; }
.main-nav a { padding: .75rem 1rem; font-size: 1.08rem; font-weight: 650; letter-spacing: .01em; }
.main-nav a[aria-current="page"]::after { left: 1rem; right: 1rem; bottom: .25rem; height: 3px; }
.header-actions { gap: .6rem; }
.icon-btn { width: 46px; height: 46px; }
.icon-btn .icon { width: 1.4em; height: 1.4em; }
.emergency-pill { padding: .7rem 1.15rem; font-size: 1.2rem; }

/* Über dem Slider: dunkler Verlauf hinter dem Kopfbereich + Textschatten */
.site-header--overlay::after {
    content: ""; position: absolute; inset: 0 0 -40px; z-index: -2; pointer-events: none;
    background: linear-gradient(180deg, rgb(8 9 12 / .82) 0%, rgb(8 9 12 / .55) 55%, rgb(8 9 12 / 0) 100%);
    transition: opacity .3s;
}
.site-header--overlay.is-scrolled::after { opacity: 0; }
.site-header--overlay:not(.is-scrolled) .brand-text,
.site-header--overlay:not(.is-scrolled) .main-nav a { text-shadow: 0 1px 2px rgb(0 0 0 / .6), 0 2px 14px rgb(0 0 0 / .45); }
.site-header--overlay:not(.is-scrolled) .main-nav a:hover { background: rgb(255 255 255 / .14); }
.site-header--overlay:not(.is-scrolled) .icon-btn { background: rgb(8 9 12 / .35); }
.site-header--overlay:not(.is-scrolled) .icon-btn:hover { background: rgb(255 255 255 / .18); }
.site-header.is-scrolled { --header-h: 92px; }

/* Burger-Menü früher aktivieren, da die Navigation jetzt breiter ist */
@media (max-width: 1240px) {
    .nav-toggle { display: inline-grid; }
    .main-nav {
        position: fixed; inset: 0; z-index: 60; margin: 0; padding: calc(var(--header-h) + 12px) var(--gutter) 32px;
        background: var(--ink); color: #fff; overflow-y: auto;
        opacity: 0; visibility: hidden; transform: translateY(-12px); transition: opacity .3s, transform .3s var(--ease), visibility .3s;
    }
    .main-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
    .main-nav a { padding: 1rem 0; border-radius: 0; border-bottom: 1px solid rgb(255 255 255 / .1); font: 700 2rem/1 var(--font-display); text-transform: uppercase; text-shadow: none !important; }
    .main-nav a:hover { background: none !important; color: var(--yellow); }
    .main-nav a[aria-current="page"] { color: var(--yellow); }
    .main-nav a[aria-current="page"]::after { display: none; }
    body.nav-open { overflow: hidden; }
    body.nav-open .main-nav { opacity: 1; visibility: visible; transform: none; }
    body.nav-open .site-header { color: #fff; }
    body.nav-open .site-header::before, body.nav-open .site-header::after { opacity: 0; }
    .header-actions { margin-left: auto; position: relative; z-index: 61; }
    .brand { position: relative; z-index: 61; }
}
@media (max-width: 560px) {
    :root { --header-h: 76px; }
    .brand img { width: 46px; height: 46px; }
    .brand-text strong { font-size: 1.6rem; }
    .brand-text small { font-size: .66rem; }
    .icon-btn { width: 42px; height: 42px; }
    .emergency-pill { padding: .55rem .8rem; font-size: 1.05rem; }
}
@media (max-width: 400px) { .brand-text small { display: none; } .brand-text strong { font-size: 1.45rem; } }

/* Hero: oberen Bereich stärker abdunkeln */
.hero::after {
    background:
        linear-gradient(180deg, rgb(10 11 14 / .7) 0%, rgb(10 11 14 / .2) 26%, rgb(10 11 14 / .35) 55%, rgb(10 11 14 / .92) 100%),
        linear-gradient(90deg, rgb(10 11 14 / .75) 0%, rgb(10 11 14 / 0) 65%);
}

/* Kopfbereich über dem Slider: weich auslaufender Glas-/Blur-Effekt */
.site-header--overlay::after {
    inset: 0 0 -28px;
    background: linear-gradient(180deg, rgb(8 9 12 / .62) 0%, rgb(8 9 12 / .38) 70%, rgb(8 9 12 / .1) 100%);
    -webkit-backdrop-filter: blur(18px) saturate(1.5);
    backdrop-filter: blur(18px) saturate(1.5);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 0%, #000 62%, transparent 100%);
}
.site-header--overlay:not(.is-scrolled) .brand-text,
.site-header--overlay:not(.is-scrolled) .main-nav a { text-shadow: 0 1px 3px rgb(0 0 0 / .45); }
.site-header--overlay:not(.is-scrolled) .icon-btn { background: rgb(255 255 255 / .1); }
@media (max-width: 1240px) { body.nav-open .site-header::after { opacity: 0; } }

/* ------------------------------------------------------------------ Geschichte */
.history-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.prose--intro > p:first-child { font-size: clamp(1.2rem, 1.8vw, 1.45rem); line-height: 1.55; color: var(--text); font-weight: 450; margin-bottom: 1.5em; }
.prose--intro h2 {
    display: flex; align-items: center; gap: .75rem; margin: 2.2em 0 .9em;
    font-size: clamp(1.35rem, 2.2vw, 1.7rem); text-transform: none; letter-spacing: 0;
}
.prose--intro h2::before { content: ""; width: 32px; height: 3px; border-radius: 3px; background: var(--red); flex: none; }
.prose--intro p { color: var(--text-2); }
.history-figure { position: sticky; top: calc(var(--header-h) + 32px); margin: 0; }
.history-figure figcaption { margin-top: .9rem; color: var(--text-3); font-size: .9rem; }
.history-badge {
    position: absolute; left: -28px; bottom: 44px; display: flex; align-items: center; gap: .75rem;
    padding: .9rem 1.2rem; border-radius: var(--radius); background: var(--red); color: #fff; box-shadow: var(--shadow-lg);
}
.history-badge b { font: 800 2.8rem/1 var(--font-display); }
.history-badge span { font: 600 .82rem/1.25 var(--font-sans); letter-spacing: .04em; text-transform: uppercase; opacity: .9; }
@media (max-width: 900px) {
    .history-intro { grid-template-columns: 1fr; }
    .history-figure { position: relative; top: 0; }
    .history-badge { left: 12px; bottom: 52px; }
}

.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1.25rem; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 30px; height: 2px; background: linear-gradient(90deg, var(--red), var(--yellow)); opacity: .6; }
.timeline-item { position: relative; padding-top: 64px; }
.timeline-item::before { content: ""; position: absolute; top: 22px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--ink); border: 3px solid var(--yellow); box-shadow: 0 0 0 6px rgb(255 204 0 / .12); }
.timeline-year { display: block; font: 800 2.4rem/1 var(--font-display); color: var(--yellow); margin-bottom: .4rem; }
.timeline-item h3 { font-size: 1.35rem; margin-bottom: .4rem; color: #fff; }
.timeline-item p { margin: 0; color: var(--text-2); font-size: .97rem; }
@media (max-width: 960px) {
    .timeline { grid-template-columns: 1fr; gap: 0; padding-left: 36px; }
    .timeline::before { left: 8px; right: auto; top: 6px; bottom: 6px; width: 2px; height: auto; background: linear-gradient(180deg, var(--red), var(--yellow)); }
    .timeline-item { padding: 0 0 2rem; }
    .timeline-item::before { left: -36px; top: 8px; }
}

/* Login-Grafik */
.auth-visual img.auth-emblem { position: static; width: 96px; height: 96px; margin-bottom: 1.5rem; z-index: auto; border-radius: 50%; box-shadow: 0 12px 40px -10px rgb(200 16 46 / .9); }
.auth-visual::after { background: linear-gradient(180deg, rgb(10 11 14 / 0) 40%, rgb(10 11 14 / .75)); }

/* Notruf-Kasten in der Seitenleiste */
.call-112 {
    display: grid; gap: .25rem; padding: 1.4rem 1.5rem; border-radius: var(--radius-lg); text-decoration: none; color: #fff;
    background: linear-gradient(135deg, var(--red-700), var(--red) 60%, #e2283f); box-shadow: 0 18px 40px -18px rgb(200 16 46 / .9);
    transition: transform .25s var(--ease);
}
.call-112:hover { transform: translateY(-3px); }
.call-112-label { display: flex; align-items: center; gap: .5rem; font: 700 .8rem/1 var(--font-sans); letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.call-112 b { font: 800 4.5rem/1 var(--font-display); letter-spacing: -.01em; }
.call-112 span:last-child { font-size: .92rem; opacity: .85; }

/* Download-Karten im Fließtext */
.prose .file-list--content { list-style: none; padding: 0; margin: 1.25rem 0 2rem; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: .75rem; }
.prose .file-list--content li { margin: 0; }
.prose .file-list--content a { text-decoration: none; color: inherit; }

/* Seitenkopf mit Illustration (Ratgeber): Bild rechts, weich nach links auslaufend */
.page-hero--illustration { background: #0d0f13; }
.page-hero--illustration::before { opacity: .6; }
.page-hero--illustration .page-hero-bg { left: auto; width: min(62%, 980px); }
.page-hero--illustration .page-hero-bg img {
    object-fit: cover; object-position: 72% center;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 38%);
}
@media (max-width: 760px) {
    .page-hero--illustration .page-hero-bg { width: 100%; opacity: .35; }
}

.panel-media { width: calc(100% + 3rem); max-width: none; margin: -1.5rem -1.5rem 1.25rem; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

/* Illustrationen im Seitenkopf vollständig zeigen */
.page-hero--illustration .page-hero-bg img { object-fit: contain; object-position: right center; }

/* Standort-Abschnitt in Terminen */
.location-card { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); margin-top: 3rem; border-radius: var(--radius-lg); overflow: hidden; background: #0f1115; color: #eef0f3; box-shadow: var(--shadow); }
.location-card img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16 / 10; }
.location-card-body { padding: clamp(20px, 3vw, 32px); display: flex; flex-direction: column; justify-content: center; }
.location-card-body h2 { color: #fff; font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-bottom: .75rem; }
.location-card-body .eyebrow { color: var(--yellow); }
.location-card-body p { color: #c9cdd4; }
.location-card .btn--ghost { --btn-fg: #fff; --btn-bd: rgb(255 255 255 / .3); }
.location-card .btn--ghost:hover { background: rgb(255 255 255 / .1); }
@media (max-width: 700px) { .location-card { grid-template-columns: 1fr; } }

/* Ratgeber: Service-Bereich in voller Breite */
.service-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.service-facts { display: grid; gap: 1.25rem; }
.fact-card {
    position: relative; padding: clamp(24px, 3vw, 36px); border-radius: var(--radius-lg); color: #eef0f3; overflow: hidden;
    background: radial-gradient(500px 260px at 100% 0%, rgb(200 16 46 / .5), transparent 70%), var(--ink);
    box-shadow: var(--shadow);
}
.fact-card-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: rgb(255 204 0 / .15); color: var(--yellow); margin-bottom: 1rem; }
.fact-card h3 { color: #fff; font-size: 1.6rem; margin-bottom: .6rem; }
.fact-card .prose { color: #c9cdd4; font-size: 1rem; }
.fact-card .prose p:last-child { margin-bottom: 0; }
.service-downloads { margin-top: clamp(48px, 7vw, 88px); padding-top: clamp(32px, 5vw, 56px); border-top: 1px solid var(--border); }
.prose--wide { max-width: none; }
.prose--wide .file-list--content { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); margin: 0; }
@media (max-width: 900px) { .service-grid { grid-template-columns: 1fr; } }
.fact-card-icon .icon { width: 26px; height: 26px; }
.fact-stat { font: 800 clamp(4rem, 8vw, 6rem)/.9 var(--font-display); color: var(--yellow); margin-bottom: .5rem; letter-spacing: -.01em; }
.fact-stat small { font-size: .5em; margin-left: .08em; }
.fact-card .prose { font-size: 1.02rem; line-height: 1.6; }

/* Merkblätter: einzeilige Titel, gleich hohe Karten */
.prose--wide .file-list--content { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }
.file-list--content li { display: flex; }
.file-list--content .file-item { width: 100%; }
@media (min-width: 600px) { .file-list--content .file-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; } }
.file-list--content .file-item > span:nth-child(2) { min-width: 0; flex: 1; }
.panel--link { display: block; color: inherit; text-decoration: none; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s; }
.panel--link:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.panel--link:hover .link-arrow .icon { transform: translateX(3px); }
.auth-visual::after { background: linear-gradient(180deg, rgb(10 11 14 / 0) 35%, rgb(10 11 14 / .8)); }

/* Seitenkopf mit Foto und Bewegung (Standort): langsamer Zoom + Parallaxe */
.page-hero--motion { min-height: clamp(380px, 52vh, 560px); display: grid; align-items: end; }
.page-hero--motion .page-hero-bg { inset: -60px 0 -60px; will-change: transform; }
.page-hero--motion .page-hero-bg img { object-position: center 60%; animation: hero-zoom 16s ease-out both; }
.page-hero--motion.page-hero--image::before {
    background:
        linear-gradient(180deg, rgb(10 11 14 / .55) 0%, rgb(10 11 14 / .1) 35%, rgb(10 11 14 / .85) 100%),
        linear-gradient(90deg, rgb(10 11 14 / .8) 0%, rgb(10 11 14 / .15) 60%);
}
.page-hero--motion::after {
    content: ""; position: absolute; inset: auto 0 0; height: 5px; z-index: 1;
    background: linear-gradient(90deg, var(--red), var(--yellow), var(--red)); background-size: 200% 100%;
    animation: hero-line 6s linear infinite;
}
@keyframes hero-zoom { from { transform: scale(1.18); filter: saturate(.85); } to { transform: scale(1.02); filter: saturate(1.05); } }
@keyframes hero-line { to { background-position: -200% 0; } }

/* Seitenkopf mit Fotokarten (Standort): Fotos in Originalgröße = scharf, Hintergrund bewusst weichgezeichnet */
.page-hero--photos { padding-bottom: clamp(48px, 7vw, 88px); }
.page-hero-bg--blur img { filter: blur(26px) saturate(1.3) brightness(.55); transform: scale(1.25); }
.page-hero--photos::before { background: linear-gradient(90deg, rgb(10 11 14 / .85) 0%, rgb(10 11 14 / .35) 70%), radial-gradient(700px 300px at 80% 110%, rgb(200 16 46 / .45), transparent 70%); opacity: 1; }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(24px, 5vw, 72px); align-items: center; }
.hero-photos { position: relative; height: clamp(260px, 26vw, 360px); }
.hero-photo {
    position: absolute; margin: 0; padding: 10px 10px 34px; background: #fff; border-radius: 6px;
    box-shadow: 0 30px 60px -20px rgb(0 0 0 / .65), 0 8px 20px -10px rgb(0 0 0 / .4);
    transition: transform .5s var(--ease);
}
.hero-photo img { display: block; width: 100%; height: auto; border-radius: 2px; }
.hero-photo figcaption { position: absolute; left: 14px; bottom: 9px; font: 700 .95rem/1 var(--font-display); letter-spacing: .08em; text-transform: uppercase; color: #1a1d23; }
.hero-photo--1 { width: min(100%, 560px); right: 8%; top: 0; transform: rotate(-3deg); animation: photo-in-1 .9s var(--ease) both; }
.hero-photo--2 { width: min(48%, 300px); right: 0; bottom: -10px; transform: rotate(5deg); animation: photo-in-2 .9s .15s var(--ease) both; z-index: 1; }
.hero-photos:hover .hero-photo--1 { transform: rotate(-1deg) translateY(-6px); }
.hero-photos:hover .hero-photo--2 { transform: rotate(2deg) translateY(-10px); }
@keyframes photo-in-1 { from { opacity: 0; transform: translateY(40px) rotate(-8deg); } to { opacity: 1; transform: rotate(-3deg); } }
@keyframes photo-in-2 { from { opacity: 0; transform: translateY(60px) rotate(12deg); } to { opacity: 1; transform: rotate(5deg); } }
@media (max-width: 860px) {
    .page-hero-split { grid-template-columns: 1fr; }
    .hero-photos { height: auto; aspect-ratio: 16 / 9; margin-top: 1rem; }
    .hero-photo--1 { width: 82%; right: auto; left: 0; }
    .hero-photo--2 { width: 46%; }
}

/* Fotoraster "Einblicke" */
.photo-grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: clamp(150px, 17vw, 250px); gap: clamp(8px, 1.2vw, 16px); }
.photo-grid-item { position: relative; display: block; overflow: hidden; border-radius: var(--radius); background: var(--bg-sunken); }
.photo-grid-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.photo-grid-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease), filter .3s; }
.photo-grid-item:hover img { transform: scale(1.06); filter: brightness(1.06); }
.photo-grid-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 60%, rgb(0 0 0 / .35)); opacity: 0; transition: opacity .3s; }
.photo-grid-item:hover::after { opacity: 1; }
@media (max-width: 760px) { .photo-grid { grid-template-columns: repeat(2, 1fr); } .photo-grid-item:nth-child(1) { grid-row: span 1; } }

/* Damals & heute */
.then-now { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(16px, 3vw, 40px); }
.then-now-item { margin: 0; }
.then-now-item a { position: relative; display: block; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); }
.then-now-item img { width: 100%; aspect-ratio: 16 / 9.3; object-fit: cover; transition: transform .6s var(--ease); }
.then-now-item a:hover img { transform: scale(1.04); }
.then-now-year { position: absolute; left: 16px; bottom: 14px; padding: .35rem .8rem; border-radius: 999px; background: var(--red); color: #fff; font: 800 1.5rem/1 var(--font-display); letter-spacing: .04em; box-shadow: 0 8px 20px -8px rgb(0 0 0 / .6); }
.then-now-item:first-child .then-now-year { background: var(--ink); }
.then-now-item figcaption { margin-top: .75rem; font-weight: 600; }
@media (max-width: 760px) { .then-now { grid-template-columns: 1fr; } }
.page-hero--image .page-hero-bg img { object-position: center 35%; }

/* Pressespiegel: Zeitungsausschnitte in Originalgröße (nie vergrößert) */
.press-heading { margin-top: 2.5rem; }
.clippings { display: flex; flex-wrap: wrap; align-items: flex-start; gap: clamp(18px, 2.5vw, 30px); margin: 1.25rem 0 2.25rem; }
.press-prose h2 + .clippings { margin-top: .75rem; }
.clipping {
    display: block; flex: 0 1 auto; max-width: 100%; padding: 14px; cursor: zoom-in;
    background: #fbf8f1; border-radius: 4px; box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 16px 32px -18px rgb(0 0 0 / .45);
    transform: rotate(var(--tilt, 0deg)); transition: transform .35s var(--ease), box-shadow .35s;
}
.clipping:hover { transform: rotate(0) translateY(-4px); box-shadow: 0 1px 2px rgb(0 0 0 / .08), 0 24px 40px -18px rgb(0 0 0 / .5); }
.clipping img { display: block; width: auto; height: auto; max-width: 100%; max-height: 820px; margin: 0 auto; }
.press-hint { display: flex; gap: .5rem; align-items: flex-start; margin: 1rem 0 0; font-size: .875rem; }
.press-hint .icon { flex: none; margin-top: .15em; }
.press-source { margin: 1rem 0 0; padding-top: 1rem; border-top: 1px solid var(--border); font-size: .875rem; line-height: 1.5; }
.press-source small { display: block; color: var(--text-3); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
:root[data-theme="dark"] .clipping { background: #e9e4d8; }

/* Presse-Karten: Schlagzeile (oberer Teil) zeigen */
.card-media img[src*="/Presse/"] { object-position: top center; }
