/* FrontlineNetworks – Website (Darkmode)
   Alle Farben, Schriften, Größen und Radien kommen aus brand.css.
   CD-Regeln: keine Schatten, Ebenen über Flächenhelligkeit und 1-px-Linie;
   Rot nur als Signal; auf Dunkel Pulsblau statt Nachtblau für Text und Links;
   Text und Logo über Fotos nur auf gedecktem Farbfeld (Verlauf in Tiefe);
   ein Gestaltungselement pro Seite: die Pulslinie. */

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

html { color-scheme: dark; scroll-behavior: smooth; scroll-padding-top: 84px; background: var(--fn-d-grund); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--fn-d-grund);
  color: var(--fn-d-text);
  font-family: var(--fn-font-text);
  font-size: var(--fn-fs-200);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3 {
  font-family: var(--fn-font-display);
  font-weight: 800;
  line-height: 1.15;
  margin: 0;
  color: var(--fn-papier);
  text-wrap: balance;
}
h1 { font-size: clamp(var(--fn-fs-500), 6vw, 64px); font-weight: 900; letter-spacing: -.02em; }
h2 { font-size: clamp(var(--fn-fs-400), 3.6vw, var(--fn-fs-600)); letter-spacing: -.02em; }
h3 { font-size: var(--fn-fs-300); }
p  { margin: 0 0 1em; }

a { color: var(--fn-d-link); text-underline-offset: 3px; }
a:hover { color: var(--fn-d-link-hover); }
:focus-visible { outline: 2px solid var(--fn-fokus); outline-offset: 2px; }

.mono { font-family: var(--fn-font-mono); font-size: .94em; }
.sek { color: var(--fn-d-text-sek); }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 var(--fn-s-4); }
.wrap-schmal { max-width: 820px; }
@media (max-width: 640px) { .wrap { padding: 0 var(--fn-s-3); } }

.skip {
  position: absolute; left: var(--fn-s-3); top: -60px; z-index: 100;
  background: var(--fn-blau); color: var(--fn-tiefe); font-weight: 600;
  padding: var(--fn-s-2) var(--fn-s-3); border-radius: var(--fn-r-klein);
}
.skip:focus { top: var(--fn-s-2); }

.kennung {
  font-family: var(--fn-font-mono); font-size: 14px; color: var(--fn-d-link);
  margin: 0 0 var(--fn-s-3); letter-spacing: .02em;
}
.kante { width: 56px; height: 4px; border-radius: 2px; background: var(--fn-verlauf-flamme); margin: var(--fn-s-4) 0; }
.lede { font-size: clamp(17px, 1.6vw, 20px); color: var(--fn-d-text-sek); max-width: 60ch; }

/* Kopf ------------------------------------------------------------------ */
.kopf {
  position: sticky; top: 0; z-index: 50;
  background: rgba(18, 33, 46, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--fn-d-linie);
}
.kopf-in { display: flex; align-items: center; justify-content: space-between; gap: var(--fn-s-4); height: 68px; }
.kopf-logo { display: block; flex: none; padding: 6px 0; }
.kopf-logo img { width: 176px; }

.menue ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.menue a {
  display: block; padding: 6px 11px; border-radius: var(--fn-r-klein);
  color: var(--fn-d-text-sek); text-decoration: none; font-size: 15px; font-weight: 500;
}
.menue a:hover { background: var(--fn-d-flaeche); color: var(--fn-d-text); }
.menue a[aria-current="page"] { color: var(--fn-d-text); background: var(--fn-d-flaeche); }

.menue-knopf {
  display: none; font: inherit; font-size: 14px; font-weight: 500;
  background: var(--fn-d-flaeche); color: var(--fn-d-text);
  border: 1px solid var(--fn-d-linie); border-radius: var(--fn-r-klein);
  padding: 7px 13px; cursor: pointer;
}
@media (max-width: 980px) {
  .menue-knopf { display: block; }
  .menue {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--fn-d-grund); border-bottom: 1px solid var(--fn-d-linie);
  }
  .menue.offen { display: block; }
  .menue ul { flex-direction: column; padding: var(--fn-s-2) var(--fn-s-3) var(--fn-s-3); }
  .menue a { padding: 12px; font-size: 17px; }
}

