/* =========================================================
   Freiwillige Feuerwehr Kirchdorf an der Amper
   Stylesheet – ohne Build-Tools, reines CSS
   Layout: feste Seitenleiste links, Inhalt rechts
   ========================================================= */

:root {
  --rot: #e2001a;
  --rot-dunkel: #b40015;
  --schwarz: #000000;
  --anthrazit: #14161a;
  --weiss: #ffffff;
  --grau-100: #f4f4f4;
  --grau-200: #e6e6e6;
  --grau-500: #6f7377;
  --grau-700: #3d4045;

  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --leiste: 320px;
  --inhalt: 1180px;
  --schatten: 0 14px 40px rgba(0, 0, 0, .13);
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.62;
  color: var(--anthrazit);
  background: var(--weiss);
}

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

a { color: var(--rot); }
a:hover { color: var(--rot-dunkel); }

h1, h2, h3, h4 {
  line-height: 1.15;
  margin: 0 0 .6em;
  color: inherit;
  font-weight: 600;
  letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 500; }
h3 { font-size: 1.3rem; font-weight: 500; }

p { margin: 0 0 1em; }

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: -9999px; top: 0;
  background: var(--schwarz);
  color: #fff;
  padding: 12px 18px;
  z-index: 300;
}
.skip-link:focus { left: 0; }

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

/* =========================================================
   Grundgerüst
   ========================================================= */

.inhaltsspalte { margin-left: var(--leiste); }

.container {
  width: 100%;
  max-width: var(--inhalt);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 56px);
}

/* ---------------- Seitenleiste ---------------- */

.seitenleiste {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--leiste);
  background: var(--weiss);
  border-right: 1px solid var(--grau-200);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 42px 26px;
  overflow-y: auto;
  z-index: 120;
}

.marke {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: var(--anthrazit);
}
.marke svg,
.marke-bild { flex: none; }
.marke-bild { display: block; }
/* Logo im roten Fußbereich auf weißer Fläche, damit es lesbar bleibt */
.marke-bild--tafel {
  background: #fff;
  padding: 7px 9px;
  border-radius: 2px;
  box-sizing: content-box;
}
.marke-text { display: flex; flex-direction: column; line-height: 1.12; }
.marke-text b {
  font-size: 1.05rem;
  font-weight: 700;
}
.marke-text span {
  font-size: .72rem;
  white-space: nowrap;
  color: var(--grau-500);
  border-top: 1px solid var(--grau-200);
  margin-top: 4px;
  padding-top: 4px;
}

.hauptnav { width: 100%; }
.hauptnav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  text-align: center;
}
.hauptnav a {
  display: block;
  padding: 11px 8px;
  text-decoration: none;
  color: var(--anthrazit);
  font-size: 1.06rem;
}
.hauptnav a:hover { color: var(--rot); }
.hauptnav a[aria-current="page"] {
  color: var(--rot);
  font-weight: 600;
}

.leiste-fuss {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.symbolkreise {
  display: flex;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.symbolkreise a {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--rot);
  color: #fff;
  display: grid;
  place-items: center;
  transition: background .15s ease;
}
.symbolkreise a:hover { background: var(--schwarz); color: #fff; }
.symbolkreise svg { width: 20px; height: 20px; fill: currentColor; }

.leiste-notruf {
  font-size: .82rem;
  color: var(--grau-500);
  text-align: center;
}
.leiste-notruf a {
  color: var(--rot);
  font-weight: 700;
  text-decoration: none;
  font-size: 1.05rem;
}

/* ---------------- Mobiler Kopfbereich ---------------- */

.mobilkopf {
  display: none;
  position: sticky;
  top: 0;
  z-index: 130;
  background: var(--weiss);
  border-bottom: 1px solid var(--grau-200);
}
.mobilkopf .zeile {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px clamp(20px, 4vw, 32px);
}

.nav-schalter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--grau-200);
  background: var(--weiss);
  padding: 10px 14px;
  cursor: pointer;
  font: inherit;
  font-size: .95rem;
}
.nav-schalter .balken {
  display: block;
  width: 20px; height: 2px;
  background: var(--schwarz);
  position: relative;
}
.nav-schalter .balken::before,
.nav-schalter .balken::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px; height: 2px;
  background: var(--schwarz);
}
.nav-schalter .balken::before { top: -6px; }
.nav-schalter .balken::after { top: 6px; }

