:root {
	--grau-950: #1b1e21; --grau-900: #23262b; --grau-800: #2f333a;
	--grau-600: #5b6570; --grau-300: #cfd3d8; --grau-150: #e4e6e9; --grau-100: #eceef0;
	--weiss: #ffffff;
	--blau: #1450a3; --blau-dunkel: #0d2f5e; --blau-hell: #e7eefb;
	--rot: #c62828; --rot-dunkel: #8e1c1c; --rot-hell: #fbe9e7;
	--text: #1c1f22; --text-mild: var(--grau-600);
	--radius: 3px;
	--schrift-titel: "Barlow Condensed", "Arial Narrow", sans-serif;
	--schrift-text: "Inter", "Segoe UI", sans-serif;
	--schrift-mono: "Consolas", "SFMono-Regular", Menlo, monospace;
}
* { box-sizing: border-box; }
body.ffa { margin: 0; background: var(--grau-100); color: var(--text); font-family: var(--schrift-text); line-height: 1.55; -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--schrift-titel); font-weight: 600; letter-spacing: .2px; margin: 0 0 .4em; }
a { color: var(--blau); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--blau); outline-offset: 2px; }
.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; }

.alarmbalken { background: var(--rot); color: var(--weiss); font-family: var(--schrift-mono); font-size: .8rem; }
.alarmbalken__inner { max-width: 1180px; margin: 0 auto; padding: 6px 20px; display: flex; align-items: center; gap: 12px; }
.alarmbalken__label { text-transform: uppercase; opacity: .85; letter-spacing: .06em; }
.alarmbalken__nummer { color: var(--weiss); font-weight: 700; font-size: .95rem; }
.alarmbalken__trenner { width: 1px; height: 14px; background: rgba(255,255,255,.4); }
.alarmbalken__status { opacity: .9; }
.alarmbalken__status::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #7CFC9A; margin-right: 6px; }

.kopf { background: var(--grau-900); color: var(--grau-100); border-bottom: 3px solid var(--blau); }
.kopf__inner { max-width: 1180px; margin: 0 auto; padding: 14px 20px; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.kopf__marke { display: flex; align-items: center; gap: 12px; color: var(--weiss); flex: 1; min-width: 0; }
.kopf__marke:hover { text-decoration: none; }
.kopf__wappen { color: var(--rot); flex-shrink: 0; }
.kopf__text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.kopf__text strong { font-family: var(--schrift-titel); font-size: 1.25rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kopf__text em { font-style: normal; font-size: .75rem; color: var(--grau-300); }
.kopf__nav ul, .demo-nav { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; flex-wrap: wrap; }
.kopf__nav a, .demo-nav a { display: block; padding: 10px 14px; color: var(--grau-100); font-family: var(--schrift-titel); font-size: 1rem; border-bottom: 2px solid transparent; }
.kopf__nav a:hover, .demo-nav a:hover { color: var(--weiss); border-bottom-color: var(--rot); text-decoration: none; }
.kopf__burger { display: none; }

.hero { position: relative; background: linear-gradient(180deg, var(--grau-950) 0%, var(--grau-900) 100%); color: var(--weiss); overflow: hidden; border-bottom: 4px solid var(--rot); }
.hero__raster { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px); background-size: 42px 42px; pointer-events: none; }
.hero::after { content: ""; position: absolute; right: -60px; top: -60px; bottom: -60px; width: 260px; background: repeating-linear-gradient(-45deg, var(--rot) 0 26px, var(--blau) 26px 52px); opacity: .18; pointer-events: none; }
.hero__inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 72px 20px 60px; }
.hero__eyebrow { font-family: var(--schrift-mono); color: #ff8a80; font-size: .85rem; letter-spacing: .08em; margin-bottom: 10px; }
.hero__titel { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.05; max-width: 14ch; margin-bottom: 20px; }
.hero__text { max-width: 62ch; color: var(--grau-300); font-size: 1.02rem; }
.hero__kennzahlen { display: flex; gap: 36px; margin-top: 34px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.15); flex-wrap: wrap; }
.hero__kennzahlen div { display: flex; flex-direction: column; }
.hero__kennzahlen .zahl { font-family: var(--schrift-titel); font-size: 2.1rem; color: var(--weiss); line-height: 1; }
.hero__kennzahlen .label { font-size: .78rem; color: var(--grau-300); margin-top: 4px; }

