/* v16.1 "Der Systemstrang" · styles.css
   Farben ausschliesslich als var() aus tokens.css. */

/* ---------- Grundlagen ---------- */

@font-face {
  font-family: "Inter";
  src: url("fonts/Inter-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

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

html { scroll-behavior: smooth; }
html.is-static { scroll-behavior: auto; }

body {
  margin: 0;
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--papier);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3 { line-height: 1.25; margin: 0 0 0.5em; letter-spacing: -0.015em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: inherit; }

:focus-visible { outline: 3px solid var(--fokus); outline-offset: 2px; border-radius: 4px; }

.sprung {
  position: absolute; left: -999px; top: 0; z-index: 100;
  background: var(--ink); color: var(--gelb); font-weight: 700;
  padding: 0.7em 1.2em; border-radius: 0 0 12px 0;
}
.sprung:focus { left: 0; }

/* ---------- Raster & Schiene ---------- */

.wrap {
  width: min(1200px, calc(100% - 40px));
  margin-inline: auto;
  position: relative;
}
.pad { padding-block: clamp(64px, 9vw, 116px); }

.schiene-grid {
  display: grid;
  grid-template-columns: 8% minmax(0, 1fr);
  position: relative;
  z-index: 1;
}
.inhalt { grid-column: 2; min-width: 0; }

/* ---------- Strang ---------- */

.strang-lauf {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: visible;
}
.strang-strip {
  display: block;
  width: 100%;
  height: auto;
  pointer-events: none;
  position: relative;
  z-index: 0;
}

.strang-kanal {
  fill: none;
  stroke: var(--strang-kanal);
  stroke-width: 9;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.strang-kante {
  fill: none;
  stroke: var(--strang-kante);
  stroke-width: 6.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.strang-medium {
  fill: none;
  stroke: var(--strang-medium);
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
/* Stroemung: lange, weiche, hellere Zungen laufen durch die Leitung.
   Eine Maske (per JS wie der Strang gezeichnet) begrenzt sie exakt auf den
   bereits gefuellten Teil, damit es ab dem ersten Zentimeter fliesst. */
.strang-maske {
  fill: none;
  stroke: var(--maske-weiss);
  stroke-width: 14;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
}
.strang-strom-a {
  fill: none;
  stroke: var(--strang-strom-a);
  stroke-width: 4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 110 220;
  animation: stroemen-a 3s linear infinite;
}
.strang-strom-b {
  fill: none;
  stroke: var(--strang-strom-b);
  stroke-width: 2.4;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  stroke-dasharray: 40 290;
  animation: stroemen-b 2.1s linear infinite;
}
@keyframes stroemen-a { from { stroke-dashoffset: 0; } to { stroke-dashoffset: -330; } }
@keyframes stroemen-b { from { stroke-dashoffset: -110; } to { stroke-dashoffset: -440; } }

/* Medien-Charakter: Wind boeig und schnell, Kaelte ruhig und traege,
   Signal kurze schnelle Impulse, die Masslinie der Planung ruhig und fein */
.medium-luft .strang-strom-a { stroke-dasharray: 55 110; animation-duration: 1.8s; }
.medium-luft .strang-strom-b { animation-duration: 1.2s; }
.medium-kaelte .strang-strom-a { animation-duration: 4.4s; }
.medium-kaelte .strang-strom-b { animation-duration: 3.2s; }
.medium-signal .strang-strom-a { stroke-dasharray: 26 84; animation-duration: 1.5s; }
.medium-signal .strang-strom-b { stroke-dasharray: 12 98; animation-duration: 1s; }
.medium-plan .strang-strom-a { stroke-dasharray: 70 260; animation-duration: 5s; }
.medium-plan .strang-strom-b { animation-duration: 3.6s; }

/* Medium-Front: Perle an der Zeichenspitze, nur waehrend des Scroll-Zeichnens (JS steuert Opazitaet) */
.strang-kopf {
  fill: none;
  stroke: var(--strang-kante);
  stroke-width: 11;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}
.strang-kopf-kern {
  fill: none;
  stroke: var(--strang-medium);
  stroke-width: 6.5;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0;
}

html.is-static .strang-strom-a,
html.is-static .strang-strom-b,
html.is-static .strang-kopf,
html.is-static .strang-kopf-kern { display: none; }
@media (prefers-reduced-motion: reduce) {
  .strang-strom-a, .strang-strom-b, .strang-kopf, .strang-kopf-kern { display: none; }
}
.gestrichelt { stroke-dasharray: 10 8; }
.masslinie { stroke-dasharray: 4 6; }
.masslinie.strang-kante { stroke-width: 5; }
.masslinie.strang-medium { stroke-width: 3; }

/* Seiten-Aeste: kleine, dezente Abgriffe von der Schiene in Reihe 2 des
   Gewerke-Grids (eigene Grid-Zeile zwischen den Kartenreihen; das Grid ist
   8 % eingerueckt, negative Marge zieht das SVG auf Wrap-Breite → x=48 = Schiene) */
.strip-seite {
  grid-column: 1 / -1;
  width: 108.696%;
  margin-left: -8.696%;
}
.strip-seite .strang-kanal { stroke-width: 6; }
.strip-seite .strang-kante { stroke-width: 4.5; }
.strip-seite .strang-medium { stroke-width: 2.6; }
.strip-seite .strang-maske { stroke-width: 10; }
.strip-seite .strang-strom-a { stroke-width: 2.6; }
.strip-seite .strang-strom-b { stroke-width: 1.6; }
.strip-seite .strang-kopf { stroke-width: 7; }
.strip-seite .strang-kopf-kern { stroke-width: 4; }
.strip-seite .masslinie.strang-kante { stroke-width: 3.5; }
.strip-seite .masslinie.strang-medium { stroke-width: 2; }

/* Medienknoten */
.node {
  position: absolute;
  left: 50%; top: 50%;
  width: 18px; height: 18px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--gelb);
  border: 3px solid var(--strang-kante);
  z-index: 2;
}
.node::after {
  content: "";
  position: absolute; inset: -3px;
  border-radius: 50%;
  border: 2px solid var(--gelb);
  opacity: 0;
}
html.js:not(.is-static) .node { transform: translate(-50%, -50%) scale(0.55); opacity: 0.35; transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.45s ease; }
html.js:not(.is-static) .node.an { transform: translate(-50%, -50%) scale(1); opacity: 1; }
html.js:not(.is-static) .node.an::after { animation: puls 0.9s ease-out 1; }
@keyframes puls {
  0% { opacity: 0.9; transform: scale(1); }
  100% { opacity: 0; transform: scale(2.8); }
}
html.js:not(.is-static) .node-endlos.an::after,
html.no-js .node-endlos::after { animation: puls 2.4s ease-out infinite; }
html.is-static .node-endlos::after { animation: none; }

.rail-zelle { position: relative; }
.stub {
  position: absolute;
  top: 50%; left: 50%; right: -4px;
  height: 4px;
  transform: translateY(-50%);
  background: var(--strang-medium);
  box-shadow: 0 1.5px 0 var(--strang-kante), 0 -1.5px 0 var(--strang-kante);
}
html.js:not(.is-static) .stub { opacity: 0.22; transition: opacity 0.45s ease; }
html.js:not(.is-static) .node.an + .stub { opacity: 1; }

/* ---------- Reveals & Zaehler ---------- */

html.js:not(.is-static) .reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--verz, 0s);
}
html.js:not(.is-static) .reveal.da { opacity: 1; transform: none; }

.zahl { font-variant-numeric: tabular-nums; }

/* ---------- Bausteine ---------- */

.vorzeile {
  display: inline-flex; align-items: center; gap: 0.6em;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--text-neben);
  margin: 0 0 1em;
}
.vorzeile .nr {
  font-variant-numeric: tabular-nums;
  background: var(--ink);
  color: var(--gelb);
  padding: 0.25em 0.55em;
  border-radius: 6px;
  letter-spacing: 0.08em;
}
.buehne .vorzeile .nr { background: var(--gelb); color: var(--ink); }

.marker {
  background: var(--gelb);
  color: var(--ink);
  padding: 0.04em 0.16em;
  border-radius: 0.14em;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}

.lede { font-size: 1.15rem; color: var(--text-neben); max-width: 62ch; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55em;
  font: inherit; font-weight: 700; font-size: 1.02rem;
  text-decoration: none;
  border: none; cursor: pointer;
  border-radius: 12px;
  padding: 0.85em 1.5em;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-gelb { background: var(--gelb); color: var(--ink); box-shadow: var(--schatten-gelb); }
.btn-ink { background: var(--ink); color: var(--gelb); }
.btn-kontur { background: transparent; color: var(--text); box-shadow: inset 0 0 0 2px var(--text); }
.btn svg { flex: none; }

.chip {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-size: 0.86rem; font-weight: 700;
  background: var(--karte);
  border: 1px solid var(--linie);
  color: var(--text);
  border-radius: 999px;
  padding: 0.45em 0.95em;
}

.karte {
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 16px;
  box-shadow: var(--schatten-klein);
}

/* Dunkle Buehnen: Textfarbe im Kontext der ueberschriebenen Variablen neu auswerten */
.buehne { color: var(--text); }

/* ---------- Kopf ---------- */

.kopf {
  /* z 90: Stacking-Context des Kopfes — Mobil-Overlay und Mega-Panel muessen
     Aktionsleiste (60) und Consent-Banner (80) abdecken koennen */
  position: sticky; top: 0; z-index: 90;
  background: var(--gelb);
  border-bottom: 2px solid var(--ink);
}
.kopf-innen {
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  min-height: 68px;
  padding-block: 10px;
}
.wm { text-decoration: none; color: var(--ink); display: inline-block; line-height: 1.12; }
.wm-l1 { display: block; font-weight: 800; font-size: 1.02rem; letter-spacing: 0.01em; }
.wm-l1 .wm-gmbh { font-weight: 800; }
.wm-l2 { display: block; font-weight: 500; font-size: 0.59rem; letter-spacing: 0.212em; margin-top: 1px; }

.nav-haupt { display: flex; align-items: center; gap: clamp(0.8rem, 2vw, 1.6rem); }
/* nur die Zeilen-Links selbst, nicht die Anker im Mega-Panel (daher >) */
.nav-haupt > a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 0.98rem; }
.nav-haupt > a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nav-haupt > a.aktiv { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nav-cta { background: var(--ink); color: var(--gelb) !important; border-radius: 10px; padding: 0.55em 1.1em; }
.nav-cta:hover { text-decoration: none !important; transform: translateY(-1px); }
.nav-tel { white-space: nowrap; font-variant-numeric: tabular-nums; }

/* Leistungen-Mega-Panel (Struktur aus v15: Schiene · Detail · Teaser · Fuss;
   Gestaltung v16.1. Hover/Fokus per CSS, Klick-Toggle fuer Touch in main.js) */
.nav-drop { position: static; }
.nav-drop-kopf {
  background: none; border: 0; cursor: pointer; font: inherit;
  color: var(--ink); font-weight: 600; font-size: 0.98rem;
  /* Hover-Flaeche bis an die Kopfkanten ziehen: kein Loch zwischen Knopf und Panel */
  padding: 1.55rem 0.1rem;
}
.nav-drop-kopf:hover,
.nav-drop-kopf.aktiv { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.nav-drop-kopf::after {
  content: "";
  display: inline-block;
  margin-left: 0.45em;
  width: 0.5em; height: 0.5em;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.15em) rotate(45deg);
  transition: transform 0.18s ease;
}
.nav-drop-kopf[aria-expanded="true"]::after { transform: translateY(0.1em) rotate(225deg); }

.mega-panel {
  /* ankert am .wrap (position: relative) = Containerbreite, buendig zum Kopfinhalt */
  position: absolute; left: 0; right: 0; top: 100%;
  padding: 10px 0 28px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s;
  z-index: 60;
}
.nav-drop:hover .mega-panel,
.nav-drop:focus-within .mega-panel,
.mega-panel.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

.mega {
  max-width: 1200px; margin-inline: auto;
  background: var(--karte);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--schatten);
  overflow: hidden;
}
.mega-body {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr) 280px;  /* Schiene · Detail · Teaser */
  gap: clamp(1.2rem, 2.5vw, 2rem);
  padding: clamp(1.2rem, 2.5vw, 1.8rem);
}
.mega-titel {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.78rem; font-weight: 700; color: var(--text-neben);
  margin: 0 0 0.7rem; padding-left: 0.7rem;
}
.mega-schiene { display: flex; flex-direction: column; gap: 2px; }
.mega-reiter {
  display: flex; align-items: center; gap: 0.6em;
  padding: 0.55em 0.7em; border-radius: 10px;
  color: var(--text); text-decoration: none; font-weight: 600; font-size: 0.95rem;
}
.mega-reiter .ikon { width: 1.15rem; height: 1.15rem; flex: none; color: var(--text-neben); }
.mega-reiter .chev { width: 0.85rem; height: 0.85rem; flex: none; margin-left: auto; opacity: 0; }
.mega-reiter:hover,
.mega-reiter:focus-visible,
.mega-reiter.is-aktiv { background: var(--gelb); color: var(--ink); }
.mega-reiter:hover .ikon,
.mega-reiter:focus-visible .ikon,
.mega-reiter.is-aktiv .ikon { color: var(--ink); }
.mega-reiter.is-aktiv .chev { opacity: 1; }

