/* Entwurf B „Liniennetz“ – Emaille-Liniennetzplan in Mitternachtsblau */

:root {
  --night: #0c1c29;
  --night-2: #10283a;
  --night-3: #08141d;
  --rule: rgba(238, 242, 238, 0.12);
  --rule-strong: rgba(238, 242, 238, 0.22);
  --porcelain: #eef2ee;
  --porcelain-2: #bccfd8;
  --muted: #8eaab8;

  /* Linienfarben aus dem Logo; Braun für die Emaille leicht aufgehellt */
  --teal: #1a8e9f;
  --cyan: #15b3d0;
  --orange: #f28b38;
  --sage: #658b64;
  --brown: #b0703a;
  --cream: #e2e3ac;
  --petrol: #0b5f6b;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --board-h: 92px;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);

  color-scheme: dark;
  scrollbar-color: var(--thumb) var(--night);
  scrollbar-width: thin;
}

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background-color: var(--night);
  background-image: radial-gradient(1400px 700px at 18% -8%, var(--sheen), transparent 62%);
  background-repeat: no-repeat;
  color: var(--porcelain);
  font-family: "Fira Sans", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--accent); color: #1d1206; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--night); }
::-webkit-scrollbar-thumb { background: var(--thumb); border-radius: 6px; border: 2px solid var(--night); }

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

main section[id] { scroll-margin-top: var(--board-h); }

a { color: inherit; text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { text-decoration-color: var(--cyan); }

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

h1, h2, h3 { margin: 0; font-weight: 700; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

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

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 1000;
  background: var(--porcelain); color: var(--night);
  padding: 10px 16px; border-radius: 6px; font-weight: 600; text-decoration: none;
  transition: top 160ms var(--ease-out);
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 46px; padding: 0 22px;
  border: 0; border-radius: 23px;
  font: 600 1rem/1 "Fira Sans", system-ui, sans-serif;
  text-decoration: none; cursor: pointer;
  transition: transform 160ms var(--ease-out), background-color 160ms var(--ease-out), color 160ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--accent); color: #1d1206; }
.btn--primary:hover { background: #ff9d4f; }
.btn--light { background: var(--porcelain); color: var(--night); }
.btn--light:hover { background: var(--btn-light-hover); }
.btn[disabled] { opacity: 0.6; cursor: default; transform: none; }

/* ---------- Kopf: Abfahrtstafel ---------- */
.board {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--board-h);
  display: flex; align-items: center; gap: clamp(16px, 2.4vw, 36px);
  padding-inline: var(--gutter);
  background: var(--board-bg);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--rule);
}

.brand {
  display: inline-flex; align-items: center; gap: 12px;
  color: var(--porcelain); text-decoration: none; flex: none;
}
.brand__mark { width: 36px; height: auto; }
.brand__word {
  display: block; width: 172px; height: 18px;
  background-color: currentColor;
  -webkit-mask: url("../logo/logo-wordmark.svg") left center / contain no-repeat;
  mask: url("../logo/logo-wordmark.svg") left center / contain no-repeat;
}

.board__nav { margin-right: auto; }
.board__nav ul { display: flex; gap: clamp(14px, 2vw, 28px); list-style: none; margin: 0; padding: 0; }
.board__nav a {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 500; font-size: 0.98rem; color: var(--porcelain-2); text-decoration: none;
  padding: 6px 2px;
  transition: color 160ms var(--ease-out);
}
.board__nav a:hover { color: var(--porcelain); }
.dot {
  width: 12px; height: 12px; border-radius: 50%;
  background: var(--card); border: 3px solid var(--ink);
}

.board__tel {
  font-weight: 500; font-size: 0.98rem; color: var(--porcelain-2); text-decoration: none; white-space: nowrap;
}
.board__tel:hover { color: var(--porcelain); }
.board__cta { min-height: 42px; padding: 0 18px; font-size: 0.95rem; flex: none; }
.board__call {
  display: none; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  color: var(--porcelain);
  border: 1.5px solid var(--rule-strong);
  transition: background-color 160ms var(--ease-out), border-color 160ms var(--ease-out);
}
.board__call:hover { background: var(--hover-tint); border-color: var(--focus); }
.board__call:active { transform: scale(0.96); }

/* ---------- Ebene 1: Hauptknoten ---------- */
.hero {
  position: relative;
  height: 100vh;
  height: 100svh;
  min-height: 560px;
  overflow: hidden;
  --ball-size: clamp(240px, 44vmin, 500px);
  --ball-x: 50%;
  --ball-y: calc(var(--board-h) + (100% - var(--board-h)) / 2);
}

.hero__stage { position: absolute; inset: 0; }
.hero__stage svg { display: block; width: 100%; height: 100%; }

.hero__ball {
  position: absolute;
  left: var(--ball-x); top: var(--ball-y);
  width: var(--ball-size);
  aspect-ratio: 64 / 57.8;
  transform: translate(-50%, -50%);
}
.hero__mark { width: 100%; height: 100%; }
.hero.has-stage .hero__mark { visibility: hidden; }