.inhalt { max-width: 1180px; margin: 0 auto; padding: 44px 20px 20px; display: grid; grid-template-columns: 1fr 300px; gap: 40px; align-items: start; }
.inhalt__seitenspalte:empty { display: none; }
.modul-block { margin-bottom: 52px; }
.modul-block__kopf { margin-bottom: 18px; }
.modul-block__kopf h2 { display: flex; align-items: center; font-size: 1.55rem; }
.modul-block__hinweis { color: var(--text-mild); font-size: .92rem; margin-top: 4px; }
.marker { display: inline-block; width: 14px; height: 14px; margin-right: 10px; border: 2px solid currentColor; transform: rotate(45deg); flex-shrink: 0; }
.marker--blau { color: var(--blau); }
.marker--rot { color: var(--rot); }

.meldungen-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.karte { background: var(--weiss); border: 1px solid var(--grau-300); border-top: 3px solid var(--blau); border-radius: var(--radius); padding: 20px; }
.karte__datum { display: inline-block; font-family: var(--schrift-mono); font-size: .72rem; letter-spacing: .05em; color: var(--blau); margin-bottom: 8px; }
.karte h3 { font-size: 1.12rem; margin-bottom: 8px; }
.karte p { color: var(--text-mild); font-size: .92rem; margin: 0 0 12px; }
.karte__link { font-family: var(--schrift-titel); font-weight: 600; }

.einsatz-tabelle-wrapper { background: var(--weiss); border: 1px solid var(--grau-300); border-radius: var(--radius); overflow-x: auto; }
.einsatz-tabelle { width: 100%; border-collapse: collapse; min-width: 640px; }
.einsatz-tabelle thead th { text-align: left; background: var(--grau-900); color: var(--grau-100); font-family: var(--schrift-titel); font-weight: 600; font-size: .88rem; padding: 12px 16px; }
.einsatz-tabelle tbody td { padding: 12px 16px; border-top: 1px solid var(--grau-150); font-size: .92rem; }
.einsatz-tabelle tbody tr:hover { background: var(--grau-100); }
.einsatz-tabelle__aktiv { background: var(--rot-hell); }
.einsatz-tabelle__aktiv:hover { background: var(--rot-hell); }
.mono { font-family: var(--schrift-mono); font-size: .85rem; color: var(--text-mild); }

.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; }
.badge--aktiv { background: var(--rot); color: var(--weiss); }
.badge--abgeschlossen { background: var(--grau-150); color: var(--grau-600); }
.badge--dienst { background: var(--blau-hell); color: var(--blau-dunkel); }
.badge--termin { background: var(--rot-hell); color: var(--rot-dunkel); }

.dienst-liste { display: flex; flex-direction: column; gap: 10px; }
.dienst-eintrag { display: flex; align-items: center; gap: 18px; background: var(--weiss); border: 1px solid var(--grau-300); border-left: 4px solid var(--blau); border-radius: var(--radius); padding: 14px 18px; flex-wrap: wrap; }
.dienst-eintrag__datum { display: flex; flex-direction: column; align-items: center; width: 56px; flex-shrink: 0; font-family: var(--schrift-titel); color: var(--blau); }
.dienst-eintrag__datum .tag { font-size: 1.5rem; font-weight: 700; line-height: 1; }
.dienst-eintrag__datum .monat { font-size: .74rem; color: var(--text-mild); }
.dienst-eintrag__info { flex: 1; min-width: 0; }
.dienst-eintrag__info h3 { font-size: 1rem; margin-bottom: 2px; }
.dienst-eintrag__info p { margin: 0; font-size: .88rem; color: var(--text-mild); }

