/* ==========================================================================
   Freiwillige Feuerwehr Kaisersbach — Design-System
   Ein einziges Stylesheet, mobile-first (alle Media-Queries min-width).

   Farbwelt: Feuerwehrrot als einziger Akzent, Anthrazit als Grundfläche,
   Weiß für die hellen Abschnitte. Das Rot stammt aus dem Wappen der Wehr
   (ausgemessen: #be291e). Die Token unten sind die EINZIGE Stelle, an der
   Farben definiert werden.
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Schriften — lokal ausgeliefert, kein Google-Fonts-Aufruf (DSGVO)
   Archivo (fett, breit) für Überschriften, Inter für Fließtext.
   -------------------------------------------------------------------------- */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/archivo-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('assets/fonts/inter-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* --------------------------------------------------------------------------
   2. Design-Token
   -------------------------------------------------------------------------- */
:root {
  /* Feuerwehrrot — aus dem Wappen der Wehr entnommen (#be291e, RAL-3000-Nähe)
     und für den Bildschirm leicht angehoben. Kontrast zu Weiß: 6,4:1. */
  --rot:          #c0271c;
  --rot-hell:     #e63b23;
  --rot-dunkel:   #8f1a12;
  --rot-glut:     #ff7a00;   /* nur für Verläufe und Glut-Effekte */

  /* Anthrazit / Schwarz */
  --nacht:        #0d0f12;
  --anthrazit:    #14181d;
  --anthrazit-2:  #1c2128;
  --anthrazit-3:  #2a3038;

  /* Helle Flächen */
  --weiss:        #ffffff;
  --hell:         #f4f5f7;
  --hell-2:       #e9ebef;

  /* Text */
  --text:         #14181d;
  --text-2:       #4a525c;
  --text-3:       #79828d;
  --text-invers:  #ffffff;
  --text-invers-2:#b6bec8;

  --rand:         #e2e5ea;
  --rand-dunkel:  rgba(255, 255, 255, 0.12);

  /* wowobot-Blau — ausschließlich für die Zeile im Fußbereich */
  --wowobot:      #22b8e0;

  --schatten:     0 4px 24px rgba(13, 15, 18, 0.10), 0 1px 4px rgba(13, 15, 18, 0.06);
  --schatten-gross: 0 18px 60px rgba(13, 15, 18, 0.22);
  --schatten-rot: 0 10px 30px rgba(192, 39, 28, 0.38);

  --r-klein:      6px;
  --r:            12px;
  --r-gross:      20px;
  --r-voll:       999px;

  --breite:       1220px;
  --kopf-h:       68px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--kopf-h) + 12px);
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--weiss);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; padding: 0; margin: 0; }
address { font-style: normal; }
button, input, textarea, select { font: inherit; color: inherit; }
fieldset { border: 0; padding: 0; margin: 0; min-width: 0; }

:focus-visible {
  outline: 3px solid var(--rot);
  outline-offset: 3px;
  border-radius: 2px;
}
.abschnitt-dunkel :focus-visible { outline-color: #fff; }

/* --------------------------------------------------------------------------
   4. Typografie — laut, fett, groß. Das ist hier gewollt.
   -------------------------------------------------------------------------- */
h1, h2, h3, h4 {
  font-family: 'Archivo', 'Arial Narrow', Impact, sans-serif;
  /* „Hilfeleistungslöschgruppenfahrzeug" passt sonst in keine Handybreite */
  overflow-wrap: break-word;
  hyphens: auto;
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 11vw, 6.5rem); }
h2 { font-size: clamp(2rem, 7.5vw, 4rem); }
h3 { font-size: clamp(1.25rem, 4vw, 1.75rem); letter-spacing: -0.01em; }
h4 { font-size: clamp(1.05rem, 3vw, 1.2rem); }

p { color: var(--text-2); margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
strong, b { font-weight: 600; color: var(--text); }

.rot { color: var(--rot); }

/* Kleiner Hinweis über einer Überschrift */
.kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Archivo', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--rot);
  margin-bottom: 1rem;
}
.kicker::before {
  content: '';
  width: 28px;
  height: 3px;
  background: var(--rot);
  flex-shrink: 0;
}

.lead {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  line-height: 1.6;
  color: var(--text-2);
}

/* --------------------------------------------------------------------------
   5. Layout
   -------------------------------------------------------------------------- */
.container {
  width: min(var(--breite), calc(100% - 2rem));
  margin-inline: auto;
}

.abschnitt { padding: clamp(3.5rem, 10vw, 7rem) 0; position: relative; }