.mega-detail { min-width: 0; }
.mega-pane { display: none; }
.mega-pane[data-aktiv="true"] { display: block; }
.mega-pane-kopf { display: flex; align-items: center; gap: 0.5em; margin-bottom: 0.6rem; }
.mega-pane-kopf .ikon { width: 1.25rem; height: 1.25rem; flex: none; }
.mega-pane-titel { font-size: 1.05rem; font-weight: 700; text-decoration: none; }
.mega-pane-titel:hover { text-decoration: underline; text-underline-offset: 4px; }
.mega-pane-mehr {
  margin-left: auto; display: inline-flex; align-items: center; gap: 0.35em;
  font-size: 0.92rem; font-weight: 600; text-decoration: none; color: var(--text-neben);
}
.mega-pane-mehr:hover { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
.mega-desc { font-size: 0.94rem; line-height: 1.55; color: var(--text-neben); max-width: 52ch; margin: 0; }
.mega-pane-links { display: grid; gap: 2px; margin-top: 0.9rem; justify-items: start; }
.mega-pane-links a {
  padding: 0.4em 0.7em; border-radius: 8px;
  text-decoration: none; font-weight: 600; font-size: 0.94rem; color: var(--text);
}
.mega-pane-links a:hover { background: var(--papier-tief); }

.mega-teaser {
  display: flex; flex-direction: column;
  background: var(--ink); border-radius: 12px;
  padding: 1.2rem 1.3rem;
  color: var(--text);
}
.mega-eyebrow {
  text-transform: uppercase; letter-spacing: 0.16em;
  font-size: 0.78rem; font-weight: 700; color: var(--gelb); margin: 0;
}
.mega-claim { font-size: 1.12rem; font-weight: 800; line-height: 1.3; margin: 0.5rem 0 0.4rem; }
.mega-text { font-size: 0.92rem; line-height: 1.55; color: var(--text-neben); margin: 0; }
.mega-aktionen { margin-top: auto; padding-top: 1.1rem; display: grid; gap: 0.6rem; }
.mega-aktionen .btn { font-size: 0.95rem; padding: 0.7em 1.1em; }

.mega-fuss {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 0.5rem 1.5rem;
  padding: 0.85rem clamp(1.2rem, 2.5vw, 1.8rem);
  background: var(--papier-tief); border-top: 1px solid var(--linie);
  font-size: 0.92rem; color: var(--text-neben);
}
.mega-alle {
  display: inline-flex; align-items: center; gap: 0.4em;
  font-weight: 700; color: var(--text); text-decoration: none; white-space: nowrap;
}
.mega-alle:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Burger + Mobil-Overlay (Port aus v15) */
.burger { display: none; background: none; border: 0; cursor: pointer; padding: 10px; }
.burger span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; }