/* Knöpfe ---------------------------------------------------------------- */
.knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.knopf {
  display: inline-block; font: inherit; font-weight: 600; font-size: 15px;
  padding: 12px 22px; border-radius: var(--fn-r-klein);
  border: 1px solid var(--fn-blau); text-decoration: none; cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.knopf-primaer { background: var(--fn-blau); color: var(--fn-tiefe); }
.knopf-primaer:hover { background: var(--fn-d-link-hover); border-color: var(--fn-d-link-hover); color: var(--fn-tiefe); }
.knopf-sekundaer { background: rgba(18, 33, 46, .5); color: var(--fn-d-text); border-color: rgba(238, 241, 244, .45); }
.knopf-sekundaer:hover { background: var(--fn-d-flaeche); color: var(--fn-d-text); border-color: var(--fn-d-text); }

/* Pulslinie: einziges Gestaltungselement jeder Seite ---------------------- */
.puls-rahmen { border-bottom: 1px solid var(--fn-d-linie); }
.puls { display: block; width: 100%; height: 34px; }
.mit-js .puls path { stroke-dasharray: 1400; stroke-dashoffset: 1400; animation: puls-zeichnen 2.4s .3s ease-out forwards; }
@keyframes puls-zeichnen { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .mit-js .puls path { animation: none; stroke-dashoffset: 0; } }

/* Startbühne: Vollbild mit Überblendung ---------------------------------- */
.buehne {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: calc(100svh - 68px); display: flex; align-items: flex-end;
  background: var(--fn-tiefe);
}
.buehne-bilder, .buehne-bild { position: absolute; inset: 0; }
.buehne-bild { opacity: 0; transition: opacity 1.8s ease; }
.buehne-bild.aktiv { opacity: 1; }
.buehne-bild img { width: 100%; height: 100%; object-fit: cover; }
.buehne-bild.aktiv img { animation: langsam-naeher 9s ease-out forwards; }
@keyframes langsam-naeher { from { transform: scale(1.08); } to { transform: scale(1); } }
.ohne-js .buehne-bild:first-child { opacity: 1; }
.buehne::after {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(18,33,46,.97) 0%, rgba(18,33,46,.75) 30%, rgba(18,33,46,.15) 70%, rgba(18,33,46,.35) 100%),
    linear-gradient(to right, rgba(18,33,46,.7) 0%, rgba(18,33,46,0) 60%);
}
.buehne-inhalt { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: clamp(48px, 9vh, 96px); }
.buehne h1 { max-width: 16ch; font-size: clamp(38px, 7vw, 84px); }
.buehne .lede { color: var(--fn-d-text); opacity: .88; margin-bottom: var(--fn-s-5); }
.buehne-fuss { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--fn-s-4); flex-wrap: wrap; }
.buehne-punkte { display: flex; gap: 8px; }
.buehne-punkte button {
  width: 34px; height: 4px; padding: 0; border: 0; border-radius: 2px; cursor: pointer;
  background: rgba(238,241,244,.3);
}
.buehne-punkte button[aria-current="true"] { background: var(--fn-blau); }
.buehne-bildtext { font-size: var(--fn-fs-100); color: var(--fn-d-text-sek); margin: 0; min-height: 1.5em; }
@media (prefers-reduced-motion: reduce) {
  .buehne-bild { transition: none; }
  .buehne-bild.aktiv img { animation: none; }
}

/* Seitenkopf der Unterseiten --------------------------------------------- */
.seitenkopf {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: min(78svh, 760px); display: flex; flex-direction: column; justify-content: flex-end;
  background: var(--fn-tiefe);
}
.seitenkopf-bild { position: absolute; inset: 0; z-index: -1; }
.seitenkopf-bild img { width: 100%; height: 100%; object-fit: cover; animation: langsam-naeher 7s ease-out both; }
.seitenkopf-bild::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to top, rgba(18,33,46,.97) 0%, rgba(18,33,46,.7) 35%, rgba(18,33,46,.1) 75%, rgba(18,33,46,.3) 100%),
    linear-gradient(to right, rgba(18,33,46,.6) 0%, rgba(18,33,46,0) 55%);
}
.seitenkopf-text { width: 100%; padding-top: 140px; padding-bottom: var(--fn-s-5); }
.seitenkopf h1 { max-width: 20ch; }
.seitenkopf .lede { color: var(--fn-d-text); opacity: .88; margin: 0; }
.seitenkopf-ohne-bild { min-height: 0; }
.seitenkopf-ohne-bild .seitenkopf-text { padding-top: var(--fn-s-6); }
.bildquelle { font-size: var(--fn-fs-100); color: var(--fn-d-text-sek); text-align: right; margin: 0 auto var(--fn-s-3); width: 100%; }
@media (prefers-reduced-motion: reduce) { .seitenkopf-bild img { animation: none; } }