.abschnitt-hell   { background: var(--hell); }
.abschnitt-weiss  { background: var(--weiss); }
.abschnitt-dunkel { background: var(--anthrazit); color: var(--text-invers); }
.abschnitt-dunkel p { color: var(--text-invers-2); }
.abschnitt-dunkel strong { color: #fff; }
.abschnitt-dunkel .kicker { color: var(--rot-hell); }
.abschnitt-dunkel .kicker::before { background: var(--rot-hell); }

.kopf-block { max-width: 780px; margin-bottom: clamp(2.2rem, 5vw, 3.5rem); }
.kopf-block .lead { margin-top: 1.2rem; }
.kopf-block--mitte { margin-inline: auto; text-align: center; }
.kopf-block--mitte .kicker { justify-content: center; }

/* --------------------------------------------------------------------------
   6. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.25rem;
  padding: 0.9rem 1.6rem;
  border: 2px solid transparent;
  border-radius: var(--r-klein);
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  text-align: center;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease,
              border-color 0.18s ease, color 0.18s ease;
}
.btn:hover, .btn:focus-visible { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { flex-shrink: 0; }

.btn-rot {
  background: var(--rot);
  color: #fff;
  box-shadow: var(--schatten-rot);
}
.btn-rot:hover, .btn-rot:focus-visible { background: var(--rot-hell); }

.btn-weiss {
  background: #fff;
  color: var(--anthrazit);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}
.btn-weiss:hover, .btn-weiss:focus-visible { background: var(--hell-2); }

.btn-linie {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.5);
}
.btn-linie:hover, .btn-linie:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-linie-dunkel {
  background: transparent;
  color: var(--anthrazit);
  border-color: var(--anthrazit);
}
.btn-linie-dunkel:hover, .btn-linie-dunkel:focus-visible {
  background: var(--anthrazit);
  color: #fff;
}

.btn-gross { min-height: 3.6rem; padding: 1rem 2rem; font-size: 1.02rem; }
.btn-voll { width: 100%; }

/* --------------------------------------------------------------------------
   7. Warnstreifen — das rot-weiße Schrägmuster vom Fahrzeugheck.
   Trennt Abschnitte und bringt Tempo in die Seite.
   -------------------------------------------------------------------------- */
.warnstreifen {
  height: 12px;
  background-image: repeating-linear-gradient(
    -45deg,
    var(--rot) 0 22px,
    #fff 22px 44px
  );
}
.warnstreifen--dunkel {
  background-image: repeating-linear-gradient(
    -45deg,
    var(--rot) 0 22px,
    var(--anthrazit) 22px 44px
  );
}

/* --------------------------------------------------------------------------
   8. Sprunglink
   -------------------------------------------------------------------------- */
.sprunglink {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 9999;
  background: var(--rot);
  color: #fff;
  padding: 0.9rem 1.2rem;
  font-weight: 600;
}
.sprunglink:focus { left: 0; }

/* --------------------------------------------------------------------------
   9. Kopfbereich — liegt über dem Hero und wird beim Scrollen fest
   -------------------------------------------------------------------------- */
.kopf {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 500;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.28s ease, border-color 0.28s ease, box-shadow 0.28s ease;
}
.kopf.ist-fest {
  background: rgba(13, 15, 18, 0.94);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--rand-dunkel);
  box-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}
/* Auf den Unterseiten (Impressum, Datenschutz) gibt es kein dunkles Hero */
.kopf.kopf--fest-immer {
  position: sticky;
  background: var(--anthrazit);
  border-bottom-color: var(--rand-dunkel);
}

.kopf-innen {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  min-height: var(--kopf-h);
}

/* Wortmarke */
.marke { display: inline-flex; align-items: center; gap: 0.7rem; flex-shrink: 0; }
.marke-bild { width: 42px; height: 42px; object-fit: contain; }
.marke-text { display: none; flex-direction: column; line-height: 1.1; }
.marke-name {
  font-family: 'Archivo', sans-serif;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: #fff;
}
.marke-ort {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rot-hell);
}

/* Navigation */
.haupt-nav {
  display: none;
  align-items: center;
  gap: 1.6rem;
}
.nav-link {
  font-family: 'Archivo', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.82);
  padding: 0.4rem 0;
  position: relative;
  transition: color 0.2s ease;
  white-space: nowrap;
}
.nav-link::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 2px;
  background: var(--rot);
  transition: width 0.24s ease;
}
.nav-link:hover, .nav-link:focus-visible { color: #fff; }
.nav-link:hover::after, .nav-link.ist-aktiv::after { width: 100%; }
.nav-link.ist-aktiv { color: #fff; }

/* Sozialsymbole im Kopfbereich */
.kopf-sozial { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }
.sozial-knopf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--r-klein);
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}
.sozial-knopf:hover, .sozial-knopf:focus-visible {
  background: var(--rot);
  border-color: var(--rot);
  transform: translateY(-2px);
}
.kopf-cta { display: none; white-space: nowrap; flex-shrink: 0; }

/* Menüknopf */
.menue-knopf {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--r-klein);
  cursor: pointer;
  flex-shrink: 0;
}
.menue-knopf span {
  display: block;
  width: 20px;
  height: 2px;
  background: #fff;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.menue-knopf[aria-expanded='true'] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menue-knopf[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.menue-knopf[aria-expanded='true'] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobiles Menü */
.mobil-menue {
  position: fixed;
  inset: var(--kopf-h) 0 auto 0;
  z-index: 480;
  background: var(--nacht);
  border-bottom: 3px solid var(--rot);
  padding: 1.25rem 0 1.75rem;
  transform: translateY(-120%);
  visibility: hidden;
  transition: transform 0.34s cubic-bezier(0.4, 0, 0.2, 1), visibility 0.34s;
  max-height: calc(100dvh - var(--kopf-h));
  overflow-y: auto;
}
.mobil-menue.ist-offen { transform: translateY(0); visibility: visible; }
.mobil-menue nav { display: flex; flex-direction: column; }
.mobil-menue nav a {
  font-family: 'Archivo', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  color: #fff;
  padding: 0.85rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.09);
}
.mobil-menue nav a:hover { color: var(--rot-hell); }
.mobil-menue .btn { margin-top: 1.5rem; }
.mobil-sozial { display: flex; gap: 0.6rem; margin-top: 1.25rem; }

body.menue-offen { overflow: hidden; }