.hero__copy {
  position: absolute; inset: -4% -6%;
  display: grid; place-content: center; justify-items: center;
  gap: calc(var(--ball-size) * 0.05);
  text-align: center;
}
.hero__copy h1 {
  font-size: max(1.4rem, calc(var(--ball-size) * 0.078));
  line-height: 1.12;
  letter-spacing: -0.012em;
  color: #ffffff;
}
/* Schmale Beschriftungsstreifen nur hinter dem Text: der Ball bleibt in vollen Farben */
.streifen {
  display: table; margin-inline: auto;
  padding: 0.06em 0.34em 0.1em;
  background: rgba(9, 22, 33, 0.94);
  border-radius: 0.14em;
}
.streifen + .streifen { margin-top: 0.1em; }
.hero__cta { font-size: max(0.92rem, calc(var(--ball-size) * 0.032)); min-height: max(40px, calc(var(--ball-size) * 0.09)); }
.hero__copy.is-fokus { opacity: 1 !important; transform: none !important; pointer-events: auto !important; }

.legende {
  position: absolute;
  right: var(--gutter); bottom: clamp(20px, 5vh, 44px);
  width: min(360px, calc(100% - 2 * var(--gutter)));
  padding: 18px 20px 16px;
  background: var(--panel);
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  box-shadow: var(--panel-shadow);
}
.legende__text { font-size: 0.98rem; line-height: 1.45; color: var(--porcelain); }
.legende__linien {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 14px;
  list-style: none; margin: 14px 0 0; padding: 14px 0 0;
  border-top: 1px solid var(--rule);
  font-size: 0.84rem; color: var(--porcelain-2);
}
.legende__linien li { display: flex; align-items: center; gap: 9px; }
.legende__linien li::before {
  content: ""; width: 22px; height: 6px; border-radius: 3px; background: var(--ink); flex: none;
}

/* Haltestellen-Beschriftungen im Netz (feste Schriftgröße, wie auf Linienplänen) */
.hero__labels { position: absolute; inset: 0; pointer-events: none; }
.hlabel {
  position: absolute; left: 0; top: 0;
  padding: 2px 7px 3px;
  border-radius: 4px;
  background: var(--plate);
  color: var(--porcelain);
  font-weight: 500; font-size: 14px; line-height: 17px; white-space: nowrap;
}

.hero__hint { /* im leeren Umsteigering: dort kreuzt keine Linie */
  position: absolute;
  left: var(--ball-x); top: var(--ball-y);
  transform: translate(-50%, -50%);
  width: max-content; max-width: calc(var(--ring-r, 30vmin) * 1.5);
  padding-bottom: 26px;
  color: var(--porcelain);
  font-weight: 600; font-size: 1.05rem; line-height: 1.3;
  text-align: center; text-wrap: balance;
}
.hero__hint::after { /* gezeichneter Pfeil nach unten */
  content: ""; position: absolute; left: 50%; bottom: 6px;
  width: 9px; height: 9px;
  border-right: 2px solid var(--cyan); border-bottom: 2px solid var(--cyan);
  transform: translateX(-50%) rotate(45deg);
}
.hero:not(.has-stage) .hero__hint { display: none; }

/* Desktop: Info-Elemente liegen frei im Startbereich; Haltestellenliste und Sockel nur mobil */
.hero__info { display: contents; }
.hero__halte, .hero__panel { display: none; }

/* ---------- Abschnittsköpfe ---------- */
.kopfzeile {
  display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap;
  gap: 12px 40px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.kopfzeile h2, .verbindung h2 {
  font-size: clamp(2.4rem, 1.5rem + 3.2vw, 4.25rem);
  line-height: 1.06;
  letter-spacing: -0.025em;
}
.kopfzeile p { max-width: 38ch; color: var(--porcelain-2); font-size: 1.05rem; }

/* ---------- Ebene 2: Themen als Haltestellen ---------- */
.themen { padding-block: clamp(5rem, 10vw, 8.5rem) clamp(4rem, 8vw, 7rem); }

.linie {
  --gap: clamp(16px, 2vw, 28px);
  padding-top: 28px;
  margin-top: 28px;
  border-top: 1px solid var(--rule);
  transition: opacity 300ms var(--ease-out);
}
.linie:first-of-type { margin-top: 0; }

.linie__name {
  display: flex; align-items: center; gap: 12px;
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--porcelain-2);
  margin-bottom: 18px;
}
.linie__swatch { width: 34px; height: 8px; border-radius: 4px; background: var(--ink); }

.linie__halte {
  display: grid; grid-template-columns: repeat(var(--halte, 4), minmax(0, 1fr)); gap: 0 var(--gap);
  list-style: none; margin: 0; padding: 0;
}

.halt__link {
  display: grid;
  grid-template-areas: "bild" "ring" "name" "detail";
  grid-template-rows: auto 24px auto auto;
  text-decoration: none; color: inherit;
  border-radius: 8px;
}
.halt__link:focus-visible { outline-offset: 6px; }

.halt__bild {
  grid-area: bild;
  position: relative; display: block;
  aspect-ratio: 4 / 3; overflow: hidden;
  border-radius: 6px;
  background: var(--night-2);
}
.halt__bild img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.86);
  transition: filter 260ms var(--ease-out), transform 700ms var(--ease-out);
}
.halt__bild::after {
  content: ""; position: absolute; inset: 0;
  background: var(--ink); mix-blend-mode: multiply; opacity: 0.62;
  transition: opacity 260ms var(--ease-out);
}