.mobil-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--ink);
  padding: 1.1rem 20px 2rem;
  overflow-y: auto;
  display: none; flex-direction: column; gap: 0.6rem;
}
.mobil-nav.is-open { display: flex; }
.mobil-kopf { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.9rem; }
.mobil-kopf .wm-feld { margin-bottom: 0; padding: 0.6rem 0.8rem; }
.mobil-zu {
  background: none; border: 0; cursor: pointer;
  color: var(--text); font-size: 28px; line-height: 1; padding: 8px;
}
.mobil-pill {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  background: var(--gelb); color: var(--ink);
  font: inherit; font-weight: 700; font-size: 1.02rem;
  padding: 0.85em 1.2em; border-radius: 999px;
  text-decoration: none; border: 0; cursor: pointer;
}
.mobil-pill.aktiv { box-shadow: inset 0 0 0 2px var(--ink); }
.mobil-gruppe > .mobil-pill { margin-bottom: 0.5rem; }
.mobil-sub { display: none; padding: 0.1rem 1rem 0.7rem; }
.mobil-gruppe.is-open .mobil-sub { display: block; }
.mobil-sub a {
  display: block; color: var(--text); text-decoration: none; font-weight: 600;
  padding: 0.6em 0.2em; border-bottom: 1px solid var(--linie);
}
.mobil-sub a:last-child { border-bottom: 0; }
.mobil-sub a.aktiv { color: var(--gelb); }
.mobil-aktionen { margin-top: auto; padding-top: 1.2rem; display: grid; gap: 0.7rem; }