@media (max-width: 1100px) {
  .inhaltsspalte { margin-left: 0; }
  .mobilkopf { display: block; }

  .seitenleiste {
    position: static;
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--grau-200);
    padding: 0 clamp(20px, 4vw, 32px) 24px;
    display: none;
  }
  .seitenleiste.offen { display: flex; }
  .seitenleiste .marke { display: none; }
  .hauptnav a { padding: 13px 8px; border-bottom: 1px solid var(--grau-100); }
  .leiste-fuss { margin-top: 22px; }
}

@media (max-width: 480px) {
  .marke-text span { white-space: normal; }
  .marke-text b { font-size: .95rem; }
}

/* =========================================================
   Buttons
   ========================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 20px;
  background: var(--rot);
  color: #fff;
  text-decoration: none;
  font-size: .97rem;
  border: 2px solid var(--rot);
  border-radius: 2px;
  cursor: pointer;
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn::after { content: "\2192"; font-size: 1.05em; }
.btn:hover { background: var(--rot-dunkel); border-color: var(--rot-dunkel); color: #fff; }

.btn--rand {
  background: transparent;
  color: var(--rot);
}
.btn--rand:hover { background: var(--rot); color: #fff; }

.btn--weiss {
  background: var(--weiss);
  color: var(--rot);
  border-color: var(--weiss);
}
.btn--weiss:hover { background: transparent; color: #fff; border-color: #fff; }

/* =========================================================
   Hero
   ========================================================= */