/* --------------------------------------------------------------------------
   10. Hero — Vollbild, Actionfoto, große Typo
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: calc(var(--kopf-h) + 3rem) 0 3rem;
  background: var(--nacht);
  overflow: hidden;
  isolation: isolate;
}

.hero-bild {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Auf schmalen Geräten wird aus dem Querformat ein hoher Ausschnitt.
     Ohne Verschiebung stünde dort nur der Aufbau des Fahrzeugs — so ist
     das Fahrerhaus mit im Bild und der Hero sofort lesbar. */
  object-position: 68% center;
  /* Langsame Fahrt ins Bild — bringt Bewegung ohne Video */
  animation: heroZoom 26s ease-out forwards;
}
@keyframes heroZoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

/* Zwei Verläufe: unten dunkel für die Lesbarkeit, links rot für die Farbwelt */
/* Drei Lagen: unten dunkel für die Kennzahlen, links dunkel für Überschrift
   und Fließtext, dazu ein roter Hauch für die Farbwelt. Das Einsatzfoto ist
   hell und sonnig — ohne die linke Lage wäre der Text kaum lesbar. */
.hero-schleier {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(to top, rgba(13, 15, 18, 0.94) 0%, rgba(13, 15, 18, 0.66) 46%, rgba(13, 15, 18, 0.34) 74%, rgba(13, 15, 18, 0.5) 100%),
    linear-gradient(to right, rgba(13, 15, 18, 0.62) 0%, rgba(13, 15, 18, 0.4) 45%, rgba(13, 15, 18, 0) 88%),
    linear-gradient(115deg, rgba(143, 26, 18, 0.34) 0%, rgba(143, 26, 18, 0) 62%);
}

.hero-innen { position: relative; }

.hero-marke {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}
.hero-marke img { width: 64px; height: 64px; object-fit: contain; }
.hero-marke span {
  font-family: 'Archivo', sans-serif;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  border-left: 3px solid var(--rot);
  padding-left: 0.9rem;
  line-height: 1.35;
}

.hero h1 { color: #fff; }
.hero h1 .zeile-rot {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, var(--rot-hell), var(--rot) 55%, var(--rot-glut));
  -webkit-background-clip: text;
  background-clip: text;
}

.hero-motto {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(0.95rem, 3.4vw, 1.35rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  margin: 1.5rem 0 0;
  padding-left: 1rem;
  border-left: 4px solid var(--rot);
}
.hero-text {
  color: rgba(255, 255, 255, 0.86);
  max-width: 46ch;
  margin-top: 1.5rem;
  font-size: clamp(1rem, 2.6vw, 1.15rem);
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2.25rem;
}

/* Kennzahlen-Leiste am unteren Rand des Heros */
.hero-fakten {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: 2.75rem;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--r-klein);
  overflow: hidden;
}
.hero-fakt {
  background: rgba(13, 15, 18, 0.72);
  padding: 1rem 1.1rem;
}
.hero-fakt strong {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  font-weight: 700;
  color: var(--rot-hell);
  line-height: 1.1;
}
.hero-fakt span {
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

/* Scroll-Hinweis */
.hero-scroll {
  display: none;
  position: absolute;
  right: 2.5rem;
  bottom: 3rem;
  flex-direction: column;
  align-items: center;
  gap: 0.9rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}
/* Senkrecht gestellt — nimmt neben dem Inhalt keine Breite weg */
.hero-scroll span { writing-mode: vertical-rl; }
.hero-scroll::after {
  content: '';
  width: 1px;
  height: 54px;
  background: linear-gradient(to bottom, var(--rot), transparent);
  animation: scrollPuls 2.2s ease-in-out infinite;
}
@keyframes scrollPuls {
  0%, 100% { opacity: 0.35; transform: scaleY(0.6); transform-origin: top; }
  50%      { opacity: 1;    transform: scaleY(1);   transform-origin: top; }
}

/* --------------------------------------------------------------------------
   11. Notruf-Band — direkt unter dem Hero, sachliche Information
   -------------------------------------------------------------------------- */
.notruf {
  background: var(--rot);
  color: #fff;
  padding: 1.1rem 0;
}
.notruf-innen {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem 1.5rem;
  text-align: center;
}
.notruf-nummer {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.5rem, 6vw, 2.1rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1;
}
.notruf-nummer svg { animation: blaulicht 1.4s ease-in-out infinite; }
@keyframes blaulicht {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.35; }
}
.notruf p { color: rgba(255, 255, 255, 0.92); margin: 0; font-size: 0.95rem; }
.notruf a { text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }

/* --------------------------------------------------------------------------
   12. Laufband mit dem Motto
   -------------------------------------------------------------------------- */
.laufband {
  background: var(--nacht);
  border-block: 1px solid var(--rand-dunkel);
  overflow: hidden;
  padding: 1.1rem 0;
}
.laufband-spur {
  display: flex;
  width: max-content;
  animation: laufen 38s linear infinite;
}
.laufband-spur span {
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.2rem, 4vw, 2rem);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.14);
  padding-right: 2.5rem;
  white-space: nowrap;
}
.laufband-spur span em {
  font-style: normal;
  color: var(--rot);
  padding-right: 2.5rem;
}
@keyframes laufen {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* --------------------------------------------------------------------------
   13. „Wir brauchen dich!“ — die wichtigste Sektion der Seite
   -------------------------------------------------------------------------- */
.mitmachen { position: relative; overflow: hidden; }

/* Große, angeschnittene Ziffer im Hintergrund als Grafikelement */
.mitmachen-karten {
  display: grid;
  gap: 1.25rem;
}

.weg-karte {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--r);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.weg-karte:hover {
  transform: translateY(-4px);
  box-shadow: var(--schatten-gross);
  border-color: var(--rot);
}
.weg-karte-bild {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--anthrazit-2);
}
.weg-karte-bild img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.weg-karte:hover .weg-karte-bild img { transform: scale(1.05); }