@media (max-width: 960px) {
  .nav-haupt { display: none; }
  .burger { display: block; }
}

/* ---------- Held (Hero) ---------- */

.held { position: relative; overflow: hidden; }
.held-bild {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: 70% 40%;
  z-index: 0;
}
.held::before {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(92deg, var(--scrim-ink) 0%, var(--scrim-ink) 42%, var(--scrim-ink-weich) 72%, var(--scrim-ink-null) 96%);
  z-index: 1;
}
.held .wrap { z-index: 2; }
.held-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  padding-top: clamp(64px, 8vw, 104px);
  padding-left: 8%;
}
.held-text { grid-column: 1; max-width: 620px; }
.held h1 { margin-bottom: 0.4em; }
.held .lede { color: var(--text-hell); opacity: 0.92; font-size: 1.16rem; }
.held-claim {
  font-weight: 600; font-size: 0.95rem;
  letter-spacing: 0.05em;
  color: var(--gelb);
  text-transform: uppercase;
  margin-bottom: 1.6em;
}
.cta-zeile { display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: center; margin: 1.6rem 0 0.9rem; }
.zusage { display: flex; align-items: center; gap: 0.55em; font-weight: 600; font-size: 0.95rem; color: var(--text-hell); }
.zusage svg { color: var(--gelb); flex: none; }

.strip-anschluss { margin-top: 6px; }

/* ---------- Abschnitte ---------- */

.abschnitt { position: relative; }
.abschnitt-kopf { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3.2rem); }
.abschnitt-kopf .rail-zelle { min-height: 60px; }