/* Abschnitte ------------------------------------------------------------ */
.abschnitt { padding: clamp(64px, 9vw, 120px) 0; }
.abschnitt + .abschnitt { border-top: 1px solid var(--fn-d-linie); }
.abschnitt-alt { background: var(--fn-d-grund-alt); }
.abschnitt-kopf { max-width: 66ch; margin-bottom: var(--fn-s-5); }
.abschnitt-kopf p { color: var(--fn-d-text-sek); font-size: 18px; margin: 14px 0 0; }
.abschnitt-kopf-zeile { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--fn-s-4); flex-wrap: wrap; margin-bottom: var(--fn-s-5); }
.abschnitt-kopf-zeile .abschnitt-kopf { margin: 0; }

.raster { display: grid; gap: var(--fn-s-3); }
.raster-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr)); }
.raster-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
.raster-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }

.karte {
  background: var(--fn-d-flaeche);
  border: 1px solid var(--fn-d-linie);
  border-radius: var(--fn-r-gross);
  padding: var(--fn-s-4);
}
.karte h3 { margin-bottom: var(--fn-s-2); }
.karte p { color: var(--fn-d-text-sek); margin: 0; }
.karte ul { margin: var(--fn-s-3) 0 0; padding-left: 18px; color: var(--fn-d-text-sek); }
.karte li { margin-bottom: 4px; }
.karte .nr { display: block; font-family: var(--fn-font-mono); font-size: var(--fn-fs-100); color: var(--fn-d-link); margin-bottom: var(--fn-s-2); }

/* Fachbereich-Kacheln mit Foto -------------------------------------------- */
.kacheln { display: grid; gap: var(--fn-s-3); grid-template-columns: repeat(6, 1fr); }
.kachel {
  position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end;
  grid-column: span 2; min-height: 420px; border-radius: var(--fn-r-gross);
  border: 1px solid var(--fn-d-linie); background: var(--fn-d-flaeche);
  color: var(--fn-d-text); text-decoration: none;
}
.kachel:nth-child(1), .kachel:nth-child(2) { grid-column: span 3; min-height: 520px; }
.kachel-bild { position: absolute; inset: 0; z-index: -1; }
.kachel-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.kachel-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,33,46,.96) 0%, rgba(18,33,46,.6) 40%, rgba(18,33,46,.05) 80%); }
.kachel-grafik { position: absolute; inset: 0; z-index: -1; display: grid; place-items: center; padding: 32px 32px 150px; }
.kachel-grafik img { width: 100%; max-width: 420px; height: auto; transition: transform 1.2s cubic-bezier(.2,.7,.2,1); }
.kachel-text { padding: var(--fn-s-4); }
.kachel .nr { font-family: var(--fn-font-mono); font-size: var(--fn-fs-100); color: var(--fn-d-link); }
.kachel h3 { font-size: clamp(22px, 2.2vw, 28px); margin: 6px 0 8px; }
.kachel p { margin: 0; color: var(--fn-d-text-sek); max-width: 44ch; }
.kachel-pfeil { display: inline-block; margin-top: 14px; font-weight: 600; color: var(--fn-d-link); }
.kachel:hover .kachel-bild img, .kachel:hover .kachel-grafik img { transform: scale(1.05); }
.kachel:hover { border-color: var(--fn-blau); }
@media (max-width: 1000px) {
  .kacheln { grid-template-columns: 1fr 1fr; }
  .kachel, .kachel:nth-child(1), .kachel:nth-child(2) { grid-column: span 1; min-height: 400px; }
  .kachel:nth-child(1) { grid-column: span 2; }
}
@media (max-width: 640px) {
  .kacheln { grid-template-columns: 1fr; }
  .kachel, .kachel:nth-child(1), .kachel:nth-child(2) { grid-column: span 1; min-height: 360px; }
}

