/* =====================================================================
   Freiwillige Feuerwehr Schmalkalden — Basis-Stylesheet
   ---------------------------------------------------------------------
   Farbwelt und Typografie folgen den Corporate Design Guidelines der
   Stadt Schmalkalden (Stand November 2024):
     Rot #B61830 (Kernstadt) · Grün #298F54 (Thüringer Wald)
     Blau #204D8C (Werra)    · Offwhite #E6E6E6 · Blaugrau #737E83
     Schriften: Red Hat (Kommunikation), Bitter (Auszeichnung)
   Die dunklen Flächen und das Warnstreifen-Motiv greifen die
   Feuerwehr-Anwendung des CD auf (siehe Fahrtenbuch).
   ===================================================================== */

@import url('../fonts/fonts.css');

/* ---------------------------------------------------------------------
   1. Design-Tokens
   --------------------------------------------------------------------- */
:root {
  /* --- Primärfarben laut CD --- */
  --rot: #b61830;
  --gruen: #298f54;
  --blau: #204d8c;
  --offwhite: #e6e6e6;
  --blaugrau: #737e83;
  --schwarz: #000000;

  /* Abgeleitete Töne für Verläufe und Zustände */
  --rot-hell: #d8354d;
  --rot-tief: #7d1020;
  --blau-hell: #3a6fb8;
  --gelb: #fccf51;   /* CD-Sekundärfarbe Sonnengelb */

  /* Dunkle Flächen (Hero, Seitenkopf, Fußzeile) — Navy wie im Fahrtenbuch */
  --navy: #101a3a;
  --navy-2: #16224a;
  --navy-3: #24325e;
  --auf-dunkel: #f4f6fa;
  --auf-dunkel-leise: #a9b4cc;

  /* --- Typografie laut CD --- */
  --font-display: 'Red Hat Display', 'Red Hat Text', Arial, system-ui, sans-serif;
  --font: 'Red Hat Text', Arial, system-ui, sans-serif;
  --font-auszeichnung: 'Bitter', Georgia, serif;
  --font-mono: 'Red Hat Mono', ui-monospace, Menlo, Consolas, monospace;

  /* Fließende Schriftgrößen */
  --fs-hero: clamp(2.4rem, 6.4vw, 4.6rem);
  --fs-h1: clamp(2rem, 4.5vw, 3.25rem);
  --fs-h2: clamp(1.5rem, 3vw, 2.25rem);
  --fs-h3: clamp(1.15rem, 1.8vw, 1.4rem);
  --fs-body: clamp(1rem, 1.1vw, 1.0625rem);
  --fs-klein: 0.875rem;
  --fs-label: 0.75rem;

  /* Abstände */
  --raum-xs: 0.5rem;
  --raum-s: 1rem;
  --raum-m: 1.75rem;
  --raum-l: 3rem;
  --raum-xl: clamp(3.5rem, 8vw, 7rem);

  --breite: 1200px;
  --breite-schmal: 760px;

  --radius: 14px;
  --radius-s: 8px;
  --radius-gross: 24px;

  --header-hoehe: 108px;
  --header-hoehe-kompakt: 84px;

  --uebergang: 220ms cubic-bezier(0.2, 0.7, 0.3, 1);
}

/* Helles Theme (Standard) */
:root {
  --bg: #f5f6f8;
  --bg-2: #ffffff;
  --bg-3: var(--offwhite);
  --text: #14171d;
  --text-leise: #59636e;
  --rand: #dcdfe4;
  --rand-stark: #bfc5cd;
  --schatten: 0 1px 2px rgba(16, 26, 58, 0.06), 0 8px 24px rgba(16, 26, 58, 0.08);
  --schatten-hoch: 0 4px 12px rgba(16, 26, 58, 0.1), 0 24px 48px rgba(16, 26, 58, 0.16);
  --header-bg: rgba(245, 246, 248, 0.85);
  --rot-text: var(--rot);
  --blau-text: var(--blau);
}

/* Dunkles Theme */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1226;
    --bg-2: #141c36;
    --bg-3: #1e2848;
    --text: #eef1f7;
    --text-leise: #a0abc2;
    --rand: #27314f;
    --rand-stark: #3a4568;
    --schatten: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
    --schatten-hoch: 0 4px 12px rgba(0, 0, 0, 0.5), 0 24px 48px rgba(0, 0, 0, 0.6);
    --header-bg: rgba(12, 18, 38, 0.82);
    --rot-text: #ff7d8f;
    --blau-text: #7fa8e8;
  }
}

/* Manuelle Umschaltung überschreibt die Systemeinstellung in beide Richtungen */
:root[data-theme='dark'] {
  --bg: #0c1226;
  --bg-2: #141c36;
  --bg-3: #1e2848;
  --text: #eef1f7;
  --text-leise: #a0abc2;
  --rand: #27314f;
  --rand-stark: #3a4568;
  --schatten: 0 1px 2px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
  --schatten-hoch: 0 4px 12px rgba(0, 0, 0, 0.5), 0 24px 48px rgba(0, 0, 0, 0.6);
  --header-bg: rgba(12, 18, 38, 0.82);
  --rot-text: #ff7d8f;
  --blau-text: #7fa8e8;
}

:root[data-theme='light'] {
  --bg: #f5f6f8;
  --bg-2: #ffffff;
  --bg-3: var(--offwhite);
  --text: #14171d;
  --text-leise: #59636e;
  --rand: #dcdfe4;
  --rand-stark: #bfc5cd;
  --schatten: 0 1px 2px rgba(16, 26, 58, 0.06), 0 8px 24px rgba(16, 26, 58, 0.08);
  --schatten-hoch: 0 4px 12px rgba(16, 26, 58, 0.1), 0 24px 48px rgba(16, 26, 58, 0.16);
  --header-bg: rgba(245, 246, 248, 0.85);
  --rot-text: var(--rot);
  --blau-text: var(--blau);
}