.halt__ring {
  grid-area: ring;
  position: relative; display: block;
  margin-top: 18px;
}
.halt__ring::before { /* Linienabschnitt */
  content: ""; position: absolute; top: 50%; height: 8px;
  left: calc(var(--gap) / -2); right: calc(var(--gap) / -2);
  transform: translateY(-50%);
  background: var(--ink);
}
.halt:first-child .halt__ring::before { left: 0; border-radius: 4px 0 0 4px; }
.halt:last-child .halt__ring::before { right: 0; border-radius: 0 4px 4px 0; }
.halt__ring::after { /* Haltestelle */
  content: ""; position: absolute; top: 50%; left: 50%;
  width: 24px; height: 24px; border-radius: 50%;
  transform: translate(-50%, -50%);
  background: var(--card); border: 5px solid var(--porcelain);
  transition: background-color 200ms var(--ease-out), border-color 200ms var(--ease-out);
}

.halt__name {
  grid-area: name;
  margin-top: 16px;
  font-weight: 600; font-size: 1.15rem; line-height: 1.2;
  text-align: center;
}
.halt__detail {
  grid-area: detail;
  margin-top: 6px;
  min-height: 2.9em;
  font-size: 0.92rem; line-height: 1.4; color: var(--porcelain-2);
  text-align: center;
  opacity: 0; transform: translateY(-4px);
  transition: opacity 200ms var(--ease-out), transform 200ms var(--ease-out);
}

.halt__link:hover .halt__bild img,
.halt__link:focus-visible .halt__bild img { filter: none; transform: scale(1.04); }
.halt__link:hover .halt__bild::after,
.halt__link:focus-visible .halt__bild::after { opacity: 0; }
.halt__link:hover .halt__ring::after,
.halt__link:focus-visible .halt__ring::after { background: var(--ink); }
.halt__link:hover .halt__detail,
.halt__link:focus-visible .halt__detail { opacity: 1; transform: none; }

/* Offene Linie: weitere Themen auf Anfrage */
.linie--offen .linie__name { margin-bottom: 10px; }
.offen {
  position: relative;
  display: flex; align-items: center; gap: 18px;
  min-height: 56px; padding-left: 0;
  color: var(--porcelain); text-decoration: none;
  border-radius: 8px;
}
.offen::before { /* gestrichelte Verlängerung der Linie */
  content: ""; position: absolute; left: 30px; right: 0; top: 50%; height: 6px;
  transform: translateY(-50%);
  background: linear-gradient(90deg, var(--ink) 0 60%, transparent 60%) 0 0 / 26px 6px repeat-x;
  opacity: 0.8;
}
.offen__ring {
  --plus: var(--porcelain);
  position: relative; z-index: 1; flex: none;
  width: 52px; height: 52px; border-radius: 50%;
  background-color: var(--card);
  border: 4px dashed var(--ink);
  background-image: linear-gradient(var(--plus), var(--plus)), linear-gradient(var(--plus), var(--plus));
  background-size: 18px 2.5px, 2.5px 18px;
  background-position: center; background-repeat: no-repeat;
  transition: background-color 180ms var(--ease-out);
}
.offen__text {
  position: relative; z-index: 1;
  padding: 8px 16px; border-radius: 6px;
  background: var(--night);
  font-size: 1.05rem; color: var(--porcelain-2);
}
.offen__text strong { color: var(--porcelain); font-weight: 600; font-size: 1.15rem; margin-right: 6px; }
.offen:hover .offen__ring, .offen:focus-visible .offen__ring { --plus: var(--night); background-color: var(--porcelain); }
.offen:hover .offen__text strong { text-decoration: underline; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; }

/* Die gewählte Linie leuchtet, die anderen treten zurück */
.themen:has(.halt__link:hover, .halt__link:focus-visible) .linie:not(:has(.halt__link:hover, .halt__link:focus-visible)) { opacity: 0.36; }

@media (hover: none) {
  .halt__detail { opacity: 1; transform: none; }
}

/* ---------- Aussage + FÜR ---------- */
.aussage { padding-block: clamp(3rem, 7vw, 6rem) 0; }
.aussage__satz {
  font-weight: 600;
  font-size: clamp(2rem, 1.1rem + 3.4vw, 4.2rem);
  line-height: 1.08; letter-spacing: -0.022em;
  max-width: 17ch;
}
.aussage__zusatz {
  margin-top: 1.6rem;
  max-width: 48ch;
  font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem);
  color: var(--porcelain-2);
}

.fuer {
  display: grid; grid-template-columns: auto 1fr; align-items: center;
  gap: clamp(18px, 3vw, 40px);
  margin-top: clamp(4rem, 9vw, 7rem);
  padding-left: max(var(--gutter), calc((100vw - var(--wrap)) / 2));
}
.fuer__wort {
  font-size: clamp(4rem, 2rem + 6vw, 6rem);
  line-height: 0.9; letter-spacing: -0.035em;
}
.fuer__buendel { display: grid; gap: 6px; }
.fuer__buendel span { display: block; height: 7px; border-radius: 4px 0 0 4px; background: var(--ink); }