/* Bildband: Vollbreite mit Aussage -------------------------------------- */
.band { position: relative; overflow: hidden; isolation: isolate; min-height: min(90svh, 860px); display: flex; align-items: center; }
.band-bild { position: absolute; inset: -8% 0; z-index: -1; }
.band-bild img { width: 100%; height: 100%; object-fit: cover; }
.band-bild::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to right, rgba(18,33,46,.94) 0%, rgba(18,33,46,.72) 45%, rgba(18,33,46,.1) 100%); }
.band > .wrap { width: 100%; }
.band-text { max-width: 30ch; }
.band-text p.aussage { font-family: var(--fn-font-display); font-weight: 800; font-size: clamp(28px, 4.2vw, 52px); line-height: 1.15; letter-spacing: -.02em; color: var(--fn-papier); margin: 0 0 var(--fn-s-4); }
.band-text p { color: var(--fn-d-text-sek); }
.band .bildquelle { position: absolute; bottom: var(--fn-s-3); right: 0; left: 0; margin: 0 auto; }

/* Bildstreifen: horizontal scrollbar ------------------------------------ */
.streifen {
  --rand: max(var(--fn-s-4), calc((100vw - 1240px) / 2 + var(--fn-s-4)));
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(280px, 34vw); gap: var(--fn-s-3);
  overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  padding: 0 var(--rand) var(--fn-s-3);
  scroll-padding-inline: var(--rand);
  scrollbar-color: var(--fn-d-linie) transparent;
}
.streifen .galerie-bild { scroll-snap-align: start; }
.streifen .galerie-bild img { aspect-ratio: 4 / 3; object-fit: cover; }
@media (max-width: 640px) { .streifen { --rand: var(--fn-s-3); grid-auto-columns: 82vw; } }

/* Galerie --------------------------------------------------------------- */
.galerie { columns: 3 320px; column-gap: var(--fn-s-3); }
.galerie .galerie-bild { break-inside: avoid; margin-bottom: var(--fn-s-3); }
.galerie-bild a { display: block; overflow: hidden; border-radius: var(--fn-r-gross); background: var(--fn-d-flaeche); cursor: zoom-in; }
.galerie-bild img { width: 100%; transition: transform .9s cubic-bezier(.2,.7,.2,1), opacity .3s; }
.galerie-bild a:hover img { transform: scale(1.04); }
.galerie-bild figcaption { font-size: var(--fn-fs-100); color: var(--fn-d-text-sek); margin-top: var(--fn-s-2); }
.galerie-bild[hidden] { display: none; }

.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--fn-s-4); }
.filter button {
  font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
  padding: 7px 14px; border-radius: 20px; border: 1px solid var(--fn-d-linie);
  background: transparent; color: var(--fn-d-text-sek);
}
.filter button:hover { color: var(--fn-d-text); border-color: var(--fn-d-text-sek); }
.filter button[aria-pressed="true"] { background: var(--fn-blau); border-color: var(--fn-blau); color: var(--fn-tiefe); }

/* Bild und Text nebeneinander ------------------------------------------- */
.split { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1.1fr 1fr; align-items: center; }
.split-umgekehrt { grid-template-columns: 1fr 1.1fr; }
.split-umgekehrt .split-bild { order: 2; }
.split-bild img { width: 100%; border-radius: var(--fn-r-gross); }
.split-bild figcaption, .bildschirm figcaption { font-size: var(--fn-fs-100); color: var(--fn-d-text-sek); margin-top: var(--fn-s-2); }
.split h2 { margin-bottom: var(--fn-s-3); }
.split p { color: var(--fn-d-text-sek); }
@media (max-width: 860px) {
  .split, .split-umgekehrt { grid-template-columns: 1fr; }
  .split-umgekehrt .split-bild { order: 0; }
}

.liste { padding-left: 20px; margin: 0; color: var(--fn-d-text-sek); }
.liste li { margin-bottom: 8px; }
.liste strong { color: var(--fn-d-text); font-weight: 600; }

