/* =========================================================
   AFKDO Allentsteig – Stylesheet
   Design: hell & offiziell – Weiß, Rot-Weiß-Rot-Akzente,
   sachliche Typografie, viel Weißraum.
   ========================================================= */

:root {
  --rot: #c8102e;
  --rot-dunkel: #a00d25;
  --rot-hell: #fdf0f2;
  --text: #1f2328;
  --text-leise: #5b626b;
  --linie: #dfe2e6;
  --flaeche: #f4f5f7;
  --weiss: #ffffff;
  --gold: #b88a1b;
  --radius: 4px;
  --breite: 1160px;
  /* Nur Systemschriften: keine Verbindung zu Google Fonts (DSGVO).
     Eigene Schrift: WOFF2 lokal in assets/fonts ablegen und per @font-face einbinden. */
  --schrift: "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --schrift-titel: var(--schrift);

  /* Flächen und Ränder (werden im dunklen Modus umgestellt) */
  --karte: #ffffff;          /* Kästen, Karten, Tabellen, Kopfzeile */
  --rand-stark: #c3c8ce;     /* Eingabefelder, Hover-Ränder */
  --rot-rand: #f3c9d0;
  --rot-voll: #c8102e;       /* rote Flächen mit weißer Schrift (Knöpfe, Datum) */
  --rot-voll-dunkel: #a00d25;
  --gelb-hell: #fff6e0; --gelb-text: #6e4b00; --gelb-rand: #f0dca6;
  --blau-hell: #eaf2fb; --blau-text: #0f4c8a; --blau-rand: #c7dbf1;
  --gruen-hell: #eaf5ec; --gruen-text: #1d6b35; --gruen-rand: #c6e3cc;
  --schatten: rgba(0,0,0,.08);
  color-scheme: light;
}

/* ---------- Dunkler Modus ----------
   Folgt automatisch der Einstellung des Geräts; der Knopf oben rechts
   übersteuert das (data-farbschema="hell" / "dunkel" auf <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-farbschema="hell"]) {
    --rot: #f0566b; --rot-dunkel: #ff8394; --rot-hell: #3a1d23; --rot-rand: #66303a;
    --rot-voll: #c8102e; --rot-voll-dunkel: #e0233f;
    --text: #e7e9ec; --text-leise: #a5acb5; --linie: #30353c; --flaeche: #171a1e; --weiss: #101215;
    --karte: #1c2026; --rand-stark: #4a515a;
    --gelb-hell: #3a2f12; --gelb-text: #f1d48a; --gelb-rand: #5e4c1c;
    --blau-hell: #14273d; --blau-text: #9cc4f0; --blau-rand: #24476d;
    --gruen-hell: #15301e; --gruen-text: #9ad6aa; --gruen-rand: #275436;
    --schatten: rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-farbschema="dunkel"] {
  --rot: #f0566b; --rot-dunkel: #ff8394; --rot-hell: #3a1d23; --rot-rand: #66303a;
  --rot-voll: #c8102e; --rot-voll-dunkel: #e0233f;
  --text: #e7e9ec; --text-leise: #a5acb5; --linie: #30353c; --flaeche: #171a1e; --weiss: #101215;
  --karte: #1c2026; --rand-stark: #4a515a;
  --gelb-hell: #3a2f12; --gelb-text: #f1d48a; --gelb-rand: #5e4c1c;
  --blau-hell: #14273d; --blau-text: #9cc4f0; --blau-rand: #24476d;
  --gruen-hell: #15301e; --gruen-text: #9ad6aa; --gruen-rand: #275436;
  --schatten: rgba(0,0,0,.45);
  color-scheme: dark;
}
/* Kartenkacheln (OpenStreetMap) im dunklen Modus etwas abdunkeln */
:root[data-farbschema="dunkel"] .leaflet-tile-pane { filter: brightness(.82) contrast(1.05); }
@media (prefers-color-scheme: dark) { :root:not([data-farbschema="hell"]) .leaflet-tile-pane { filter: brightness(.82) contrast(1.05); } }

/* Umschalter hell/dunkel in der Servicezeile */
.topbar-rechts { display: inline-flex; align-items: center; gap: 18px; }
.modus-knopf { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: .82rem; font-weight: 600; color: var(--text); background: var(--karte); border: 1px solid var(--linie); border-radius: 999px; padding: 2px 11px 2px 8px; cursor: pointer; line-height: 1.6; }
.modus-knopf:hover { border-color: var(--rot); color: var(--rot); }
.modus-knopf svg { width: 15px; height: 15px; flex: none; }

/* Pfeil "Nach oben" rechts unten (erscheint nach dem Scrollen) */
.nach-oben { position: fixed; right: 20px; bottom: 20px; z-index: 900; width: 46px; height: 46px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 50%; background: var(--rot-voll); color: #fff; box-shadow: 0 4px 14px var(--schatten); cursor: pointer; opacity: 0; visibility: hidden; transform: translateY(12px); transition: opacity .2s, transform .2s, visibility .2s, background-color .15s; }
.nach-oben.sichtbar { opacity: 1; visibility: visible; transform: none; }
.nach-oben:hover { background: var(--rot-voll-dunkel); }
.nach-oben:focus-visible { outline: 3px solid var(--text); outline-offset: 3px; }
.nach-oben svg { width: 22px; height: 22px; }
@media (max-width: 640px) { .nach-oben { right: 14px; bottom: 14px; width: 42px; height: 42px; } }
@media (prefers-reduced-motion: reduce) { .nach-oben { transition: none; } }
@media print { .nach-oben { display: none; } }

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--schrift); font-size: 1.0625rem; line-height: 1.65; color: var(--text); background: var(--weiss); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--rot); text-underline-offset: 3px; }
a:hover { color: var(--rot-dunkel); }
h1, h2, h3, h4 { font-family: var(--schrift-titel); font-weight: 600; line-height: 1.2; color: var(--text); margin: 0 0 .5em; }
h1 { font-size: clamp(2rem, 4.2vw, 2.9rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 2.8vw, 1.95rem); }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--breite); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--text); color: #fff; padding: 8px 14px; z-index: 1000; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--rot); outline-offset: 2px; }

/* Rot-Weiß-Rot-Band */
.rwr { height: 6px; background: linear-gradient(to right, var(--rot) 0 33.33%, #fff 33.33% 66.66%, var(--rot) 66.66%); border-bottom: 1px solid var(--linie); }
.rwr-strich { display: block; width: 72px; height: 4px; margin: 14px 0 0; background: linear-gradient(to right, var(--rot) 0 33.33%, var(--linie) 33.33% 66.66%, var(--rot) 66.66%); }

/* ---------- Servicezeile ---------- */
/* Der Kopf-Behälter darf das Mitlaufen der Menüleiste nicht begrenzen */
#kopf { display: contents; }
.topbar { background: var(--flaeche); color: var(--text-leise); font-size: .84rem; border-bottom: 1px solid var(--linie); }
.topbar .container { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 36px; }
.topbar a { color: var(--text); text-decoration: none; }
.topbar a:hover { color: var(--rot); }
.topbar .notruf { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.topbar .notruf b a { color: var(--rot); font-size: 1rem; }
@media (max-width: 760px) { .topbar .container > span:first-child { display: none; } .topbar .container { justify-content: flex-end; } }

/* ---------- Kopf ---------- */
/* Band, Servicezeile und Menü bleiben beim Scrollen gemeinsam oben stehen */
.kopf-fest { position: sticky; top: 0; z-index: 100; }
.site-header { position: relative; background: var(--karte); border-bottom: 1px solid var(--linie); }
.site-header .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 84px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--text); }
.brand-logo { width: 62px; height: auto; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; padding-left: 14px; border-left: 1px solid var(--linie); }
.brand-text small { font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rot); }
.brand-text strong { font-size: 1.12rem; font-weight: 700; max-width: 15em; }
@media (max-width: 1240px) and (min-width: 1121px) { .nav a { padding-left: 7px; padding-right: 7px; } }
@media (max-width: 480px) {
  .brand { gap: 10px; }
  .brand-logo { width: 46px; }
  .brand-text { padding-left: 10px; }
  .brand-text small { font-size: .62rem; letter-spacing: .04em; }
  .brand-text strong { font-size: .92rem; }
}