/* ---------- Ebene 3: Kunden als Umsteigeknoten ---------- */
.kunden { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(5rem, 9vw, 8rem); }

.netz { display: grid; gap: 10px; }
.netz__linie {
  --kh: 48px; --kg: 16px;
  display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 24px;
  align-items: start;
  padding-block: 12px;
}
.netz__name {
  display: flex; align-items: center; gap: 12px;
  min-height: var(--kh);
  font-weight: 600; font-size: 0.86rem; letter-spacing: 0.07em; text-transform: uppercase;
  color: var(--porcelain-2);
}
.netz__name::before { content: ""; width: 34px; height: 8px; border-radius: 4px; background: var(--ink); flex: none; }

.netz__halte > li { display: flex; }
.netz__halte {
  display: flex; flex-wrap: wrap; gap: var(--kg) 14px;
  list-style: none; margin: 0; padding: 0;
  background: repeating-linear-gradient(to bottom,
    transparent 0 calc(var(--kh) / 2 - 3px),
    var(--ink) calc(var(--kh) / 2 - 3px) calc(var(--kh) / 2 + 3px),
    transparent calc(var(--kh) / 2 + 3px) calc(var(--kh) + var(--kg)));
}

.knoten {
  position: relative;
  display: inline-flex; align-items: center;
  height: var(--kh); padding: 0 20px;
  border: 3px solid var(--ink); border-radius: calc(var(--kh) / 2);
  background: var(--card);
  color: var(--porcelain); text-decoration: none;
  font-weight: 500; font-size: 1rem; white-space: nowrap;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out);
}
.knoten:hover, .knoten:focus-visible { background: var(--porcelain); color: var(--night); }

.knoten--frei {
  --plus: var(--porcelain-2);
  width: var(--kh); padding: 0;
  border-style: dashed;
  background-image:
    linear-gradient(var(--plus), var(--plus)),
    linear-gradient(var(--plus), var(--plus));
  background-size: 16px 2px, 2px 16px;
  background-position: center;
  background-repeat: no-repeat;
}
.knoten--frei:hover, .knoten--frei:focus-visible { --plus: var(--night); }
.knoten--frei::after {
  content: "Ihre Einrichtung?";
  position: absolute; left: 50%; bottom: calc(100% + 10px);
  transform: translate(-50%, 4px);
  padding: 5px 9px; border-radius: 5px;
  background: var(--porcelain); color: var(--night);
  font-size: 0.8rem; font-weight: 600; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 150ms var(--ease-out), transform 150ms var(--ease-out);
}
.knoten--frei:hover::after, .knoten--frei:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.knoten--muster { --ink: var(--cyan); --kh: 40px; flex: none; }
.knoten--muster::after { content: none; }

.netz__fehlt {
  display: flex; align-items: center; gap: 16px;
  margin-top: clamp(2rem, 4vw, 3rem);
  padding-top: 24px; border-top: 1px solid var(--rule);
  color: var(--porcelain-2); font-size: 1.05rem;
}
.netz__fehlt a { color: var(--porcelain); font-weight: 600; text-decoration-color: var(--cyan); text-decoration-thickness: 2px; }

/* ---------- Arbeitsweise ---------- */
.arbeitsweise {
  padding-block: clamp(5rem, 9vw, 8rem);
  border-top: 1px solid var(--rule);
}

.fahrplan {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 28px;
  list-style: none; margin: 0 0 clamp(4rem, 7vw, 6rem); padding: 0;
}
.fahrplan li { position: relative; padding-top: 48px; }
.fahrplan li::before {
  content: ""; position: absolute; top: 11px; height: 8px;
  left: -14px; right: -14px; background: var(--cream);
}
.fahrplan li:first-child::before { left: 0; border-radius: 4px 0 0 4px; }
.fahrplan li:last-child::before { right: 0; border-radius: 0 4px 4px 0; }
.fahrplan__ring {
  position: absolute; top: 0; left: 0;
  width: 30px; height: 30px; border-radius: 50%;
  background: var(--card); border: 6px solid var(--porcelain);
}
.fahrplan h3 { font-size: 1.4rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 0.5rem; }
.fahrplan p { color: var(--porcelain-2); font-size: 1rem; max-width: 32ch; }

.staerken {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px;
  list-style: none; margin: 0; padding: 0;
}
.staerken li {
  display: grid; gap: 16px; align-content: start;
  padding-top: 22px;
  border-top: 1px solid var(--rule);
  font-weight: 600; font-size: clamp(1.4rem, 1rem + 1.3vw, 2rem); line-height: 1.15; letter-spacing: -0.015em;
}
.staerken li::before { content: ""; width: 34px; height: 8px; border-radius: 4px; background: var(--ink); }

.hinweis {
  margin-top: clamp(3rem, 5vw, 4rem);
  max-width: 82ch;
  padding: 18px 22px;
  border: 1px solid var(--rule-strong);
  border-radius: 8px;
  font-size: 0.96rem; color: var(--porcelain-2);
}
.hinweis strong { color: var(--porcelain); font-weight: 600; }