/* Vergleich Original / Simulation --------------------------------------- */
.vergleich { display: grid; gap: var(--fn-s-3); grid-template-columns: 1fr 1fr; }
.vergleich figure { position: relative; }
.vergleich img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: var(--fn-r-gross); border: 1px solid var(--fn-d-linie); }
.vergleich .etikett {
  position: absolute; top: 14px; left: 14px; font-family: var(--fn-font-mono); font-size: 13px;
  background: rgba(18,33,46,.85); color: var(--fn-d-text); padding: 5px 10px; border-radius: var(--fn-r-klein);
}
@media (max-width: 760px) { .vergleich { grid-template-columns: 1fr; } }

.bildschirm img { width: 100%; border: 1px solid var(--fn-d-linie); border-radius: var(--fn-r-gross); background: var(--fn-d-flaeche); }

/* Datenliste (Ausrüstung, Eckdaten) ------------------------------------- */
.daten { margin: 0; display: grid; grid-template-columns: max-content 1fr; gap: 10px 24px; }
.daten dt { color: var(--fn-d-text-sek); font-size: 14px; }
.daten dd { margin: 0; font-family: var(--fn-font-mono); font-size: 15px; }

/* Grundsätze ------------------------------------------------------------ */
.grundsaetze { display: grid; gap: 1px; background: var(--fn-d-linie); border: 1px solid var(--fn-d-linie); border-radius: var(--fn-r-gross); overflow: hidden; }
@media (min-width: 760px) { .grundsaetze { grid-template-columns: repeat(3, 1fr); } }
.grundsatz { background: var(--fn-d-flaeche); padding: var(--fn-s-4); }
.grundsatz .nr { font-family: var(--fn-font-mono); font-size: var(--fn-fs-100); color: var(--fn-d-link); }
.grundsatz h3 { margin: 6px 0; }
.grundsatz p { margin: 0; color: var(--fn-d-text-sek); font-size: 15px; }

.hinweis {
  background: var(--fn-d-flaeche); border: 1px solid var(--fn-d-linie);
  border-left: 4px solid var(--fn-blau);
  border-radius: var(--fn-r-klein); padding: var(--fn-s-3) var(--fn-s-4);
  max-width: 80ch;
}
.hinweis p { margin: 0; color: var(--fn-d-text-sek); }
.hinweis strong { font-weight: 600; color: var(--fn-d-text); }
.hinweis-achtung { border-left-color: var(--fn-d-achtung); }

/* Projektberichte ------------------------------------------------------- */
.berichte { display: grid; gap: var(--fn-s-3); grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.bericht-karte {
  display: flex; flex-direction: column; overflow: hidden; text-decoration: none; color: var(--fn-d-text);
  background: var(--fn-d-flaeche); border: 1px solid var(--fn-d-linie); border-radius: var(--fn-r-gross);
  transition: border-color .2s;
}
.bericht-karte:hover { border-color: var(--fn-blau); color: var(--fn-d-text); }
.bericht-karte-bild { aspect-ratio: 16 / 10; overflow: hidden; background: var(--fn-d-grund-alt); display: grid; place-items: center; }
.bericht-karte-bild img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s cubic-bezier(.2,.7,.2,1); }
.bericht-karte-bild.grafik img { object-fit: contain; padding: 24px; }
.bericht-karte:hover .bericht-karte-bild img { transform: scale(1.04); }
.bericht-karte-text { padding: var(--fn-s-4); display: flex; flex-direction: column; gap: 8px; flex: 1; }
.bericht-karte h3 { font-size: 22px; }
.bericht-karte p { margin: 0; color: var(--fn-d-text-sek); }
.meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-family: var(--fn-font-mono); font-size: 13px; color: var(--fn-d-text-sek); }
.status-marke { display: inline-flex; align-items: center; gap: 6px; }
.status-marke::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--fn-d-ok); }
.status-marke[data-status="In Umsetzung"]::before { background: var(--fn-d-achtung); }
.status-marke[data-status="Konzept"]::before { background: var(--fn-d-text-sek); }
.schlagworte { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; padding-top: 8px; }
.schlagworte span { font-size: 13px; padding: 3px 10px; border-radius: 12px; border: 1px solid var(--fn-d-linie); color: var(--fn-d-text-sek); }

