/* Vetter Verkehrsbetriebe. Bewegung läuft nur über transform und opacity. */

:where(*, *::before, *::after) { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 96px; }
:where(body, h1, h2, h3, h4, p, ul, ol, dl, dd, dt, figure) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
:where(img, svg) { display: block; max-width: 100%; }
:where(a) { color: inherit; text-decoration: none; }
:where(button, input, select, textarea) { font: inherit; color: inherit; letter-spacing: inherit; }
:where(button) { background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

:root {
  --nacht: #0a1930;
  --nacht-2: #10233f;
  --text: #1b2533;
  --text-2: #566273;
  --blau: #316aad;
  --blau-tief: #0047b2;
  --blau-hell: #5b9be6;
  --himmel: #abd8ff;
  --eis: #eaf3fc;
  --gelb: #f8c80a;
  --rot: #cd1719;
  --gruen: #14804a;
  --nebel: #f3f6fa;
  --rand: #dde4ee;
  --kopf: 72px;
  --ueberhang: 44px;
  --breite: 1240px;
  --rund: 20px;
  --schatten: 0 1px 2px rgba(10, 25, 48, .06), 0 14px 34px -14px rgba(10, 25, 48, .2);
  --schatten-hoch: 0 2px 4px rgba(10, 25, 48, .08), 0 30px 60px -22px rgba(10, 25, 48, .36);
  --f-titel: "Space Grotesk", "Inter", system-ui, sans-serif;
  --f-text: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --weich: cubic-bezier(.2, .7, .2, 1);
}

html:not(.ruhig) { scroll-behavior: smooth; }
body {
  font-family: var(--f-text);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: #fff;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
:focus-visible { outline: 3px solid var(--blau-hell); outline-offset: 3px; }

.i { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.nur-vorleser { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.sprung { position: absolute; left: 12px; top: 12px; z-index: 100; padding: 12px 18px; border-radius: 12px; background: var(--gelb); color: var(--nacht); font-weight: 700; transform: translateY(-200%); }
.sprung:focus { transform: none; }
.breite { max-width: var(--breite); margin-inline: auto; padding-inline: 24px; }

/* Knöpfe und Verweise */
.knopf {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 54px; padding: 0 28px; border-radius: 999px;
  font-family: var(--f-titel); font-weight: 700; font-size: 1.0625rem; white-space: nowrap;
  transition: transform .2s var(--weich);
}
.knopf > * { position: relative; z-index: 1; }
.knopf .i { width: 20px; height: 20px; transition: transform .2s var(--weich); }
.knopf--gelb { background: var(--gelb); color: var(--nacht); }
.knopf--nacht { background: var(--nacht); color: #fff; }
.knopf--breit { width: 100%; }
.knopf--puls { animation: puls 3.5s var(--weich) infinite; }
.knopf--puls::after {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 36%, rgba(255, 255, 255, .8) 50%, rgba(255, 255, 255, 0) 64%);
  transform: translateX(-120%); animation: glanz 3.5s ease-in-out infinite;
}
.knopf:active { animation: none; transform: scale(.97); }
@keyframes puls { 0%, 76%, 100% { transform: scale(1); } 85% { transform: scale(var(--puls, 1.045)); } 93% { transform: scale(.992); } }
@keyframes glanz { 0%, 77% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }

.verweis { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--blau-tief); transition: transform .2s var(--weich); }
.verweis::after { content: ""; position: absolute; left: 0; right: 0; bottom: 8px; height: 2px; border-radius: 2px; background: currentColor; opacity: .55; transform: scaleX(0); transform-origin: 0 50%; transition: transform .3s var(--weich); }
.verweis .i { width: 18px; height: 18px; transition: transform .2s var(--weich); }
.verweis--hell { color: #fff; }
.verweis:active { transform: scale(.98); }

@media (hover: hover) and (pointer: fine) {
  .knopf:hover { animation: none; transform: translateY(-2px); }
  .knopf:hover .i--pfeil, .verweis:hover .i--pfeil { transform: translateX(4px); }
  .knopf:hover .i--extern, .verweis:hover .i--extern { transform: translate(2px, -2px); }
  .verweis:hover::after { transform: scaleX(1); }
}

/* Leiste über dem Kopf */
.neben { display: none; background: var(--nacht); color: #c9d6e8; font-size: .8438rem; font-weight: 500; }
.neben__innen { max-width: var(--breite); margin-inline: auto; padding-inline: 24px; min-height: 40px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.neben__lage { display: inline-flex; align-items: center; gap: 10px; min-height: 40px; }
.neben__punkt { width: 9px; height: 9px; border-radius: 50%; background: #ff5a5c; box-shadow: 0 0 0 4px rgba(255, 90, 92, .22); }
.neben__liste { display: flex; gap: 26px; }
.neben__liste a { display: inline-flex; align-items: center; min-height: 40px; }
.neben__liste a.ist-aktiv { color: #fff; }
@media (min-width: 700px) { .neben { display: block; } }
@media (hover: hover) and (pointer: fine) { .neben a:hover { color: #fff; } }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 60; background: #fff; }
.kopf::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 16px; background: linear-gradient(rgba(10, 25, 48, .13), rgba(10, 25, 48, 0)); opacity: 0; transition: opacity .25s; pointer-events: none; }
.kopf.ist-unten::after { opacity: 1; }
.kopf__innen { max-width: var(--breite); margin-inline: auto; padding-inline: 24px; height: var(--kopf); display: flex; align-items: center; gap: 20px; }
.kopf__logo { flex: none; }
.kopf__logo img { width: auto; height: 42px; }
.kopf__spur { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; overflow: hidden; }
.kopf__spur span { display: block; height: 100%; background: var(--gelb); transform: scaleX(var(--f, 0)); transform-origin: 0 50%; }
.kopf__ruf { display: none; min-height: 46px; padding: 0 20px; font-size: .9688rem; }
.kopf__menue { margin-left: auto; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--nebel); color: var(--nacht); transition: transform .15s; }
.kopf__menue:active { transform: scale(.94); }
.kopf__menue .i { width: 24px; height: 24px; }

.haupt { display: none; margin-left: auto; }
.haupt__liste { display: flex; align-items: center; gap: 2px; }
.haupt__liste > li { position: relative; }
.haupt__liste > li > a { position: relative; display: inline-flex; align-items: center; gap: 4px; height: 44px; padding: 0 13px; font-weight: 600; font-size: .9688rem; }
.haupt__liste > li > a::after { content: ""; position: absolute; left: 13px; right: 13px; bottom: 5px; height: 2px; border-radius: 2px; background: var(--blau); transform: scaleX(0); transform-origin: 0 50%; transition: transform .28s var(--weich); }
.haupt__liste > li > a.ist-aktiv::after { transform: scaleX(1); }
.haupt__liste .i { width: 16px; height: 16px; opacity: .55; }
.hat-unter::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 14px; }
.unter { position: absolute; left: -8px; top: calc(100% + 10px); z-index: 5; min-width: 290px; padding: 8px; background: #fff; border-radius: 18px; box-shadow: var(--schatten-hoch); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity .18s, transform .2s var(--weich), visibility 0s linear .2s; }
.hat-unter:focus-within > .unter { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.unter a { display: block; padding: 11px 14px; border-radius: 12px; font-weight: 500; font-size: .9688rem; }
@media (hover: hover) and (pointer: fine) {
  .haupt__liste > li > a:hover::after { transform: scaleX(1); }
  .hat-unter:hover > .unter { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .unter a:hover { background: var(--nebel); }
}
@media (min-width: 1120px) {
  .haupt { display: block; }
  .kopf__ruf { display: inline-flex; }
  .kopf > .kopf__innen > .kopf__menue { display: none; }
}

/* Menü mobil */
.mobilmenue { position: fixed; inset: 0; z-index: 80; display: flex; flex-direction: column; gap: 16px; padding: 13px 24px calc(22px + env(safe-area-inset-bottom)); background: #fff; overflow-y: auto; opacity: 0; transform: translateX(100%); transition: transform .36s var(--weich), opacity .2s; }
.mobilmenue.ist-offen { opacity: 1; transform: none; }
.mobilmenue__kopf { display: flex; align-items: center; justify-content: space-between; min-height: 46px; }
.mobilmenue__titel { font-family: var(--f-titel); font-weight: 700; font-size: 1.25rem; }
.mobilmenue nav { flex: 1; }
.mobilmenue__liste > li { border-bottom: 1px solid var(--rand); }
.mobilmenue__liste > li > a { display: flex; align-items: center; min-height: 58px; font-family: var(--f-titel); font-weight: 600; font-size: 1.3125rem; }
.mobilmenue__liste .i { display: none; }
.mobilmenue .hat-unter::after { content: none; }
.mobilmenue .unter { position: static; min-width: 0; padding: 0 0 14px; border-radius: 0; box-shadow: none; opacity: 1; visibility: visible; transform: none; transition: none; }
.mobilmenue .unter a { padding: 9px 0 9px 16px; border-radius: 0; border-left: 2px solid var(--rand); color: var(--text-2); }
.mobilmenue__neben { display: flex; flex-wrap: wrap; gap: 4px 26px; padding-top: 16px; font-weight: 600; }
.mobilmenue__neben a { display: inline-flex; align-items: center; min-height: 46px; }

/* Kopfbereich mit Liniennetz */
.hero { --netz-x: calc(50% + 278px); --netz-y: 552px; --blick-x: calc(50% + 330px); --blick-y: 230px; --rz0: -30deg; --rz1: 24deg; --netz-z: 300px; position: relative; z-index: 2; isolation: isolate; display: flow-root; color: #fff; background: radial-gradient(110% 90% at 80% 12%, #1a3c6c 0%, var(--nacht-2) 44%, var(--nacht) 80%); }
.hero__buehne { position: absolute; inset: 0; z-index: -1; overflow: clip; perspective: 1500px; perspective-origin: var(--blick-x) var(--blick-y); animation: auftauchen 1.4s .1s both; }
.hero__buehne::after {
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background:
    linear-gradient(90deg, var(--nacht) 0%, rgba(10, 25, 48, .9) 24%, rgba(10, 25, 48, 0) 58%),
    linear-gradient(0deg, var(--nacht) 0%, rgba(10, 25, 48, 0) 9%),
    linear-gradient(180deg, rgba(10, 25, 48, .7) 0%, rgba(10, 25, 48, 0) 7%);
}
@keyframes auftauchen { from { opacity: 0; } }

/* Die Ebene hängt an der Inhaltsspalte (50 % plus fester Wert) und dreht um den Knoten Saalekreis,
   damit die Schilder rechts neben Überschrift und Suche bleiben. Lage nachrechnen: werkzeuge/netz_lage.py */
.netz {
  --rx: calc(58deg + var(--p, 0) * 8deg);
  --rz: calc(var(--rz0) + var(--p, 0) * var(--rz1));
  --netz-b: 1500px;
  position: absolute; left: var(--netz-x); top: var(--netz-y); width: var(--netz-b); aspect-ratio: 1.6;
  margin: calc(var(--netz-b) * -.525) 0 0 calc(var(--netz-b) * -.3375);
  transform-origin: 33.75% 84%;
  transform: translate3d(0, calc(var(--p, 0) * 90px), var(--netz-z)) rotateX(var(--rx)) rotateZ(var(--rz));
  transform-style: preserve-3d; will-change: transform;
}
.netz__karte { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.netz__raster path { fill: none; stroke: rgba(171, 216, 255, .08); stroke-width: 1.5; }
.netz__linie { fill: none; stroke-linecap: round; stroke-linejoin: round; }
.netz__linie--gelb { stroke: var(--gelb); }
.netz__linie--blau { stroke: #4f8fe0; }
.netz__linie--himmel { stroke: var(--himmel); }
.netz__linie--weiss { stroke: rgba(255, 255, 255, .78); }
.netz__linie--tief { stroke: #2c62b8; }
.netz__halt { fill: var(--nacht); stroke: #fff; stroke-width: 3.5; }
.netz__knoten { fill: #fff; stroke: var(--nacht); stroke-width: 7; }
.netz__kern { fill: #fff; }
.netz__schein { fill: #fff; opacity: .24; }
.netz__bus--gelb .netz__schein { fill: var(--gelb); opacity: .4; }
.netz__bus--blau .netz__schein, .netz__bus--tief .netz__schein { fill: #7db4ff; opacity: .4; }
.netz__schild {
  position: absolute; display: flex; flex-direction: column; align-items: center;
  transform-origin: 50% 100%;
  transform: translate(-50%, -100%) rotateZ(calc(-1 * var(--rz))) rotateX(calc(-1 * var(--rx)));
}
.netz__tafel { display: inline-flex; align-items: center; gap: 10px; padding: 8px 18px 8px 14px; border-radius: 999px; background: #fff; color: var(--nacht); font-family: var(--f-titel); font-weight: 700; font-size: 1.1875rem; white-space: nowrap; box-shadow: 0 18px 34px -12px rgba(0, 0, 0, .7); }
/* Bildmarke aus dem Logo: steht auf hellen Flächen frei, auf dunklen in einer weißen Kachel */
.zeichen { flex: none; width: auto; height: 24px; }
.netz__tafel .zeichen { height: 32px; }
.netz__mast { width: 3px; height: 78px; background: linear-gradient(#fff, rgba(255, 255, 255, .3)); }

.hero__innen { position: relative; padding-top: clamp(36px, 6vw, 84px); padding-bottom: clamp(28px, 4vw, 44px); }
.hero__dach { display: inline-flex; align-items: center; gap: 12px; font-family: var(--f-titel); font-weight: 600; font-size: .9375rem; letter-spacing: .08em; text-transform: uppercase; color: #c9d6e8; }
.hero__dach::before { content: ""; flex: none; width: 28px; height: 3px; border-radius: 2px; background: var(--gelb); }
.hero h1 { margin-top: 18px; max-width: 9.5em; font-family: var(--f-titel); font-weight: 700; font-size: clamp(2.75rem, 7.4vw, 5.75rem); line-height: .98; letter-spacing: -.04em; text-wrap: balance; }
.hero__text { margin-top: 20px; max-width: 31em; font-size: clamp(1.0625rem, 1.5vw, 1.3125rem); line-height: 1.5; color: #c9d6e8; }
/* Schmalere Fenster: das Netz steiler stellen, damit die drei Schilder rechts neben der Suche Platz haben */
@media (min-width: 900px) and (max-width: 1239px) { .hero { --rz0: -40deg; --rz1: 16deg; --netz-x: calc(50% + 292px); --blick-x: calc(50% + 344px); } }
@media (min-width: 900px) and (max-width: 1023px) { .hero { --rz0: -45deg; --rz1: 8deg; --netz-x: 784px; --blick-x: 836px; } }
/* Niedrige Fenster (Laptop): enger setzen, damit der Knopf der Suche ohne Scrollen erreichbar ist */
@media (min-width: 900px) and (max-height: 800px) {
  .hero { --netz-y: 487px; --blick-y: 165px; }
  .hero__innen { padding-top: 36px; }
  .hero h1 { margin-top: 12px; font-size: clamp(2.75rem, 5.4vw, 4.25rem); }
  .hero__text { margin-top: 14px; }
  .hero .suche { margin-top: 24px; }
}

/* Verbindungssuche */
.suche { display: grid; gap: 10px; max-width: 640px; margin-top: clamp(26px, 4vw, 40px); padding: 12px; border-radius: 26px; background: #fff; color: var(--text); box-shadow: 0 44px 80px -30px rgba(0, 0, 0, .65); scroll-margin-top: 120px; }
.suche__orte { position: relative; border-radius: 18px; background: var(--nebel); }
.feld { position: relative; display: grid; grid-template-columns: 52px 1fr; align-items: center; min-height: 66px; padding-right: 66px; border-radius: 18px; }
.feld + .feld { border-top: 1px solid var(--rand); border-radius: 0 0 18px 18px; }
.feld::before { content: ""; grid-row: 1 / span 2; justify-self: center; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 4px var(--blau); }
.feld--nach::before { background: var(--gelb); box-shadow: inset 0 0 0 4px var(--nacht); }
.feld--von::after { content: ""; position: absolute; left: 25px; top: calc(50% + 13px); width: 2px; height: calc(100% - 26px); background-image: linear-gradient(var(--blau) 50%, rgba(49, 106, 173, 0) 0); background-size: 2px 7px; }
.feld label { grid-column: 2; align-self: end; padding-top: 12px; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; line-height: 1; color: var(--text-2); }
.feld input { grid-column: 2; align-self: start; width: 100%; min-width: 0; padding: 5px 0 12px; border: 0; outline: none; background: none; font-size: 1.125rem; font-weight: 600; }
.feld input::placeholder { color: #8893a2; font-weight: 500; opacity: 1; }
.feld:focus-within { box-shadow: inset 0 0 0 2px var(--blau); }
.suche__tausch { position: absolute; right: 12px; top: 50%; width: 44px; height: 44px; margin-top: -22px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--blau-tief); box-shadow: var(--schatten); transition: transform .3s var(--weich); }
.suche__tausch.ist-gedreht { transform: rotate(180deg); }
.suche__tausch:active { transform: scale(.9); }
.suche__zeit { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wahl { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; padding: 4px; border-radius: 14px; background: var(--nebel); }
.wahl label { position: relative; display: grid; place-items: center; min-height: 40px; border-radius: 10px; font-weight: 600; font-size: .9375rem; cursor: pointer; }
.wahl input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.wahl label:has(input:checked) { background: #fff; box-shadow: 0 1px 3px rgba(10, 25, 48, .16); }
.wahl label:has(input:focus-visible) { outline: 3px solid var(--blau-hell); outline-offset: 2px; }
.zeitfeld { display: block; border-radius: 14px; background: var(--nebel); }
.zeitfeld input { width: 100%; min-height: 48px; padding: 0 14px; border: 0; border-radius: 14px; background: none; font-weight: 600; font-size: 1rem; }
.suche__los { --puls: 1.016; grid-column: 1 / -1; min-height: 58px; font-size: 1.125rem; }
.suche__hinweis { padding: 0 8px 4px; font-size: .8125rem; color: var(--text-2); }
@media (min-width: 600px) {
  .suche__zeit { grid-template-columns: 1.25fr 1fr .8fr; }
  .wahl { grid-column: auto; }
}

/* Schnellzugriff */
.schnell { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: calc(var(--ueberhang) * -1); }
.schnell a { display: grid; grid-template-columns: auto 1fr auto; grid-template-rows: auto auto; align-items: center; column-gap: 14px; height: 100%; padding: 16px; border-radius: 20px; background: #fff; color: var(--text); box-shadow: var(--schatten-hoch); transition: transform .25s var(--weich); }
.schnell__i { grid-row: 1 / span 2; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--eis); color: var(--blau-tief); }
.schnell__i--rot { background: #fdecec; color: var(--rot); }
.schnell__i .i { width: 24px; height: 24px; }
.schnell__t { align-self: end; font-family: var(--f-titel); font-weight: 700; font-size: 1.0938rem; line-height: 1.2; }
.schnell__u { grid-column: 2; align-self: start; font-size: .8125rem; line-height: 1.3; color: var(--text-2); }
.schnell a > .i { grid-row: 1 / span 2; grid-column: 3; color: var(--blau); transition: transform .2s var(--weich); }
.schnell a:active { transform: scale(.98); }
@media (max-width: 559px) {
  .schnell a { grid-template-columns: 1fr; row-gap: 4px; padding: 14px; align-content: start; }
  .schnell__i { grid-row: auto; width: 40px; height: 40px; margin-bottom: 6px; }
  .schnell__u { grid-column: 1; }
  .schnell a > .i { display: none; }
}
@media (min-width: 980px) { .schnell { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
@media (hover: hover) and (pointer: fine) {
  .schnell a:hover { transform: translateY(-5px); }
  .schnell a:hover > .i { transform: translateX(4px); }
}

/* Abschnitte */
.abschnitt { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.abschnitt--erster { padding-top: calc(clamp(72px, 9vw, 128px) + var(--ueberhang)); }
.abschnitt--nebel { background: var(--nebel); }
.abschnitt--nacht { background: var(--nacht); color: #fff; }
.abschnitt:has(> .laufband) { padding-bottom: 0; }
.halt { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-titel); font-weight: 600; font-size: .875rem; letter-spacing: .09em; text-transform: uppercase; color: var(--text-2); }
.halt--hell { color: #c9d6e8; }
.halt--hell .zeichen { box-sizing: content-box; padding: 5px 8px; border-radius: 9px; background: #fff; }
.titel { margin-top: 16px; max-width: 18em; font-family: var(--f-titel); font-weight: 700; font-size: clamp(2rem, 4.3vw, 3.375rem); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.vorspann { margin-top: 18px; max-width: 34em; font-size: clamp(1.0625rem, 1.4vw, 1.25rem); line-height: 1.55; color: var(--text-2); }
.abschnitt--nacht .vorspann { color: #c9d6e8; }
.kopfzeile { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; }
.stand { font-size: .875rem; font-weight: 600; color: var(--text-2); }
.weiter { margin-top: 22px; }
.kreispunkt { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--farbe); box-shadow: 0 0 0 1.5px rgba(10, 25, 48, .18); }
.kreispunkt--abi, .kreis--abi { --farbe: var(--blau); }
.kreispunkt--sk, .kreis--sk { --farbe: var(--gelb); }
.kreispunkt--wb, .kreis--wb { --farbe: var(--himmel); }

/* Meldungen */
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filter button { display: inline-flex; align-items: center; gap: 9px; min-height: 46px; padding: 0 16px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1.5px var(--rand); font-weight: 600; font-size: .9375rem; transition: transform .15s; }
.filter button[aria-pressed="true"] { background: var(--nacht); color: #fff; box-shadow: none; }
.filter button:active { transform: scale(.96); }
.filter__zahl { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 12px; background: var(--nebel); color: var(--text); font-size: .75rem; font-weight: 700; }
.meldungen { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 18px; margin-top: 22px; }
.meldung { position: relative; overflow: hidden; display: grid; grid-template-rows: auto auto auto 1fr auto; gap: 14px; padding: 22px 22px 18px 26px; border-radius: var(--rund); background: #fff; box-shadow: var(--schatten); }
.meldung::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--rot); }
.meldung--verlegung::before { background: var(--gelb); }
.meldung__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.meldung__zeit { font-size: .875rem; font-weight: 600; color: var(--text-2); }
.meldung h3 { font-family: var(--f-titel); font-weight: 700; font-size: 1.3125rem; line-height: 1.2; letter-spacing: -.012em; }
.meldung dl { align-self: start; display: grid; grid-template-columns: auto 1fr; gap: 8px 16px; padding-top: 14px; border-top: 1px solid var(--rand); font-size: .9375rem; line-height: 1.45; }
.meldung dt { padding-top: 2px; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.meldung__kreis { display: flex; align-items: center; gap: 8px; font-size: .8125rem; color: var(--text-2); }
.marke { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: .8125rem; font-weight: 700; white-space: nowrap; }
.marke .i { width: 15px; height: 15px; stroke-width: 2.4; }
.marke--sperrung { background: #fdecec; color: #a81214; }
.marke--verlegung { background: #fff3c4; color: #6a5200; }
.linien { display: flex; flex-wrap: wrap; gap: 6px; }
.linie { display: inline-grid; place-items: center; min-width: 48px; height: 30px; padding: 0 9px; border-radius: 8px; background: var(--nacht); color: #fff; font-family: var(--f-titel); font-weight: 700; font-size: .9375rem; font-variant-numeric: tabular-nums; }
.plan { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; padding: 12px 18px; border-radius: 14px; background: #e3f4ea; color: #0e5f37; font-weight: 600; }
.plan .i { width: 20px; height: 20px; stroke-width: 2.6; }

/* Landkreise und Fahrplansuche */
.kreise { display: grid; gap: 16px; margin-top: 36px; }
@media (min-width: 880px) { .kreise { grid-template-columns: repeat(3, 1fr); } }
.kreis { position: relative; overflow: hidden; display: grid; align-content: start; gap: 6px; padding: 28px 24px 16px; border-radius: var(--rund); background: #fff; box-shadow: inset 0 0 0 1.5px var(--rand); }
.kreis::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--farbe); }
.kreis__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 10px; }
.kreis h3 { font-family: var(--f-titel); font-weight: 700; font-size: 1.5rem; line-height: 1.15; letter-spacing: -.018em; }
.kreis__lage { padding: 4px 11px; border-radius: 999px; font-size: .8125rem; font-weight: 700; }
.kreis__lage:empty { display: none; }
.kreis__lage.ist-frei { background: #e3f4ea; color: #0e5f37; }
.kreis__lage.ist-voll { background: #fdecec; color: #a81214; }
.kreis__zahl { margin-bottom: 8px; font-size: .9375rem; color: var(--text-2); }
.kreis__zahl strong { margin-right: 4px; font-family: var(--f-titel); font-size: 2.75rem; line-height: 1; letter-spacing: -.035em; color: var(--text); }
.kreis__tel { justify-self: start; display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--f-titel); font-weight: 700; font-size: 1.3125rem; color: var(--blau-tief); transition: transform .2s var(--weich); }
.kreis__tel:active { transform: scale(.98); }
.kreis__zeit { min-height: 2.9em; font-size: .875rem; line-height: 1.45; color: var(--text-2); }
.kreis .verweis { justify-self: start; }

.finder { display: grid; gap: 16px; margin-top: 20px; padding: clamp(20px, 3.2vw, 38px); border-radius: 28px; background: var(--nacht); color: #fff; scroll-margin-top: 104px; }
.finder__kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.finder h3 { font-family: var(--f-titel); font-weight: 700; font-size: clamp(1.5rem, 2.5vw, 2.125rem); letter-spacing: -.02em; line-height: 1.1; }
.finder__kreise { display: flex; flex-wrap: wrap; gap: 6px; }
.finder__kreise button { min-height: 42px; padding: 0 15px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .2); font-weight: 600; font-size: .875rem; color: #c9d6e8; transition: transform .15s; }
.finder__kreise button[aria-pressed="true"] { background: var(--gelb); color: var(--nacht); box-shadow: none; }
.finder__kreise button:active { transform: scale(.96); }
.finder__feld { display: flex; align-items: center; gap: 12px; min-height: 62px; padding: 0 18px; border-radius: 18px; background: #fff; color: var(--text); }
.finder__feld .i { width: 22px; height: 22px; color: var(--blau); }
.finder__feld input { flex: 1; min-width: 0; min-height: 62px; border: 0; outline: none; background: none; font-size: 1.125rem; font-weight: 600; }
.finder__feld input::placeholder { color: #8893a2; font-weight: 500; opacity: 1; }
.finder__feld:focus-within { box-shadow: 0 0 0 3px var(--gelb); }
.finder__stand { font-size: .875rem; color: #9fb2cc; }
.finder__liste { display: grid; gap: 8px; }
@media (min-width: 900px) { .finder__liste { grid-template-columns: 1fr 1fr; } }
.finder__mehr { justify-self: start; color: #fff; }
.fahrplan { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; min-height: 62px; padding: 10px 16px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .07); transition: transform .2s var(--weich); }
.fahrplan .linie { min-width: 56px; height: 38px; background: var(--gelb); color: var(--nacht); font-size: 1.0625rem; }
.fahrplan__weg { font-size: .9375rem; line-height: 1.4; color: #e2eaf5; }
.fahrplan__weg span:not(:last-child)::after { content: "\00a0\2022  "; color: var(--blau-hell); font-weight: 700; }
.fahrplan__zusatz { display: inline-flex; align-items: center; gap: 10px; font-size: .75rem; font-weight: 700; letter-spacing: .04em; color: #9fb2cc; }
.fahrplan__kreis { display: none; align-items: center; gap: 7px; font-weight: 600; letter-spacing: 0; }
.fahrplan .marke { height: 24px; background: #ffdada; }
.fahrplan:active { transform: scale(.99); }
@media (min-width: 560px) { .fahrplan__kreis { display: inline-flex; } }
@media (max-width: 559px) {
  .fahrplan { gap: 0 14px; }
  .fahrplan .linie { grid-row: 1 / span 2; }
  .fahrplan__weg { grid-column: 2; grid-row: 1; }
  .fahrplan__zusatz { display: contents; }
  .fahrplan .marke { grid-column: 2; grid-row: 2; justify-self: start; margin-top: 6px; }
  .fahrplan__zusatz > span:last-child { grid-column: 3; grid-row: 1 / span 2; }
}
@media (max-width: 420px) { .filter button { padding: 0 12px; gap: 7px; } }
@media (hover: hover) and (pointer: fine) { .fahrplan:hover { transform: translateX(5px); background: rgba(255, 255, 255, .12); } }

.laufband { margin-top: clamp(48px, 6vw, 84px); padding-block: 14px; overflow-x: clip; border-block: 1px solid var(--rand); }
.laufband:has(.laufband__zug:empty) { display: none; }
.laufband__zug { display: flex; width: max-content; animation: laufband 110s linear infinite; }
.laufband__teil { display: inline-flex; align-items: center; gap: 10px; margin-right: 34px; white-space: nowrap; font-size: .9375rem; font-weight: 500; color: var(--text-2); }
.laufband__punkt { width: 5px; height: 5px; border-radius: 50%; background: var(--blau); }
@keyframes laufband { to { transform: translateX(-50%); } }

/* AnrufbusFlex */
.anruf { overflow-x: clip; background: radial-gradient(90% 120% at 100% 0%, #183a69 0%, var(--nacht) 62%); }
.anruf__raster { display: grid; align-items: center; gap: 44px; }
@media (min-width: 980px) { .anruf__raster { grid-template-columns: 1.05fr .95fr; gap: 72px; } }
.anruf__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; }
.anruf__telefon { display: grid; gap: 14px 24px; margin-top: 30px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); }
@media (min-width: 560px) { .anruf__telefon { grid-template-columns: 1fr 1fr; } }
.anruf__telefon span { display: block; font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #9fb2cc; }
.anruf__telefon a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; font-family: var(--f-titel); font-weight: 700; font-size: 1.3125rem; transition: transform .2s var(--weich); }
.anruf__telefon a:active { transform: scale(.98); }
.anruf__telefon .i { color: var(--gelb); }
.anruf__klein { margin-top: 16px; font-size: .9375rem; color: #9fb2cc; }
.anruf__klein a { padding-block: 12px; color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.fahrt { display: grid; gap: 30px; padding: clamp(20px, 3vw, 34px); border-radius: 28px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); }
.fahrt__strecke { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 16px; padding: 10px 0 30px; }
.fahrt__ort { position: relative; display: grid; width: 48px; white-space: nowrap; font-size: .8125rem; font-weight: 600; line-height: 1.25; text-align: center; color: #c9d6e8; }
.fahrt__ort .i { width: 48px; height: 48px; padding: 12px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; }
.fahrt__ort--ziel .i { background: var(--gelb); color: var(--nacht); }
.fahrt__ort > span { position: absolute; left: 0; top: 58px; }
.fahrt__ort--ziel > span { left: auto; right: 0; }
.fahrt__spur { position: relative; height: 4px; margin-top: 22px; border-radius: 2px; container-type: inline-size; background-image: linear-gradient(90deg, rgba(255, 255, 255, .5) 50%, rgba(255, 255, 255, 0) 0); background-size: 14px 4px; }
.fahrt__bus { position: absolute; left: 0; top: 50%; display: grid; place-items: center; width: 52px; height: 52px; margin-top: -26px; border-radius: 17px; background: #fff; color: var(--nacht); box-shadow: 0 14px 26px -8px rgba(0, 0, 0, .7); transform: translateX(calc(clamp(0, (var(--p, .5) - .2) / .42, 1) * (100cqw - 52px))); will-change: transform; }
.fahrt__bus .i { width: 26px; height: 26px; }
.fahrt__fakten { display: grid; gap: 10px; }
@media (min-width: 520px) { .fahrt__fakten { grid-template-columns: 1fr 1fr; } }
.fahrt__fakten div { padding: 16px 18px; border-radius: 16px; background: rgba(255, 255, 255, .06); }
.fahrt__fakten dt { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #9fb2cc; }
.fahrt__fakten dd { margin-top: 4px; font-family: var(--f-titel); font-weight: 600; font-size: 1.0625rem; line-height: 1.3; }

/* Tickets */
.tickets__raster { display: grid; align-items: center; gap: 56px; }
@media (min-width: 980px) { .tickets__raster { grid-template-columns: .85fr 1.15fr; gap: 72px; } }
/* Smartphone mit der mo.pla App: das Bild ist die Vorderseite, die Dicke kommt aus den Schichten dahinter.
   Gedreht wird nur über den Scrollstand. --q streckt --p auf den Weg, auf dem das Gerät im Bild steht,
   --w ist der Abstand zur Frontalansicht (0 bis .72). */
.telefon {
  --b: 208px;
  --q: clamp(0, (var(--p, .5) - .2) / .6, 1);
  --w: max(.72 - var(--q), var(--q) - .72);
  position: relative; width: var(--b); aspect-ratio: 1502 / 3084; margin-inline: auto;
  perspective: calc(var(--b) * 4.1); perspective-origin: 50% 46%;
}
@media (min-width: 600px) { .telefon { --b: 236px; } }
@media (min-width: 980px) { .telefon { --b: 272px; } }
.telefon__grund { position: absolute; left: 50%; top: 50%; width: 152%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 30% 24%, #fff 0%, var(--eis) 58%, #d6e8fa 100%); transform: translate(-50%, calc(-50% + (.5 - var(--q)) * 44px)); }
.telefon__schatten { position: absolute; inset: 9% -6% -5% 16%; border-radius: 20% / 10%; background: rgba(10, 25, 48, .3); filter: blur(22px); transform: translateX(calc((.5 - var(--q)) * 34px)) scaleX(calc(1 - var(--w) * .9)); }
.telefon__geraet { position: absolute; inset: 0; transform-style: preserve-3d; will-change: transform; transform: rotateX(calc(7deg + (.5 - var(--q)) * 10deg)) rotateY(calc(22deg + (.5 - var(--q)) * 100deg)) rotateZ(-2deg); }
.telefon .schicht, .telefon__licht { position: absolute; inset: 0; border-radius: 16.4% / 7.98%; }
.telefon .schicht { background: #8c98a7; transform: translateZ(calc(var(--z) * var(--b) * -.0055)); }
.telefon .schicht:nth-child(-n+2) { background: #5d6876; }
.telefon .schicht:nth-child(3) { background: #a9b4c3; }
.telefon .schicht:nth-child(n+4):nth-child(-n+6) { background: #7b8796; }
.telefon .schicht:nth-child(n+17):nth-child(-n+18) { background: #a9b4c3; }
.telefon .schicht:nth-child(n+19) { background: #c4cfdd; }
.telefon__bild { position: absolute; left: -.732%; top: 0; width: 101.664%; max-width: none; height: 100%; }
.telefon__licht { pointer-events: none; background: linear-gradient(105deg, rgba(10, 25, 48, 0) 30%, rgba(10, 25, 48, .6) 100%); opacity: calc(var(--w) * .5); }
.tickets__raster .knopf { margin-top: 28px; }

/* Karten mit Verweis */
.karten { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; margin-top: 36px; }
.karten--klein { grid-template-columns: 1fr; margin-top: 32px; }
@media (min-width: 640px) { .karten--klein { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .karten--drei { grid-template-columns: repeat(3, 1fr); } }
.karte { display: grid; align-content: start; gap: 4px; height: 100%; padding: 22px; border-radius: var(--rund); background: #fff; box-shadow: var(--schatten); transition: transform .25s var(--weich); }
.karte__i { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 12px; border-radius: 14px; background: var(--eis); color: var(--blau-tief); }
.karte__i .i { width: 24px; height: 24px; }
.karte__t { font-family: var(--f-titel); font-weight: 700; font-size: 1.125rem; line-height: 1.25; }
.karte__u { font-size: .9375rem; line-height: 1.4; color: var(--text-2); }
.karte:active { transform: scale(.98); }
@media (max-width: 559px) {
  .karten { gap: 10px; }
  .karte { grid-template-columns: auto 1fr; column-gap: 14px; align-items: center; padding: 16px; }
  .karte__i { grid-row: 1 / span 2; margin-bottom: 0; }
  .karte__t { align-self: end; }
  .karte__u { grid-column: 2; align-self: start; }
}
@media (hover: hover) and (pointer: fine) { .karte:hover { transform: translateY(-5px); } }

/* Reisebus */
.reise { overflow-x: clip; }
.reise__raster { display: grid; align-items: center; gap: 44px; }
@media (min-width: 980px) { .reise__raster { grid-template-columns: .9fr 1.1fr; gap: 56px; } }
.fahrzeuge { display: grid; gap: 10px; margin-top: 26px; }
@media (min-width: 520px) { .fahrzeuge { grid-template-columns: 1fr 1fr; } }
.fahrzeuge li { display: grid; gap: 2px; padding: 16px 18px; border-radius: 16px; background: var(--nebel); }
.fahrzeuge strong { font-family: var(--f-titel); font-size: 1.125rem; }
.fahrzeuge span { font-size: .9375rem; color: var(--text-2); }
.reise__knoepfe { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; margin-top: 28px; }
.reise__buehne { --weg: calc(1 - clamp(0, (var(--p, 1) - .1) / .4, 1)); position: relative; padding-top: 12%; border-radius: 28px; background: linear-gradient(180deg, var(--eis) 0%, #f5f9fe 70%, #d9e1ec 70%, #cfd8e4 100%); }
.reise__bus { position: relative; z-index: 1; width: 94%; margin-inline: auto; padding-bottom: 6%; transform: translateX(calc(var(--weg) * 85%)); will-change: transform; }
.reise__strasse { position: absolute; left: 5%; right: 5%; bottom: 13%; height: 3px; background-image: linear-gradient(90deg, #fff 55%, rgba(255, 255, 255, 0) 0); background-size: 46px 3px; }
.bus { width: 100%; height: auto; overflow: visible; }
.bus__schatten { fill: rgba(10, 25, 48, .16); }
.bus__dach { fill: #c3ccd8; }
.bus__koerper { fill: #fff; stroke: #c9d2de; stroke-width: 2; }
.bus__glas { fill: #14294a; }
.bus__steg { fill: none; stroke: #fff; stroke-width: 5; }
.bus__band { fill: var(--blau); }
.bus__faden { fill: none; stroke: var(--gelb); stroke-width: 6; }
.bus__tuer { fill: none; stroke: rgba(10, 25, 48, .28); stroke-width: 2.5; }
.bus__kasten { fill: #0a1930; }
.bus__rad { transform-box: fill-box; transform-origin: 50% 50%; transform: rotate(calc(var(--weg) * 2.63turn)); }
.bus__reifen { fill: #101a2a; }
.bus__felge { fill: #cfd8e3; }
.bus__speiche { fill: none; stroke: #7c8898; stroke-width: 4; stroke-linecap: round; }
.bus__nabe { fill: #5d6979; }
.bus__licht { fill: #ffe27a; }
.bus__rueck { fill: #e5484d; }
.bus__spiegel { fill: none; stroke: #2a3648; stroke-width: 4; stroke-linecap: round; }
.bus__spiegelglas { fill: #2a3648; }

/* Karriere */
.karriere { overflow: clip; color: #fff; background: linear-gradient(120deg, var(--blau-tief) 0%, #0a3d95 52%, #082b69 100%); }
.lenkrad { position: absolute; right: -110px; top: 50%; width: min(600px, 86vw); height: min(600px, 86vw); margin-top: calc(min(600px, 86vw) / -2); pointer-events: none; transform: rotate(calc((var(--p, .5) - .5) * 170deg)); will-change: transform; }
.lenkrad__kranz { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 34; }
.lenkrad__speiche { fill: none; stroke: rgba(255, 255, 255, .1); stroke-width: 30; stroke-linecap: round; }
.lenkrad__nabe { fill: rgba(255, 255, 255, .13); }
.karriere__raster { position: relative; display: grid; align-items: center; gap: 44px; }
@media (min-width: 900px) { .karriere__raster { grid-template-columns: 1.1fr .9fr; } }
.karriere .vorspann { color: #d7e3f8; }
.karriere__knoepfe { margin-top: 28px; }
.karriere__zahl { display: grid; gap: 8px; }
.karriere__zahl small { font-family: var(--f-titel); font-weight: 600; font-size: 1.125rem; letter-spacing: .09em; text-transform: uppercase; color: #d7e3f8; }
.karriere__zahl strong { font-family: var(--f-titel); font-weight: 700; font-size: clamp(4.75rem, 13vw, 9.5rem); line-height: .88; letter-spacing: -.055em; color: var(--gelb); font-variant-numeric: tabular-nums; }
.karriere__zahl > span { max-width: 21em; font-size: 1.125rem; line-height: 1.45; color: #d7e3f8; }

/* Zahlen */
.zahlen { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 40px; }
@media (min-width: 900px) { .zahlen { grid-template-columns: repeat(4, 1fr); } }
.zahlen div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 24px 22px; border-radius: var(--rund); background: var(--nebel); }
.zahlen dd { font-family: var(--f-titel); font-weight: 700; font-size: clamp(2.25rem, 5.2vw, 3.75rem); line-height: 1; letter-spacing: -.04em; color: var(--blau-tief); font-variant-numeric: tabular-nums; }
.zahlen dd small { font-size: .42em; letter-spacing: -.01em; margin-right: .15em; }
.zahlen dt { font-size: .9375rem; line-height: 1.35; color: var(--text-2); }

/* Fuß */
.fuss { padding: clamp(56px, 7vw, 88px) 0 28px; background: var(--nacht); color: #c9d6e8; font-size: .9688rem; }
.fuss__raster { display: grid; grid-template-columns: 1fr 1fr; gap: 36px 28px; }
.fuss__marke { grid-column: 1 / -1; }
.fuss__logo { display: inline-block; padding: 12px 16px; border-radius: 16px; background: #fff; }
.fuss__logo img { width: auto; height: 40px; }
.fuss__marke p { max-width: 20em; margin-top: 18px; }
.fuss__titel { margin-bottom: 8px; font-family: var(--f-titel); font-weight: 600; font-size: .875rem; letter-spacing: .09em; text-transform: uppercase; color: #fff; }
.fuss li a { display: inline-flex; align-items: center; min-height: 42px; }
.fuss__recht { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 28px; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .13); font-size: .875rem; }
.fuss__recht span { display: inline-flex; align-items: center; min-height: 42px; }
.fuss__recht ul { display: flex; flex-wrap: wrap; gap: 0 26px; }
@media (min-width: 900px) {
  .fuss__raster { grid-template-columns: 1.7fr 1fr 1fr 1fr; }
  .fuss__marke { grid-column: auto; }
}
@media (max-width: 899px) { .fuss { padding-bottom: 116px; } }
@media (hover: hover) and (pointer: fine) { .fuss a:hover { color: #fff; } }

/* Leiste unten, nur mobil */
.leiste { position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 55; display: grid; grid-template-columns: repeat(4, 1fr); gap: 2px; padding: 6px; border-radius: 22px; background: rgba(10, 25, 48, .95); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: 0 18px 40px -12px rgba(10, 25, 48, .6); color: #fff; transition: transform .5s var(--weich); }
.leiste a { display: grid; justify-items: center; align-content: center; gap: 3px; min-height: 54px; border-radius: 16px; font-size: .6875rem; font-weight: 600; transition: transform .15s; }
.leiste a:first-child { background: var(--gelb); color: var(--nacht); }
.leiste a:active { transform: scale(.94); }
.leiste .i { width: 22px; height: 22px; }
.js .leiste:not(.ist-da) { transform: translateY(160%); }
@media (min-width: 900px) { .leiste { display: none; } }

/* Hinweis */
.hinweis { position: fixed; left: 50%; bottom: calc(92px + env(safe-area-inset-bottom)); z-index: 90; width: min(560px, calc(100vw - 32px)); padding: 16px 20px; border-radius: 18px; background: var(--nacht); color: #fff; font-size: .9688rem; line-height: 1.45; box-shadow: var(--schatten-hoch); opacity: 0; transform: translate(-50%, 16px); transition: opacity .3s, transform .35s var(--weich); }
.hinweis.ist-da { opacity: 1; transform: translate(-50%, 0); }
@media (min-width: 900px) { .hinweis { bottom: 32px; } }

/* Abschnitte als Linie mit Haltestellen */
.schnur { position: fixed; left: 20px; top: 50%; z-index: 40; display: none; padding: 16px 11px; border-radius: 999px; background: rgba(255, 255, 255, .95); box-shadow: var(--schatten); transform: translateY(-50%); }
@media (min-width: 1400px) { .schnur { display: block; } }
.schnur__liste { position: relative; display: grid; gap: 20px; }
.schnur__spur { position: absolute; left: 50%; top: 23px; bottom: 23px; width: 3px; margin-left: -1.5px; overflow: hidden; border-radius: 3px; background: var(--rand); }
.schnur__fuellung { position: absolute; inset: 0; background: var(--blau-tief); transform: scaleY(var(--f, 0)); transform-origin: 50% 0; }
.schnur a { position: relative; display: block; width: 14px; height: 14px; border-radius: 50%; background: #fff; box-shadow: inset 0 0 0 3px #b9c4d3; transition: transform .25s var(--weich); }
.schnur a::before { content: ""; position: absolute; inset: -9px; }
.schnur a.ist-durch { box-shadow: inset 0 0 0 3px var(--blau-tief); }
.schnur a.ist-hier { background: var(--gelb); box-shadow: inset 0 0 0 3px var(--nacht); transform: scale(1.4); }
.schnur__name { position: absolute; left: 30px; top: 50%; padding: 5px 11px; border-radius: 9px; background: var(--nacht); color: #fff; font-size: .8125rem; font-weight: 600; white-space: nowrap; pointer-events: none; opacity: 0; transform: translate(-6px, -50%); transition: opacity .2s, transform .25s var(--weich); }
.schnur a.ist-hier .schnur__name { font-size: .5804rem; padding: 4px 8px; border-radius: 6px; }
.schnur a:focus-visible .schnur__name { opacity: 1; transform: translate(0, -50%); }
@media (hover: hover) and (pointer: fine) { .schnur a:hover .schnur__name { opacity: 1; transform: translate(0, -50%); } }
@media (min-width: 1700px) { .schnur a.ist-hier .schnur__name { opacity: 1; transform: translate(0, -50%); } }

/* Einblenden: der unsichtbare Start gilt erst, wenn das Skript läuft */
.js:not(.ruhig) [data-ein] { opacity: 0; transform: translateY(30px); }
.js:not(.ruhig) [data-ein].ist-da { opacity: 1; transform: none; transition: opacity .7s var(--weich) calc(var(--i, 0) * 80ms), transform .8s var(--weich) calc(var(--i, 0) * 80ms); }

/* Kleine Bildschirme: das Netz steht als Hintergrund oben rechts, ohne Schilder (die Landkreise nennt der Text) */
@media (max-width: 899px) {
  .hero { --netz-x: calc(100% - 56px); --netz-y: 182px; --blick-x: calc(100% - 42px); --blick-y: 30px; --rz0: -45deg; --rz1: 14deg; --netz-z: 0px; }
  .hero__buehne { perspective: 1000px; }
  .hero__buehne::after {
    background:
      linear-gradient(180deg, rgba(10, 25, 48, .45) 0%, rgba(10, 25, 48, 0) 36px, rgba(10, 25, 48, 0) 160px, rgba(10, 25, 48, .82) 212px, var(--nacht) 300px),
      linear-gradient(90deg, rgba(10, 25, 48, .94) 0%, rgba(10, 25, 48, .7) 42%, rgba(10, 25, 48, 0) 78%);
  }
  .netz { --netz-b: 640px; }
  .netz__schild { display: none; }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero { --netz-x: calc(100% - 100px); --netz-y: 236px; --blick-x: calc(100% - 80px); --blick-y: 56px; }
  .netz { --netz-b: 800px; }
}
@media (max-width: 1023px) {
  .netz__tafel { padding: 7px 14px 7px 11px; font-size: 1rem; }
  .netz__tafel .zeichen { height: 26px; }
  .netz__mast { height: 56px; }
}

/* Ruhige Fassung: Systemeinstellung oder ?bewegung=aus */
.ruhig *, .ruhig *::before, .ruhig *::after { animation: none !important; transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