/* ---------------------------------------------------------------------
   2. Reset und Grundlagen
   --------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-hoehe) + 1rem);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0 0 var(--raum-s);
  font-family: var(--font-display);
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); letter-spacing: -0.01em; }

p { margin: 0 0 var(--raum-s); }
p:last-child { margin-bottom: 0; }

a { color: var(--rot-text); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--rot-hell); }

img, svg { max-width: 100%; height: auto; display: block; }

ul, ol { margin: 0 0 var(--raum-s); padding-left: 1.25rem; }

/* Auszeichnungsschrift Bitter — für Zitate und hervorgehobene Absätze */
.auszeichnung, blockquote {
  font-family: var(--font-auszeichnung);
  font-size: 1.1em;
  line-height: 1.55;
}

blockquote {
  margin: var(--raum-m) 0;
  padding-left: var(--raum-m);
  border-left: 3px solid var(--rot);
  color: var(--text-leise);
}

:focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 3px;
  border-radius: 4px;
}

.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;
  top: -100px;
  left: var(--raum-s);
  z-index: 200;
  padding: 0.75rem 1.25rem;
  background: var(--rot);
  color: #fff;
  font-weight: 700;
  border-radius: 0 0 var(--radius-s) var(--radius-s);
  text-decoration: none;
  transition: top var(--uebergang);
}
.skip-link:focus { top: 0; color: #fff; }

/* ---------------------------------------------------------------------
   3. Layout-Primitive
   --------------------------------------------------------------------- */
.huelle {
  width: min(100% - 2.5rem, var(--breite));
  margin-inline: auto;
}

.huelle-schmal {
  width: min(100% - 2.5rem, var(--breite-schmal));
  margin-inline: auto;
}

.sektion { padding-block: var(--raum-xl); }
.sektion--flaeche { background: var(--bg-2); }

.label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--raum-s);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rot-text);
}
.label::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--rot);
}

.sektion__kopf { max-width: 62ch; margin-bottom: var(--raum-l); }
.sektion__kopf p { color: var(--text-leise); font-size: 1.05em; }

.text-leise { color: var(--text-leise); }

/* Abschluss zwischen den Flächen: eine ruhige Kante in CD-Rot.
   Bewusst ohne Textur oder Muster — der Übergang soll die Sektionen
   trennen, nicht selbst Aufmerksamkeit ziehen. */
.streifen {
  height: 5px;
  background: var(--rot);
}

/* Variante mit dezentem Farbverlauf über die drei CD-Primärfarben,
   passend zu den Farbflächen der Wort-Bild-Marke. */
.streifen--verlauf {
  background: linear-gradient(90deg, var(--rot) 0%, var(--rot) 45%, var(--blau) 72%, var(--gruen) 100%);
}

/* ---------------------------------------------------------------------
   4. Buttons
   --------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.6rem;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform var(--uebergang), background var(--uebergang),
              border-color var(--uebergang), color var(--uebergang), box-shadow var(--uebergang);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn--primaer {
  background: var(--rot);
  color: #fff;
  box-shadow: 0 6px 20px rgba(182, 24, 48, 0.35);
}
.btn--primaer:hover { background: var(--rot-hell); color: #fff; box-shadow: 0 10px 28px rgba(182, 24, 48, 0.45); }

.btn--umriss {
  border-color: var(--rand-stark);
  color: var(--text);
  background: transparent;
}
.btn--umriss:hover { border-color: var(--rot); color: var(--rot-text); }

.auf-dunkel .btn--umriss,
.hero .btn--umriss,
.notruf-block .btn--umriss,
.fuss .btn--umriss { border-color: rgba(255, 255, 255, 0.4); color: var(--auf-dunkel); }
.auf-dunkel .btn--umriss:hover,
.hero .btn--umriss:hover,
.notruf-block .btn--umriss:hover,
.fuss .btn--umriss:hover { border-color: #fff; color: #fff; background: rgba(255, 255, 255, 0.1); }

/* ---------------------------------------------------------------------
   5. Kopfzeile und Navigation
   --------------------------------------------------------------------- */
.kopf {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--uebergang), box-shadow var(--uebergang);
}

.kopf__innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--raum-s);
  height: var(--header-hoehe);
  transition: height var(--uebergang);
}

/* Wort-Bild-Marke der Feuerwehr Schmalkalden */
.marke { display: flex; align-items: center; text-decoration: none; }
.marke__logo {
  height: 76px;
  width: auto;
  transition: height var(--uebergang);
}
/* Im dunklen Theme erscheint die Marke einfarbig weiß.
   brightness(0) macht die Grafik zunächst vollständig schwarz, invert(1)
   kehrt sie dann zu reinem Weiß – unabhängig von den Ausgangsfarben.
   (Ein reines invert() würde die Farbflächen des Wappens nur umkehren
   und sie blieben bunt.) */
:root[data-theme='dark'] .marke__logo { filter: brightness(0) invert(1); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) .marke__logo { filter: brightness(0) invert(1); }
}

.nav { display: flex; align-items: center; gap: 0.25rem; }

.nav__link {
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background var(--uebergang), color var(--uebergang);
}
.nav__link:hover { background: var(--bg-3); color: var(--text); }
.nav__link[aria-current='page'] { color: var(--rot-text); }
.nav__link[aria-current='page']::after {
  content: '';
  display: block;
  height: 3px;
  margin-top: 3px;
  background: var(--rot);
  border-radius: 2px;
}

