/* ==========================================================================
   Förderverein der Ortsfeuerwehr Eggelingen e.V.
   Stylesheet - mobile first
   ========================================================================== */

/* --- Schrift: lokal eingebunden, keine externe Verbindung ---------------- */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/Inter-Regular.woff2') format('woff2');
}
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/Inter-SemiBold.woff2') format('woff2');
}

/* --- Farben ------------------------------------------------------------- */
:root {
  --navy:        #1B3A5C;
  --navy-hell:   #2A4A6E;
  --rot:         #D93832;
  --rot-dunkel:  #B82E29;
  --creme:       #F5F0E6;
  --weiss:       #FFFFFF;
  --silber:      #8A9BA8;
  --text:        #1B3A5C;
  --text-grau:   #4A5A68;
  --linie:       #E2DDD2;

  --breite:      1140px;
  --rand:        16px;
  --radius-karte: 12px;
  --radius-knopf: 8px;
}

/* --- Grundlagen --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--creme);
  color: var(--text-grau);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
}

h1, h2, h3, h4 {
  color: var(--navy);
  font-weight: 600;
  line-height: 1.25;
  margin: 0 0 0.6em;
}
h1 { font-size: 1.6rem; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); }
a:hover { color: var(--navy-hell); }

main a:not(.knopf):not(.kachel):not(.kachel-gross) { text-decoration: underline; }

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

ul, ol { margin: 0 0 1em; padding-left: 1.3em; }
li { margin-bottom: 0.35em; }

hr { border: 0; border-top: 0.5px solid var(--linie); margin: 32px 0; }

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

.klein { font-size: 0.85rem; color: var(--silber); }
.zentriert { text-align: center; }
.nur-lesegeraet {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- Layout ------------------------------------------------------------- */
.huelle {
  max-width: var(--breite);
  margin: 0 auto;
  padding: 0 var(--rand);
}

.abschnitt { padding: 40px 0; }
.abschnitt + .abschnitt { padding-top: 0; }

.abschnitt-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  margin-bottom: 20px;
}
.abschnitt-kopf h2 { margin: 0; }
.abschnitt-kopf a { font-size: 0.9rem; white-space: nowrap; }

/* --- Sprungmarke -------------------------------------------------------- */
.sprungmarke {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--rot);
  color: var(--weiss);
  padding: 12px 20px;
  border-radius: 0 0 var(--radius-knopf) 0;
  text-decoration: none;
}
.sprungmarke:focus {
  left: 0;
  color: var(--weiss);
}

/* --- Kopfbereich -------------------------------------------------------- */
.kopf {
  background: var(--navy);
  color: var(--weiss);
  position: relative;
}
.kopf .huelle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.marke {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--weiss);
  text-decoration: none;
  padding: 10px 0;
}
.marke img { width: 48px; height: 48px; border-radius: 50%; background: var(--weiss); }
.marke-text { display: none; }
.marke-name { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.marke-zusatz { font-size: 0.75rem; color: #B8C6D2; line-height: 1.3; }

.burger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: none;
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-knopf);
  cursor: pointer;
}
.burger span {
  display: block;
  height: 2px;
  background: var(--weiss);
  border-radius: 1px;
}

/* --- Navigation --------------------------------------------------------- */
.nav {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  z-index: 100;
  background: var(--navy);
  border-top: 0.5px solid var(--navy-hell);
  padding: 8px var(--rand) 20px;
}
.nav.offen { display: block; }

.nav ul { list-style: none; margin: 0; padding: 0; }
.nav li { margin: 0; }