.nav ul { list-style: none; margin: 0; padding: 0; display: flex; }
.nav a { display: block; padding: 30px 10px 27px; text-decoration: none; color: var(--text); font-weight: 600; font-size: .9rem; border-bottom: 3px solid transparent; white-space: nowrap; }
.nav a:hover { color: var(--rot); }
.nav a[aria-current="page"] { color: var(--rot); border-bottom-color: var(--rot); }
.nav-toggle { display: none; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 8px 10px; cursor: pointer; color: var(--text); }
.nav-toggle svg { width: 24px; height: 24px; display: block; }

@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; background: var(--karte); border-bottom: 1px solid var(--linie); display: none; box-shadow: 0 8px 20px rgba(0,0,0,.08); }
  .nav.offen { display: block; max-height: calc(100vh - 130px); max-height: calc(100dvh - 130px); overflow-y: auto; overscroll-behavior: contain; }
  .nav ul { flex-direction: column; padding: 6px 0 12px; }
  .nav a { padding: 12px 20px; border-bottom: 0; border-left: 3px solid transparent; }
  .nav a[aria-current="page"] { border-left-color: var(--rot); background: var(--rot-hell); }
  .site-header .container { min-height: 72px; }
}

/* ---------- Dropdown-Untermenüs ---------- */
.nav .hat-unter { position: relative; display: flex; align-items: center; }
.unter-toggle { display: none; }
.nav .untermenue { position: absolute; top: 100%; left: 0; min-width: 260px; flex-direction: column; background: var(--karte); border: 1px solid var(--linie); border-top: 3px solid var(--rot); border-radius: 0 0 var(--radius) var(--radius); box-shadow: 0 10px 24px rgba(0,0,0,.10); padding: 6px 0; z-index: 200; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.nav .untermenue a { padding: 9px 18px; border-bottom: 0; font-weight: 500; font-size: .92rem; white-space: nowrap; }
.nav .untermenue a:hover, .nav .untermenue a:focus-visible { background: var(--rot-hell); color: var(--rot-dunkel); }
/* Pfeil am Menüpunkt (Desktop) */
@media (min-width: 1121px) {
  .nav .hat-unter > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-3px); opacity: .55; }
  .nav .hat-unter:hover > .untermenue, .nav .hat-unter:focus-within > .untermenue, .nav .hat-unter.auf > .untermenue { opacity: 1; visibility: visible; transform: translateY(0); }
  .nav .hat-unter:last-of-type .untermenue { left: auto; right: 0; }
}
/* Handy: Untermenü per Pfeil-Knopf aufklappen */
@media (max-width: 1120px) {
  .nav .hat-unter { flex-wrap: wrap; }
  .nav .hat-unter > a { flex: 1; }
  .unter-toggle { display: block; width: 52px; align-self: stretch; background: none; border: 0; border-left: 1px solid var(--linie); cursor: pointer; position: relative; }
  .unter-toggle::before { content: ""; position: absolute; left: 50%; top: 50%; width: 9px; height: 9px; border-right: 2px solid var(--text-leise); border-bottom: 2px solid var(--text-leise); transform: translate(-50%, -70%) rotate(45deg); transition: transform .2s; }
  .hat-unter.auf .unter-toggle::before { transform: translate(-50%, -30%) rotate(-135deg); border-color: var(--rot); }
  .nav .untermenue { position: static; width: 100%; min-width: 0; display: none; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-radius: 0; background: var(--flaeche); padding: 4px 0; }
  .nav .hat-unter.auf > .untermenue { display: flex; }
  .nav .untermenue a { padding: 10px 20px 10px 36px; white-space: normal; }
}

/* Sprungziele nicht unter dem fixierten Kopf verstecken */
[id] { scroll-margin-top: 140px; }