.kopf__aktionen { display: flex; align-items: center; gap: 0.5rem; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--rand);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  transition: background var(--uebergang), border-color var(--uebergang);
}
.icon-btn:hover { background: var(--bg-3); border-color: var(--rand-stark); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-schalter { display: none; }

@media (max-width: 940px) {
  .nav-schalter { display: inline-flex; }

  .nav {
    position: fixed;
    inset: var(--header-hoehe) 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: var(--raum-s) 1.25rem var(--raum-m);
    background: var(--bg-2);
    border-bottom: 1px solid var(--rand);
    box-shadow: var(--schatten-hoch);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--uebergang), transform var(--uebergang), visibility var(--uebergang);
  }
  .nav[data-offen='true'] { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav__link { padding: 0.9rem 0.5rem; font-size: 1.0625rem; border-bottom: 1px solid var(--rand); border-radius: 0; }
  .nav__link[aria-current='page']::after { display: none; }
  .nav__link[aria-current='page'] { background: var(--bg-3); }

  /* Die Wort-Bild-Marke ist 2,6-mal so breit wie hoch. Eine feste Hoehe
     waere entweder auf schmalen Geraeten zu breit oder auf breiten zu
     klein — daher waechst sie mit der Fensterbreite mit. 20vw ist so
     gewaehlt, dass bei 320px genau die bisherige Hoehe herauskommt; erst
     breitere Geraete bekommen mehr. Der obere Wert laesst neben den
     Bedienelementen noch genug Luft. */
  .marke__logo { height: clamp(64px, 20vw, 88px); }
}

/* ---------------------------------------------------------------------
   6. Hero mit Bild
   --------------------------------------------------------------------- */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(560px, 86vh, 860px);
  padding-block: var(--raum-xl);
  overflow: hidden;
  background: var(--navy);
  color: var(--auf-dunkel);
  text-align: center;
}

/* Hintergrundfoto */
/* Ausschnitt am unteren Bildrand verankern: Fahrzeuge und Mannschaft stehen
   im unteren Drittel. Wird oben beschnitten, geht nur Himmel verloren. */
.hero__bild {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
}

/* Farbschleier in Navy, damit der Text sicher lesbar bleibt */
/* Der Schleier ist im mittleren Band am kräftigsten — dort steht der Text.
   Oben und unten bleibt er licht, damit Himmel und Fuhrpark sichtbar bleiben. */
.hero__schleier {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      180deg,
      rgba(16, 26, 58, 0.52) 0%,
      rgba(16, 26, 58, 0.78) 32%,
      rgba(16, 26, 58, 0.78) 62%,
      rgba(16, 26, 58, 0.5) 100%
    ),
    linear-gradient(100deg, rgba(182, 24, 48, 0.28) 0%, transparent 58%, rgba(32, 77, 140, 0.34) 100%);
}

.hero__inhalt { position: relative; z-index: 4; }

.hero__titel {
  font-family: var(--font-display);
  font-size: var(--fs-hero);
  font-weight: 900;
  letter-spacing: -0.035em;
  margin-bottom: var(--raum-s);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.hero__titel span { display: block; }
.hero__titel .akzent {
  background: linear-gradient(100deg, #ff6478, var(--gelb));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__text {
  max-width: 58ch;
  margin: 0 auto var(--raum-m);
  font-size: clamp(1.0625rem, 1.6vw, 1.25rem);
  color: var(--auf-dunkel);
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.5);
}

.hero__aktionen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  justify-content: center;
}

.hero__marke {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: var(--raum-m);
  padding: 0.4rem 1rem 0.4rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  font-family: var(--font-display);
  font-size: var(--fs-klein);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}
.hero__marke .punkt {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gelb);
}

/* Seitenkopf der Unterseiten — ebenfalls mit Bild.
   Die Höhe wächst mit der Fensterbreite: Ein nur inhaltshoher Kopf wäre auf
   breiten Monitoren extrem flach (z. B. 6,6:1), von einem 3:2-Foto bliebe
   dann kaum ein Fünftel der Bildhöhe sichtbar. Der obere Deckel verhindert,
   dass der Kopf auf sehr großen Schirmen die ganze Seite füllt. */
/* Grid statt Flex: Die .huelle behält so ihre eigene Breitenbegrenzung und
   bleibt über margin-inline:auto mittig. (Ein width:100% an dieser Stelle
   würde die Begrenzung aushebeln und den Text an den Bildschirmrand ziehen.)
   align-content zentriert den Inhalt senkrecht in der Mindesthöhe. */
.seitenkopf {
  position: relative;
  isolation: isolate;
  display: grid;
  align-content: center;
  min-height: clamp(300px, 23vw, 440px);
  padding-block: clamp(2.5rem, 4vw, 3.5rem);
  background: var(--navy);
  color: var(--auf-dunkel);
  overflow: hidden;
}
.seitenkopf h1 { margin-bottom: 0.75rem; text-shadow: 0 2px 20px rgba(0, 0, 0, 0.4); }
.seitenkopf p { max-width: 62ch; color: var(--auf-dunkel); }
.seitenkopf .label { color: var(--gelb); }
.seitenkopf .label::before { background: var(--gelb); }

.seitenkopf__bild {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}
/* Der Schleier deckt vor allem die Textseite ab. Nach rechts läuft er weit
   auf, damit vom Motiv möglichst viel sichtbar bleibt. */