/* Problemlagen */
.station { margin-bottom: clamp(1.1rem, 2vw, 1.6rem); }
.station-karte { padding: clamp(1.3rem, 2.6vw, 2rem) clamp(1.4rem, 3vw, 2.2rem); position: relative; }
.station-nr {
  position: absolute; top: 0.9rem; right: 1.2rem;
  font-size: 2.4rem; font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--papier-tief);
  line-height: 1;
  user-select: none;
}
.befund-zeile { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(1.2rem, 3vw, 2.4rem); }
.b-label {
  display: inline-block;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.72rem; font-weight: 700;
  margin-bottom: 0.6em;
  color: var(--text-neben);
}
.b-label.m { color: var(--ink); background: var(--gelb); padding: 0.25em 0.6em; border-radius: 6px; }
.befund p { font-weight: 650; font-size: 1.12rem; margin: 0; }
.massnahme p { color: var(--text-neben); margin: 0; }

.einstieg {
  margin-top: clamp(1.6rem, 3vw, 2.4rem);
  background: var(--gelb);
  color: var(--ink);
  border-radius: 16px;
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.5rem, 3vw, 2.4rem);
  display: flex; flex-wrap: wrap; gap: 1.2rem; align-items: center; justify-content: space-between;
  box-shadow: var(--schatten-gelb);
}
.einstieg h3 { margin: 0 0 0.25em; font-size: 1.25rem; }
.einstieg p { margin: 0; max-width: 56ch; font-weight: 500; }
.einstieg .btn { flex: none; }

/* Gewerke */
.gewerk-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: 2%;
  row-gap: 0.5rem; /* Reihenabstand kommt aus der Seiten-Ast-Zeile; unter 1060px wieder 1.8rem */
  position: relative;
  z-index: 1;
  margin-left: 8%;
}
.karte-gewerk {
  text-decoration: none;
  display: flex; flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.karte-gewerk:hover { transform: translateY(-5px); box-shadow: var(--schatten); }
.ast-node { top: 0; }
.gewerk-bild { aspect-ratio: 4 / 3; overflow: hidden; border-radius: 15px 15px 0 0; }
.gewerk-bild img { width: 100%; height: 100%; object-fit: cover; }
.gewerk-text { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: 0.45rem; flex: 1; }
.karte-gewerk h3 { margin: 0.1em 0 0; }
.karte-gewerk .gewerk-copy { color: var(--text-neben); font-size: 0.95rem; margin: 0; flex: 1; }
.mehr {
  font-weight: 700; font-size: 0.95rem;
  display: inline-flex; align-items: center; gap: 0.4em;
  margin-top: 0.5rem;
}
.karte-signal { border: 2px dashed var(--gelb); }
.karte-signal .gewerk-copy { color: var(--text-neben); }
.folgt {
  margin-top: 0.5rem;
  font-weight: 700; font-size: 0.9rem;
  color: var(--gelb);
}

/* Referenzen */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.4rem;
}
.karte-ref { overflow: hidden; display: flex; flex-direction: column; }
.ref-bild { aspect-ratio: 16 / 10; overflow: hidden; }
.ref-bild img { width: 100%; height: 100%; object-fit: cover; }
.ref-text { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; flex: 1; }
.tag-zeile { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.tag {
  font-size: 0.72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: var(--papier-tief);
  border-radius: 6px;
  padding: 0.3em 0.6em;
  color: var(--text-neben);
}
.karte-ref h3 { margin: 0; font-size: 1.08rem; }
.karte-ref .ref-copy { color: var(--text-neben); font-size: 0.94rem; margin: 0; flex: 1; }
.stand {
  border-left: 4px solid var(--gelb);
  padding: 0.15rem 0 0.15rem 0.85rem;
  font-size: 0.92rem;
}
.stand .s-label {
  display: block;
  text-transform: uppercase; letter-spacing: 0.14em;
  font-size: 0.68rem; font-weight: 700;
  color: var(--text-neben);
}
.stand strong { font-weight: 650; }

/* Kennzahlen-Band */
.zahlen-band {
  margin-top: clamp(2rem, 4vw, 3rem);
  background: var(--ink);
  border-radius: 18px;
  padding: clamp(1.6rem, 3.5vw, 2.6rem) clamp(1.6rem, 4vw, 3rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.6fr);
  gap: 1.6rem;
  align-items: center;
}
.kz .kz-wert {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  font-weight: 800;
  color: var(--gelb);
  font-variant-numeric: tabular-nums;
  line-height: 1.05;
}
.kz .kz-label { display: block; color: var(--text-hell-neben); font-weight: 600; font-size: 0.95rem; margin-top: 0.3em; }
.kz-priva { color: var(--text-hell); font-size: 0.98rem; border-left: 3px solid var(--gelb); padding-left: 1.1rem; }
.kz-priva strong { color: var(--gelb); font-weight: 700; }

/* Prozess */
.schritt { margin-bottom: clamp(1rem, 2vw, 1.4rem); }
.schritt-karte {
  padding: clamp(1.2rem, 2.4vw, 1.7rem) clamp(1.4rem, 3vw, 2.2rem);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.3rem;
  align-items: start;
}
.schritt-nr {
  width: 52px; height: 52px;
  border-radius: 12px;
  background: var(--ink); color: var(--gelb);
  font-weight: 800; font-size: 1.35rem;
  display: grid; place-items: center;
  font-variant-numeric: tabular-nums;
}
.schritt h3 { margin: 0 0 0.2em; text-transform: uppercase; letter-spacing: 0.08em; font-size: 1.02rem; }
.schritt p { margin: 0; color: var(--text-neben); }

/* Finale */
.finale { background: var(--ink); position: relative; overflow: hidden; }
.finale .wrap { z-index: 1; }
.finale-mitte { text-align: center; max-width: 720px; margin-inline: auto; position: relative; z-index: 1; }
.uebergabe { display: block; margin-inline: auto; width: 132px; height: auto; }
.uebergabe-punkt { position: relative; width: 18px; height: 18px; margin: -4px auto 0; }
.pad-unten { padding-bottom: clamp(64px, 9vw, 116px); }
.uebergabe-label {
  text-transform: uppercase; letter-spacing: 0.18em;
  font-size: 0.74rem; font-weight: 700;
  color: var(--gelb);
  margin: 0.6rem 0 1rem;
}
.finale h2 { color: var(--text-hell); }
.finale .lede { color: var(--text-hell-neben); margin-inline: auto; }
.finale .cta-zeile { justify-content: center; }
.finale .zusage { justify-content: center; }
.zusagen-grid {
  margin-top: clamp(2.2rem, 4vw, 3.4rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  position: relative;
  z-index: 1;
}
.zusage-karte { padding: 1.3rem 1.4rem; }
.zusage-karte h3 { font-size: 1rem; margin-bottom: 0.35em; display: flex; align-items: center; gap: 0.5em; }
.zusage-karte h3 svg { color: var(--gelb); flex: none; }
.zusage-karte p { margin: 0; color: var(--text-neben); font-size: 0.94rem; }

/* ---------- Fuss ---------- */

.fuss { background: var(--papier-tief); border-top: 1px solid var(--linie); }
.fuss-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: clamp(1.6rem, 4vw, 3rem);
  padding-block: clamp(2.6rem, 5vw, 4rem) 1.6rem;
}
.wm-feld {
  display: inline-block;
  background: var(--gelb);
  border-radius: 12px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
}
.fuss h3 {
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-neben);
  margin-bottom: 0.9em;
}
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.45rem; }
.fuss a { text-decoration: none; }
.fuss a:hover { text-decoration: underline; text-underline-offset: 4px; }
.fuss .klein { font-size: 0.92rem; color: var(--text-neben); }
.fuss-zeile {
  border-top: 1px solid var(--linie);
  padding-block: 1.2rem;
  font-size: 0.88rem;
  color: var(--text-neben);
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; justify-content: space-between;
}