.hero {
  position: relative;
  min-height: min(78vh, 720px);
  display: flex;
  align-items: flex-end;
  background:
    linear-gradient(rgba(0, 0, 0, .18), rgba(0, 0, 0, .38)),
    url("../img/mannschaft-feuerwehrhaus.jpg") 50% 38% / cover no-repeat,
    #14161a;
  background-size: cover;
  background-position: center;
}
.hero-block {
  background: var(--rot);
  color: #fff;
  padding: clamp(28px, 4vw, 52px) clamp(24px, 4vw, 60px);
  margin-left: auto;
  max-width: min(640px, 100%);
}
.hero-block h1 { color: #fff; margin: 0; }
.hero-notiz {
  position: absolute;
  left: clamp(20px, 4vw, 56px);
  top: clamp(20px, 4vw, 40px);
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-size: .82rem;
  padding: 8px 14px;
}
.hero-block p {
  margin: 14px 0 0;
  font-size: 1.05rem;
  color: rgba(255, 255, 255, .93);
}

/* Kopfbereich der Unterseiten */
.seitenkopf {
  background: var(--schwarz);
  color: #fff;
  padding-block: clamp(52px, 9vw, 104px);
}
.seitenkopf h1 { color: #fff; }
.seitenkopf p {
  color: rgba(255, 255, 255, .78);
  max-width: 62ch;
  margin: 0;
  font-size: 1.06rem;
}

/* =========================================================
   Abschnitte
   ========================================================= */

.abschnitt { padding-block: clamp(52px, 8vw, 96px); }
.abschnitt--grau { background: var(--grau-100); }
.abschnitt--schwarz { background: var(--schwarz); color: #fff; }
.abschnitt--schwarz h2, .abschnitt--schwarz h3 { color: #fff; }
.abschnitt--rot { background: var(--rot); color: #fff; }
.abschnitt--rot h2 { color: #fff; }

.abschnitt--mittig { text-align: center; }
.abschnitt--mittig .textblock {
  max-width: 62ch;
  margin-inline: auto;
}

.abschnitt-kopf { max-width: 68ch; margin-bottom: 42px; }
.abschnitt--mittig .abschnitt-kopf { margin-inline: auto; }
.kicker {
  text-transform: uppercase;
  letter-spacing: .16em;
  font-size: .76rem;
  font-weight: 700;
  color: var(--rot);
  margin-bottom: .8em;
}

/* =========================================================
   Versetzte Rot/Schwarz-Blöcke
   ========================================================= */

.versatz {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  align-items: center;
  margin-bottom: clamp(48px, 7vw, 86px);
}
.versatz:last-child { margin-bottom: 0; }

.versatz-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.bildkarte-bild img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.versatz-bild {
  grid-row: 1;
  grid-column: 1 / span 6;
  z-index: 2;
  box-shadow: var(--schatten);
}
.versatz-text {
  grid-row: 1;
  grid-column: 6 / span 7;
  position: relative;
  background: var(--schwarz);
  color: #fff;
  padding: clamp(30px, 3.6vw, 54px);
  padding-left: clamp(48px, 6vw, 96px);
  z-index: 1;
}
.versatz-text h2 { color: #fff; }
.versatz-text p { color: rgba(255, 255, 255, .86); }
.versatz-text p:last-of-type { margin-bottom: 24px; }

/* Roter Versatz oberhalb des schwarzen Kastens */
.versatz-text::before {
  content: "";
  position: absolute;
  left: clamp(30px, 5vw, 80px);
  right: -1px;
  top: clamp(-52px, -4vw, -34px);
  height: clamp(34px, 4vw, 52px);
  background: var(--rot);
  z-index: -1;
}

/* Gespiegelte Variante: Text links, Bild rechts */
.versatz--gedreht .versatz-bild { grid-column: 7 / span 6; }
.versatz--gedreht .versatz-text {
  grid-column: 1 / span 7;
  padding-left: clamp(30px, 3.6vw, 54px);
  padding-right: clamp(48px, 6vw, 96px);
}
.versatz--gedreht .versatz-text::before {
  left: -1px;
  right: clamp(30px, 5vw, 80px);
}

@media (max-width: 860px) {
  .versatz { grid-template-columns: 1fr; }
  .versatz-bild,
  .versatz--gedreht .versatz-bild { grid-column: 1; grid-row: 1; }
  .versatz-text,
  .versatz--gedreht .versatz-text {
    grid-column: 1;
    grid-row: 2;
    padding: 30px 26px;
    margin-top: 34px;
  }
  .versatz-text::before,
  .versatz--gedreht .versatz-text::before {
    left: 26px;
    right: 26px;
    top: -22px;
    height: 22px;
  }
}

/* =========================================================
   Bildkarten auf schwarzem Band
   ========================================================= */

.kartenband {
  background: var(--schwarz);
  padding-block: clamp(56px, 8vw, 96px) 0;
}
.kartenband-raster {
  display: grid;
  gap: clamp(24px, 3vw, 40px);
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  transform: translateY(clamp(40px, 6vw, 90px));
  margin-top: clamp(-40px, -6vw, -90px);
}
.bildkarte { display: flex; flex-direction: column; height: 100%; }
.bildkarte-text {
  background: var(--weiss);
  color: var(--anthrazit);
  padding: clamp(26px, 2.6vw, 38px);
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.bildkarte-text h3 { margin-top: 0; }
.bildkarte-text p { margin-bottom: 22px; }
.bildkarte-text .btn { margin-top: auto; }
.bildkarte-bild {
  flex: none;
  margin-top: clamp(26px, 3vw, 44px);
  margin-inline: clamp(20px, 3vw, 40px) 0;
  box-shadow: var(--schatten);
}
.kartenband + * { padding-top: clamp(64px, 9vw, 120px); }

/* =========================================================
   Weitere Bausteine
   ========================================================= */

.raster {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}
.raster--2 { grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); }

.karte {
  background: var(--weiss);
  border: 1px solid var(--grau-200);
  padding: 30px;
}
.abschnitt--schwarz .karte {
  background: var(--anthrazit);
  border-color: #2a2e34;
  color: #fff;
}
.karte h3 { margin-top: 0; }
.karte p:last-child { margin-bottom: 0; }

.karten-symbol {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--rot);
  color: #fff;
  margin-bottom: 18px;
}

/* Kennzahlen */
.kennzahlen {
  display: grid;
  gap: 30px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.kennzahl .wert {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  display: block;
  margin-bottom: 8px;
}
.kennzahl .bezeichnung { font-size: .96rem; opacity: .92; }

/* Meldungen */
.meldung {
  background: var(--weiss);
  border: 1px solid var(--grau-200);
  border-top: 4px solid var(--rot);
  padding: 26px 28px;
}
.meldung time {
  display: block;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: var(--rot);
  font-weight: 700;
  margin-bottom: 8px;
}
.meldung h3 { margin-bottom: .4em; }
.meldung p:last-child { margin-bottom: 0; }

/* Zeitstrahl */
.zeitstrahl {
  list-style: none;
  margin: 0;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--grau-200);
}
.zeitstrahl li { position: relative; padding-bottom: 28px; }
.zeitstrahl li::before {
  content: "";
  position: absolute;
  left: -35px; top: 8px;
  width: 14px; height: 14px;
  background: var(--rot);
  border: 3px solid var(--weiss);
}
.zeitstrahl b { display: block; color: var(--rot); font-size: 1.05rem; }

/* Tabellen */
.tabelle-huelle { overflow-x: auto; }
table.tabelle {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  background: var(--weiss);
}
table.tabelle caption {
  text-align: left;
  font-weight: 600;
  padding-bottom: 12px;
  color: var(--grau-500);
}
table.tabelle th,
table.tabelle td {
  text-align: left;
  padding: 13px 16px;
  border-bottom: 1px solid var(--grau-200);
  vertical-align: top;
}
table.tabelle thead th {
  background: var(--schwarz);
  color: #fff;
  font-size: .84rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 600;
}
table.tabelle tbody tr:nth-child(even) { background: var(--grau-100); }

/* Definitionslisten */
.datenliste { margin: 0; }
.datenliste dt {
  font-weight: 700;
  color: var(--grau-500);
  font-size: .86rem;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-top: 16px;
}
.datenliste dt:first-child { margin-top: 0; }
.datenliste dd { margin: 0; }

/* Hinweisbox */
.hinweis {
  background: var(--grau-100);
  border-left: 4px solid var(--rot);
  padding: 20px 24px;
  margin-bottom: 30px;
}
.hinweis p:last-child { margin-bottom: 0; }

/* Notrufkasten */
.notrufkasten {
  background: var(--rot);
  color: #fff;
  padding: clamp(30px, 4vw, 52px);
  text-align: center;
}
.notrufkasten h2 { color: #fff; }
.notrufkasten .nummer {
  font-size: clamp(3.2rem, 13vw, 5.4rem);
  font-weight: 700;
  line-height: 1;
  display: block;
  color: #fff;
  text-decoration: none;
  letter-spacing: .04em;
}

/* Formular */
.formular { display: grid; gap: 20px; max-width: 640px; }
.feld { display: grid; gap: 7px; }
.feld label { font-weight: 600; }
.feld input,
.feld textarea,
.feld select {
  font: inherit;
  padding: 12px 14px;
  border: 1px solid var(--grau-200);
  border-radius: 2px;
  background: var(--weiss);
  width: 100%;
}
.feld input:focus,
.feld textarea:focus,
.feld select:focus { border-color: var(--rot); }
.feld textarea { min-height: 150px; resize: vertical; }
.feld .hilfe { font-size: .86rem; color: var(--grau-500); }
.pflicht { color: var(--rot); }

/* Zwei-Spalten-Layout */
.spalten {
  display: grid;
  gap: 46px;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  align-items: start;
}
@media (max-width: 860px) { .spalten { grid-template-columns: 1fr; } }

.infobox { background: var(--grau-100); padding: 30px; }
.abschnitt--grau .infobox { background: var(--weiss); }
.infobox h3 { margin-top: 0; }

/* Bild-Platzhalter */
.platzhalter-bild {
  display: grid;
  place-items: center;
  aspect-ratio: 4 / 3;
  background: repeating-linear-gradient(45deg, #202429, #202429 14px, #262b31 14px, #262b31 28px);
  color: rgba(255, 255, 255, .72);
  font-size: .88rem;
  text-align: center;
  padding: 18px;
}
.platzhalter-bild--hell {
  background: repeating-linear-gradient(45deg, var(--grau-100), var(--grau-100) 14px, #e9e9e9 14px, #e9e9e9 28px);
  color: var(--grau-500);
}

/* Liste mit Haken */
.hakenliste { list-style: none; padding: 0; margin: 0 0 1em; }
.hakenliste li { position: relative; padding-left: 30px; margin-bottom: 11px; }
.hakenliste li::before {
  content: "";
  position: absolute;
  left: 4px; top: .42em;
  width: 8px; height: 14px;
  border: solid var(--rot);
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}

/* =========================================================
   Fußbereich
   ========================================================= */

.fuss {
  background: var(--rot);
  color: #fff;
  padding-block: clamp(40px, 5vw, 60px);
  font-size: .95rem;
}
.fuss a { color: #fff; text-decoration: none; }
.fuss a:hover { text-decoration: underline; color: #fff; }
.fuss h3 {
  color: #fff;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 700;
  margin-bottom: 12px;
}
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss li { margin-bottom: 7px; }

.fuss-raster {
  display: grid;
  gap: 34px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  align-items: start;
}
.fuss .marke { color: #fff; }
.fuss .marke-text span { color: rgba(255, 255, 255, .8); border-top-color: rgba(255, 255, 255, .4); }
.fuss .symbolkreise a { background: var(--schwarz); }
.fuss .symbolkreise a:hover { background: var(--weiss); color: var(--rot); }

.fuss-unten {
  margin-top: 34px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .3);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  font-size: .87rem;
}

/* =========================================================
   Druck & Bewegungsreduktion
   ========================================================= */

@media print {
  .seitenleiste, .mobilkopf, .fuss, .hero-block { display: none; }
  .inhaltsspalte { margin-left: 0; }
  body { font-size: 12pt; color: #000; }
  a { color: #000; text-decoration: underline; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