.seitenkopf__schleier {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(
      90deg,
      rgba(16, 26, 58, 0.92) 0%,
      rgba(16, 26, 58, 0.82) 32%,
      rgba(16, 26, 58, 0.55) 62%,
      rgba(16, 26, 58, 0.32) 100%
    ),
    linear-gradient(0deg, rgba(16, 26, 58, 0.55), transparent 45%);
}

/* Auf schmalen Schirmen steht der Text über der vollen Bildbreite —
   dort muss der Schleier durchgehend decken. */
@media (max-width: 700px) {
  .seitenkopf__schleier {
    background:
      linear-gradient(90deg, rgba(16, 26, 58, 0.9) 0%, rgba(16, 26, 58, 0.78) 100%),
      linear-gradient(0deg, rgba(16, 26, 58, 0.6), transparent 50%);
  }
}

.krumen {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--raum-s);
  padding: 0;
  list-style: none;
  font-size: var(--fs-klein);
  color: var(--auf-dunkel-leise);
}
.krumen a { color: var(--auf-dunkel-leise); }
.krumen a:hover { color: #fff; }
.krumen li + li::before { content: '›'; margin-right: 0.5rem; }

/* ---------------------------------------------------------------------
   7. Kennzahlen
   --------------------------------------------------------------------- */
.kennzahlen {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--rand);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  overflow: hidden;
}

.kennzahl {
  padding: var(--raum-m) var(--raum-s);
  background: var(--bg-2);
  text-align: center;
}
.kennzahl__wert {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--rot-text);
  font-variant-numeric: tabular-nums;
}
.kennzahl__label { display: block; margin-top: 0.5rem; font-weight: 700; font-size: 0.9375rem; }
.kennzahl__hinweis { display: block; margin-top: 0.15rem; font-size: var(--fs-klein); color: var(--text-leise); }

/* ---------------------------------------------------------------------
   Letzte Einsätze
   --------------------------------------------------------------------- */
.einsaetze__kopf { margin-bottom: var(--raum-s); }
.einsaetze__kopf h3 { margin-bottom: 0.25rem; }

.einsaetze__liste {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

.einsatz {
  display: flex;
  align-items: center;
  gap: var(--raum-s);
  padding: 0.9rem 1.1rem;
  background: var(--bg-2);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

/* Kategorie-Plakette: Brand rot, Hilfeleistung blau */
.einsatz__kategorie {
  display: inline-grid;
  place-items: center;
  min-width: 3.4rem;
  padding: 0.4rem 0.6rem;
  flex: none;
  border-radius: var(--radius-s);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  color: #fff;
  background: var(--blaugrau);
}
/* Die Art steht am Listeneintrag; in der Legende steht sie an der Plakette
   selbst — beide Fälle müssen greifen. */
.einsatz[data-art='brand'] .einsatz__kategorie,
.einsatz__kategorie[data-art='brand'] { background: var(--rot); }
.einsatz[data-art='hilfe'] .einsatz__kategorie,
.einsatz__kategorie[data-art='hilfe'] { background: var(--blau); }

.einsatz__text { min-width: 0; }

/* Das eigentliche Stichwort trägt den Eintrag */
.einsatz__stichwort {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.0625rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-wrap: balance;
}

.einsatz__ort {
  margin: 0.1rem 0 0;
  line-height: 1.4;
  color: var(--text-leise);
}
.einsatz__zeit {
  margin: 0.15rem 0 0;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--text-leise);
}

/* Beteiligte Wehren als kleine Chips (Wappen + Kurzname) */
.einsatz__wehren {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  margin: 0.5rem 0 0;
}
.einsatz-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.15rem 0.55rem 0.15rem 0.25rem;
  border: 1px solid var(--rand);
  border-radius: 999px;
  background: var(--bg-2);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  color: var(--text-leise);
}
.einsatz-chip__wappen {
  flex: none;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 6px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.6rem;
  color: #fff;
}
.einsatz-chip__wappen.ist-stuetzpunkt { background: var(--rot); }
.einsatz-chip__wappen.ist-ortsteil { background: var(--blau); }
.einsatz-chip__wappen--patch {
  width: auto;
  height: 1.55rem;
  background: none;
  border-radius: 0;
  object-fit: contain;
}
.einsatz-chip__name { white-space: nowrap; }

.einsaetze__legende {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: var(--raum-s);
  font-size: var(--fs-klein);
  color: var(--text-leise);
}
.einsaetze__legende .einsatz__kategorie {
  min-width: 0;
  padding: 0.2rem 0.5rem;
  font-size: 0.75rem;
}

/* ---------------------------------------------------------------------
   8. Karten-Raster
   --------------------------------------------------------------------- */
.raster {
  display: grid;
  gap: var(--raum-s);
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
}
.raster--breit { grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); }
.raster--eng { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }

.karte {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: var(--raum-m);
  background: var(--bg-2);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}

/* Wehr-Karte mit Bildkopf */
.wehr-karte {
  text-decoration: none;
  color: inherit;
  padding: 0;
}
.wehr-karte:hover { color: inherit; }

/* Seitenverhältnis folgt den Mannschaftsfotos aus der Festschrift (ca. 2,27:1),
   damit bei object-fit: cover niemand am Bildrand abgeschnitten wird. */
.wehr-karte__bild {
  position: relative;
  aspect-ratio: 2.2 / 1;
  overflow: hidden;
  border-radius: calc(var(--radius) - 1px) calc(var(--radius) - 1px) 0 0;
  background: var(--navy-2);
}
.wehr-karte__bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 600ms cubic-bezier(0.2, 0.7, 0.3, 1);
}
.wehr-karte:hover .wehr-karte__bild img { transform: scale(1.06); }