/* ---------- Anfrage: Verbindungsauskunft ---------- */
.verbindung {
  padding-block: clamp(5rem, 9vw, 8rem);
  background: var(--night-2);
  border-top: 1px solid var(--rule);
}
.verbindung__raster {
  display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.25fr);
  gap: clamp(2.5rem, 6vw, 6rem); align-items: start;
}
.verbindung__text > p { margin-top: 1.2rem; font-size: 1.15rem; color: var(--porcelain-2); max-width: 34ch; }

.direkt {
  display: grid; grid-template-columns: auto 1fr; gap: 10px 22px;
  margin: 2.4rem 0 0; padding-top: 1.6rem;
  border-top: 1px solid var(--rule);
}
.direkt dt { font-size: 0.8rem; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.direkt dd { margin: 0; font-weight: 500; }
.direkt a { text-decoration-color: var(--cyan); }

.planer {
  background: var(--card);
  border: 1px solid var(--rule-strong);
  border-radius: 12px;
  padding: clamp(20px, 3vw, 36px);
  box-shadow: var(--card-shadow);
}

.planer__route {
  position: relative;
  border: 0; margin: 0 0 26px; padding: 0 0 0 46px;
  display: grid; gap: 14px;
}
.planer__route::before {
  content: ""; position: absolute;
  left: 15px; top: 26px; bottom: 26px; width: 6px; border-radius: 3px;
  background: var(--cyan);
}

.feld { position: relative; }
.feld + .feld { margin-top: 18px; }
.feld label { display: block; margin-bottom: 8px; font-weight: 500; font-size: 0.98rem; }

.feld--route {
  display: grid; grid-template-columns: 148px minmax(0, 1fr); align-items: center; gap: 12px;
}
.feld--route + .feld--route { margin-top: 0; }
.feld--route label { margin: 0; display: grid; line-height: 1.15; }
.feld__gross { font-weight: 700; font-size: 1.3rem; }
.feld__klein { font-size: 0.82rem; color: var(--porcelain-2); font-weight: 400; }
.feld--route::before {
  content: ""; position: absolute; left: -41px; top: 50%;
  width: 26px; height: 26px; border-radius: 50%;
  transform: translateY(-50%);
  background: var(--card); border: 6px solid var(--porcelain);
  transition: background-color 200ms var(--ease-out);
}
.feld--route.is-gewaehlt::before { background: var(--cyan); }

.feld__optional { color: var(--muted); font-weight: 400; }
.planer__frei { margin: -10px 0 22px 46px; font-size: 0.9rem; color: var(--porcelain-2); }

select, input[type="text"], input[type="email"], input[type="tel"], textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  background: var(--night-3);
  border: 1px solid var(--field-border);
  border-radius: 6px;
  color: var(--porcelain);
  font: inherit; font-size: 1rem;
  caret-color: var(--orange);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out), background-color 400ms var(--ease-out);
}
textarea { resize: vertical; min-height: 132px; line-height: 1.5; }
::placeholder { color: var(--placeholder); opacity: 1; }
select {
  appearance: none; -webkit-appearance: none;
  padding-right: 44px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--porcelain-2) 50%),
    linear-gradient(135deg, var(--porcelain-2) 50%, transparent 50%);
  background-position: calc(100% - 22px) 52%, calc(100% - 16px) 52%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}
select option, select optgroup { background: var(--night); color: var(--porcelain); }
select:hover, input:hover, textarea:hover { border-color: var(--field-border-hover); }
select:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: none;
  border-color: var(--focus);
  box-shadow: var(--focus-glow);
}
.feld.is-gesetzt select { animation: gesetzt 1100ms var(--ease-out); }
@keyframes gesetzt {
  0% { background-color: var(--flash); border-color: var(--focus); }
  100% { background-color: var(--night-3); }
}
[aria-invalid="true"] { border-color: var(--orange) !important; }
.feld__fehler { margin-top: 7px; font-size: 0.88rem; color: var(--error); }

.planer__paar { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 18px; }
.planer__paar .feld + .feld { margin-top: 0; }

.feld--check {
  display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 4px 12px; align-items: start;
  margin-top: 22px;
}
.feld--check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--check); cursor: pointer; }
.feld--check label { margin: 0; font-size: 0.92rem; font-weight: 400; color: var(--porcelain-2); }
.feld--check label a { color: var(--porcelain); text-decoration-color: var(--cyan); }
.feld--check .feld__fehler { grid-column: 2; margin-top: 2px; }

.planer__abfahrt { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; margin-top: 26px; }
.planer__demo { font-size: 0.86rem; color: var(--muted); }