/* ---------- Startseiten-Aufmacher: Foto, Titel darunter ---------- */
.hero { background: var(--karte); }
.hero-bild { width: 100%; aspect-ratio: 16 / 5; min-height: 220px; background: var(--hero-bild, url("../img/hero.jpg")) center 48% / cover no-repeat, #1a0d08; border-bottom: 1px solid var(--linie); }
.hero .container { padding-top: 44px; padding-bottom: 8px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; }
.hero .container.hero-zahlen { display: block; padding-top: 0; padding-bottom: 0; }
.hero h1 { margin-bottom: 0; }
.hero p.lead { font-size: 1.12rem; color: var(--text-leise); margin: 0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
@media (max-width: 860px) { .hero .container { grid-template-columns: 1fr; gap: 16px; } .hero-bild { aspect-ratio: 16 / 8; } }

/* Feiertagsgruß auf der Startseite (Advent, Weihnachten, Jahreswechsel, Ostern) */
.feiertag { background: var(--gelb-hell); border-bottom: 1px solid var(--gelb-rand); }
.feiertag-ostern { background: var(--gruen-hell); border-bottom-color: var(--gruen-rand); }
.feiertag-inhalt { display: flex; align-items: center; gap: 22px; padding-top: 22px; padding-bottom: 22px; }
.feiertag-bild { flex: none; width: 112px; height: 112px; object-fit: cover; border-radius: var(--radius); border: 3px solid var(--karte); box-shadow: 0 2px 10px var(--schatten); }
.feiertag-text { min-width: 0; border-left: 4px solid var(--gold); padding-left: 18px; }
.feiertag-ostern .feiertag-text { border-left-color: var(--gruen-text); }
.feiertag h2 { margin: 0 0 6px; font-size: 1.45rem; }
.feiertag p { margin: 0; color: var(--text); line-height: 1.55; }
.feiertag p + p { margin-top: 6px; }
.feiertag .feiertag-signatur { font-style: italic; color: var(--text-leise); font-size: .92rem; }
.feiertag-vorschau { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 999px; background: var(--rot-voll); color: #fff; font-size: .72rem; font-weight: 700; letter-spacing: .04em; }
@media (max-width: 600px) { .feiertag-inhalt { align-items: flex-start; gap: 14px; } .feiertag-bild { width: 72px; height: 72px; } .feiertag h2 { font-size: 1.2rem; } }

/* Bildband aus mehreren Feuerwehr-Fotos (ersetzt das einzelne Titelbild) */
.hero-bilder { display: grid; grid-template-columns: repeat(var(--anzahl, 4), 1fr); gap: 3px; height: clamp(220px, 27vw, 430px); background: var(--karte); border-bottom: 3px solid var(--rot-voll); }
.hero-kachel { position: relative; margin: 0; overflow: hidden; background: #1a0d08; }
.hero-kachel img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.hero-kachel:hover img { transform: scale(1.03); }
.hero-kachel figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 10px 6px; background: linear-gradient(to top, rgba(0,0,0,.6), transparent); color: #fff; font-size: .66rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.hero-kachel figcaption::before { content: ""; display: inline-block; width: 2px; height: .95em; margin-right: 6px; background: var(--rot-voll); vertical-align: -2px; }
/* Tablet und Handy: 2 × 2 Raster */
@media (max-width: 860px) {
  .hero-bilder { grid-template-columns: 1fr 1fr; grid-auto-rows: 40vw; height: auto; }
  .hero-kachel figcaption { font-size: .6rem; padding: 14px 8px 5px; }
}
@media (prefers-reduced-motion: reduce) { .hero-kachel img { transition: none; } .hero-kachel:hover img { transform: none; } }

.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--rot); margin-bottom: 8px; }

/* Unterseiten-Kopf */
.page-hero { background: var(--flaeche); border-bottom: 1px solid var(--linie); padding: 40px 0 36px; }
.page-hero h1 { margin: 0; }
.page-hero h1::after { content: ""; display: block; width: 72px; height: 4px; margin-top: 14px; background: linear-gradient(to right, var(--rot) 0 33.33%, #fff 33.33% 66.66%, var(--rot) 66.66%); box-shadow: 0 0 0 1px var(--linie); }
.page-hero p { color: var(--text-leise); margin: 14px 0 0; max-width: 62ch; }
.breadcrumb { font-size: .85rem; color: var(--text-leise); margin-bottom: 10px; }
.breadcrumb a { color: var(--text-leise); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 22px; border-radius: var(--radius); font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: .98rem; font-family: inherit; transition: background .15s, color .15s, border-color .15s; }
.btn-rot { background: var(--rot-voll); color: #fff; }
.btn-rot:hover { background: var(--rot-voll-dunkel); color: #fff; }
.btn-hell, .btn-umriss { border-color: var(--rot); color: var(--rot); background: var(--karte); }
.btn-hell:hover, .btn-umriss:hover { background: var(--rot-voll); color: #fff; }

/* ---------- Abschnitte ---------- */
.section { padding: 64px 0; }
.section-grau { background: var(--flaeche); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); }
.section-kopf { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 28px; flex-wrap: wrap; }
.section-kopf h2 { margin: 0; }
.section-kopf h2::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; background: var(--rot-voll); }
.section-kopf p { margin: 12px 0 0; color: var(--text-leise); }

/* ---------- Kennzahlen ---------- */
.kennzahlen { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--linie); border-bottom: 1px solid var(--linie); margin-top: 40px; }
.kennzahl { padding: 22px 20px; border-right: 1px solid var(--linie); }
.kennzahl:first-child { padding-left: 0; }
.kennzahl:last-child { border-right: 0; }
.kennzahl strong { display: block; font-size: 2.2rem; font-weight: 700; color: var(--rot); line-height: 1.1; }
.kennzahl span { font-size: .9rem; color: var(--text-leise); }
.kennzahl-zusatz { display: block; margin-top: 2px; font-size: .78rem; color: var(--text-leise); opacity: .85; }
.kennzahl-zusatz[hidden] { display: none; }
/* Veränderung zum Vorjahr (Mitglieder grün/rot, Einsätze neutral) */
.kennzahl-trend { display: block; margin-top: 3px; font-size: .8rem; font-weight: 600; color: var(--text-leise); white-space: nowrap; }
.kennzahl-trend[hidden] { display: none; }
.kennzahl-trend span { font-size: .72rem; }
.kennzahl-trend.farbig.hoch { color: var(--gruen-text); }
.kennzahl-trend.farbig.runter { color: var(--rot); }
@media (max-width: 760px) {
  .kennzahlen { grid-template-columns: repeat(2, 1fr); }
  .kennzahl { padding-left: 0; }
  .kennzahl:nth-child(2) { border-right: 0; padding-left: 16px; }
  .kennzahl:nth-child(4) { padding-left: 16px; }
  .kennzahl:nth-child(-n+2) { border-bottom: 1px solid var(--linie); }
}

/* ---------- Raster & Karten ---------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 960px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; } }

.karte { background: var(--karte); border: 1px solid var(--linie); border-top: 3px solid var(--rot); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; transition: border-color .15s, box-shadow .15s; }
.karte:hover { box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.karte-bild { aspect-ratio: 16/9; background: var(--flaeche); display: grid; place-items: center; color: var(--rand-stark); border-bottom: 1px solid var(--linie); }
.karte-bild svg { width: 48px; height: 48px; }
/* Bericht mit Foto(s): Bild füllt die Fläche, Klick öffnet die Galerie */
.karte-galerie { position: relative; width: 100%; padding: 0; border: 0; border-bottom: 1px solid var(--linie); cursor: pointer; overflow: hidden; display: block; }
.karte-galerie img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform .35s ease; }
.karte-galerie:hover img, .karte-galerie:focus-visible img { transform: scale(1.04); }
.galerie-anzahl { position: absolute; right: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius); background: rgba(20,22,25,.78); color: #fff; font-size: .8rem; font-weight: 600; }
.galerie-anzahl svg { width: 16px; height: 16px; }
/* Titel in Übersichten als Link */
.karte-inhalt h3 a, .news-eintrag h3 a { color: inherit; text-decoration: none; }
.karte-inhalt h3 a:hover, .news-eintrag h3 a:hover { color: var(--rot); text-decoration: underline; }

/* Bericht-Unterseite */
.bericht-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.bericht-inhalt { max-width: 860px; }
.bericht-text { max-width: none; font-size: 1.08rem; line-height: 1.75; }
.bericht-text h2 { font-size: 1.35rem; margin: 1.6em 0 .5em; }
.bericht-text ul { padding-left: 22px; }
.bericht-text li { margin-bottom: 6px; }
.bericht-titelbild { display: block; width: 100%; padding: 0; border: 0; background: var(--flaeche); cursor: zoom-in; border-radius: var(--radius); overflow: hidden; margin: 0 0 28px; aspect-ratio: 16 / 9; }
.bericht-titelbild img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.bericht-titelbild:hover img { transform: scale(1.02); }
.bericht-einleitung { font-size: 1.18rem; font-weight: 600; color: var(--text); line-height: 1.6; }
.bericht-autor { margin-top: 2em; padding-top: 14px; border-top: 1px solid var(--linie); font-size: .9rem; color: var(--text-leise); }
.bericht-galerie { margin-top: 48px; }
.bericht-galerie h2 { font-size: 1.4rem; }
.bericht-galerie h2 span { color: var(--text-leise); font-weight: 400; }
.foto-raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.foto-raster button { padding: 0; border: 1px solid var(--linie); border-radius: var(--radius); background: var(--flaeche); cursor: zoom-in; overflow: hidden; aspect-ratio: 4 / 3; }
.foto-raster img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.foto-raster button:hover img, .foto-raster button:focus-visible img { transform: scale(1.06); }
@media (max-width: 480px) { .foto-raster { grid-template-columns: repeat(2, 1fr); gap: 8px; } }
.bericht-zurueck { margin-top: 40px; }

/* Galerie-Großansicht */
.galerie-dialog { max-width: min(94vw, 980px); }
.gal-buehne { position: relative; background: #111; display: grid; place-items: center; min-height: 240px; }
.gal-bild { max-width: 100%; max-height: 78vh; width: auto; height: auto; display: block; }
.gal-pfeil { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; border-radius: var(--radius); background: rgba(255,255,255,.88); color: var(--text); font-size: 2rem; line-height: 1; cursor: pointer; display: grid; place-items: center; padding: 0 0 4px; }
.gal-pfeil:hover { background: var(--karte); color: var(--rot); }
.gal-zurueck { left: 10px; }
.gal-weiter { right: 10px; }
.karte-inhalt { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.karte-inhalt h3 { margin-bottom: 8px; }
.karte-inhalt p { color: var(--text-leise); font-size: .96rem; }
.karte-meta { display: flex; gap: 10px; align-items: center; font-size: .82rem; color: var(--text-leise); margin-bottom: 10px; flex-wrap: wrap; }
.karte-fuss { margin-top: auto; padding-top: 4px; }
.mehr { font-weight: 600; text-decoration: none; }
.mehr::after { content: " ›"; }

.tag { display: inline-block; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 2px; background: var(--rot-hell); color: var(--rot-dunkel); border: 1px solid var(--rot-rand); }
.tag-einsatz { background: var(--gelb-hell); color: var(--gelb-text); border-color: var(--gelb-rand); }
.tag-ausbildung { background: var(--blau-hell); color: var(--blau-text); border-color: var(--blau-rand); }
.tag-feuerwehr { background: var(--gruen-hell); color: var(--gruen-text); border-color: var(--gruen-rand); }
.tag-nachruf { background: var(--flaeche); color: var(--text); border-color: var(--rand-stark); }
.tag-unterabschnitt { background: #f1ebfa; color: #5b2a8a; border-color: #dccbf0; }
:root[data-farbschema="dunkel"] .tag-unterabschnitt { background: #2b2140; color: #cdb4f0; border-color: #4a3a6b; }
@media (prefers-color-scheme: dark) { :root:not([data-farbschema="hell"]) .tag-unterabschnitt { background: #2b2140; color: #cdb4f0; border-color: #4a3a6b; } }

/* ---------- News-Liste (Startseite): Datum links ---------- */
.news-liste { border-top: 1px solid var(--linie); }

/* Archiv */
/* Jahre als aufklappbare Abschnitte */
.archiv-jahr { border-bottom: 1px solid var(--linie); }
.archiv-jahr:first-child { border-top: 1px solid var(--linie); }
.archiv-jahr summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 16px 6px; }
.archiv-jahr summary::-webkit-details-marker { display: none; }
.archiv-jahr summary::before { content: ""; width: 4px; height: 1.4em; background: var(--rot-voll); flex: none; }
.archiv-jahr summary:hover .aj-jahr { color: var(--rot); }
.aj-jahr { font-size: 1.5rem; font-weight: 700; line-height: 1.2; scroll-margin-top: 140px; }
.aj-anzahl { flex: 1; font-size: .9rem; color: var(--text-leise); }
.aj-pfeil { width: 11px; height: 11px; border-right: 2.5px solid var(--text-leise); border-bottom: 2.5px solid var(--text-leise); transform: rotate(45deg); margin: -6px 8px 0 0; transition: transform .2s; }
.archiv-jahr[open] .aj-pfeil { transform: rotate(-135deg); margin-top: 4px; border-color: var(--rot); }
.archiv-jahr[open] .aj-jahr { color: var(--rot); }
/* Berichte als schmale Zeilen: Bild links, Überschrift rechts */
.archiv-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 14px; padding: 4px 0 24px; }
@media (max-width: 760px) { .archiv-liste { grid-template-columns: 1fr; } }
.archiv-zeile { display: flex; align-items: stretch; min-height: 82px; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
a.archiv-zeile:hover, a.archiv-zeile:focus-visible { border-color: var(--rot); box-shadow: 0 4px 14px var(--schatten); }
a.archiv-zeile:hover .az-titel { color: var(--rot); }
.az-bild { flex: none; width: 124px; background: var(--flaeche); display: grid; place-items: center; color: var(--rand-stark); border-right: 1px solid var(--linie); }
.az-bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.az-bild svg { width: 30px; height: 30px; }
.az-text { display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 10px 14px; min-width: 0; }
.az-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: .8rem; color: var(--text-leise); }
.az-meta .tag { font-size: .64rem; padding: 1px 6px; }
.az-titel { font-weight: 600; line-height: 1.35; overflow-wrap: break-word; }
@media (max-width: 480px) { .az-bild { width: 96px; } .archiv-zeile { min-height: 72px; } }
.archiv-hinweis { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; margin-top: 48px; padding: 22px 26px; background: var(--flaeche); border: 1px solid var(--linie); border-left: 4px solid var(--rot); border-radius: var(--radius); }
.archiv-hinweis[hidden] { display: none; }
.archiv-hinweis h2 { margin: 0 0 4px; font-size: 1.25rem; }
.archiv-hinweis p { margin: 0; color: var(--text-leise); }
.news-eintrag { display: grid; grid-template-columns: 92px 1fr; gap: 24px; padding: 22px 0; border-bottom: 1px solid var(--linie); }
.news-datum { text-align: center; border: 1px solid var(--linie); border-top: 3px solid var(--rot); border-radius: var(--radius); padding: 8px 4px; line-height: 1.15; align-self: start; background: var(--karte); }
.news-datum strong { display: block; font-size: 1.8rem; font-weight: 700; }
.news-datum span { font-size: .78rem; color: var(--text-leise); text-transform: uppercase; letter-spacing: .04em; }
.news-eintrag h3 { margin: 4px 0 6px; font-size: 1.22rem; }
.news-eintrag p { margin: 0; color: var(--text-leise); }
@media (max-width: 560px) { .news-eintrag { grid-template-columns: 64px 1fr; gap: 14px; } .news-datum strong { font-size: 1.4rem; } }

/* ---------- Filter ---------- */
.filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 28px; }
.filter button { font: inherit; font-size: .9rem; font-weight: 600; padding: 7px 14px; border-radius: var(--radius); border: 1px solid var(--linie); background: var(--karte); cursor: pointer; color: var(--text); }
.filter button:hover { border-color: var(--rot); color: var(--rot); }
.filter button[aria-pressed="true"] { background: var(--rot-voll); color: #fff; border-color: var(--rot); }
.suchfeld { font: inherit; padding: 9px 14px; border: 1px solid var(--rand-stark); border-radius: var(--radius); width: 100%; max-width: 320px; }

/* ---------- Feuerwehren ---------- */
.ua-block { margin-bottom: 44px; }
.ua-kopf { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--linie); padding-bottom: 10px; margin-bottom: 18px; flex-wrap: wrap; position: relative; }
.ua-kopf::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 56px; height: 3px; background: var(--rot-voll); }
.ua-kopf h2 { margin: 0; font-size: 1.45rem; }
.ua-kopf span { color: var(--text-leise); font-size: .9rem; }
/* Überschrift als Knopf: klappt alle Feuerwehren des Unterabschnitts auf/zu */
.ua-toggle { display: inline-flex; align-items: center; gap: 12px; padding: 0; margin: 0; border: 0; background: none; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.ua-toggle:hover { color: var(--rot); }
.ua-kopf .ua-toggle-pfeil { display: inline-block; width: 11px; height: 11px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(45deg); margin-top: -6px; transition: transform .2s; color: var(--text-leise); }
.ua-toggle[aria-expanded="true"] .ua-toggle-pfeil { transform: rotate(-135deg); margin-top: 4px; color: var(--rot); }
/* Hinweis über den Unterabschnitten */
.ff-hinweis { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 0 0 36px; padding: 14px 18px; background: var(--blau-hell); border: 1px solid var(--blau-rand); border-left: 4px solid var(--blau-text); border-radius: var(--radius); color: var(--text); }
.ff-hinweis p { margin: 0; flex: 1 1 420px; line-height: 1.55; }
.ff-hinweis-knoepfe { display: flex; gap: 8px; flex-wrap: wrap; }
.ff-pfeil-mini { display: inline-block; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 3px 3px; }
.btn-klein { padding: 6px 12px; font-size: .86rem; }
/* Sprung aus der Karte: Feuerwehr kurz hervorheben */
.ff-karte.ff-hervor { animation: ff-hervor 2.2s ease-out; }
@keyframes ff-hervor { 0%, 35% { box-shadow: 0 0 0 4px var(--rot-rand), 0 4px 16px rgba(0,0,0,.07); } 100% { box-shadow: 0 4px 16px rgba(0,0,0,.07); } }
@media (prefers-reduced-motion: reduce) { .ff-karte.ff-hervor { animation: none; } }
/* Feuerwehr-Karte als Aufklapp-Element (Dropdown mit Kommando) */
.ff-raster { align-items: start; }
.ff-karte { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s; }
.ff-karte:hover { border-color: var(--rand-stark); }
.ff-karte:has(details[open]) { border-color: var(--rot); box-shadow: 0 4px 16px rgba(0,0,0,.07); }
.ff-aktionen { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 0 16px 14px; }
.ff-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; font-size: .86rem; font-weight: 600; color: var(--rot); background: var(--karte); border: 1px solid var(--rot); border-radius: var(--radius); text-decoration: none; line-height: 1.3; }
.ff-btn svg { width: 16px; height: 16px; flex: none; }
.ff-btn:hover { background: var(--rot-voll); color: #fff; }
/* Social-Media-Knöpfe (runde Logos in Markenfarbe) */
.ff-sozial { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius); color: #fff; text-decoration: none; transition: transform .15s, filter .15s; }
.ff-sozial svg { width: 18px; height: 18px; }
.ff-sozial:hover, .ff-sozial:focus-visible { transform: scale(1.1); filter: brightness(1.08); color: #fff; }
.ff-fb { background: #1877f2; }
.ff-ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.ff-karte details[open] + .ff-aktionen { border-top: 1px solid var(--linie); padding-top: 12px; }
.ff-karte summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.ff-karte summary::-webkit-details-marker { display: none; }
.ff-karte .ff-icon { flex: none; width: 40px; height: 40px; border-radius: var(--radius); background: var(--rot-hell); color: var(--rot); display: grid; place-items: center; }
.ff-karte .ff-icon svg { width: 22px; height: 22px; }
.ff-name { flex: 1; font-weight: 600; font-size: 1.05rem; }
.ff-pfeil { width: 10px; height: 10px; border-right: 2px solid var(--text-leise); border-bottom: 2px solid var(--text-leise); transform: rotate(45deg); margin: -4px 4px 0 0; transition: transform .2s; }
.ff-karte details[open] .ff-pfeil { transform: rotate(-135deg); margin-top: 4px; border-color: var(--rot); }
.ff-karte details[open] .ff-name { color: var(--rot); }
.ff-kommando { border-top: 1px solid var(--linie); padding: 14px 16px 16px; }
.ff-kommando dl { margin: 0; }
.ff-kommando dt { color: var(--text-leise); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.ff-kommando dd { margin: 0 0 10px; font-weight: 600; font-size: .98rem; }
.ff-kommando dd:last-child { margin-bottom: 0; }

.map-wrap { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--linie); background: var(--flaeche); }
.map-wrap iframe { width: 100%; height: 420px; border: 0; display: block; }
.map-hinweis { padding: 40px 24px; text-align: center; color: var(--text-leise); }
.karte-merken { display: flex; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-size: .9rem; color: var(--text); cursor: pointer; }
.karte-merken input { width: 17px; height: 17px; accent-color: var(--rot); cursor: pointer; margin: 0; }
.karte-widerruf { margin: -38px 0 40px; font-size: .85rem; color: var(--text-leise); }
.karte-widerruf button { font: inherit; color: var(--rot); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
/* Interaktive Karte (Leaflet) */
.karte-flaeche { height: 480px; width: 100%; background: var(--flaeche); z-index: 0; }
@media (max-width: 640px) { .karte-flaeche { height: 380px; } }
.karte-legende { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 12px 16px; border-top: 1px solid var(--linie); background: var(--karte); font-size: .88rem; }
.karte-legende a { display: inline-flex; align-items: center; gap: 7px; color: var(--text); text-decoration: none; font-weight: 600; }
.karte-legende a:hover { color: var(--rot); }
.karte-legende span { width: 12px; height: 12px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px rgba(0,0,0,.25); flex: none; }
.ff-standorte { margin-top: 12px; padding-top: 10px; border-top: 1px dashed var(--linie); }
.ff-standorte dt { color: var(--text-leise); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; font-weight: 600; }
.ff-standorte dd { margin: 2px 0 0; font-size: .92rem; font-weight: 600; }
.karte-legende .legende-gebiet { display: inline-flex; align-items: center; gap: 7px; width: auto; height: auto; border: 0; box-shadow: none; border-radius: 0; color: var(--text-leise); font-weight: 600; }
.karte-legende .legende-gebiet span { width: 16px; height: 12px; border-radius: 2px; background: rgba(200,16,46,.15); border: 1.5px solid rgba(200,16,46,.6); box-shadow: none; }
.karte-gemeinde { font-weight: 600; }
/* Fixe Karte: Klick auf Unterabschnitt vergrößert */
.karte-flaeche { position: relative; cursor: default; }
.karte-flaeche .leaflet-interactive { cursor: pointer; }
.karte-zurueck { position: absolute; top: 12px; left: 12px; z-index: 1000; font: inherit; font-size: .9rem; font-weight: 600; padding: 7px 14px; border: 1px solid var(--rot); border-radius: var(--radius); background: var(--karte); color: var(--rot); cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.karte-zurueck:hover { background: var(--rot-voll); color: #fff; }
.karte-zurueck[hidden], .karte-hinweis[hidden] { display: none; }
.karte-hinweis { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 1000; max-width: calc(100% - 24px); font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--karte); color: var(--text); box-shadow: 0 2px 8px rgba(0,0,0,.18); pointer-events: none; text-align: center; }
.karte-legende a.aktiv { color: var(--rot); text-decoration: underline; text-underline-offset: 4px; }
.karte-legende .legende-ring { display: inline-flex; align-items: center; gap: 7px; width: auto; height: auto; border: 0; box-shadow: none; border-radius: 0; color: var(--text-leise); font-weight: 600; }
.karte-legende .legende-ring span { background: var(--karte); border: 3px solid var(--text-leise); box-shadow: none; width: 12px; height: 12px; }
.karte-popup { display: grid; gap: 2px; font-family: var(--schrift); font-size: .88rem; min-width: 190px; }
.karte-popup strong { font-size: 1rem; color: var(--rot); }
.karte-popup span { color: var(--text-leise); }
.karte-popup-links { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; }
.karte-popup-links a { font-weight: 600; }

/* ---------- Kommando ---------- */
.person { background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); padding: 24px 18px; text-align: center; }
.person .avatar { width: 88px; height: 88px; border-radius: 50%; margin: 0 auto 14px; background: var(--flaeche); border: 2px solid var(--rot); color: var(--rot); display: grid; place-items: center; font-size: 1.6rem; font-weight: 700; }
.person h3 { margin: 4px 0 2px; font-size: 1.1rem; }
.person .funktion { color: var(--rot); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; }
.person p { margin: 4px 0 0; color: var(--text-leise); font-size: .9rem; }
/* Kommando untereinander: Foto links, Text rechts */
.personen-liste { grid-template-columns: 1fr; max-width: 640px; gap: 16px; margin: 0 auto; }
/* Raster mit zentrierter letzter Reihe */
.grid-zentriert { display: flex; flex-wrap: wrap; justify-content: center; }
.grid-zentriert > * { flex: 0 0 calc((100% - 48px) / 3); }
@media (max-width: 960px) { .grid-zentriert > * { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .grid-zentriert > * { flex-basis: 100%; } }
.personen-liste .person { display: grid; grid-template-columns: 88px 1fr; gap: 0 22px; align-items: center; text-align: left; padding: 18px 22px; }
.personen-liste .person .avatar { grid-row: span 4; margin: 0; }
/* Portraitfoto statt Initialen: hochformatig, Gesicht oben im Bild */
.personen-liste .person:has(img.avatar) { grid-template-columns: 112px 1fr; padding: 14px 22px 14px 14px; }
.personen-liste .person img.avatar { width: 112px; height: 150px; border-radius: var(--radius); border: 1px solid var(--linie); object-fit: cover; object-position: 50% 6%; background: var(--flaeche); }
.personen-liste .person > * { min-width: 0; }

/* Personen: Mouseover-Zoom, Foto per Klick groß */
.avatar-knopf { display: block; padding: 0; border: 0; background: none; cursor: zoom-in; border-radius: var(--radius); overflow: hidden; margin: 0 auto 14px; width: max-content; }
.personen-liste .person .avatar-knopf { grid-row: span 4; margin: 0; }
.avatar-knopf img.avatar { margin: 0; display: block; transition: transform .35s ease; }
/* Portrait in den stehenden Karten (z. B. Unterabschnittskommandanten) */
.person img.avatar { width: 132px; height: 176px; border-radius: var(--radius); border: 1px solid var(--linie); object-fit: cover; object-position: 50% 6%; background: var(--flaeche); }
.avatar-knopf:hover img.avatar, .avatar-knopf:focus-visible img.avatar { transform: scale(1.12); }
.person div.avatar { transition: transform .3s ease, box-shadow .3s ease; }
.person:hover div.avatar { transform: scale(1.1); box-shadow: 0 4px 14px rgba(200,16,46,.25); }
.plakat-dialog.ist-portrait { max-width: min(92vw, 460px); }
@media (prefers-reduced-motion: reduce) { .avatar-knopf img.avatar, .person div.avatar { transition: none; } }
.person .funktion { overflow-wrap: anywhere; hyphens: auto; }
@media (max-width: 480px) {
  .personen-liste .person:has(img.avatar) { grid-template-columns: 84px 1fr; gap: 0 14px; padding-right: 14px; }
  .personen-liste .person img.avatar { width: 84px; height: 112px; }
  .personen-liste .person .funktion { font-size: .68rem; letter-spacing: .02em; }
}
/* Treppe: jede Person etwas weiter nach rechts versetzt */
.personen-liste { max-width: 780px; --stufe: 50px; }
.personen-liste .person { width: calc(100% - 3 * var(--stufe)); }
.personen-liste .person:nth-child(2) { margin-left: var(--stufe); }
.personen-liste .person:nth-child(3) { margin-left: calc(2 * var(--stufe)); }
.personen-liste .person:nth-child(4) { margin-left: calc(3 * var(--stufe)); }
@media (max-width: 760px) { .personen-liste { --stufe: 16px; } }
.kontakt-zeile { display: flex; flex-wrap: wrap; gap: 4px 18px; margin-top: 8px; font-size: .9rem; }
.kontakt-zeile a { font-weight: 600; text-decoration: none; min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 480px) { .kontakt-zeile { flex-direction: column; font-size: .82rem; } }
.kontakt-zeile a:hover { text-decoration: underline; }
.kontakt-zeile .fehlt { color: var(--text-leise); font-style: italic; }
.person:not(.personen-liste .person) .kontakt-zeile { justify-content: center; }

/* ---------- Termine ---------- */
/* Startseite: kompakte Terminliste – Termine des AFK farblich hervorgehoben */
#termine-start { display: grid; gap: 8px; }
.termin { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: start; padding: 10px 12px 10px 10px; border: 1px solid var(--linie); border-left: 4px solid var(--linie); border-radius: var(--radius); background: var(--karte); color: inherit; text-decoration: none; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.termin:hover, a.termin:focus-visible { border-color: var(--rot); box-shadow: 0 4px 14px rgba(0,0,0,.08); transform: translateY(-1px); }
a.termin:hover h3, a.termin:focus-visible h3 { color: var(--rot); }
/* Datumskachel wie bei den Berichten: weiß, Strich oben – dunkelblau, bei AFK-Terminen rot */
.termin-datum { border: 1px solid var(--linie); border-top: 3px solid var(--blau-text); border-radius: var(--radius); background: var(--karte); color: var(--text); text-align: center; padding: 6px 2px 6px; line-height: 1.15; }
.termin-datum strong { display: block; font-size: 1.6rem; font-weight: 700; }
.termin-datum span { display: block; font-size: .68rem; text-transform: uppercase; letter-spacing: .04em; color: var(--text-leise); }
/* AFK-Termine: ganze Kachel rot */
.ist-afk .termin-datum { background: var(--rot-voll); border-color: var(--rot-voll); color: #fff; }
.ist-afk .termin-datum span { color: rgba(255,255,255,.88); }
.termin-datum .td-tag { font-weight: 700; letter-spacing: .04em; }
.termin-text { min-width: 0; padding-top: 2px; }
.termin h3 { margin: 0 0 3px; font-size: 1.02rem; line-height: 1.3; overflow-wrap: break-word; }
.termin p { margin: 0; font-size: .88rem; color: var(--text-leise); line-height: 1.45; }
.termin .termin-wann { font-weight: 600; color: var(--text); }
.termin .termin-zusatz { font-size: .82rem; font-style: italic; }
.termin.ist-afk { background: var(--rot-hell); border-color: var(--rot-rand); border-left-color: var(--rot-voll); }
.afk-marke { display: inline-block; padding: 1px 7px; border-radius: 999px; background: var(--rot-voll); color: #fff; font-size: .68rem; font-weight: 700; letter-spacing: .06em; vertical-align: 2px; line-height: 1.5; }
.afk-legende { margin: 4px 0 0; font-size: .8rem; color: var(--text-leise); }
/* Termine-Seite: AFK-Termine mit rotem Balken links */
.termin-tabelle tbody tr.ist-afk td:first-child { box-shadow: inset 4px 0 0 var(--rot-voll); }
/* Termine-Seite: Datumskachel wie auf der Startseite */
.termin-tabelle .termin-datum { width: 64px; color: var(--text); font-weight: 400; white-space: normal; }
.termin-tabelle time { display: block; }
.termin-tabelle .td-bis { display: block; width: 64px; text-align: center; line-height: 1.3; margin-top: 5px; font-size: .78rem; font-weight: 600; color: var(--text-leise); }
.termin-tabelle.vergangen .termin-datum, .termin-tabelle.vergangen tr.ist-afk .termin-datum { background: var(--karte); border-color: var(--linie); border-top-color: var(--text-leise); color: var(--text-leise); }
.termin-tabelle.vergangen tr.ist-afk .termin-datum span { color: var(--text-leise); }
/* Von der Startseite angesprungener Termin */
.termin-tabelle tbody tr.ist-ziel td { background: var(--rot-hell); box-shadow: inset 0 2px 0 var(--rot), inset 0 -2px 0 var(--rot); }
.termin-tabelle tbody tr.ist-ziel td:first-child { box-shadow: inset 0 2px 0 var(--rot), inset 0 -2px 0 var(--rot), inset 4px 0 0 var(--rot); }
.termin-tabelle.vergangen .afk-marke { background: var(--text-leise); }
/* Aufklapp-Menüs pro Termin (Kalender eintragen, Ort auf Karte) */
.mini-menue { position: relative; display: inline-block; max-width: 100%; }
.mini-menue > summary { list-style: none; cursor: pointer; }
.mini-menue > summary::-webkit-details-marker { display: none; }
.mini-menue > summary::after { content: ""; display: inline-block; width: 5px; height: 5px; margin-left: 7px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); vertical-align: 3px; opacity: .7; transition: transform .15s; }
.mini-menue[open] > summary::after { transform: rotate(-135deg); vertical-align: 0; }
.mini-menue-liste { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; min-width: 190px; padding: 4px; background: var(--karte); border: 1px solid var(--linie); border-radius: var(--radius); box-shadow: 0 10px 28px rgba(0,0,0,.14); display: grid; }
.mini-menue-liste a, .mini-menue-liste button { font: inherit; font-size: .88rem; font-weight: 600; text-align: left; padding: 8px 12px; border: 0; border-radius: 2px; background: none; color: var(--text); text-decoration: none; cursor: pointer; white-space: nowrap; }
.mini-menue-liste a:hover, .mini-menue-liste button:hover, .mini-menue-liste a:focus-visible, .mini-menue-liste button:focus-visible { background: var(--rot-hell); color: var(--rot-dunkel); }
.mini-menue-liste small { font-weight: 400; color: var(--text-leise); }
/* Kalender: ein dezenter Knopf */
.kal-menue { display: block; margin-top: 8px; }
.kal-menue > summary { display: inline-block; font-size: .8rem; font-weight: 600; padding: 3px 10px; border: 1px solid var(--linie); border-radius: 999px; background: var(--karte); color: var(--rot); line-height: 1.5; }
.kal-menue > summary:hover, .kal-menue[open] > summary { border-color: var(--rot); background: var(--rot-hell); color: var(--rot-dunkel); }
/* Ort: Name selbst anklickbar */
.ort > summary { display: inline; color: inherit; text-decoration: underline dotted var(--text-leise); text-underline-offset: 3px; }
.ort > summary:hover, .ort[open] > summary { color: var(--rot); text-decoration-color: var(--rot); }
.ort-pin { font-size: .85em; margin-right: 4px; }

/* Kalender: Abo-Box */
.kal-abo { background: var(--karte); border: 1px solid var(--linie); border-left: 6px solid var(--rot); border-radius: var(--radius); padding: 22px 26px; display: grid; grid-template-columns: 1fr auto; gap: 12px 28px; align-items: center; }
.kal-abo h2 { font-size: 1.3rem; margin: 0 0 4px; }
.kal-abo p { margin: 0; color: var(--text-leise); font-size: .95rem; }
.kal-abo-knoepfe { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.kal-abo-knoepfe .btn { padding: 10px 20px; font-size: .95rem; white-space: nowrap; }
.kal-abo .kal-abo-weitere { font-size: .85rem; white-space: nowrap; }
.kal-abo-weitere a, .kal-abo-weitere button { font: inherit; padding: 0; border: 0; background: none; color: var(--rot); cursor: pointer; text-decoration: none; }
.kal-abo-weitere a:hover, .kal-abo-weitere button:hover, .kal-abo-weitere a:focus-visible, .kal-abo-weitere button:focus-visible { text-decoration: underline; }
@media (max-width: 760px) { .kal-abo { grid-template-columns: 1fr; padding: 18px; } .kal-abo-knoepfe { align-items: flex-start; } .kal-abo .kal-abo-weitere { white-space: normal; } }

/* Plakat: PDF-Kachel */
.plakat-pdf { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 700; color: var(--rot); background: var(--rot-hell); }

/* Vorschaubild in der Tabellenzeile */
.termin-titel { display: flex; gap: 12px; align-items: flex-start; }
.termin-titel, .termin-titel > div { min-width: 0; }   /* lange Titel dürfen umbrechen statt überzustehen */
.plakat-mini { flex: none; width: 44px; height: 58px; padding: 0; border: 1px solid var(--linie); border-radius: 2px; background: var(--flaeche); overflow: hidden; cursor: zoom-in; display: block; text-decoration: none; font-size: .7rem; }
.plakat-mini img { width: 100%; height: 100%; object-fit: cover; }
.plakat-mini:hover { border-color: var(--rot); }

/* Großansicht */
.plakat-dialog { border: 0; padding: 0; border-radius: var(--radius); max-width: min(92vw, 720px); width: 100%; max-height: 92vh; overflow: auto; box-shadow: 0 20px 60px rgba(0,0,0,.35); }
.plakat-dialog::backdrop { background: rgba(20,22,25,.75); }
.plakat-dialog-kopf { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--linie); border-top: 3px solid var(--rot); position: sticky; top: 0; background: var(--karte); }
.plakat-dialog-kopf strong { display: block; font-size: 1.1rem; }
.pd-meta { color: var(--text-leise); font-size: .9rem; }
.pd-zu { font: inherit; font-size: 1.8rem; line-height: 1; background: none; border: 0; cursor: pointer; color: var(--text-leise); padding: 0 4px; }
.pd-zu:hover { color: var(--rot); }
.pd-bild { width: 100%; height: auto; display: block; }
.plakat-dialog-fuss { padding: 14px 18px; border-top: 1px solid var(--linie); text-align: right; }

/* Termine-Tabelle */
/* Nächster Termin (Hervorhebung über der Tabelle) */
.naechster-termin { display: flex; align-items: center; gap: 24px; margin-bottom: 48px; padding: 24px; background: var(--karte); border: 1px solid var(--linie); border-left: 5px solid var(--rot); border-radius: var(--radius); box-shadow: 0 8px 24px rgba(0,0,0,.06); }
.nt-datum { flex: none; width: 112px; padding: 14px 8px; text-align: center; background: var(--rot-voll); color: #fff; border-radius: var(--radius); line-height: 1.2; }
.nt-datum strong { display: block; font-size: 2.6rem; line-height: 1.05; margin: 2px 0; }
.nt-datum span { display: block; font-size: .82rem; font-weight: 600; }
.nt-inhalt { flex: 1; min-width: 0; }
.nt-inhalt .eyebrow { margin-bottom: 4px; }
.nt-abstand { text-transform: none; letter-spacing: 0; font-size: .9rem; }
.nt-inhalt h3 { margin: 0 0 6px; font-size: 1.45rem; }
.nt-details { margin: 0; color: var(--text-leise); }
.nt-ort { margin-top: 2px; color: var(--text-leise); }
/* Mehrere Termine am selben Tag: untereinander, durch Linie getrennt */
.naechster-termin.mehrere { align-items: flex-start; }
.nt-eintrag { display: flex; gap: 16px; align-items: flex-start; justify-content: space-between; padding: 14px 0; border-top: 1px solid var(--linie); }
.nt-eintrag:first-of-type { border-top: 0; padding-top: 2px; }
.nt-eintrag:last-child { padding-bottom: 0; }
.nt-eintrag > div { min-width: 0; }
.naechster-termin.mehrere .nt-inhalt h3 { font-size: 1.2rem; }
.nt-inhalt .termin-info { margin: 4px 0 0; }
.nt-plakat { flex: none; width: 96px; height: 128px; padding: 0; border: 1px solid var(--linie); border-radius: 2px; background: var(--flaeche); overflow: hidden; cursor: zoom-in; display: block; }
.nt-plakat img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.nt-plakat:hover { border-color: var(--rot); }
.nt-plakat:hover img { transform: scale(1.04); }
.termin-tabelle tbody tr.ist-naechster td { background: var(--rot-hell); }
.termin-tabelle tbody tr.ist-naechster td:first-child { box-shadow: inset 4px 0 0 var(--rot); }
@media (max-width: 640px) {
  .naechster-termin { flex-wrap: wrap; align-items: flex-start; gap: 16px; padding: 18px; }
  .nt-datum { width: 84px; padding: 10px 6px; }
  .nt-datum strong { font-size: 2rem; }
  .nt-inhalt { flex-basis: calc(100% - 100px); }
  .naechster-termin.mehrere .nt-inhalt { flex-basis: 100%; }
  .nt-inhalt h3 { font-size: 1.2rem; }
  .nt-plakat { width: 72px; height: 96px; }
}
.termin-ueberschrift::after { content: ""; display: block; width: 56px; height: 3px; margin-top: 10px; background: var(--rot-voll); }
.termin-tabelle { width: 100%; border-collapse: collapse; background: var(--karte); border: 1px solid var(--linie); font-size: .97rem; table-layout: fixed; }
.termin-tabelle thead th:nth-child(1) { width: 15%; }
.termin-tabelle thead th:nth-child(2) { width: 37%; }
.termin-tabelle thead th:nth-child(3) { width: 28%; }
.termin-tabelle thead th:nth-child(4) { width: 20%; }
.termin-tabelle th { text-align: left; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-leise); background: var(--flaeche); padding: 12px 16px; border-bottom: 2px solid var(--rot); }
.termin-tabelle td { padding: 14px 16px; border-bottom: 1px solid var(--linie); vertical-align: top; }
.termin-tabelle tbody tr:last-child td { border-bottom: 0; }
.termin-tabelle tbody tr:not(.jahr-zeile):not(.monat-zeile):hover { background: var(--rot-hell); }
/* Monats-Trennung */
.termin-tabelle .monat-zeile th { background: var(--flaeche); color: var(--rot); font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; padding: 8px 16px; border-bottom: 1px solid var(--linie); }
.termin-tabelle.vergangen .monat-zeile th { color: var(--text-leise); }
/* Jahres-Trennung */
.termin-tabelle .jahr-gruppe + .jahr-gruppe .jahr-zeile th { border-top: 2px solid var(--linie); }
.termin-tabelle .jahr-zeile th { background: var(--karte); color: var(--text); font-size: 1.25rem; font-weight: 700; text-transform: none; letter-spacing: 0; padding: 18px 16px 8px; border-bottom: 1px solid var(--linie); }
.termin-tabelle .jahr-zeile th::before { content: ""; display: inline-block; width: 4px; height: 1.1em; background: var(--rot-voll); vertical-align: -3px; margin-right: 10px; }
.termin-tabelle.vergangen .jahr-zeile th { color: var(--text-leise); }
.termin-tabelle.vergangen .jahr-zeile th::before { background: var(--text-leise); }
.termin-tabelle td:first-child { white-space: nowrap; font-weight: 600; color: var(--rot); }
.termin-info { color: var(--text-leise); font-size: .9rem; }
.termin-tabelle.vergangen th { border-bottom-color: var(--text-leise); }
.termin-tabelle.vergangen td { color: var(--text-leise); }
.termin-tabelle.vergangen td:first-child { color: var(--text-leise); }
.termin-tabelle.vergangen tbody tr:not(.monat-zeile):hover { background: var(--flaeche); }
/* schmale Bildschirme: etwas weniger Innenabstand, damit Datum und Uhrzeit Platz haben */
@media (max-width: 960px) and (min-width: 641px) {
  .termin-tabelle th, .termin-tabelle td { padding-left: 10px; padding-right: 10px; }
}
@media (max-width: 760px) and (min-width: 641px) {
  .termin-tabelle td:first-child { white-space: normal; }   /* Wochentag darf über das Datum rutschen */
}
/* lange Wörter wie "Abschnittsfeuerwehrleistungsbewerb" sauber trennen */
.termin-tabelle td { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 640px) {
  .termin-tabelle thead { display: none; }
  .termin-tabelle tbody tr.ist-ziel { background: var(--rot-hell); box-shadow: inset 0 0 0 2px var(--rot); }
  .termin-tabelle tbody tr.ist-ziel td, .termin-tabelle tbody tr.ist-ziel td:first-child { background: none; box-shadow: none; }
  .termin-tabelle, .termin-tabelle tbody, .termin-tabelle tr, .termin-tabelle td { display: block; width: 100%; }
  .termin-tabelle tr { border-bottom: 1px solid var(--linie); padding: 10px 0; }
  .termin-tabelle tr.jahr-zeile, .termin-tabelle tr.monat-zeile { padding: 0; }
  .termin-tabelle .jahr-zeile th, .termin-tabelle .monat-zeile th { display: block; }
  .termin-tabelle tbody tr:last-child { border-bottom: 0; }
  .termin-tabelle td { border: 0; padding: 3px 16px; display: grid; grid-template-columns: 110px 1fr; gap: 8px; }
  .termin-tabelle td::before { content: attr(data-label); font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-leise); font-weight: 600; padding-top: 2px; }
}

/* ---------- Aufruf ---------- */
.cta { background: var(--karte); border: 1px solid var(--linie); border-left: 6px solid var(--rot); border-radius: var(--radius); padding: 36px 40px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; align-items: center; }
.cta h2 { margin-bottom: .3em; }
.cta p { color: var(--text-leise); margin: 0; }
.cta .cta-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: flex-end; }
.cta .btn-weiss { background: var(--rot-voll); color: #fff; }
.cta .btn-weiss:hover { background: var(--rot-voll-dunkel); }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; padding: 26px 22px; } .cta .cta-actions { justify-content: flex-start; } }

/* ---------- Info-Boxen ---------- */
.info-box { background: var(--karte); border: 1px solid var(--linie); border-top: 3px solid var(--rot); border-radius: var(--radius); padding: 22px 24px; }
.info-box h3 { margin-top: 0; }
/* Mouseover-Hervorhebung (z. B. die 4 Kästen auf "Mitglied werden") */
.hover-karte { transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background-color .2s ease; }
.hover-karte h3 { transition: color .2s ease; }
.hover-karte:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0,0,0,.10); border-color: var(--rot); background: var(--rot-hell); }
.hover-karte:hover h3 { color: var(--rot); }
@media (prefers-reduced-motion: reduce) { .hover-karte, .hover-karte:hover { transition: none; transform: none; } }
.info-box ul { margin: 0; padding-left: 20px; }
.notruf-box { background: var(--karte); border: 1px solid var(--linie); border-top: 3px solid var(--rot); border-radius: var(--radius); padding: 24px; }
.notruf-nummern { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 14px; }
.notruf-nummern a { background: var(--rot-hell); border: 1px solid var(--rot-rand); border-radius: var(--radius); padding: 12px 6px; text-align: center; text-decoration: none; }
.notruf-nummern a strong { display: block; font-size: 1.8rem; color: var(--rot); line-height: 1.1; }
.notruf-nummern a span { font-size: .8rem; color: var(--text); }

/* ---------- Artikel ---------- */
.artikel { max-width: 760px; }
.artikel h2 { margin-top: 1.4em; font-size: 1.4rem; }
.artikel ul, .artikel ol { padding-left: 22px; }

/* ---------- Formular ---------- */
.formular { display: grid; gap: 16px; }
.formular label { font-weight: 600; font-size: .92rem; display: block; margin-bottom: 6px; }
.formular input, .formular textarea, .formular select { width: 100%; font: inherit; padding: 11px 14px; border: 1px solid var(--rand-stark); border-radius: var(--radius); background: var(--karte); }
.formular input:focus, .formular textarea:focus, .formular select:focus { border-color: var(--rot); outline: 2px solid var(--rot-hell); }
.formular textarea { min-height: 140px; resize: vertical; }
/* "Bitte auswählen …" grau wie ein Platzhalter, echte Auswahl normal */
.formular select:invalid { color: var(--text-leise); }
.formular select option { color: var(--text); }
.formular .zeile { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.formular .check { display: flex; gap: 12px; align-items: flex-start; font-size: .92rem; font-weight: 400; line-height: 1.5; margin: 4px 0 0; cursor: pointer; }
.formular .check input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; padding: 0; accent-color: var(--rot); cursor: pointer; }
.formular .check span { flex: 1; min-width: 0; }
/* Spam-Falle: für Menschen unsichtbar */
.formular .falle { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
/* Captcha (ALTCHA) passend zum Design, auch im dunklen Modus */
.formular .captcha {
  --altcha-color-base: var(--karte); --altcha-color-text: var(--text); --altcha-color-border: var(--rand-stark);
  --altcha-color-border-focus: var(--rot); --altcha-color-error-text: var(--rot); --altcha-border-radius: var(--radius);
  --altcha-max-width: 320px;
  display: block; font-size: .95rem;
}
.formular-status { margin: 0; padding: 12px 16px; border-radius: var(--radius); border: 1px solid var(--linie); }
.formular-status.erfolg { background: var(--gruen-hell); border-color: var(--gruen-rand); color: var(--gruen-text); }
.formular-status.fehler { background: var(--rot-hell); border-color: var(--rot-rand); color: var(--text); }
.formular-status.fehler a { font-weight: 600; }
@media (max-width: 640px) { .formular .zeile { grid-template-columns: 1fr; } }

/* ---------- Fußbereich ---------- */
.site-footer { background: var(--flaeche); color: var(--text-leise); font-size: .93rem; padding: 0; border-top: 1px solid var(--linie); }
.site-footer .rwr { margin-bottom: 48px; }
.site-footer h4 { color: var(--text); font-size: 1rem; margin-bottom: 12px; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--rot); text-decoration: underline; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 7px; }
.footer-unten { border-top: 1px solid var(--linie); margin-top: 36px; padding: 16px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Diverses ---------- */
.zweispaltig { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: start; }
.zweispaltig > *, .news-eintrag > *, .grid > * { min-width: 0; }
/* Keine automatische Silbentrennung (sonst z. B. "Allent-steig" am Zeilenende);
   nur überlange Wörter dürfen notfalls umbrechen, damit nichts übersteht */
p, h1, h2, h3, li { overflow-wrap: break-word; hyphens: manual; }
@media (max-width: 900px) { .zweispaltig { grid-template-columns: 1fr; } }
.leer { color: var(--text-leise); padding: 22px; text-align: center; border: 1px dashed var(--rand-stark); border-radius: var(--radius); background: var(--karte); }
.hinweis-platzhalter { background: var(--gelb-hell); border: 1px solid var(--gelb-rand); color: var(--gelb-text); border-radius: var(--radius); padding: 10px 14px; font-size: .88rem; }

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

/* ---------- Warnungen (WordPress: Werkzeuge → Warnungen, inc/warnungen.php) – wie FF Allentsteig ---------- */
.wn--hinweis { --wn-farbe: #1d4ed8; --wn-text: #fff; }
.wn--vorwarnung { --wn-farbe: #ffd600; --wn-text: #1c1c1e; }
.wn--warnung { --wn-farbe: #ef7d00; --wn-text: #1c1c1e; }
.wn--unwetter { --wn-farbe: #c8102e; --wn-text: #fff; }
.warnstreifen { background: var(--wn-farbe); color: var(--wn-text); font-size: .95rem; }
.warnstreifen .container { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem .7rem; padding-top: .55rem; padding-bottom: .55rem; }
.warnstreifen__zeichen { font-size: 1.2em; line-height: 1; }
.warnstreifen a { color: inherit; font-weight: 700; text-decoration: underline; margin-left: auto; }
.warnungen { padding: 1.5rem 0 .5rem; }
.warnung { display: grid; gap: 1.2rem 1.6rem; background: var(--karte); border: 1px solid var(--linie); border-left: 8px solid var(--wn-farbe); border-radius: var(--radius); box-shadow: 0 2px 10px var(--schatten); padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
@media (min-width: 820px) { .warnung--mit-bild { grid-template-columns: minmax(0, 1fr) minmax(0, 440px); align-items: start; } }
.warnung h2 { margin: .3rem 0 .2rem; font-size: clamp(1.3rem, 3vw, 1.7rem); }
.warnung p { margin: .4rem 0; }
.warnung__kopf { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: 0 !important; }
.warnung__stufe { background: var(--wn-farbe); color: var(--wn-text); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; padding: .2rem .6rem; border-radius: 999px; }
.warnung__art { color: var(--text-leise); font-weight: 600; font-size: .9rem; }
.warnung__zeit { font-weight: 700; }
.warnung__gebiet { color: var(--text-leise); font-weight: 600; }
.warnung__quelle { font-size: .9rem; color: var(--text-leise); }
.warnung__mehr summary { cursor: pointer; font-weight: 600; color: var(--rot); }
.warnung__bild { margin: 0; }
/* Zuklappen: Knopf rechts im Kopf; zu = nur Stufe, Titel und Zeitraum */
.warnung__knopf { margin-left: auto; display: inline-flex; align-items: center; gap: .4rem; background: none; border: 1px solid var(--linie); border-radius: 999px; padding: .25rem .8rem; font: inherit; font-size: .85rem; font-weight: 600; color: var(--text); cursor: pointer; }
.warnung__knopf::after { content: ""; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(2px) rotate(-135deg); }
.warnung.zu .warnung__knopf::after { transform: translateY(-2px) rotate(45deg); }
.warnung__knopf:hover { color: var(--rot); border-color: var(--rot); }
.warnung.zu .warnung__inhalt, .warnung.zu .warnung__bildfeld { display: none; }
.warnung.zu { grid-template-columns: minmax(0, 1fr); padding-top: .9rem; padding-bottom: .9rem; }
.warnung__bild img { display: block; width: 100%; height: auto; border-radius: calc(var(--radius) - 2px); }
.warnung__bild figcaption { font-size: .8rem; color: var(--text-leise); margin-top: .3rem; }
.warnkarte__svg { display: block; width: 100%; height: auto; max-height: 420px; }
.warnkarte__legende { list-style: none; margin: .4rem 0 .2rem; padding: 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--text); font-size: .85rem; }
.warnkarte__legende span { display: inline-block; width: .9em; height: .9em; border-radius: 3px; margin-right: .35em; vertical-align: -.1em; }.warnkarte__abschnitt { stroke: var(--text); }