/* Farbschleier über dem Bild, damit das Abzeichen lesbar bleibt */
.wehr-karte__bild::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(16, 26, 58, 0.5) 0%, transparent 45%, rgba(16, 26, 58, 0.35) 100%);
}

.wehr-karte__abzeichen {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 2;
}

.wehr-karte__koerper {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: var(--raum-m);
}

.wehr-karte h3 { margin-bottom: 0.25rem; }

.wehr-karte__ort { font-size: var(--fs-klein); color: var(--text-leise); margin-bottom: 0.85rem; }

.wehr-karte__text {
  margin-bottom: var(--raum-s);
  font-size: 0.9375rem;
  color: var(--text-leise);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.wehr-karte__fuss {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--raum-s);
  margin-top: auto;
  padding-top: var(--raum-s);
  border-top: 1px solid var(--rand);
  font-size: var(--fs-klein);
  font-weight: 600;
}
.wehr-karte__mehr { color: var(--rot-text); display: inline-flex; align-items: center; gap: 0.35rem; }
.wehr-karte__mehr svg { width: 16px; height: 16px; transition: transform var(--uebergang); }
.wehr-karte:hover .wehr-karte__mehr svg { transform: translateX(4px); }

/* Abzeichen */
.abzeichen {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}
.abzeichen--stuetzpunkt { background: var(--rot); color: #fff; }
.abzeichen--ortsteil { background: var(--blau); color: #fff; }
.abzeichen--zahl {
  background: var(--bg-3);
  color: var(--text);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* ---------------------------------------------------------------------
   Kompakte Wehr-Zeilen — „Andere Wehren im Stadtgebiet"
   Bewusst reduziert: Wappen mit Initialen, Name, eine Metazeile.
   --------------------------------------------------------------------- */
.wehren-mini {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr));
  gap: 0.75rem;
}
.wehr-mini {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.85rem;
  background: var(--bg-2);
  border: 1px solid var(--rand);
  border-radius: var(--radius-m, 12px);
  text-decoration: none;
  color: inherit;
  transition: border-color var(--uebergang), transform var(--uebergang), box-shadow var(--uebergang);
}
.wehr-mini:hover,
.wehr-mini:focus-visible {
  border-color: var(--rot);
  transform: translateY(-2px);
  box-shadow: var(--schatten);
}
.wehr-mini__wappen {
  flex: none;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
}
.wehr-mini__wappen.ist-stuetzpunkt { background: var(--rot); }
.wehr-mini__wappen.ist-ortsteil { background: var(--blau); }
/* Vollständiges Wappen statt Initialen-Kachel: hochkant, ohne Hintergrund */
.wehr-mini__wappen--patch {
  width: auto;
  height: 3rem;
  background: none;
  border-radius: 0;
  object-fit: contain;
}
.wehr-mini__text { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.wehr-mini__name { font-weight: 700; }
.wehr-mini__meta {
  font-size: var(--fs-klein);
  color: var(--text-leise);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wehr-mini__pfeil {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin-left: auto;
  color: var(--blaugrau);
  transition: transform var(--uebergang), color var(--uebergang);
}
.wehr-mini:hover .wehr-mini__pfeil,
.wehr-mini:focus-visible .wehr-mini__pfeil {
  color: var(--rot);
  transform: translateX(3px);
}

/* Wappen-Kachel mit Initialen — greift die Wappenform des Stadtlogos auf */
.wappen {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: none;
  border-radius: 14px;
  background: linear-gradient(150deg, var(--blau), var(--navy));
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  box-shadow: 0 4px 14px rgba(32, 77, 140, 0.32);
}
.wappen--rot { background: linear-gradient(150deg, var(--rot), var(--rot-tief)); box-shadow: 0 4px 14px rgba(182, 24, 48, 0.32); }
.wappen--gross { width: 72px; height: 72px; font-size: 1.6rem; border-radius: 18px; }
/* Vollständiges Wappen statt Kachel (Fuhrpark-Gruppenkopf) */
.wappen--patch {
  width: auto;
  height: 60px;
  background: none;
  border-radius: 0;
  box-shadow: none;
  object-fit: contain;
}

/* Wappen als Wert in der rechten Spalte des „Wissenswertes"-Blocks,
   gleich ausgerichtet wie „Gegründet" und „Mitglieder" — größer für
   bessere Erkennbarkeit. */
.wappen-wert {
  width: auto;
  height: 120px;
  vertical-align: middle;
}

/* ---------------------------------------------------------------------
   9. Bildbausteine
   --------------------------------------------------------------------- */

/* Bild mit weichen Ecken für Textspalten */
.bild-block {
  position: relative;
  border-radius: var(--radius-gross);
  overflow: hidden;
  box-shadow: var(--schatten-hoch);
}
.bild-block img { width: 100%; height: 100%; object-fit: cover; }
.bild-block--hoch { aspect-ratio: 3 / 4; }
.bild-block--quer { aspect-ratio: 4 / 3; }

/* Bildunterschrift / Nachweis */
.bild-block__nachweis {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(16, 26, 58, 0.66);
  color: #fff;
  font-size: 0.6875rem;
  letter-spacing: 0.04em;
}

/* Mannschaftsfoto auf der Detailseite einer Wehr */
.mannschaft { margin: 0 0 var(--raum-l); }
.mannschaft figcaption {
  margin-top: 0.65rem;
  font-size: var(--fs-klein);
  color: var(--text-leise);
}

/* Breites Zitat-/Bildband über die volle Breite */
.bildband {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  min-height: clamp(320px, 46vh, 520px);
  padding-block: var(--raum-l);
  overflow: hidden;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
.bildband img {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.bildband::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(16, 26, 58, 0.82), rgba(16, 26, 58, 0.72));
}
.bildband__inhalt { position: relative; z-index: 2; }
.bildband__inhalt p {
  font-family: var(--font-auszeichnung);
  font-size: clamp(1.15rem, 2.2vw, 1.6rem);
  line-height: 1.5;
  max-width: 34ch;
  margin-inline: auto;
}

/* Jahreszahl als Blickfang über der Aussage */
.bildband__jahr {
  display: block;
  margin-bottom: 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--gelb);
}
.bildband__quelle {
  margin-top: var(--raum-s);
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gelb);
}

/* ---------------------------------------------------------------------
   10. Detailseite einer Wehr
   --------------------------------------------------------------------- */
.wehr-layout {
  display: grid;
  gap: var(--raum-l);
  grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 940px) {
  .wehr-layout { grid-template-columns: 1fr; }
}

.info-liste { margin: 0; padding: 0; list-style: none; }
.info-liste li {
  display: flex;
  gap: var(--raum-s);
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--rand);
}
.info-liste li:last-child { border-bottom: 0; }
.info-liste__begriff {
  flex: 0 0 38%;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-leise);
}
.info-liste__wert { flex: 1; min-width: 0; word-break: break-word; }