.ticket {
  margin-top: 24px;
  padding: 20px 22px;
  border-radius: 10px;
  background: var(--porcelain); color: var(--night);
  -webkit-mask: radial-gradient(circle 10px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 10px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 10px at 0 50%, transparent 98%, #000) left / 51% 100% no-repeat,
        radial-gradient(circle 10px at 100% 50%, transparent 98%, #000) right / 51% 100% no-repeat;
}
.ticket:focus { outline: none; }
.ticket:focus-visible { outline: 3px solid var(--cyan); }
.ticket__titel { font-weight: 700; font-size: 1.2rem; }
.ticket__route { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 14px; margin-top: 10px; font-weight: 600; }
.ticket__pfeil {
  position: relative; width: 56px; height: 6px; border-radius: 3px; background: var(--teal); flex: none;
}
.ticket__pfeil::before, .ticket__pfeil::after {
  content: ""; position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%;
  background: var(--porcelain); border: 4px solid var(--night); transform: translateY(-50%);
}
.ticket__pfeil::before { left: -4px; }
.ticket__pfeil::after { right: -4px; }
.ticket__demo { margin-top: 10px; font-size: 0.86rem; color: var(--ticket-muted); }
.ticket[hidden] { display: none; }

/* ---------- Fuß ---------- */
.fuss { padding-block: 48px 88px; border-top: 1px solid var(--rule); font-size: 0.95rem; color: var(--porcelain-2); }
.fuss__raster { display: grid; grid-template-columns: 1.3fr 1fr 1fr auto; gap: 28px 40px; align-items: start; }
.fuss address { font-style: normal; }
.fuss a { text-decoration-color: var(--underline-soft); }
.fuss a:hover { color: var(--porcelain); text-decoration-color: var(--cyan); }
.fuss__links { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }

/* ---------- Impressum ---------- */
.rechtliches { padding-block: calc(var(--board-h) + clamp(3rem, 7vw, 5.5rem)) clamp(5rem, 9vw, 7rem); }
.legal { max-width: 74ch; }
.legal h1 {
  position: relative;
  font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem); line-height: 1.02; letter-spacing: -0.025em;
  padding-bottom: 28px; margin-bottom: 10px;
}
.legal h1::after {
  content: ""; position: absolute; left: 13px; right: 0; bottom: 0; height: 6px; border-radius: 3px;
  background: var(--cyan);
}
.legal h1::before {
  content: ""; position: absolute; left: 0; bottom: -9px; z-index: 1;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--card); border: 5px solid var(--porcelain);
}
.legal h2 {
  margin-top: 2.4rem; margin-bottom: 0.6rem;
  font-weight: 600; font-size: 1.15rem; letter-spacing: -0.005em;
}
.legal p, .legal li { color: var(--porcelain-2); }
.legal p + p { margin-top: 0.8rem; }
.legal strong { color: var(--porcelain); font-weight: 600; }
.legal a { color: var(--porcelain); text-decoration-color: var(--cyan); }
.credits { padding-left: 1.1rem; margin: 0; display: grid; gap: 8px; font-size: 0.94rem; }
.credits li::marker { color: var(--cyan); }
.zurueck { display: inline-flex; margin-top: 3rem; }

/* ---------- Responsiv ---------- */
@media (max-width: 1080px) {
  .board__tel { display: none; }
  .board__call { display: grid; }
}

@media (max-width: 900px) {
  .board__nav { display: none; }
  .brand { margin-right: auto; }
  .verbindung__raster { grid-template-columns: 1fr; }
  .fuss__raster { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --board-h: 60px; }
  .brand__word { width: 140px; height: 15px; }
  .brand__mark { width: 30px; }
  .board__cta { min-height: 38px; padding: 0 14px; font-size: 0.88rem; }
  .board { gap: 10px; }
  .board__call { width: 38px; height: 38px; }
  .hlabel { font-size: 13px; line-height: 16px; padding: 2px 6px 3px; }
  .hero__hint { font-size: 0.98rem; }

  .hero { min-height: 600px; --ball-size: min(64vw, 280px); --ball-y: calc(var(--board-h) + (100% - var(--board-h)) * 0.42); }
  /* Mobil: fester Info-Sockel unten – Themenauswahl + Zeichenerklärung, Linien laufen darunter aus */
  .hero__panel {
    display: block; position: absolute; left: 0; right: 0; bottom: 0;
    top: var(--panel-top, 62%);
    background: linear-gradient(to bottom, transparent, var(--night) 36px);
  }
  .hero__info {
    display: flex; flex-direction: column; gap: 10px;
    position: absolute; left: var(--gutter); right: var(--gutter); bottom: 62px;
  }
  .hero__halte {
    display: grid; grid-template-columns: 1fr 1fr; gap: 7px 12px;
    list-style: none; margin: 0; padding: 0 2px;
    font-weight: 500; font-size: 0.86rem; line-height: 1.2; color: var(--porcelain);
  }
  .hero__halte li { display: flex; align-items: center; gap: 8px; min-width: 0; }
  .hero__halte li::before {
    content: ""; flex: none; width: 14px; height: 14px; border-radius: 50%;
    background: var(--card); border: 3.5px solid var(--ink);
  }
  .hero__halte-mehr { grid-column: 1 / -1; color: var(--porcelain-2); }
  .hero__halte .hero__halte-mehr::before { border-style: dashed; border-width: 2.5px; }
  .legende { position: static; width: auto; padding: 12px 14px 10px; }
  .legende__text { font-size: 0.88rem; line-height: 1.4; }
  .legende__linien { margin-top: 8px; padding-top: 8px; gap: 4px 10px; font-size: 0.74rem; }
  .legende__linien li { gap: 7px; }
  .legende__linien li::before { width: 16px; height: 5px; }

  /* Linie wird senkrecht: Haltestellen untereinander */
  .linie { --gap: 18px; }
  .linie__halte { grid-template-columns: 1fr; gap: 0; }
  .halt__link {
    grid-template-areas: "ring bild name" "ring bild detail";
    grid-template-columns: 34px 116px minmax(0, 1fr);
    grid-template-rows: auto 1fr;
    column-gap: 14px;
    padding-block: 9px;
  }
  .halt__bild { width: 116px; align-self: center; }
  .halt__ring { margin: 0; align-self: stretch; }
  .halt__ring::before {
    left: 50%; right: auto; top: -9px; bottom: -9px; height: auto; width: 8px;
    transform: translateX(-50%);
  }
  .halt:first-child .halt__ring::before { left: 50%; top: 50%; border-radius: 4px 4px 0 0; }
  .halt:last-child .halt__ring::before { right: auto; bottom: 50%; border-radius: 0 0 4px 4px; }
  .halt__name { margin-top: 0; align-self: end; text-align: left; font-size: 1.08rem; }
  .halt__detail { text-align: left; min-height: 0; opacity: 1; transform: none; font-size: 0.88rem; align-self: start; }

  .fuer { grid-template-columns: 1fr; gap: 18px; padding-left: var(--gutter); }

  .netz__linie { --kh: 44px; --kg: 14px; grid-template-columns: 1fr; gap: 10px; }
  .netz__name { min-height: 0; }
  .knoten { font-size: 0.95rem; padding: 0 16px; }

  .fahrplan { grid-template-columns: 1fr; gap: 0; }
  .fahrplan li { padding: 0 0 32px 52px; }
  .fahrplan li:last-child { padding-bottom: 0; }
  .fahrplan li::before { top: 0; bottom: 0; left: 11px; right: auto; width: 8px; height: auto; }
  .fahrplan li:first-child::before { left: 11px; top: 14px; border-radius: 4px 4px 0 0; }
  .fahrplan li:last-child::before { left: 11px; bottom: auto; height: 14px; border-radius: 0 0 4px 4px; }
  .fahrplan h3 { padding-top: 1px; }

  .feld--route { grid-template-columns: 1fr; gap: 6px; }
  .feld--route label { display: flex; align-items: baseline; gap: 10px; }
  .feld--route::before { top: auto; bottom: 13px; transform: none; }
  .planer__route::before { top: 46px; bottom: 26px; }
  .planer__paar { grid-template-columns: 1fr; }
  .staerken { grid-template-columns: 1fr; gap: 0; }
  .staerken li { grid-template-columns: 34px 1fr; align-items: center; padding-block: 16px; }
  .offen__text { font-size: 0.98rem; }
  .fuss__raster { grid-template-columns: 1fr; }

}