.bericht-grafik { background: var(--fn-d-grund-alt); border-bottom: 1px solid var(--fn-d-linie); padding: var(--fn-s-5) 0; }
.bericht-grafik img { width: 100%; max-width: 980px; margin: 0 auto; }
.bericht-raster { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: minmax(0, 1fr) 320px; align-items: start; }
.bericht-fakten { position: sticky; top: 92px; display: grid; gap: var(--fn-s-3); }
.bericht-fakten .karte h2 { font-size: var(--fn-fs-300); letter-spacing: 0; margin-bottom: var(--fn-s-3); }
.bericht-fakten .daten { grid-template-columns: 1fr; gap: 2px; }
.bericht-fakten .daten dd { margin-bottom: 12px; }
@media (max-width: 960px) { .bericht-raster { grid-template-columns: 1fr; } .bericht-fakten { position: static; } }

/* Fließtext aus Markdown */
.prose { max-width: 72ch; font-size: 17px; }
.prose > * + * { margin-top: 1em; }
.prose h2 { font-size: clamp(24px, 2.6vw, 31px); margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose p, .prose li { color: var(--fn-d-text-sek); }
.prose strong { color: var(--fn-d-text); font-weight: 600; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.prose img { border-radius: var(--fn-r-gross); border: 1px solid var(--fn-d-linie); margin: 1.5em 0 .5em; width: 100%; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--fn-blau); }
.prose blockquote p { color: var(--fn-d-text); font-size: 19px; }
.prose code { font-family: var(--fn-font-mono); font-size: .9em; background: var(--fn-d-flaeche); padding: 2px 6px; border-radius: var(--fn-r-klein); }
.prose pre { background: var(--fn-d-grund-alt); border: 1px solid var(--fn-d-linie); padding: 16px 20px; border-radius: var(--fn-r-gross); overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose table { border-collapse: collapse; width: 100%; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--fn-d-linie); }
.prose th { color: var(--fn-d-text); font-weight: 600; }
.prose td { color: var(--fn-d-text-sek); }
.prose hr { border: 0; border-top: 1px solid var(--fn-d-linie); margin: 2.5em 0; }

/* Schritte -------------------------------------------------------------- */
.schritte { counter-reset: schritt; display: grid; gap: var(--fn-s-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.schritt { border-top: 2px solid var(--fn-d-linie); padding-top: var(--fn-s-3); }
.schritt::before { counter-increment: schritt; content: "0" counter(schritt); display: block; font-family: var(--fn-font-mono); color: var(--fn-d-link); font-size: 14px; margin-bottom: 8px; }
.schritt h3 { margin-bottom: 6px; }
.schritt p { color: var(--fn-d-text-sek); margin: 0; }

/* Kontakt --------------------------------------------------------------- */
.kontakt { display: grid; gap: clamp(32px, 5vw, 72px); grid-template-columns: 1fr 1.4fr; }
@media (max-width: 860px) { .kontakt { grid-template-columns: 1fr; } }
.kontakt dl { margin: var(--fn-s-4) 0 0; display: grid; gap: var(--fn-s-3); }
.kontakt dt { font-size: var(--fn-fs-100); color: var(--fn-d-text-sek); font-weight: 500; }
.kontakt dd { margin: 2px 0 0; }

.formular { display: grid; gap: var(--fn-s-3); }
.formular .zeile { display: grid; gap: var(--fn-s-3); grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) { .formular .zeile { grid-template-columns: 1fr; } }
.formular label { display: grid; gap: 6px; font-size: 14px; font-weight: 500; }
.formular input, .formular select, .formular textarea {
  font: inherit; font-size: 15px; color: var(--fn-d-text);
  background: var(--fn-d-feld); border: 1px solid var(--fn-d-linie);
  border-radius: var(--fn-r-klein); padding: 11px 12px;
}
.formular input:focus, .formular select:focus, .formular textarea:focus { outline: 2px solid var(--fn-fokus); outline-offset: 0; }
.formular input[type="checkbox"] { accent-color: var(--fn-blau); }
.formular textarea { min-height: 160px; resize: vertical; }
.formular .zustimmung { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--fn-d-text-sek); }
.formular .zustimmung input { margin-top: 4px; }
.formular [aria-invalid="true"] { border-color: var(--fn-d-alarm); }
.pflicht { font-size: var(--fn-fs-100); color: var(--fn-d-text-sek); margin: 0; }
.status { margin: 0; font-size: 14px; font-weight: 600; min-height: 1.4em; }
.status:empty { display: none; }
.status[data-zustand="alarm"] { color: var(--fn-d-alarm); }
.status[data-zustand="ok"] { color: var(--fn-d-ok); }
.status[data-zustand="alarm"]::before { content: "✕ "; }
.status[data-zustand="ok"]::before { content: "✓ "; }

/* Lightbox -------------------------------------------------------------- */
.lightbox {
  width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0;
  background: rgba(10, 20, 28, .97); color: var(--fn-d-text);
}
.lightbox::backdrop { background: rgba(10, 20, 28, .9); }
.lightbox[open] { display: grid; place-items: center; }
.lightbox figure { display: grid; justify-items: center; gap: 12px; padding: 64px 72px 24px; max-height: 100dvh; }
.lightbox img { max-width: 100%; max-height: calc(100dvh - 140px); width: auto; height: auto; border-radius: var(--fn-r-klein); }
.lightbox figcaption { font-size: 14px; color: var(--fn-d-text-sek); text-align: center; max-width: 80ch; }
.lightbox button {
  position: absolute; font: inherit; font-size: 28px; line-height: 1; cursor: pointer;
  width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--fn-d-linie);
  background: var(--fn-d-flaeche); color: var(--fn-d-text);
}
.lightbox button:hover { border-color: var(--fn-blau); }
.lightbox-zu { top: 16px; right: 16px; font-size: 20px !important; }
.lightbox-zurueck { left: 16px; top: 50%; transform: translateY(-50%); }
.lightbox-weiter { right: 16px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox figure { padding: 64px 12px 90px; }
  .lightbox-zurueck, .lightbox-weiter { top: auto; bottom: 20px; transform: none; }
  .lightbox-zurueck { left: calc(50% - 64px); }
  .lightbox-weiter { right: calc(50% - 64px); }
}

/* Einblenden beim Scrollen ---------------------------------------------- */
.mit-js .einblenden { opacity: 0; transform: translateY(28px); transition: opacity .9s ease, transform .9s cubic-bezier(.2,.7,.2,1); }
.mit-js .einblenden.sichtbar { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .mit-js .einblenden { opacity: 1; transform: none; transition: none; } }

/* Fuß ------------------------------------------------------------------- */
.fuss { background: var(--fn-d-grund-alt); border-top: 1px solid var(--fn-d-linie); color: var(--fn-d-text-sek); padding: 56px 0 40px; font-size: 14px; }
.fuss-raster { display: grid; gap: var(--fn-s-5); grid-template-columns: 1.4fr 1fr 1fr; }
@media (max-width: 760px) { .fuss-raster { grid-template-columns: 1fr; } }
.fuss img { width: 200px; margin-bottom: var(--fn-s-3); }
.fuss-titel { font-family: var(--fn-font-text); font-size: 14px; font-weight: 600; color: var(--fn-d-text); margin-bottom: 12px; letter-spacing: 0; }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.fuss a { color: var(--fn-d-text-sek); text-decoration: none; }
.fuss a:hover { color: var(--fn-d-link-hover); text-decoration: underline; }
.fuss-hinweis { margin: var(--fn-s-5) 0 0; padding-top: var(--fn-s-4); border-top: 1px solid var(--fn-d-linie); max-width: 90ch; }
.fuss-hinweis strong { color: var(--fn-d-text); font-weight: 600; }
.fuss-zeile { margin: var(--fn-s-2) 0 0; font-size: var(--fn-fs-100); }

/* Rechtstexte ----------------------------------------------------------- */
.recht { max-width: 76ch; }
.recht h2 { font-size: var(--fn-fs-300); margin: var(--fn-s-5) 0 var(--fn-s-2); letter-spacing: 0; }
.recht p, .recht li { color: var(--fn-d-text-sek); }
.recht strong { color: var(--fn-d-text); }
.platzhalter { background: var(--fn-d-flaeche); border-left: 4px solid var(--fn-d-achtung); color: var(--fn-d-text); padding: 12px var(--fn-s-3); border-radius: var(--fn-r-klein); font-size: 14px; }