/* Altersangabe als Stempel auf dem Bild */
.alter-stempel {
  position: absolute;
  left: 0;
  bottom: 0;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  background: var(--rot);
  color: #fff;
  padding: 0.55rem 1.1rem 0.5rem;
  font-family: 'Archivo', sans-serif;
  text-transform: uppercase;
}
.alter-stempel b { font-size: clamp(1.6rem, 6vw, 2.4rem); font-weight: 700; line-height: 1; }
.alter-stempel span { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.12em; }

.weg-karte-text { padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; flex: 1; }
.weg-karte-text h3 { margin-bottom: 0.75rem; }
.weg-karte-text .btn { margin-top: 1.5rem; align-self: flex-start; }

.haken-liste { display: grid; gap: 0.6rem; margin-top: 1.1rem; }
.haken-liste li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.95rem;
  color: var(--text-2);
}
.haken-liste svg { flex-shrink: 0; margin-top: 0.28rem; color: var(--rot); }

/* Vorteils-Kacheln: keine Kosten, Ausrüstung gestellt … */
.vorteile {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin-top: clamp(2rem, 5vw, 3.25rem);
  background: var(--rand);
  border: 1px solid var(--rand);
  border-radius: var(--r);
  overflow: hidden;
}
.vorteil {
  background: var(--weiss);
  padding: 1.4rem 1.1rem;
  text-align: center;
  transition: background 0.22s ease;
}
.vorteil:hover { background: var(--hell); }
.vorteil-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: var(--r-voll);
  background: rgba(192, 39, 28, 0.1);
  color: var(--rot);
  margin-bottom: 0.75rem;
}
.vorteil strong {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.2;
  margin-bottom: 0.3rem;
}
.vorteil span { font-size: 0.85rem; color: var(--text-3); line-height: 1.45; }

/* Hinweis für Eltern / Erziehungsberechtigte */
.eltern-hinweis {
  display: flex;
  gap: 0.9rem;
  align-items: flex-start;
  margin-top: 1.75rem;
  padding: 1.1rem 1.25rem;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-left: 4px solid var(--rot);
  border-radius: var(--r-klein);
  font-size: 0.92rem;
  color: var(--text-2);
}
.eltern-hinweis svg { flex-shrink: 0; color: var(--rot); margin-top: 0.15rem; }

/* --------------------------------------------------------------------------
   14. Unsere Wehr — drei Abteilungen
   -------------------------------------------------------------------------- */
.wehr-liste { display: grid; gap: 1.25rem; }

.wehr-karte {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  overflow: hidden;
  background: var(--anthrazit-2);
  min-height: 380px;
  isolation: isolate;
}
.wehr-karte img {
  position: absolute;
  inset: 0;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.wehr-karte::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(to top, rgba(13, 15, 18, 0.97) 0%, rgba(13, 15, 18, 0.9) 32%, rgba(13, 15, 18, 0.5) 62%, rgba(13, 15, 18, 0.25) 100%);
  transition: background 0.35s ease;
}
.wehr-karte:hover img { transform: scale(1.06); }
.wehr-karte:hover::after {
  background: linear-gradient(to top, rgba(143, 26, 18, 0.92) 8%, rgba(13, 15, 18, 0.6) 60%, rgba(13, 15, 18, 0.25) 100%);
}

.wehr-karte-text { margin-top: auto; padding: 1.75rem 1.5rem; }
.wehr-karte-text h3 { color: #fff; margin-bottom: 0.7rem; }
.wehr-karte-text p { color: rgba(255, 255, 255, 0.84); font-size: 0.95rem; }
.wehr-nummer {
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  font-family: 'Archivo', sans-serif;
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  color: rgba(255, 255, 255, 0.16);
}

/* --------------------------------------------------------------------------
   15. Über uns — Führung, Funktionen, Historisches
   -------------------------------------------------------------------------- */
.fuehrung {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.fuehrung-karte {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--r);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.fuehrung-karte:hover {
  transform: translateY(-4px);
  box-shadow: var(--schatten);
  border-color: var(--rot);
}

/* Porträt der Führung. Die Fotos stammen von der bisherigen Seite. */
.fuehrung-bild {
  width: 108px;
  height: 108px;
  border-radius: var(--r-voll);
  object-fit: cover;
  border: 3px solid var(--rot);
  margin-bottom: 0.35rem;
}

/* Vier Funktionsträger haben dort kein eigenes Foto, sondern die graue
   Standard-Silhouette des Baukastens. Statt sie zu übernehmen, stehen dort
   die Initialen. */
.fuehrung-zeichen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 68px;
  height: 68px;
  border-radius: var(--r-voll);
  background: var(--rot);
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.35rem;
}

.fuehrung-karte { min-width: 0; }
.fuehrung-karte h3 { font-size: clamp(1.15rem, 3vw, 1.35rem); }
.fuehrung-rolle {
  font-family: 'Archivo', sans-serif;
  font-size: 0.78rem;
  overflow-wrap: break-word;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rot);
  margin: 0;
}

/* Die übrigen Funktionsträger als Personenraster */
.team-titel {
  font-size: clamp(1.15rem, 3.5vw, 1.5rem);
  margin-bottom: 1.25rem;
}