/* Ergänzende Angabe unter einem Wert, z. B. die Geschlechteraufteilung */
.info-liste__zusatz {
  display: block;
  font-size: var(--fs-klein);
  color: var(--text-leise);
}

/* Anschrift des Gerätehauses — ohne Tabellenoptik, gut lesbar */
.geraetehaus-adresse {
  margin: 0;
  font-size: 1.05em;
  line-height: 1.5;
}

/* Ansprechpartner */
.person {
  display: flex;
  align-items: center;
  gap: var(--raum-s);
  padding: var(--raum-s);
  background: var(--bg-3);
  border-radius: var(--radius-s);
}
.person + .person { margin-top: 0.65rem; }
.person__name { font-weight: 700; }
.person__funktion {
  display: block;
  font-family: var(--font-display);
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rot-text);
}
.person__zusatz { display: block; font-size: var(--fs-klein); color: var(--text-leise); }
.person__kontakt { font-size: var(--fs-klein); word-break: break-word; }
.person__kontakt a { display: block; }

/* Hinweis anstelle eines Namens, z. B. bei unbesetzter Funktion */
.person__status { font-style: italic; font-weight: 400; color: var(--text-leise); }

/* ---------------------------------------------------------------------
   Auftritte in sozialen Netzwerken
   --------------------------------------------------------------------- */
.social-liste { display: flex; flex-wrap: wrap; gap: 0.6rem; }

.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem;
  border: 1px solid var(--rand-stark);
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: border-color var(--uebergang), color var(--uebergang), background var(--uebergang);
}
.social-link svg { width: 18px; height: 18px; flex: none; }
.social-link:hover {
  border-color: var(--blau);
  color: var(--blau-text);
  background: var(--bg-3);
}

/* Platzhalter für noch fehlende Daten */
.platzhalter {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-style: italic;
  color: var(--text-leise);
}
.platzhalter::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gelb);
  flex: none;
}

/* Merkmal-Liste */
.merkmale { list-style: none; padding: 0; margin: 0; }
.merkmale li {
  position: relative;
  padding-left: 1.9rem;
  margin-bottom: 0.6rem;
}
.merkmale li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 10px;
  height: 10px;
  border-radius: 2px;
  background: var(--rot);
}
.merkmale li:nth-child(3n + 2)::before { background: var(--gruen); }
.merkmale li:nth-child(3n + 3)::before { background: var(--blau); }

/* ---------------------------------------------------------------------
   11. Fuhrpark
   --------------------------------------------------------------------- */
.filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--raum-m);
}

.filter__btn {
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--rand-stark);
  border-radius: 999px;
  background: var(--bg-2);
  color: var(--text);
  font-family: var(--font-display);
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: background var(--uebergang), border-color var(--uebergang), color var(--uebergang);
}
.filter__btn:hover { border-color: var(--rot); }
.filter__btn[aria-pressed='true'] {
  background: var(--rot);
  border-color: var(--rot);
  color: #fff;
}

/* Bildkopf der Fahrzeugkarte — echtes Foto oder Platzhalter */
/* Fahrzeugbild im aufgeklappten Detailbereich */
.fahrzeug__bild {
  aspect-ratio: 16 / 9;
  margin-bottom: var(--raum-s);
  overflow: hidden;
  border-radius: var(--radius-s);
  background: var(--bg-3);
}
.fahrzeug__bild img { width: 100%; height: 100%; object-fit: cover; }


.fahrzeug {
  position: relative;
  padding: var(--raum-s) var(--raum-m) var(--raum-m);
  background: var(--bg-2);
  border: 1px solid var(--rand);
  border-radius: var(--radius);
  border-left: 5px solid var(--rand-stark);
  transition: border-left-color var(--uebergang), transform var(--uebergang), box-shadow var(--uebergang);
}
.fahrzeug[data-kategorie='fuehrung']   { border-left-color: var(--blau); }
.fahrzeug[data-kategorie='loesch']     { border-left-color: var(--rot); }
.fahrzeug[data-kategorie='hubrettung'] { border-left-color: var(--gelb); }
.fahrzeug[data-kategorie='sonder']     { border-left-color: var(--gruen); }