/* ---------- Aktionsleiste mobil ---------- */

.aktionsleiste {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  grid-template-columns: 1fr 1fr;
  border-top: 2px solid var(--ink);
}
.aktionsleiste a {
  display: flex; align-items: center; justify-content: center; gap: 0.5em;
  padding: 0.95em 0.6em;
  font-weight: 700; font-size: 1rem;
  text-decoration: none;
}
.aktionsleiste .al-tel { background: var(--ink); color: var(--gelb); }
.aktionsleiste .al-cta { background: var(--gelb); color: var(--ink); }

/* ---------- Unterseiten ---------- */

.unterkopf { position: relative; overflow: hidden; background: var(--papier-tief); border-bottom: 1px solid var(--linie); }
.unterkopf-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: clamp(1.6rem, 4vw, 3rem);
  align-items: center;
  padding-block: clamp(56px, 7vw, 88px);
}
.unterkopf-text { padding-left: 8%; }
.unterkopf .lede { color: var(--text-neben); }
.unterkopf-bild img { border-radius: 16px; box-shadow: var(--schatten); width: 100%; height: 100%; object-fit: cover; aspect-ratio: 4 / 3; }
.bild-hinweis { font-size: 0.82rem; color: var(--text-neben); margin-top: 0.6rem; }

.leistungs-liste { list-style: none; margin: 1.4rem 0 0; padding: 0; display: grid; gap: 0.75rem; max-width: 640px; }
.leistungs-liste li {
  display: flex; gap: 0.7em; align-items: baseline;
  background: var(--karte);
  border: 1px solid var(--linie);
  border-radius: 12px;
  padding: 0.85em 1.1em;
  font-weight: 500;
}
.leistungs-liste li::before {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--gelb);
  border: 2px solid var(--ink);
  transform: translateY(-1px);
}

.hinweis-stufe {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: var(--text-neben);
}

/* Leistungsbloecke (Gewerkeseiten) */
.block-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.3rem;
}
.block-karte { padding: 1.5rem 1.6rem; }
.block-karte h3 { margin-bottom: 0.8em; }
.punkt-liste { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.punkt-liste li { display: flex; gap: 0.65em; align-items: baseline; color: var(--text-neben); }
.punkt-liste li::before {
  content: "";
  flex: none;
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--gelb);
  border: 2px solid var(--ink);
  transform: translateY(1px);
}