.nav a,
.nav .unterpunkt-knopf {
  display: block;
  width: 100%;
  text-align: left;
  padding: 12px 4px;
  color: var(--weiss);
  text-decoration: none;
  font-size: 1rem;
  font-family: inherit;
  background: none;
  border: 0;
  border-bottom: 0.5px solid var(--navy-hell);
  cursor: pointer;
}
.nav a:hover,
.nav .unterpunkt-knopf:hover { color: #FFD9D7; }
.nav a[aria-current="page"],
.nav .unterpunkt-knopf.aktiv { color: #FFD9D7; font-weight: 600; }

.unterpunkt-knopf::after {
  content: '';
  display: inline-block;
  margin-left: 8px;
  border: 5px solid transparent;
  border-top-color: currentColor;
  transform: translateY(3px);
}
.unterpunkt-knopf[aria-expanded="true"]::after { transform: translateY(-2px) rotate(180deg); }

.untermenue { display: none; padding-left: 16px; }
.untermenue.offen { display: block; }

/* --- Knöpfe ------------------------------------------------------------- */
.knopf {
  display: inline-block;
  padding: 12px 22px;
  border: 1.5px solid transparent;
  border-radius: var(--radius-knopf);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.knopf-rot { background: var(--rot); border-color: var(--rot); color: var(--weiss); }
.knopf-rot:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: var(--weiss); }
.knopf-umriss { background: transparent; border-color: var(--navy); color: var(--navy); }
.knopf-umriss:hover { background: var(--navy); color: var(--weiss); }
.knopf-hell { background: var(--weiss); border-color: var(--weiss); color: var(--rot-dunkel); }
.knopf-hell:hover { background: #FFF0EF; color: var(--rot-dunkel); }

.knopf-reihe { display: flex; flex-wrap: wrap; gap: 12px; }

/* --- Karten ------------------------------------------------------------- */
.karte {
  background: var(--weiss);
  border: 0.5px solid var(--linie);
  border-radius: var(--radius-karte);
  padding: 24px;
}
.karte + .karte { margin-top: 20px; }

.raster { display: grid; gap: 16px; }

/* --- Hero --------------------------------------------------------------- */
/* Das Mannschaftsbild steht über die volle Inhaltsbreite und wird nirgends
   beschnitten - bei einem Gruppenbild trägt jeder Rand Information. Text
   und Knöpfe stehen darunter. */
.hero { padding: 24px 0 40px; }
.hero h1 { margin-bottom: 0.5em; }

/* Vereinszeichen und Überschrift bilden einen Block. Nebeneinander statt
   übereinander: das Zeichen steht groß da, ohne dass der Inhalt darunter
   weit nach unten rutscht. Auf schmalen Bildschirmen gestapelt. */
.hero-marke {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.hero-marke h1 { margin-bottom: 0; }
.hero-logo {
  width: 88px;
  height: 88px;
  flex-shrink: 0;
}

/* Der Vereinsname steht als erste Zeile in der Überschrift, damit sofort
   klar ist, wessen Seite das ist - und nicht die der Ortsfeuerwehr.
   Bewusst eine Stufe kleiner als die Schlagzeile und in Rot, damit die
   Rangfolge stimmt und die Zeile trotzdem ins Auge fällt. */
.hero-obertitel {
  display: block;
  font-size: 1.25rem;
  line-height: 1.3;
  color: var(--rot-dunkel);
  margin-bottom: 0.35em;
}

.hero-text { font-size: 1.05rem; margin-bottom: 20px; max-width: 54ch; }
.hero-bild {
  margin: 0;
  border-radius: var(--radius-karte);
  border: 0.5px solid var(--linie);
  background: var(--weiss);
  overflow: hidden;
}
.hero-bild img { width: 100%; height: auto; }
.hero-bild figcaption {
  font-size: 0.8rem;
  color: var(--silber);
  padding: 10px 14px;
  border-top: 0.5px solid var(--linie);
}
/* Einleitungssatz und Knöpfe stehen mittig unter dem Panoramabild.
   Die begrenzte Zeilenlänge bleibt erhalten, der Block wird über die
   automatischen Seitenabstände zentriert. */
.hero-inhalt { margin-top: 22px; text-align: center; }
.hero-inhalt .hero-text { margin-left: auto; margin-right: auto; }
.hero-inhalt .knopf-reihe { justify-content: center; }

/* --- Kennzahlen --------------------------------------------------------- */
.kennzahlen { grid-template-columns: repeat(2, 1fr); }
.kennzahl {
  background: var(--weiss);
  border: 0.5px solid var(--linie);
  border-radius: var(--radius-karte);
  padding: 20px 16px;
  text-align: center;
}
.kennzahl-wert {
  display: block;
  font-size: 1.9rem;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.1;
}
.kennzahl-text { display: block; font-size: 0.9rem; margin-top: 6px; }

/* --- Termine ------------------------------------------------------------ */
.terminliste { list-style: none; margin: 0; padding: 0; }
.termin {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--weiss);
  border: 0.5px solid var(--linie);
  border-radius: var(--radius-karte);
  padding: 16px 18px;
  margin-bottom: 12px;
}
.termin:last-child { margin-bottom: 0; }
.termin-datum {
  flex: 0 0 62px;
  text-align: center;
  background: var(--creme);
  border-radius: var(--radius-knopf);
  padding: 8px 4px;
  line-height: 1.15;
}
.termin-tag { display: block; font-size: 1.35rem; font-weight: 600; color: var(--navy); }
.termin-monat { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--silber); }
.termin-jahr { display: block; font-size: 0.75rem; color: var(--silber); }
.termin-titel { font-weight: 600; color: var(--navy); }
.termin-meta { font-size: 0.85rem; color: var(--silber); }
/* pre-line übernimmt die Absätze aus termine.json, fasst aber mehrfache
   Leerzeichen wie gewohnt zusammen */
.termin-text { font-size: 0.92rem; margin-top: 4px; white-space: pre-line; }
.termin-abgesagt .termin-titel { text-decoration: line-through; }
.termin-hinweis {
  display: inline-block;
  margin-left: 8px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--weiss);
  background: var(--rot);
  border-radius: 4px;
  padding: 1px 7px;
  text-decoration: none;
  vertical-align: 2px;
}

/* --- Kacheln (Alben) ---------------------------------------------------- */
.albenraster { grid-template-columns: 1fr; }
.kachel {
  display: block;
  background: var(--weiss);
  border: 0.5px solid var(--linie);
  border-radius: var(--radius-karte);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
}
.kachel-bild {
  aspect-ratio: 4 / 3;
  background: var(--linie);
  overflow: hidden;
}
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; }
.kachel-text { padding: 14px 16px 16px; }
.kachel-titel { font-weight: 600; color: var(--navy); margin-bottom: 2px; }
.kachel-meta { font-size: 0.85rem; color: var(--silber); }