.team {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem 0.75rem;
}

.team-person {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.15rem;
  min-width: 0;
}
.team-person b {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.25;
  margin-top: 0.55rem;
  overflow-wrap: break-word;
}
.team-person > span:last-child {
  font-size: 0.78rem;
  color: var(--text-3);
  line-height: 1.3;
}

.team-bild, .team-zeichen {
  width: 72px;
  height: 72px;
  border-radius: var(--r-voll);
  flex-shrink: 0;
}
.team-bild {
  object-fit: cover;
  border: 2px solid var(--rand);
  transition: border-color 0.22s ease;
}
.team-person:hover .team-bild { border-color: var(--rot); }

.team-zeichen {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hell-2);
  border: 2px solid var(--rand);
  color: var(--text-3);
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* Historisches */
.historie {
  display: grid;
  gap: 1.75rem;
  margin-top: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  background: var(--hell);
  border-radius: var(--r);
  border-left: 4px solid var(--rot);
}
.historie-text h3 { margin-bottom: 0.9rem; }

.historie-fakten {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.1rem;
  align-content: start;
}
.historie-fakten li {
  padding-left: 0.9rem;
  border-left: 2px solid var(--rot);
}
.historie-fakten strong {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(1.05rem, 3vw, 1.3rem);
  font-weight: 700;
  color: var(--text);
  line-height: 1.15;
}
.historie-fakten span { font-size: 0.82rem; color: var(--text-3); }

/* --------------------------------------------------------------------------
   16. Ausstattung — Gerätehaus und Fahrzeuge
   -------------------------------------------------------------------------- */
.galerie {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
.galerie-teil {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--anthrazit-2);
  aspect-ratio: 4 / 3;
  cursor: zoom-in;
}
.galerie-teil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.galerie-teil:hover img { transform: scale(1.06); }
.galerie-teil figcaption {
  position: absolute;
  inset: auto 0 0 0;
  padding: 2.5rem 1.1rem 1rem;
  background: linear-gradient(to top, rgba(13, 15, 18, 0.92), transparent);
  color: #fff;
  font-family: 'Archivo', sans-serif;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.galerie-teil figcaption em {
  display: block;
  font-style: normal;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.15rem;
}

/* Fahrzeugliste — Daten von der bisherigen Seite übernommen */
.fahrzeuge {
  display: grid;
  gap: 1rem;
  margin-top: clamp(2.5rem, 6vw, 4rem);
}
.fahrzeuge-titel {
  font-size: clamp(1.3rem, 4vw, 1.8rem);
  margin-bottom: 0.25rem;
}

.fahrzeug {
  display: grid;
  gap: 1rem;
  padding: 1.4rem;
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--r);
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.fahrzeug:hover { border-color: var(--rot); box-shadow: var(--schatten); }

.fahrzeug-kuerzel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  justify-self: start;
  padding: 0.4rem 0.9rem;
  background: var(--rot);
  color: #fff;
  border-radius: var(--r-klein);
  font-family: 'Archivo', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  margin: 0;
}

.fahrzeug-inhalt { min-width: 0; }
.fahrzeug-inhalt h4 { margin-bottom: 0.35rem; }
.fahrzeug-basis {
  font-size: 0.88rem;
  overflow-wrap: break-word;
  color: var(--text-3);
  margin-bottom: 0.9rem;
}
.fahrzeug-daten { display: grid; gap: 0.45rem; }
.fahrzeug-daten li {
  position: relative;
  padding-left: 1rem;
  font-size: 0.92rem;
  color: var(--text-2);
}
.fahrzeug-daten li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--rot);
}
.fahrzeug-daten b { color: var(--text); font-weight: 600; }

/* Bildbetrachter */
.lichtbox {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(6, 7, 9, 0.95);
  opacity: 0;
  transition: opacity 0.22s ease;
}
.lichtbox.ist-offen { opacity: 1; }
.lichtbox img {
  max-width: 100%;
  max-height: 82vh;
  object-fit: contain;
  border-radius: var(--r-klein);
}
.lichtbox-zu, .lichtbox-pfeil {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #fff;
  cursor: pointer;
  border-radius: var(--r-klein);
}
.lichtbox-zu {
  top: 1rem;
  right: 1rem;
  width: 46px;
  height: 46px;
  font-size: 1.6rem;
  line-height: 1;
}
.lichtbox-pfeil { top: 50%; transform: translateY(-50%); width: 46px; height: 60px; font-size: 2rem; line-height: 1; }
.lichtbox-pfeil.ist-zurueck { left: 0.75rem; }
.lichtbox-pfeil.ist-vor { right: 0.75rem; }
.lichtbox-zu:hover, .lichtbox-pfeil:hover { background: var(--rot); border-color: var(--rot); }
.lichtbox-fuss {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 1rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.6);
  text-align: center;
}
body.lichtbox-offen { overflow: hidden; }

/* --------------------------------------------------------------------------
   17. Folgt uns — Instagram und Facebook
   -------------------------------------------------------------------------- */