.fahrzeug__typ {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -0.03em;
  margin-bottom: 0.15rem;
}
.fahrzeug__typ-lang { font-size: var(--fs-klein); color: var(--text-leise); margin-bottom: 0.85rem; }
.fahrzeug__ruf {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  padding: 0.3rem 0.6rem;
  background: var(--bg-3);
  border-radius: var(--radius-s);
  display: inline-block;
  margin-bottom: 0.65rem;
}
.fahrzeug__wehr { font-size: var(--fs-klein); font-weight: 600; color: var(--text-leise); }
.fahrzeug__wehr a { color: var(--text-leise); }
.fahrzeug__wehr a:hover { color: var(--rot-text); }

.gruppe__titel {
  display: flex;
  align-items: center;
  gap: var(--raum-s);
  margin: var(--raum-l) 0 var(--raum-s);
}
.gruppe__titel::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--rand);
}
.gruppe__titel h3 { margin: 0; }

/* ---------------------------------------------------------------------
   12. Notruf-Bereich
   --------------------------------------------------------------------- */
.notruf-block {
  position: relative;
  isolation: isolate;
  padding: clamp(2rem, 5vw, 3.5rem);
  border-radius: var(--radius-gross);
  background: linear-gradient(135deg, var(--rot-tief), var(--rot));
  color: #fff;
  overflow: hidden;
}
.notruf-block h2 { color: #fff; }
.notruf-block p { color: rgba(255, 255, 255, 0.92); }

.notruf-nummer {
  display: inline-flex;
  align-items: baseline;
  gap: 0.75rem;
  margin: var(--raum-s) 0;
  font-family: var(--font-display);
  font-size: clamp(3.5rem, 12vw, 7rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
.notruf-nummer:hover { color: var(--gelb); }

/* Die fünf W-Fragen des Notrufs.
   Ab 900px stehen sie bewusst in einer einzigen Reihe — die Abfolge
   Wo · Was · Wie viele · Welche · Warten soll als Ganzes lesbar sein. */
.notruf-punkte {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 1fr;
  margin-top: var(--raum-m);
  padding: 0;
  list-style: none;
  counter-reset: wfrage;
}

@media (min-width: 560px) {
  .notruf-punkte { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .notruf-punkte { grid-template-columns: repeat(5, 1fr); }
}

.notruf-punkte li {
  counter-increment: wfrage;
  position: relative;
  padding: 0.85rem 0.9rem 0.9rem;
  background: rgba(0, 0, 0, 0.22);
  border-radius: var(--radius-s);
  border-top: 3px solid var(--gelb);
  font-size: 0.875rem;
  line-height: 1.45;
  text-wrap: pretty;
}

/* Laufende Nummer als dezente Ziffer oben rechts */
.notruf-punkte li::after {
  content: counter(wfrage);
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  font-family: var(--font-mono);
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.4);
}

.notruf-punkte strong {
  display: block;
  margin-bottom: 0.25rem;
  font-family: var(--font-display);
  font-size: 1.0625rem;
  color: var(--gelb);
}

/* Download der Notruf-PDFs unter den W-Fragen */
.notruf-download {
  margin-top: var(--raum-m);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
}
.notruf-download__mehr {
  font-size: var(--fs-klein);
  color: rgba(255, 255, 255, 0.8);
}
.notruf-download__mehr a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.notruf-download__mehr a:hover { color: var(--gelb); }

/* Schwebender Kontakt-Knopf.
   Bewusst KEIN Telefonlink auf die 112: ein versehentlicher Tap darf keinen
   Notruf auslösen. Der Knopf führt stattdessen zur Mitmach-Adresse. */
.kontakt-fab {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.9rem 1.35rem;
  border-radius: 999px;
  background: var(--rot);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 8px 28px rgba(182, 24, 48, 0.5);
}
.kontakt-fab:hover { background: var(--rot-hell); color: #fff; }
.kontakt-fab svg { width: 20px; height: 20px; flex: none; }

@media (max-width: 600px) {
  .kontakt-fab { right: 1rem; bottom: 1rem; padding: 0.85rem 1.1rem; }
}

/* ---------------------------------------------------------------------
   13. Aufruf-Boxen und Führungsstruktur
   --------------------------------------------------------------------- */
.aufruf {
  display: grid;
  gap: var(--raum-m);
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  align-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--bg-2);
  border: 1px solid var(--rand);
  border-radius: var(--radius-gross);
  box-shadow: var(--schatten);
}
@media (max-width: 800px) {
  .aufruf { grid-template-columns: 1fr; }
}

/* Führungsebene: Stadtbrandmeister oben, Stellvertreter darunter */
.fuehrung-ebene { margin-bottom: var(--raum-m); }
.fuehrung-ebene--spitze { max-width: 460px; margin-inline: auto; }

.fuehrung-karte {
  display: flex;
  align-items: center;
  gap: var(--raum-s);
  padding: var(--raum-m);
  background: var(--bg-2);
  border: 1px solid var(--rand);
  border-top: 4px solid var(--rot);
  border-radius: var(--radius);
  box-shadow: var(--schatten);
}
.fuehrung-karte--stellv { border-top-color: var(--blau); }
.fuehrung-karte--jugend { border-top-color: var(--gruen); }

/* Verbindungslinie zwischen den Ebenen */
.fuehrung-linie {
  width: 2px;
  height: 32px;
  margin: 0 auto var(--raum-s);
  background: linear-gradient(180deg, var(--rot), var(--blau));
}

/* ---------------------------------------------------------------------
   Zeitstrahl der Chronik
   --------------------------------------------------------------------- */
/* --spalte = Abstand vom linken Rand bis zum Textbeginn,
   --linie  = Position der senkrechten Linie darin.
   Beide zentral gesetzt, damit Jahreszahl, Punkt und Linie sicher fluchten. */
.zeitstrahl {
  --spalte: 6rem;
  --linie: 4.25rem;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0 0 0 var(--spalte);
}

/* Durchgehende Linie in den CD-Farben */
.zeitstrahl::before {
  content: '';
  position: absolute;
  left: var(--linie);
  top: 0.6rem;
  bottom: 0.6rem;
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--rot), var(--blau) 55%, var(--gruen));
  opacity: 0.35;
}

.zeitstrahl > li {
  position: relative;
  padding-bottom: var(--raum-l);
}
.zeitstrahl > li:last-child { padding-bottom: 0; }

/* Jahreszahl links der Linie — zurückhaltend gesetzt, mit Abstand zur Linie,
   damit sie den Zeitstrahl nicht überlagert. */
.zeitstrahl__jahr {
  position: absolute;
  left: calc(var(--spalte) * -1);
  top: 0.1rem;
  width: var(--linie);
  padding-right: 0.85rem;
  text-align: right;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-leise);
  font-variant-numeric: tabular-nums;
}