/* --- Große Einstiegskacheln --------------------------------------------- */
.kachel-gross {
  display: block;
  background: var(--weiss);
  border: 0.5px solid var(--linie);
  border-radius: var(--radius-karte);
  padding: 28px 24px;
  color: inherit;
  text-decoration: none;
}
.kachel-gross h2 { margin-bottom: 8px; }
.kachel-gross p { margin-bottom: 12px; }
.kachel-gross .weiter { color: var(--rot-dunkel); font-weight: 600; }

/* --- Chronik ------------------------------------------------------------ */
.chronik-jahr { margin: 32px 0 16px; }
.chronik-jahr:first-child { margin-top: 0; }
.chronikraster { grid-template-columns: repeat(2, 1fr); }
.chronik-eintrag {
  background: var(--weiss);
  border: 0.5px solid var(--linie);
  border-radius: var(--radius-karte);
  overflow: hidden;
}
.chronik-eintrag .kachel-bild { aspect-ratio: 4 / 3; }
.chronik-eintrag .kachel-bild button {
  display: block; width: 100%; height: 100%;
  padding: 0; border: 0; background: none; cursor: zoom-in;
}
.chronik-text { padding: 12px 14px 14px; }
.chronik-datum { font-size: 0.8rem; color: var(--silber); }
.chronik-titel { font-weight: 600; color: var(--navy); font-size: 0.98rem; }
.chronik-satz { font-size: 0.88rem; margin-top: 4px; }