/* Fahrzeuge */
.fahrzeug-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.fahrzeug-karte { background: var(--weiss); border: 1px solid var(--grau-300); border-radius: var(--radius); overflow: hidden; }
.fahrzeug-karte__bild { aspect-ratio: 16 / 10; background: var(--grau-800); }
.fahrzeug-karte__bild img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fahrzeug-karte__bild--platzhalter { display: flex; align-items: center; justify-content: center; }
.fahrzeug-karte__bild--platzhalter span { font-family: var(--schrift-titel); color: var(--grau-300); font-size: 1.3rem; letter-spacing: .04em; }
.fahrzeug-karte__info { padding: 16px 18px; border-top: 3px solid var(--rot); }
.fahrzeug-karte__info h3 { font-size: 1.15rem; margin-bottom: 10px; }
.fahrzeug-karte__info dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; margin: 0; }
.fahrzeug-karte__info dt { color: var(--text-mild); font-size: .82rem; }
.fahrzeug-karte__info dd { margin: 0; font-family: var(--schrift-mono); font-size: .88rem; }

/* Abteilungen */
.abteilung-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.abteilung-karte { background: var(--weiss); border: 1px solid var(--grau-300); border-top: 3px solid var(--blau); border-radius: var(--radius); padding: 20px; }
.abteilung-karte h3 { font-size: 1.1rem; margin-bottom: 8px; }
.abteilung-karte p { color: var(--text-mild); font-size: .9rem; margin: 0; }

/* Galerie */
.galerie-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.galerie-kachel { position: relative; margin: 0; aspect-ratio: 4 / 3; background: var(--grau-800); border-radius: var(--radius); overflow: hidden; }
.galerie-kachel img { width: 100%; height: 100%; object-fit: cover; display: block; }
.galerie-kachel__platzhalter { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: var(--grau-300); font-family: var(--schrift-mono); font-size: .8rem; }
.galerie-kachel__ecken { position: absolute; inset: 8px; pointer-events: none; }
.galerie-kachel__ecken::before, .galerie-kachel__ecken::after { content: ""; position: absolute; width: 14px; height: 14px; border: 2px solid var(--rot); }
.galerie-kachel__ecken::before { top: 0; left: 0; border-right: none; border-bottom: none; }
.galerie-kachel__ecken::after { bottom: 0; right: 0; border-left: none; border-top: none; }

.fuss { position: relative; background: var(--grau-950); color: var(--grau-300); margin-top: 40px; overflow: hidden; }
.fuss__inner { position: relative; max-width: 1180px; margin: 0 auto; padding: 48px 20px 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.fuss__spalte h3 { color: var(--weiss); font-size: 1.02rem; margin-bottom: 12px; }
.fuss__spalte p, .fuss__spalte a { font-size: .9rem; color: var(--grau-300); }
.fuss__spalte a:hover { color: var(--weiss); }
.fuss__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fuss__unten { position: relative; border-top: 1px solid rgba(255,255,255,.1); padding: 16px 20px; text-align: center; font-size: .8rem; }

@media (max-width: 900px) {
	.inhalt { grid-template-columns: 1fr; }
	.fuss__inner { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
	.kopf__burger { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 40px; height: 36px; background: none; border: 1px solid rgba(255,255,255,.3); border-radius: var(--radius); cursor: pointer; }
	.kopf__burger span { display: block; height: 2px; background: var(--weiss); margin: 0 8px; }
	.kopf__nav { display: none; width: 100%; order: 3; }
	.kopf__nav.ist-offen { display: block; }
	.kopf__nav ul, .demo-nav { flex-direction: column; gap: 0; }
	.einsatz-tabelle { min-width: 560px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; } }