@media (max-width: 420px) {
  .brand__word { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
  .halt__link:hover .halt__bild img, .halt__link:focus-visible .halt__bild img { transform: none; }
}

/* ---------- Untervarianten: Farbrollen je Bereich ---------- */
.theme-dark, .theme-light { background-color: var(--night); color: var(--porcelain); }
.theme-dark { color-scheme: dark; }
.theme-light { color-scheme: light; }

/* Vollständiges Logo im Kopf */
.brand__logo { display: block; height: 66px; width: auto; }
@media (max-width: 1080px) { .brand__logo { height: 56px; } }
.brand--fuss .brand__logo { height: 46px; }
.board__cta .nur-mobil { display: none; }

/* Claim im leeren Umsteigering (Startbild) */
.hero__claim {
  max-width: none;
  color: var(--claim);
  font-weight: 700;
  font-size: clamp(0.92rem, calc(var(--ball-size, 480px) * 0.066), 2rem);
  line-height: 1.16; letter-spacing: -0.012em;
  padding-bottom: 30px;
}
.hero__claim span { display: block; white-space: nowrap; }
.hero__claim::after { bottom: 8px; width: 11px; height: 11px; border-width: 0 2.5px 2.5px 0; }

/* Heller Grund: Fotos freundlicher, Tönung zurückgenommen */
.theme-light .halt__bild img { filter: grayscale(1) contrast(1.02) brightness(1.04); }
.theme-light .halt__bild::after { opacity: 0.5; }
.theme-light .halt__link:hover .halt__bild img, .theme-light .halt__link:focus-visible .halt__bild img { filter: none; }
.theme-light .halt__link:hover .halt__bild::after, .theme-light .halt__link:focus-visible .halt__bild::after { opacity: 0; }

/* Legende nur noch als Farbschlüssel */
.legende { width: auto; padding: 14px 18px; }
.legende__linien { margin-top: 0; padding-top: 0; border-top: 0; }

@media (max-width: 760px) {
  :root { --board-h: 66px; }
  .brand__logo { height: 46px; }
  .board__cta .nur-desktop { display: none; }
  .board__cta .nur-mobil { display: inline; }
  .legende { padding: 10px 14px; }
}
@media (max-width: 380px) {
  .brand__logo { height: 40px; }
  .board { gap: 8px; }
}

.theme-dark {
  --night: #0c1c29;
  --night-2: #10283a;
  --night-3: #08141d;
  --card: #0c1c29;
  --porcelain: #eef2ee;
  --porcelain-2: #bccfd8;
  --muted: #8eaab8;
  --rule: rgba(238, 242, 238, 0.12);
  --rule-strong: rgba(238, 242, 238, 0.22);
  --teal: #1a8e9f;
  --cyan: #15b3d0;
  --orange: #f28b38;
  --sage: #658b64;
  --brown: #b0703a;
  --cream: #e2e3ac;
  --accent: #f28b38;
  --thumb: #2b4a60;
  --sheen: rgba(86, 150, 178, 0.10);
  --btn-light-hover: #ffffff;
  --board-bg: rgba(9, 22, 33, 0.9);
  --hover-tint: rgba(238, 242, 238, 0.08);
  --panel: rgba(8, 20, 29, 0.92);
  --panel-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  --plate: rgba(12, 28, 41, 0.86);
  --card-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  --field-border: #2d4a5e;
  --field-border-hover: #3d6178;
  --placeholder: #8a9fa6;
  --focus: #15b3d0;
  --focus-glow: 0 0 0 3px rgba(21, 179, 208, 0.32);
  --flash: rgba(21, 179, 208, 0.38);
  --error: #ffb98a;
  --ticket-muted: #3e5560;
  --underline-soft: rgba(238, 242, 238, 0.35);
  --check: #15b3d0;
  --station-fill: #0c1c29;
  --station-stroke: #eef2ee;
  --ring-stroke: #eef2ee;
  --ring-fill: #0c1c29;
  --ring-dash: rgba(238, 242, 238, 0.55);
  --ring-width: 7;
  --claim: #ffffff;
}
.theme-light {
  --night: #f8fbfb;
  --night-2: #eef4f5;
  --night-3: #ffffff;
  --card: #ffffff;
  --porcelain: #14232a;
  --porcelain-2: #3d5560;
  --muted: #566b75;
  --rule: rgba(20, 35, 42, 0.13);
  --rule-strong: rgba(20, 35, 42, 0.24);
  --teal: #1a8e9f;
  --cyan: #0b8fab;
  --orange: #c9661a;
  --sage: #5a7f5a;
  --brown: #7a461d;
  --cream: #0b5f6b;
  --accent: #f28b38;
  --thumb: #a9bcc3;
  --sheen: rgba(26, 142, 159, 0.07);
  --btn-light-hover: #2a4552;
  --board-bg: rgba(248, 251, 251, 0.92);
  --hover-tint: rgba(20, 35, 42, 0.06);
  --panel: rgba(255, 255, 255, 0.96);
  --panel-shadow: 0 10px 30px rgba(20, 35, 42, 0.10);
  --plate: rgba(255, 255, 255, 0.94);
  --card-shadow: 0 18px 50px rgba(20, 35, 42, 0.10);
  --field-border: #7d929b;
  --field-border-hover: #4f646e;
  --placeholder: #5f737c;
  --focus: #0b5f6b;
  --focus-glow: 0 0 0 3px rgba(11, 95, 107, 0.25);
  --flash: rgba(11, 143, 171, 0.22);
  --error: #a3410d;
  --ticket-muted: #b9cbd2;
  --underline-soft: rgba(20, 35, 42, 0.35);
  --check: #0b5f6b;
  --station-fill: #ffffff;
  --station-stroke: #14232a;
  --ring-stroke: #14232a;
  --ring-fill: #ffffff;
  --ring-dash: rgba(20, 35, 42, 0.45);
  --ring-width: 3;
  --claim: #14232a;
}

/* ---------- B1 „Tagnetz“ ---------- */
.board { border-bottom-color: var(--rule-strong); }

/* B1: verblasster Ball im Endzustand – Text dunkel direkt auf der hellen Tönung */
.theme-light .hero__copy h1 { color: #14232a; text-shadow: 0 0 18px rgba(248, 251, 251, 0.85); }
.theme-light .streifen { background: none; padding: 0; }
.theme-light .hero:not(.has-stage) .hero__mark { opacity: 0.36; }
.theme-light .hero__ball { width: calc(var(--ball-size) * 0.74); }
.theme-light .hero__copy { inset: -18% -24%; }

/* Lange Wörter auf schmalen Geräten umbrechen statt überlaufen */
main { overflow-wrap: break-word; }
.halt__name, .halt__detail, .halt__link { min-width: 0; hyphens: auto; -webkit-hyphens: auto; }
/* Unsichtbare Hinweise an freien Stationen dürfen keinen seitlichen Überlauf erzeugen */
.kunden { overflow-x: clip; }
/* Sehr schmale Geräte (≤ 360 px): Kopf verdichten, lange Wörter umbrechen */
@media (max-width: 360px) {
  .brand__logo { height: 32px; }
  .board { gap: 6px; }
  .board__cta { padding-inline: 12px; }
  .hero__halte { font-size: 0.8rem; }
  .hero__halte li { min-width: 0; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
  .verbindung__text, .direkt dd { overflow-wrap: anywhere; }
}

/* ---------- Live: Formular ---------- */
.honig { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.planer__meldung {
  margin: 4px 0 0; padding: 12px 14px; border-radius: 8px;
  background: #fdecea; color: #8a1f17; border: 1px solid #f1b8b2;
  font-weight: 500;
}
.planer__meldung:focus { outline: 2px solid #8a1f17; outline-offset: 2px; }
.legal ul { padding-left: 1.2em; }
.legal ul li + li { margin-top: 6px; }