/* --- Bildergalerie im Album --------------------------------------------- */
.bildraster { grid-template-columns: repeat(2, 1fr); }
.bildraster button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0.5px solid var(--linie);
  border-radius: var(--radius-knopf);
  background: var(--linie);
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
}
.bildraster img { width: 100%; height: 100%; object-fit: cover; }

/* --- Spendenblock ------------------------------------------------------- */
.spendenblock {
  background: var(--rot);
  border-radius: var(--radius-karte);
  color: var(--weiss);
  padding: 28px 24px;
  text-align: center;
}
.spendenblock h2 { color: var(--weiss); }
.spendenblock p { color: #FFE8E7; max-width: 46em; margin-left: auto; margin-right: auto; }
.spendenblock .knopf-reihe { justify-content: center; margin-top: 20px; }

/* --- Bankverbindung ----------------------------------------------------- */
.bankdaten { margin: 0; }
.bankdaten div {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--linie);
}
.bankdaten div:last-child { border-bottom: 0; }
.bankdaten dt { flex: 0 0 130px; font-size: 0.85rem; color: var(--silber); }
.bankdaten dd { margin: 0; flex: 1 1 200px; color: var(--navy); font-weight: 600; }
.iban-wert { font-size: 1.2rem; letter-spacing: 0.02em; word-break: break-word; }

.kopier-knopf {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-family: inherit;
  font-weight: 600;
  color: var(--navy);
  background: var(--creme);
  border: 0.5px solid var(--linie);
  border-radius: var(--radius-knopf);
  cursor: pointer;
}
.kopier-knopf:hover { background: var(--linie); }
.kopier-knopf[data-erfolg="ja"] { color: #1E7A4A; }

.girocode {
  text-align: center;
  padding: 20px;
}
.girocode img {
  width: 220px;
  height: 220px;
  margin: 0 auto 12px;
  border: 0.5px solid var(--linie);
  border-radius: var(--radius-knopf);
}

/* --- Formular ----------------------------------------------------------- */
.feld { margin-bottom: 18px; }
.feld label { display: block; font-weight: 600; color: var(--navy); font-size: 0.92rem; margin-bottom: 6px; }
.feld input[type="text"],
.feld input[type="email"],
.feld textarea {
  width: 100%;
  padding: 11px 13px;
  font-family: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--weiss);
  border: 1px solid var(--silber);
  border-radius: var(--radius-knopf);
}
.feld textarea { min-height: 160px; resize: vertical; }
.feld input:focus, .feld textarea:focus { border-color: var(--navy); }

.feld-pflicht { color: var(--rot-dunkel); }

.feld-zustimmung { display: flex; gap: 10px; align-items: flex-start; }
.feld-zustimmung input { margin-top: 5px; width: 18px; height: 18px; flex-shrink: 0; }
.feld-zustimmung label { font-weight: 400; color: var(--text-grau); font-size: 0.9rem; }

/* Honigtopf - bewusst nicht display:none */
.hp { position: absolute; left: -9999px; opacity: 0; pointer-events: none; }