/* Breite Referenzkarte (Gewerkeseiten) */
.ref-breit {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  overflow: hidden;
}
.ref-breit .ref-bild { aspect-ratio: auto; min-height: 280px; height: 100%; border-radius: 0; }
.ref-breit .ref-bild img { width: 100%; height: 100%; object-fit: cover; }
.ref-breit .ref-text { padding: 1.7rem 1.9rem; }

/* Nachbaraeste (Gewerkeseiten) */
.quer-titel { margin-top: clamp(2rem, 4vw, 3rem); }
.quer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  margin: 1.4rem 0 clamp(1.8rem, 3vw, 2.6rem);
}
.quer-karte {
  padding: 1.3rem 1.4rem;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 0.5rem;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.quer-karte:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.quer-karte h3 { margin: 0; }
.quer-karte .mehr { margin-top: auto; }

.kontakt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.3rem;
  margin-top: 1.8rem;
}

/* ---------- Formulare (Netlify Forms, lokal Vorschau) ---------- */

.kontakt-layout {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
  gap: 1.6rem;
  align-items: start;
  margin-top: 1.8rem;
}
.kontakt-spalte { display: grid; gap: 1.3rem; }

.form-karte { padding: clamp(1.5rem, 3vw, 2.2rem); }
.form-h2 { font-size: 1.35rem; margin-bottom: 0.3em; }
.form-lede { color: var(--text-neben); margin-bottom: 1.4em; max-width: 56ch; }
.form-zeile-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 1.1rem;
}
.form-feld { margin: 0 0 1.05rem; }
.form-feld label {
  display: block;
  font-weight: 700; font-size: 0.9rem;
  margin-bottom: 0.35em;
}
.form-feld input,
.form-feld select,
.form-feld textarea {
  width: 100%;
  font: inherit;
  color: var(--text);
  background: var(--papier);
  border: 2px solid var(--linie);
  border-radius: 10px;
  padding: 0.65em 0.85em;
}
.form-feld textarea { resize: vertical; min-height: 8em; }
.form-feld input:focus-visible,
.form-feld select:focus-visible,
.form-feld textarea:focus-visible {
  outline: 3px solid var(--fokus);
  outline-offset: 1px;
  border-color: var(--ink);
}
.req { color: var(--ink); background: var(--gelb); border-radius: 4px; padding: 0 0.25em; font-weight: 800; }
.form-hp { position: absolute; left: -9999px; }
.form-consent {
  display: flex; gap: 0.6em; align-items: flex-start;
  font-size: 0.92rem; color: var(--text-neben);
  margin: 0.4rem 0 1.2rem;
}
.form-consent input { margin-top: 0.3em; width: 1.05em; height: 1.05em; accent-color: var(--gelb); }
.form-lokal {
  margin: 1.1rem 0 0;
  font-size: 0.88rem; font-weight: 600;
  color: var(--text-neben);
  border-left: 4px solid var(--gelb);
  padding-left: 0.85rem;
}

/* ---------- Karriere ---------- */

.block-text { color: var(--text-neben); margin: 0; }
.stellen-stapel { display: grid; gap: 1.5rem; }
.stellen-karte { padding: clamp(1.5rem, 3vw, 2.2rem); }
.stellen-kopf {
  display: flex; flex-wrap: wrap; gap: 0.8rem 1.2rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 0.4rem;
}
.stellen-kopf h3 { margin: 0; font-size: 1.3rem; }
.chip-zeile { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.stellen-intro { color: var(--text-neben); max-width: 70ch; }
.stellen-spalten {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin: 1.2rem 0;
}
.stellen-spalten h4 {
  margin: 0 0 0.7em;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-neben);
}
.platzhalter {
  display: inline-block;
  border: 2px dashed var(--linie);
  border-radius: 10px;
  padding: 0.5em 0.9em;
  font-size: 0.9rem; font-weight: 600;
  color: var(--text-neben);
  margin: 0 0 1.2rem;
}

/* ---------- Referenzen-Seite ---------- */

.klein-hinweis { font-size: 0.9rem; color: var(--text-neben); }
.fall-karte { padding: clamp(1.5rem, 3vw, 2.2rem); }
.fall-kopf {
  display: flex; flex-wrap: wrap; gap: 0.6rem 1.2rem;
  align-items: center; justify-content: space-between;
  margin-bottom: 1.1rem;
}
.fall-kopf h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.6rem); }
.fall-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: 1.6rem;
  align-items: start;
}
.fall-bild { margin: 0; }
.fall-bild img { border-radius: 12px; width: 100%; height: auto; }
.fall-label {
  margin: 1.3em 0 0.6em;
  font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--text-neben);
}
.fall-text > .fall-label:first-child { margin-top: 0; }
.fall-text p { color: var(--text-neben); }
.fall-text .stand { margin-top: 1.2rem; color: var(--text); }

/* ---------- Aus der Praxis ---------- */