/* Punkt auf der Linie */
.zeitstrahl > li::before {
  content: '';
  position: absolute;
  left: calc((var(--spalte) - var(--linie)) * -1 - 3px);
  top: 0.42rem;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--rot);
  border: 3px solid var(--bg);
  box-shadow: 0 0 0 1px var(--rot);
}
.sektion--flaeche .zeitstrahl > li::before { border-color: var(--bg-2); }

.zeitstrahl__inhalt h3 { margin-bottom: 0.35rem; }
.zeitstrahl__inhalt p { color: var(--text-leise); }

.zeitstrahl__bild {
  margin: var(--raum-s) 0 0;
  max-width: 460px;
}
.zeitstrahl__bild img {
  width: 100%;
  border-radius: var(--radius-s);
  box-shadow: var(--schatten);
}
.zeitstrahl__bild figcaption {
  margin-top: 0.4rem;
  font-size: var(--fs-klein);
  color: var(--text-leise);
}

@media (max-width: 560px) {
  /* Auf schmalen Schirmen steht die Jahreszahl über dem Eintrag */
  .zeitstrahl { --spalte: 1.75rem; --linie: 0.25rem; }
  .zeitstrahl__jahr {
    position: static;
    display: block;
    width: auto;
    padding-right: 0;
    text-align: left;
    margin-bottom: 0.2rem;
  }
  .zeitstrahl > li::before { left: -1.75rem; top: 0.45rem; }
}

/* Schritt-Liste */
.schritte { counter-reset: schritt; list-style: none; padding: 0; margin: 0; }
.schritte li {
  counter-increment: schritt;
  position: relative;
  padding-left: 3.5rem;
  padding-bottom: var(--raum-m);
}
.schritte li::before {
  content: counter(schritt);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--rot);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
}
.schritte li:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 19px;
  top: 46px;
  bottom: 6px;
  width: 2px;
  background: var(--rand);
}
.schritte h3 { margin-bottom: 0.35rem; }

/* ---------------------------------------------------------------------
   14. Fußzeile
   --------------------------------------------------------------------- */
.fuss {
  background: var(--navy);
  color: var(--auf-dunkel-leise);
  /* Unten zusätzlicher Platz, damit der schwebende Kontakt-Knopf den
     Hinweis auf den Ersteller nicht überdeckt. */
  padding-block: var(--raum-l) calc(var(--raum-m) + 4.5rem);
}

@media (min-width: 900px) {
  /* Auf breiten Schirmen steht der Knopf rechts neben dem Text,
     dort genügt weniger Abstand. */
  .fuss { padding-bottom: calc(var(--raum-m) + 1.5rem); }
  .fuss__unten { padding-right: 12rem; }
}

.fuss__raster {
  display: grid;
  gap: var(--raum-m);
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-bottom: var(--raum-m);
}

.fuss h3 {
  font-size: var(--fs-label);
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 0.85rem;
}

.fuss ul { list-style: none; padding: 0; margin: 0; }
.fuss li { margin-bottom: 0.4rem; }
.fuss a { color: var(--auf-dunkel-leise); text-decoration: none; }
.fuss a:hover { color: var(--gelb); text-decoration: underline; }

.fuss__unten {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem var(--raum-m);
  align-items: center;
  justify-content: space-between;
  padding-top: var(--raum-s);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  font-size: var(--fs-klein);
}

/* Hinweis auf den Ersteller — zurückhaltend, ganz rechts */
.fuss__ersteller { margin-left: auto; opacity: 0.75; }
.fuss__ersteller a { text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 700px) {
  .fuss__ersteller { margin-left: 0; }
}

/* ---------------------------------------------------------------------
   15. Hinweisbox und Prosa
   --------------------------------------------------------------------- */
.hinweis {
  display: flex;
  gap: var(--raum-s);
  padding: var(--raum-s) var(--raum-m);
  background: var(--bg-3);
  border-left: 5px solid var(--gelb);
  border-radius: var(--radius-s);
  font-size: 0.9375rem;
}
.hinweis strong { display: block; }

.prosa h2 { margin-top: var(--raum-m); }
.prosa h3 { margin-top: var(--raum-s); }
.prosa { max-width: 70ch; }

/* ---------------------------------------------------------------------
   16. Druckausgabe
   --------------------------------------------------------------------- */
@media print {
  .kopf, .fuss, .notruf-fab, .filter, .skip-link, .bildband { display: none !important; }
  body { background: #fff; color: #000; }
  .hero, .seitenkopf { background: #fff; color: #000; min-height: 0; }
  .hero__bild, .hero__schleier, .seitenkopf__bild, .seitenkopf__schleier { display: none; }
  .karte, .fahrzeug { break-inside: avoid; box-shadow: none; }
}