.meldung {
  padding: 14px 16px;
  border-radius: var(--radius-knopf);
  border: 0.5px solid var(--linie);
  margin-bottom: 18px;
  font-size: 0.95rem;
}
.meldung-ok { background: #EAF6EF; border-color: #B7DFC8; color: #1E5B39; }
.meldung-fehler { background: #FDECEB; border-color: #F3C2C0; color: #8E2420; }

/* --- Leerzustand -------------------------------------------------------- */
.leer {
  background: var(--weiss);
  border: 0.5px dashed var(--linie);
  border-radius: var(--radius-karte);
  padding: 28px 24px;
  text-align: center;
  color: var(--silber);
}

/* --- Downloadliste ------------------------------------------------------ */
.downloads { list-style: none; margin: 0; padding: 0; }
.downloads li { margin-bottom: 10px; }
.downloads a {
  display: flex;
  align-items: baseline;
  gap: 10px;
  background: var(--weiss);
  border: 0.5px solid var(--linie);
  border-radius: var(--radius-knopf);
  padding: 13px 16px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.downloads a:hover { border-color: var(--silber); }
.downloads .art { font-size: 0.75rem; font-weight: 400; color: var(--silber); margin-left: auto; }

/* --- Vorstandsliste ----------------------------------------------------- */
.vorstand { list-style: none; margin: 0; padding: 0; }
.vorstand li {
  display: flex;
  flex-wrap: wrap;
  gap: 2px 12px;
  padding: 12px 0;
  border-bottom: 0.5px solid var(--linie);
}
.vorstand li:last-child { border-bottom: 0; }
.vorstand .funktion { flex: 0 0 160px; font-size: 0.85rem; color: var(--silber); }
.vorstand .name { font-weight: 600; color: var(--navy); }

/* --- Lichtkasten -------------------------------------------------------- */
.lichtkasten {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: none;
  background: rgba(27, 58, 92, 0.94);
  padding: 56px 12px 72px;
}
.lichtkasten[open], .lichtkasten.offen { display: flex; align-items: center; justify-content: center; }
.lichtkasten img {
  max-width: 100%;
  max-height: 100%;
  border-radius: var(--radius-knopf);
}
.lk-knopf {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  border: 0.5px solid rgba(255, 255, 255, 0.35);
  color: var(--weiss);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}
.lk-knopf:hover { background: rgba(255, 255, 255, 0.24); }
.lk-zu { top: 10px; right: 12px; }
.lk-zurueck { left: 12px; top: 50%; transform: translateY(-50%); }
.lk-vor { right: 12px; top: 50%; transform: translateY(-50%); }
.lk-stand {
  position: absolute;
  bottom: 18px;
  left: 0;
  right: 0;
  text-align: center;
  color: #D5E0EA;
  font-size: 0.85rem;
  padding: 0 16px;
}

/* --- Spielekacheln ------------------------------------------------------ */
.spielraster { grid-template-columns: 1fr; }

/* --- Fußbereich --------------------------------------------------------- */
.fuss {
  background: var(--navy);
  color: #C7D3DD;
  margin-top: 48px;
  padding: 36px 0 24px;
  font-size: 0.92rem;
}
.fuss-raster { display: grid; gap: 28px; }
.fuss h2 {
  color: var(--weiss);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.fuss a { color: #C7D3DD; }
.fuss a:hover { color: var(--weiss); }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 8px; }
.fuss-zwischen { margin-top: 22px; }

/* Verweise auf Facebook und Instagram - als Schaltflächen mit Zeichen,
   damit sie im Fußbereich nicht untergehen */
.sozial { display: flex; flex-wrap: wrap; gap: 10px; }

/* .fuss davor, damit die weiße Schrift die allgemeine Fußbereichsfarbe
   überschreibt — sonst gewinnt .fuss a durch höhere Spezifität */
.fuss .sozial-knopf {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 15px 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--radius-knopf);
  color: var(--weiss);
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
}
.fuss .sozial-knopf svg { flex-shrink: 0; }
.fuss .sozial-knopf:hover,
.fuss .sozial-knopf:focus-visible {
  background: var(--weiss);
  border-color: var(--weiss);
  color: var(--navy);
}
.fuss-unten {
  border-top: 0.5px solid var(--navy-hell);
  margin-top: 28px;
  padding-top: 18px;
  font-size: 0.82rem;
  color: var(--silber);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  justify-content: space-between;
}

/* --- 404 ---------------------------------------------------------------- */
.fehlerseite { text-align: center; padding: 60px 0; }
.fehlerseite .kennung { font-size: 3.4rem; font-weight: 600; color: var(--rot); line-height: 1; }

/* ==========================================================================
   Haltepunkte
   ========================================================================== */

@media (min-width: 640px) {
  :root { --rand: 24px; }

  h1 { font-size: 2.2rem; }
  .hero-obertitel { font-size: 1.55rem; }
  .hero-marke { flex-direction: row; align-items: center; gap: 22px; }
  .hero-logo { width: 116px; height: 116px; }

  .kennzahlen { grid-template-columns: repeat(3, 1fr); }
  .albenraster { grid-template-columns: repeat(2, 1fr); }
  .chronikraster { grid-template-columns: repeat(3, 1fr); }
  .bildraster { grid-template-columns: repeat(3, 1fr); }
  .spielraster { grid-template-columns: repeat(2, 1fr); }
  .marke-text { display: block; }
  .fuss-raster { grid-template-columns: repeat(2, 1fr); }
  .girocode img { width: 260px; height: 260px; }
}

@media (min-width: 900px) {
  .raster { gap: 20px; }
  .albenraster { grid-template-columns: repeat(3, 1fr); }
  .chronikraster { grid-template-columns: repeat(4, 1fr); }
  .bildraster { grid-template-columns: repeat(4, 1fr); }
  .kachelpaar { grid-template-columns: repeat(2, 1fr); }
  .fuss-raster { grid-template-columns: 1.6fr 1fr 1fr; }

  .hero { padding: 32px 0 56px; }
  .hero-inhalt { margin-top: 28px; }
  .hero-marke { gap: 26px; margin-bottom: 28px; }
  .hero-logo { width: 132px; height: 132px; }

  .abschnitt { padding: 48px 0; }

  /* Waagerechte Navigation ab Tablet quer */
  .burger { display: none; }
  .nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    padding: 0;
  }
  .nav > ul { display: flex; align-items: center; gap: 4px; }
  .nav a,
  .nav .unterpunkt-knopf {
    width: auto;
    padding: 10px 12px;
    border: 0;
    border-radius: var(--radius-knopf);
    font-size: 0.95rem;
    white-space: nowrap;
  }
  .nav a:hover,
  .nav .unterpunkt-knopf:hover { background: var(--navy-hell); color: var(--weiss); }
  .nav a[aria-current="page"],
  .nav .unterpunkt-knopf.aktiv { background: var(--navy-hell); color: var(--weiss); }

  .nav .hat-untermenue { position: relative; }
  .untermenue {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 220px;
    padding: 6px;
    background: var(--navy-hell);
    border-radius: var(--radius-knopf);
    box-shadow: none;
    border: 0.5px solid var(--navy);
    z-index: 120;
  }
  .untermenue a { display: block; }
  .untermenue a:hover { background: var(--navy); }
}

/* Zwischen 900 und 1024 px wird es in der Kopfzeile eng: sieben Punkte,
   Logo und Vereinsname auf einer Zeile. Etwas weniger Innenabstand
   verhindert, dass die Navigation umbricht. */
@media (min-width: 900px) and (max-width: 1023px) {
  .nav > ul { gap: 2px; }
  .nav a,
  .nav .unterpunkt-knopf {
    padding: 10px 8px;
    font-size: 0.9rem;
  }
  .marke-zusatz { font-size: 0.72rem; }
}

@media (min-width: 1140px) {
  .spendenblock { padding: 40px 32px; }
}

/* ==========================================================================
   Bewegung - nur wenn ausdrücklich gewünscht
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {
  .knopf,
  .kachel,
  .kachel-gross,
  .kopier-knopf,
  .downloads a,
  .nav a,
  .nav .unterpunkt-knopf,
  .fuss .sozial-knopf,
  .lk-knopf {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
  }

  .kachel:hover,
  .kachel-gross:hover { border-color: var(--silber); }

  /* Nur der Wartezustand ist durchsichtig - siehe bildEinblenden() in main.js */
  img[data-einblenden="warten"] { opacity: 0; transition: opacity 0.35s ease; }
  img[data-einblenden="fertig"] { opacity: 1; transition: opacity 0.35s ease; }
}

@media (prefers-reduced-motion: reduce) {
  img[data-einblenden] { opacity: 1; }
}

/* ==========================================================================
   Druck
   ========================================================================== */

@media print {
  .kopf, .fuss, .sprungmarke, .lichtkasten, .knopf-reihe { display: none; }
  body { background: #fff; }
  .karte { border: 1px solid #ccc; }
}