.sozial-raster {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}
.sozial-kachel {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: var(--r-klein);
  background: var(--anthrazit-2);
  border: 1px solid var(--rand-dunkel);
}
.sozial-kachel img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.45s ease, opacity 0.3s ease; }
.sozial-kachel:hover img { transform: scale(1.07); opacity: 0.75; }
.sozial-kachel-symbol {
  position: absolute;
  right: 0.6rem;
  bottom: 0.6rem;
  color: #fff;
  opacity: 0.85;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.sozial-aufruf {
  display: grid;
  gap: 0.9rem;
  margin-top: clamp(1.75rem, 4vw, 2.5rem);
}
.sozial-gross {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  border-radius: var(--r);
  border: 1px solid var(--rand-dunkel);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease;
}
.sozial-gross:hover, .sozial-gross:focus-visible {
  transform: translateY(-3px);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.3);
}
.sozial-gross-symbol {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: var(--r-klein);
  flex-shrink: 0;
  color: #fff;
}
.sozial-gross-symbol.ist-insta {
  background: linear-gradient(45deg, #f09433, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888);
}
.sozial-gross-symbol.ist-fb { background: #1877f2; }
/* Die Textspalte muss unter ihre Inhaltsbreite schrumpfen dürfen, sonst
   schiebt „@feuerwehr.kaisersbach" die Karte über den Bildschirmrand. */
.sozial-gross > span { min-width: 0; }
.sozial-gross b {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: clamp(0.92rem, 3.6vw, 1.05rem);
  overflow-wrap: anywhere;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
  line-height: 1.2;
}
.sozial-gross span { font-size: 0.88rem; color: var(--text-invers-2); overflow-wrap: break-word; }
.sozial-gross-pfeil { margin-left: auto; color: rgba(255, 255, 255, 0.5); flex-shrink: 0; }

/* Zwei-Klick-Lösung für ein späteres Feed-Widget (siehe script.js) */
.einbettung {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px dashed var(--rand-dunkel);
  border-radius: var(--r);
  text-align: center;
  background: rgba(255, 255, 255, 0.03);
}
.einbettung p { font-size: 0.88rem; color: var(--text-invers-2); margin-bottom: 1rem; }
.einbettung[hidden] { display: none; }

/* --------------------------------------------------------------------------
   18. Kontakt und Mitglied werden
   -------------------------------------------------------------------------- */
.kontakt-raster { display: grid; gap: 1.75rem; }

.kontakt-karte {
  background: var(--weiss);
  border: 1px solid var(--rand);
  border-radius: var(--r);
  padding: 1.5rem;
}
.kontakt-karte + .kontakt-karte { margin-top: 1rem; }
.kontakt-karte h3 { margin-bottom: 1rem; }

.kontakt-zeile {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.7rem 0;
  border-bottom: 1px solid var(--rand);
}
.kontakt-zeile:last-child { border-bottom: 0; padding-bottom: 0; }
.kontakt-karte .btn { margin-top: 1.25rem; }
.fuss-hinweis { font-size: 0.82rem; color: var(--text-3); margin-top: 1.25rem; line-height: 1.5; }
.kontakt-zeile svg { flex-shrink: 0; color: var(--rot); margin-top: 0.2rem; }
.kontakt-zeile b {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 0.15rem;
}
.kontakt-zeile a:hover { color: var(--rot); }

/* Formular */
.formular-karte {
  background: var(--anthrazit);
  border-radius: var(--r);
  padding: 1.5rem;
  color: #fff;
  border-top: 4px solid var(--rot);
}
.formular-karte h3 { color: #fff; }
.formular-karte > p { color: var(--text-invers-2); font-size: 0.92rem; margin-top: 0.6rem; }

.feld { margin-top: 1.1rem; }
.feld label {
  display: block;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.4rem;
}
.feld input, .feld textarea, .feld select {
  width: 100%;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-klein);
  color: #fff;
  font-size: 1rem;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.feld textarea { resize: vertical; min-height: 130px; }
.feld input::placeholder, .feld textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.feld input:focus, .feld textarea:focus, .feld select:focus {
  outline: none;
  border-color: var(--rot);
  background: rgba(255, 255, 255, 0.1);
}
.feld-hinweis { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); margin-top: 0.4rem; }

/* Auswahl „Ich interessiere mich für …“ */
.feld-legende {
  display: block;
  padding: 0;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.wahl-gruppe { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.feld label.wahl {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-klein);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  margin: 0;
}
.feld label.wahl:hover { background: rgba(255, 255, 255, 0.06); }
.feld label.wahl input { width: auto; accent-color: var(--rot); flex-shrink: 0; }
.feld label.wahl:has(input:checked) { border-color: var(--rot); background: rgba(192, 39, 28, 0.16); }

/* Rechenaufgabe */
.rechen-feld { display: flex; gap: 0.6rem; align-items: center; }
.rechen-frage {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 96px;
  padding: 0.85rem 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-klein);
  font-family: 'Archivo', sans-serif;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}
.rechen-neu {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--r-klein);
  color: #fff;
  cursor: pointer;
}
.rechen-neu:hover { background: var(--rot); border-color: var(--rot); }

/* Honigtopf — für Besucher unsichtbar, Roboter füllen ihn aus */
.honigtopf {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.formular-meldung {
  display: none;   /* wird per Klasse ist-sichtbar eingeblendet, nie per Inline-Style */
  margin-top: 1rem;
  padding: 0.9rem 1.1rem;
  border-radius: var(--r-klein);
  font-size: 0.92rem;
}
.formular-meldung.ist-sichtbar { display: block; }
.formular-meldung.ist-gut { background: rgba(22, 163, 74, 0.16); border: 1px solid rgba(74, 222, 128, 0.5); color: #dcfce7; }
.formular-meldung.ist-fehler { background: rgba(192, 39, 28, 0.2); border: 1px solid rgba(230, 59, 35, 0.6); color: #ffe4e2; }
.formular-meldung a { text-decoration: underline; }

.datenschutz-note { font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); margin-top: 1rem; }
.datenschutz-note a { text-decoration: underline; color: rgba(255, 255, 255, 0.8); }

/* --------------------------------------------------------------------------
   19. Motto-Abschluss
   -------------------------------------------------------------------------- */
.motto-schluss {
  background: var(--nacht);
  padding: clamp(3rem, 9vw, 6rem) 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.motto-schluss::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% 120%, rgba(192, 39, 28, 0.45), transparent 62%);
  pointer-events: none;
}
.motto-schluss h2 { position: relative; color: #fff; }
.motto-schluss h2 em { font-style: normal; color: var(--rot-hell); display: block; }
.motto-schluss p {
  position: relative;
  color: var(--text-invers-2);
  margin-top: 1.25rem;
  font-size: 0.95rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* --------------------------------------------------------------------------
   20. Fußbereich
   -------------------------------------------------------------------------- */
.fuss { background: var(--anthrazit); color: var(--text-invers-2); padding: clamp(2.5rem, 6vw, 4rem) 0 0; }
.fuss-raster { display: grid; gap: 2rem; }
.fuss-marke { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.fuss-marke img { width: 52px; height: 52px; object-fit: contain; }
.fuss-marke b {
  display: block;
  font-family: 'Archivo', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #fff;
}
.fuss-marke span { font-size: 0.72rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--rot-hell); }
.fuss-motto { font-size: 0.92rem; font-style: italic; color: var(--text-invers-2); }

.fuss h4 {
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  color: #fff;
  margin-bottom: 1rem;
}
.fuss nav { display: flex; flex-direction: column; gap: 0.55rem; }
.fuss a { font-size: 0.92rem; transition: color 0.18s ease; }
.fuss a:hover { color: var(--rot-hell); }
.fuss address p { color: var(--text-invers-2); font-size: 0.92rem; margin-bottom: 0.4rem; }

.fuss-sozial { display: flex; gap: 0.6rem; margin-top: 1.25rem; }

.fuss-abschluss {
  margin-top: clamp(2rem, 5vw, 3rem);
  border-top: 1px solid var(--rand-dunkel);
  padding: 1.25rem 0;
}
.fuss-abschluss-innen {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: center;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-3);
}
.powered-by a { color: var(--wowobot); font-weight: 600; }
.powered-by a:hover { text-decoration: underline; }

/* --------------------------------------------------------------------------
   21. Rechtsseiten (Impressum, Datenschutz-Hinweis)
   -------------------------------------------------------------------------- */
.recht-kopf { background: var(--anthrazit); color: #fff; padding: clamp(2.5rem, 7vw, 4.5rem) 0 clamp(2rem, 5vw, 3rem); }
.recht-kopf h1 { font-size: clamp(2rem, 8vw, 3.5rem); }
.recht-inhalt { padding: clamp(2.5rem, 7vw, 4.5rem) 0; }
.recht-inhalt h2 { font-size: clamp(1.3rem, 4vw, 1.7rem); margin: 2.5rem 0 0.9rem; }
.recht-inhalt h2:first-child { margin-top: 0; }
.recht-inhalt h3 { font-size: 1.05rem; margin: 1.75rem 0 0.6rem; }
.recht-inhalt p, .recht-inhalt li { max-width: 72ch; }
.recht-inhalt ul { margin: 0.75rem 0 1rem; display: grid; gap: 0.45rem; }
.recht-inhalt ul li { position: relative; padding-left: 1.1rem; color: var(--text-2); }
.recht-inhalt ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 5px;
  height: 5px;
  background: var(--rot);
  border-radius: 50%;
}
.recht-inhalt a { color: var(--rot); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Gelber Kasten für alles, was noch mit der Gemeinde abzustimmen ist */
.pruef-kasten {
  border: 1px solid #f0c419;
  border-left: 5px solid #f0c419;
  background: #fffbeb;
  border-radius: var(--r-klein);
  padding: 1.1rem 1.25rem;
  margin: 1.5rem 0;
}
.pruef-kasten b { display: block; margin-bottom: 0.4rem; color: #8a6100; }
.pruef-kasten p, .pruef-kasten li { color: #7c5c00; font-size: 0.92rem; }
.pruef-kasten ul li::before { background: #d2a106; }

/* --------------------------------------------------------------------------
   22. Einblend-Animation beim Scrollen
   -------------------------------------------------------------------------- */
.zeigt-sich {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.zeigt-sich.ist-sichtbar { opacity: 1; transform: none; }
.verzoegert-1 { transition-delay: 0.1s; }
.verzoegert-2 { transition-delay: 0.2s; }
.verzoegert-3 { transition-delay: 0.3s; }

/* Ohne JavaScript darf nichts unsichtbar hängen bleiben — das erledigt
   noscript.css, das nur ohne aktiviertes JavaScript geladen wird. */

/* --------------------------------------------------------------------------
   23. Ab 380 px
   -------------------------------------------------------------------------- */
@media (min-width: 380px) {
  .marke-text { display: flex; }
}

/* --------------------------------------------------------------------------
   24. Ab 560 px
   -------------------------------------------------------------------------- */
@media (min-width: 560px) {
  .galerie { grid-template-columns: repeat(2, 1fr); }
  .fuehrung { grid-template-columns: repeat(3, 1fr); }
  .team { grid-template-columns: repeat(3, 1fr); }
  .sozial-raster { grid-template-columns: repeat(3, 1fr); }
  .hero-fakten { grid-template-columns: repeat(4, 1fr); }
  .fuss-abschluss-innen { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* --------------------------------------------------------------------------
   25. Ab 760 px
   -------------------------------------------------------------------------- */
@media (min-width: 760px) {
  .mitmachen-karten { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .fahrzeuge { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
  .fahrzeuge-titel { grid-column: 1 / -1; }
  /* Kürzel links, Daten rechts — die Karte liest sich wie ein Datenblatt */
  .fahrzeug { grid-template-columns: auto 1fr; gap: 1.25rem; }
  .wehr-liste { grid-template-columns: repeat(2, 1fr); }
  .vorteile { grid-template-columns: repeat(4, 1fr); }
  .sozial-aufruf { grid-template-columns: repeat(2, 1fr); }
  .fuss-raster { grid-template-columns: 1.4fr 1fr 1fr; gap: 2.5rem; }
  .notruf-innen { justify-content: space-between; text-align: left; flex-wrap: nowrap; }
}

/* --------------------------------------------------------------------------
   26. Ab 1000 px — ab hier die volle Desktop-Fassung
   -------------------------------------------------------------------------- */
@media (min-width: 1000px) {
  .hero { align-items: center; padding-top: var(--kopf-h); }
  .hero-bild { object-position: center; }
  /* Am Desktop steht der Text nur links — dort darf es deutlich dunkler
     werden, damit rechts das Fahrzeug frei im Bild steht. */
  .hero-schleier {
    background:
      linear-gradient(to top, rgba(13, 15, 18, 0.96) 0%, rgba(13, 15, 18, 0.6) 42%, rgba(13, 15, 18, 0.26) 72%, rgba(13, 15, 18, 0.55) 100%),
      linear-gradient(to right, rgba(13, 15, 18, 0.9) 0%, rgba(13, 15, 18, 0.62) 38%, rgba(13, 15, 18, 0) 78%),
      linear-gradient(115deg, rgba(143, 26, 18, 0.42) 0%, rgba(143, 26, 18, 0) 62%);
  }
  /* Die Textspalte endet vor der Bildmitte, der Kasten selbst bleibt
     im Raster der Seite — sonst rutscht der Hero gegenüber der
     Navigation nach innen. */
  .hero-innen > * { max-width: 62%; }
  .hero-fakten { max-width: 74%; }
  .hero-marke img { width: 84px; height: 84px; }
  .hero-scroll { display: flex; }

  .wehr-liste { grid-template-columns: repeat(3, 1fr); }
  .wehr-karte { min-height: 460px; }

  .galerie { grid-template-columns: repeat(3, 1fr); gap: 1rem; }
  /* Erstes Bild (Gerätehaus) über zwei Spalten und zwei Zeilen */
  .galerie-teil.ist-gross { grid-column: span 2; grid-row: span 2; aspect-ratio: auto; }
  /* Absolut gesetzt, damit das Bild keine eigene Höhe in die Rasterzeile
     einbringt: die Zeilenhöhe kommt allein von den 4:3-Kacheln. */
  .galerie-teil.ist-gross img { position: absolute; inset: 0; }

  .sozial-raster { grid-template-columns: repeat(3, 1fr); gap: 0.9rem; }

  .kontakt-raster { grid-template-columns: 0.9fr 1.1fr; gap: 2.5rem; align-items: start; }
  .team { grid-template-columns: repeat(4, 1fr); gap: 1.75rem 1rem; }
  .team-bild, .team-zeichen { width: 88px; height: 88px; }
  .historie { grid-template-columns: 1.5fr 1fr; gap: 2.5rem; padding: 2.5rem; }
  .formular-karte { padding: 2.25rem; }
  .kontakt-karte { padding: 1.75rem; }

  .weg-karte-text { padding: 2rem 2rem 2.25rem; }
  .wehr-karte-text { padding: 2rem; }
}

/* --------------------------------------------------------------------------
   27. Ab 1200 px — ab hier passt die ausgeschriebene Navigation in den Kopf
   -------------------------------------------------------------------------- */
@media (min-width: 1200px) {
  :root { --kopf-h: 84px; }

  .haupt-nav { display: flex; gap: 1.1rem; }
  .menue-knopf { display: none; }
  .mobil-menue { display: none; }
  .kopf-cta { display: inline-flex; }

  .marke-bild { width: 50px; height: 50px; }
  .marke-name { font-size: 1.08rem; }
}

/* --------------------------------------------------------------------------
   28. Ab 1280 px
   -------------------------------------------------------------------------- */
@media (min-width: 1280px) {
  .haupt-nav { gap: 1.5rem; }
  .hero-innen > * { max-width: 56%; }
  .hero-fakten { max-width: 68%; }
  .abschnitt { padding: 7.5rem 0; }
}

/* --------------------------------------------------------------------------
   29. Bewegung reduzieren — Systemeinstellung des Besuchers respektieren
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .zeigt-sich { opacity: 1; transform: none; }
  .hero-bild { animation: none; }
  .laufband-spur { animation: none; }
}

/* --------------------------------------------------------------------------
   30. Drucken — reine Textfassung, keine dunklen Flächen
   -------------------------------------------------------------------------- */
@media print {
  .kopf, .mobil-menue, .hero-scroll, .laufband, .warnstreifen,
  .formular-karte, .sozial-raster, .einbettung { display: none !important; }
  body { background: #fff; color: #000; }
  .abschnitt-dunkel, .fuss, .motto-schluss { background: #fff !important; color: #000 !important; }
  .abschnitt-dunkel p, .fuss address p { color: #000 !important; }
  a { color: #000 !important; }
}