.bericht-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
  margin-bottom: 1.4rem;
}
.bericht-karte {
  padding: 1.5rem 1.6rem;
  text-decoration: none;
  display: flex; flex-direction: column; gap: 0.6rem;
  align-items: flex-start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
a.bericht-karte:hover { transform: translateY(-4px); box-shadow: var(--schatten); }
.bericht-karte h3 { margin: 0; font-size: 1.15rem; }
.bericht-teaser { color: var(--text-neben); font-size: 0.95rem; margin: 0; flex: 1; }
.datum-chip {
  font-size: 0.78rem; font-weight: 700;
  font-variant-numeric: tabular-nums;
  background: var(--ink); color: var(--gelb);
  border-radius: 6px; padding: 0.3em 0.65em;
}
.bericht-absatz { max-width: 72ch; }
.unterkopf .tag-zeile { margin-top: 0.8rem; }

/* ---------- Rechtsseiten ---------- */

.recht-text { max-width: 76ch; }
.recht-abschnitt { margin-bottom: clamp(1.8rem, 3vw, 2.6rem); }
.recht-abschnitt h2 { font-size: 1.35rem; margin-bottom: 0.6em; }
.recht-abschnitt p { color: var(--text-neben); }
.recht-liste { margin: 0.4rem 0 1rem; }

/* ---------- Consent-Banner (GA4, Ablehnen gleichwertig) ---------- */

/* display:flex wuerde sonst das hidden-Attribut ueberstimmen (Author > UA-Default) —
   das Skript versteckt den Banner per banner.hidden = true */
.consent-banner[hidden] { display: none; }
.consent-banner {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 80;
  max-width: 720px;
  margin-inline: auto;
  background: var(--karte);
  border: 2px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--schatten);
  padding: 1.1rem 1.3rem;
  display: flex; flex-wrap: wrap; gap: 0.9rem 1.4rem;
  align-items: center; justify-content: space-between;
}
.consent-text { margin: 0; font-size: 0.92rem; max-width: 52ch; }
.consent-text a { font-weight: 700; }
.consent-knoepfe { display: flex; gap: 0.7rem; flex: none; }
.consent-knoepfe .btn { font-size: 0.95rem; padding: 0.65em 1.2em; }
@media (max-width: 900px) {
  .consent-banner { bottom: 76px; } /* ueber der Aktionsleiste */
}
.kontakt-karte { padding: 1.4rem 1.5rem; }
.kontakt-karte h3 { display: flex; align-items: center; gap: 0.55em; font-size: 1.02rem; }
.kontakt-karte h3 svg { color: var(--ink); background: var(--gelb); border-radius: 8px; padding: 5px; width: 28px; height: 28px; flex: none; }
.kontakt-karte p { margin: 0; color: var(--text-neben); }
.kontakt-karte a.gross { font-weight: 700; font-size: 1.12rem; color: var(--text); text-decoration: none; }
.kontakt-karte a.gross:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- Responsive ---------- */

@media (max-width: 1060px) {
  .gewerk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1.4rem; row-gap: 1.8rem; }
  .ref-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .zahlen-band { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kz-priva { grid-column: 1 / -1; }
  .strip-abzweig { display: none; }
  .strip-seite { display: none; }
}

@media (max-width: 900px) {
  body { padding-bottom: 64px; }
  .aktionsleiste { display: grid; }
  .wrap { width: calc(100% - 32px); }
  .held-grid { grid-template-columns: minmax(0, 1fr); }
  .held::before { background: linear-gradient(180deg, var(--scrim-ink) 0%, var(--scrim-ink) 55%, var(--scrim-ink-weich) 100%); }
  .befund-zeile { grid-template-columns: minmax(0, 1fr); gap: 0.9rem; }
  .zusagen-grid { grid-template-columns: minmax(0, 1fr); }
  .unterkopf-grid { grid-template-columns: minmax(0, 1fr); }
  .kontakt-grid { grid-template-columns: minmax(0, 1fr); }
  .kontakt-layout { grid-template-columns: minmax(0, 1fr); }
  .fall-grid { grid-template-columns: minmax(0, 1fr); }
  .bericht-grid { grid-template-columns: minmax(0, 1fr); }
  .form-zeile-2 { grid-template-columns: minmax(0, 1fr); }
  .stellen-spalten { grid-template-columns: minmax(0, 1fr); }
  .block-grid { grid-template-columns: minmax(0, 1fr); }
  .ref-breit { grid-template-columns: minmax(0, 1fr); }
  .ref-breit .ref-bild { aspect-ratio: 16 / 10; min-height: 0; height: auto; }
  .quer-grid { grid-template-columns: minmax(0, 1fr); }
  .fuss-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 640px) {
  .gewerk-grid { grid-template-columns: minmax(0, 1fr); }
  .ref-grid { grid-template-columns: minmax(0, 1fr); }
  .zahlen-band { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .station-nr { display: none; }
  .fuss-grid { grid-template-columns: minmax(0, 1fr); }
}
