/* Fahrplan a "Hauptbahnhof": die ganze Seite als Bahnhofshalle.
   Schwarz, Gelb und Orange, der Hero ist eine riesige Fallblattanzeige. */
:root {
  --nacht: #0c0c0b;
  --tafel: #131312;
  --blech: #1c1c1a;
  --kante: #2f2f2b;
  --text: #f2f2ee;
  --grau: #b4b4ad;
  --gelb: #ffc933;
  --orange: var(--ec-orange);
  --hell: #ededea;
  --dunkel: #141413;
  --anthrazit: #585856;
  --rand: clamp(20px, 4.5vw, 64px);
  --max: 1320px;
  --kopf-hoehe: 72px;
}

html { scroll-padding-top: calc(var(--kopf-hoehe) + 12px); }
body { background: var(--nacht); color: var(--text); font-size: 18px; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.04; letter-spacing: -0.02em; margin: 0; text-wrap: balance; }
p { margin: 0; }
figure { margin: 0; }
img { width: 100%; }
a { text-underline-offset: 0.2em; }
.rahmen { width: 100%; max-width: calc(var(--max) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.sprung { position: absolute; left: 12px; top: -60px; z-index: 200; background: var(--gelb); color: var(--nacht); padding: 12px 16px; text-decoration: none; font-weight: 600; }
.sprung:focus { top: 12px; }
[hidden] { display: none !important; }

/* Knoepfe */
.knopf { display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 14px 28px; background: var(--orange); color: var(--nacht); font-weight: 600; font-size: 18px; line-height: 1.2; text-decoration: none; border: 2px solid var(--orange); border-radius: 3px; transition: background-color .15s, border-color .15s, color .15s; }
.knopf:hover { background: var(--gelb); border-color: var(--gelb); }
.knopf-linie { background: transparent; border-color: var(--text); color: var(--text); }
.knopf-linie:hover { background: var(--text); border-color: var(--text); color: var(--nacht); }
.knopf-klein { min-height: 46px; padding: 10px 18px; font-size: 17px; }
.knopf-gross { min-height: 64px; font-size: 20px; width: 100%; }
.textlink { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; color: inherit; text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: 0.3em; }
.textlink:hover { text-decoration-color: currentColor; }

/* Kopf */
.kopf { position: sticky; top: 0; z-index: 100; background: rgba(12,12,11,.96); border-bottom: 1px solid var(--kante); }
.kopf-innen { max-width: calc(var(--max) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); height: var(--kopf-hoehe); display: flex; align-items: center; gap: 28px; }
.kopf-logo { display: block; flex: none; }
.kopf-logo img { width: 150px; height: auto; }
.hauptnav { flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.hauptnav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; }
.hauptnav ul a { display: flex; align-items: center; min-height: 44px; padding: 0 12px; text-decoration: none; font-weight: 500; font-size: 17px; color: var(--text); }
.hauptnav ul a:hover { color: var(--gelb); }
.kopf-aktion { display: flex; align-items: center; gap: 20px; }
.kopf-telefon { font-weight: 600; text-decoration: none; white-space: nowrap; display: flex; align-items: center; min-height: 44px; font-variant-numeric: tabular-nums; }
.menue-knopf, .kopf-mobil-knopf { display: none; }
@media (max-width: 1240px) { .kopf-telefon { display: none; } }
@media (max-width: 1100px) {
  .kopf-innen { justify-content: space-between; gap: 12px; }
  .kopf-logo img { width: 128px; }
  .kopf-mobil-knopf { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; padding: 0 16px; background: var(--orange); color: var(--nacht); font-weight: 600; font-size: 16px; text-decoration: none; border-radius: 3px; white-space: nowrap; }
  .menue-knopf { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 12px; margin-right: -8px; background: none; border: 0; font: inherit; font-weight: 600; color: var(--text); cursor: pointer; }
  .menue-striche { position: relative; width: 22px; height: 2px; background: currentColor; }
  .menue-striche::before, .menue-striche::after { content: ""; position: absolute; left: 0; width: 22px; height: 2px; background: currentColor; transition: transform .2s; }
  .menue-striche::before { top: -7px; }
  .menue-striche::after { top: 7px; }
  .menue-knopf[aria-expanded="true"] .menue-striche { background: transparent; }
  .menue-knopf[aria-expanded="true"] .menue-striche::before { transform: translateY(7px) rotate(45deg); }
  .menue-knopf[aria-expanded="true"] .menue-striche::after { transform: translateY(-7px) rotate(-45deg); }
  .hauptnav { display: none; position: absolute; left: 0; right: 0; top: var(--kopf-hoehe); background: var(--nacht); border-bottom: 1px solid var(--kante); padding: 8px var(--rand) 24px; flex-direction: column; align-items: stretch; gap: 16px; max-height: calc(100vh - var(--kopf-hoehe)); overflow-y: auto; }
  .hauptnav.offen { display: flex; }
  .hauptnav ul { flex-direction: column; gap: 0; }
  .hauptnav ul a { min-height: 56px; padding: 0; font-size: 22px; border-bottom: 1px solid var(--kante); }
  .kopf-aktion { flex-direction: column; align-items: stretch; gap: 8px; }
  .kopf-telefon { display: flex; font-size: 20px; }
}
@media (max-width: 420px) {
  .kopf-innen { gap: 8px; }
  .kopf-logo img { width: 112px; }
  .kopf-mobil-knopf { padding: 0 12px; font-size: 15px; }
  .menue-knopf { padding: 0 6px; gap: 8px; }
}

/* ---------- Hero: die Halle mit der grossen Anzeige ---------- */
.halle { position: relative; background: radial-gradient(120% 80% at 50% 0%, #1d1d1a 0%, var(--nacht) 62%); padding: clamp(16px, 2.6vw, 36px) 0 clamp(28px, 4vw, 56px); min-height: calc(100svh - var(--kopf-hoehe)); display: flex; align-items: center; }
.halle-innen { width: 100%; max-width: calc(var(--max) + 2 * var(--rand)); margin-inline: auto; padding-inline: var(--rand); }
.tafel { position: relative; background: linear-gradient(180deg, #171716, #101010); border: 1px solid #3a3a35; border-radius: 6px; box-shadow: 0 0 0 6px #1e1e1c, 0 0 0 7px #2c2c28, 0 40px 80px -40px rgba(0,0,0,.9); padding: clamp(18px, 2.6vw, 36px) clamp(16px, 2.8vw, 40px) 0; overflow: hidden; }
.tafel-kopf { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; padding-bottom: clamp(16px, 2vw, 24px); border-bottom: 1px solid var(--kante); }
.tafel h1 { font-size: clamp(2.6rem, 5.2vw, 5rem); line-height: .98; letter-spacing: -0.035em; color: #fff; }
.tafel-lead { margin-top: 14px; font-size: clamp(1.1rem, 1.45vw, 1.35rem); line-height: 1.45; color: var(--grau); max-width: 40em; }
.tafel-uhr { display: flex; flex-direction: column; align-items: center; gap: 10px; padding-top: 4px; }
.tafel-uhr .uhr { width: clamp(84px, 8vw, 120px); height: auto; filter: drop-shadow(0 6px 14px rgba(0,0,0,.6)); }
.tafel-zeit { display: flex; flex-direction: column; align-items: center; line-height: 1.2; }
.tafel-zeit-label { font-size: 14px; color: var(--grau); }
.tafel-zeit strong { font-size: 20px; color: var(--gelb); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Die Anzeige */
.anzeige { container-type: inline-size; padding: clamp(18px, 2.2vw, 28px) 0 clamp(16px, 2vw, 22px); }
.feld-name { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 500; color: var(--grau); }
.feld-ziel { margin-bottom: clamp(16px, 2vw, 24px); }
.flaps { --fb-b: 40px; --fb-h: 58px; min-height: var(--fb-h); }
.flaps-ziel { --fb-b: min(64px, calc((100cqi - 18 * 4px) / 19)); --fb-h: calc(var(--fb-b) * 1.42); }
.feld-reihe { display: flex; flex-wrap: wrap; gap: clamp(16px, 2.4vw, 40px); align-items: end; }
.feld-reihe .flaps { --fb-b: min(46px, calc((100cqi - 2 * clamp(16px, 2.4vw, 40px) - 17 * 4px) / 20)); --fb-h: calc(var(--fb-b) * 1.42); }
.anzeige-folge { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--kante); font-size: 17px; color: var(--grau); }
.folge-label { color: var(--gelb); font-weight: 600; }
.folge-text { color: var(--text); transition: opacity .4s; }
.folge-text.weg { opacity: 0; }

/* statischer Zustand ohne JS */
.flaps .statisch { height: var(--fb-h); line-height: var(--fb-h) !important; white-space: nowrap; overflow: hidden; max-width: 100%; }
.statisch { display: inline-block; font-size: clamp(2rem, 5vw, 4rem); font-weight: 600; color: var(--gelb); line-height: 1.1; text-transform: uppercase; letter-spacing: .04em; }
.flaps-abfahrt .statisch { font-size: clamp(1.4rem, 2.4vw, 2rem); text-transform: none; letter-spacing: 0; }
.fb-an .statisch { display: none; }

/* Fallblatt */
.fb-feld { display: inline-flex; gap: 4px; }
.flaps:not(.flaps-zweizeilig) { display: flex; }
.flaps-zweizeilig { display: flex; flex-direction: column; gap: 6px; }
.fb-z { position: relative; flex: none; width: var(--fb-b); height: var(--fb-h); perspective: calc(var(--fb-h) * 6); color: #fdf6dc; font-weight: 600; font-variant-numeric: tabular-nums; }
.fb-z > span { position: absolute; left: 0; right: 0; height: 50%; overflow: hidden; backface-visibility: hidden; }
.fb-o, .fb-ko { top: 0; border-radius: 4px 4px 0 0; transform-origin: 50% 100%; background: linear-gradient(#2d2d2a, #232321); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.fb-u, .fb-ku { bottom: 0; border-radius: 0 0 4px 4px; transform-origin: 50% 0; background: linear-gradient(#1e1e1c, #282826); }
.fb-ko, .fb-ku { z-index: 2; }
.fb-z > span > span { display: block; height: var(--fb-h); line-height: var(--fb-h); text-align: center; font-size: calc(var(--fb-h) * .68); }
.fb-u > span, .fb-ku > span { margin-top: calc(var(--fb-h) / -2); }
.fb-z::after { content: ""; position: absolute; z-index: 3; left: 0; right: 0; top: 50%; height: 2px; margin-top: -1px; background: #050505; }
.fb-z::before { content: ""; position: absolute; z-index: 4; top: 50%; width: 3px; height: 8px; margin-top: -4px; left: -1px; background: #3a3a35; border-radius: 1px; }
.flaps-abfahrt .fb-z, .flaps-gleis .fb-z { color: var(--gelb); }
.flaps-ziel .fb-z { color: #fff; }
.ni-flaps .fb-z { color: var(--gelb); }

/* Lauftext */
.lauftext { margin-inline: calc(-1 * clamp(16px, 2.8vw, 40px)); background: var(--gelb); color: var(--nacht); overflow: hidden; white-space: nowrap; font-weight: 600; font-size: 17px; }
.lauftext-band { display: inline-flex; align-items: center; gap: 22px; padding: 12px 0; animation: laufen 48s linear infinite; }
.lauftext-band i { display: inline-block; width: 9px; height: 9px; background: var(--nacht); transform: rotate(45deg); }
@keyframes laufen { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.tafel-fuss { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding: clamp(18px, 2.2vw, 26px) 0 clamp(18px, 2.4vw, 30px); }
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-hinweis { font-size: 17px; color: var(--grau); }

@media (max-width: 1099px) { .halle { min-height: 0; padding-block: 24px 40px; } }
@media (max-width: 959px) {
  .flaps-ziel { --fb-b: min(52px, calc((100cqi - 11 * 4px) / 12)); --fb-h: calc(var(--fb-b) * 1.42); min-height: calc(2 * var(--fb-h) + 6px); }
}
@media (max-width: 699px) {
  .halle { min-height: 0; padding: 12px 0 28px; }
  .halle-innen { padding-inline: 10px; }
  .tafel { padding: 18px 14px 0; box-shadow: 0 0 0 4px #1e1e1c, 0 0 0 5px #2c2c28; }
  .tafel-kopf { grid-template-columns: 1fr; gap: 16px; }
  .tafel h1 { font-size: clamp(2.3rem, 10.6vw, 3.2rem); }
  .tafel-lead { font-size: 17px; margin-top: 10px; }
  .tafel-uhr { flex-direction: row; justify-content: flex-start; gap: 14px; padding-top: 0; }
  .tafel-uhr .uhr { width: 52px; }
  .tafel-zeit { flex-direction: row; gap: 8px; align-items: baseline; }
  .tafel-zeit-label { font-size: 16px; }
  .tafel-zeit strong { font-size: 18px; }
  .anzeige-folge { display: none; }
  .flaps-ziel { --fb-b: min(44px, calc((100cqi - 11 * 4px) / 12)); --fb-h: calc(var(--fb-b) * 1.42); min-height: calc(2 * var(--fb-h) + 6px); }
  .flaps-abfahrt .statisch { font-size: 18px; }
  .feld-reihe { gap: 14px 16px; }
  .feld-abfahrt { flex: 1 0 100%; }
  .feld-reihe .flaps { --fb-b: min(40px, calc((100cqi - 16px - 9 * 4px) / 10)); --fb-h: calc(var(--fb-b) * 1.42); }
  .lauftext { margin-inline: -14px; font-size: 16px; }
  .tafel-fuss { padding: 16px 0 18px; }
  .hero-knoepfe { flex-direction: column; width: 100%; }
  .hero-knoepfe .knopf { width: 100%; }
  .hero-hinweis { font-size: 16px; }
  .anzeige-folge { font-size: 16px; }
}

/* ---------- Kennzahlen als gelbes Band ---------- */
.kennzahlen { background: var(--gelb); color: var(--nacht); }
.kennzahlen ul { list-style: none; margin: 0 auto; display: grid; grid-template-columns: repeat(4, 1fr); }
.kennzahlen li { padding: 30px 24px 32px; border-left: 2px solid rgba(12,12,11,.18); display: flex; flex-direction: column; gap: 8px; }
.kennzahlen li:first-child { border-left: 0; padding-left: 0; }
.kennzahlen strong { font-size: clamp(2rem, 3.4vw, 3.1rem); font-weight: 700; line-height: 1; letter-spacing: -0.03em; }
.kennzahlen li > span { font-size: 17px; line-height: 1.4; color: #2a2a27; max-width: 18em; hyphens: auto; -webkit-hyphens: auto; }
.zahl { display: inline-block; text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 959px) {
  .kennzahlen ul { grid-template-columns: 1fr 1fr; }
  .kennzahlen li { padding: 22px 0 24px 16px; border-bottom: 2px solid rgba(12,12,11,.18); }
  .kennzahlen li:nth-child(odd) { border-left: 0; padding-left: 0; }
  .kennzahlen li:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Abschnitte ---------- */
.abschnitt { padding-block: clamp(72px, 9vw, 128px); }
.hell { background: var(--hell); color: var(--dunkel); }
.kopfzeile { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; margin-bottom: clamp(36px, 4.4vw, 64px); }
.kopfzeile h2 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); color: inherit; }
.kopfzeile p { font-size: 19px; line-height: 1.5; color: var(--grau); max-width: 30em; }
.hell .kopfzeile p { color: #4f4f4c; }
@media (max-width: 959px) { .kopfzeile { grid-template-columns: 1fr; gap: 14px; } .kopfzeile h2 { font-size: clamp(2.1rem, 9.6vw, 3.1rem); } .kopfzeile p { font-size: 18px; } }

/* Alle Abfahrten */
.abfahrten { background: var(--nacht); }
.filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.filter button { min-height: 44px; padding: 8px 18px; font: inherit; font-weight: 600; font-size: 17px; color: var(--text); background: var(--blech); border: 1px solid var(--kante); border-radius: 3px; cursor: pointer; }
.filter button:hover { border-color: var(--grau); }
@media (max-width: 520px) { .filter { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; } .filter button { padding: 6px 4px; font-size: 16px; } }
.filter button[aria-pressed="true"] { background: var(--gelb); border-color: var(--gelb); color: var(--nacht); }
.grosstafel { background: var(--tafel); border: 1px solid #34342f; border-radius: 6px; padding: 6px clamp(16px, 3vw, 40px) 10px; box-shadow: 0 0 0 5px #1a1a18; }
.grosstafel-spalten, .grosstafel .ks-zeile { display: grid; grid-template-columns: minmax(210px, 3fr) minmax(0, 7fr) minmax(150px, 2fr); gap: 24px; align-items: center; }
.grosstafel-spalten { padding: 16px 0 12px; border-bottom: 2px solid var(--gelb); color: var(--grau); font-size: 16px; font-weight: 500; }
.grosstafel-spalten span:last-child { justify-self: end; }
.grosstafel .ks-liste { list-style: none; margin: 0; padding: 0; perspective: 1000px; }
.grosstafel .ks-zeile { grid-template-areas: "datum kurse ort"; padding: 18px 0; border-bottom: 1px solid #2a2a27; transform-origin: 50% 0; }
.grosstafel .ks-zeile:last-child { border-bottom: 0; }
.ks-datum { grid-area: datum; display: flex; align-items: baseline; gap: 10px; font-variant-numeric: tabular-nums; color: var(--gelb); }
.ks-tag { font-size: 46px; font-weight: 700; line-height: 1; min-width: 1.25em; }
.ks-monat { font-size: 22px; font-weight: 600; }
.ks-jahr { font-size: 22px; color: var(--grau); }
.ks-kurse { grid-area: kurse; font-size: 21px; line-height: 1.35; color: var(--text); }
.ks-ort { grid-area: ort; justify-self: end; display: inline-flex; align-items: center; justify-content: center; min-width: 140px; min-height: 48px; padding: 6px 16px; background: #fff; color: var(--nacht); font-size: 19px; font-weight: 700; border-radius: 3px; }
.grosstafel .ks-zeile:first-child .ks-ort { background: var(--orange); }
.grosstafel .ks-zeile.aus { display: none; }
.tafel-wartet .ks-zeile { opacity: 0; transform: rotateX(-88deg); }
.tafel-laeuft .ks-zeile { animation: klappen .55s cubic-bezier(.2,.7,.2,1) both; animation-delay: calc(var(--i, 0) * 90ms); }
@keyframes klappen { from { opacity: 0; transform: rotateX(-88deg); } 60% { opacity: 1; } to { opacity: 1; transform: rotateX(0); } }
.abfahrten-fuss { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 40px; margin-top: 32px; }
.abfahrten-fuss p { font-size: 19px; color: var(--grau); max-width: 44em; }
@media (min-width: 700px) and (max-width: 959px) {
  .grosstafel-spalten, .grosstafel .ks-zeile { grid-template-columns: 150px minmax(0, 1fr) 124px; gap: 18px; }
  .ks-tag { font-size: 38px; } .ks-monat, .ks-jahr { font-size: 19px; } .ks-kurse { font-size: 19px; }
  .ks-ort { min-width: 118px; font-size: 17px; }
}
@media (max-width: 699px) {
  .grosstafel { padding: 4px 14px 8px; margin-inline: calc(-1 * var(--rand) + 6px); }
  .grosstafel-spalten, .grosstafel .ks-zeile { grid-template-columns: 74px minmax(0, 1fr); gap: 6px 14px; }
  .grosstafel-spalten span:nth-child(3) { display: none; }
  .grosstafel-spalten span:nth-child(2)::after { content: " und Standort"; }
  .grosstafel .ks-zeile { grid-template-areas: "datum kurse" "datum ort"; align-items: start; padding: 16px 0; }
  .ks-datum { flex-direction: column; gap: 2px; align-items: flex-start; }
  .ks-tag { font-size: 38px; } .ks-monat, .ks-jahr { font-size: 17px; line-height: 1.2; }
  .ks-kurse { font-size: 18px; }
  .ks-ort { justify-self: start; min-width: 0; min-height: 36px; font-size: 17px; padding: 4px 12px; margin-top: 4px; }
  .abfahrten-fuss { flex-direction: column; align-items: stretch; }
  .abfahrten-fuss .knopf { width: 100%; }
}

/* Weiterbildungen als Zugkarten */
.zuege { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(16px, 2vw, 28px); align-items: stretch; }
.zug-spalte { display: grid; grid-template-rows: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.zug-karte { background: #fff; border-top: 6px solid var(--nacht); padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; gap: 18px; box-shadow: 0 1px 0 #d6d6d1; }
.zug-haupt { border-top-color: var(--orange); background: var(--nacht); color: var(--text); padding-bottom: 0; }
.zug-kopf h3 { font-size: clamp(1.45rem, 2vw, 1.85rem); }
.zug-haupt .zug-kopf h3 { font-size: clamp(2rem, 3.4vw, 3rem); }
.zug-kopf p { margin-top: 8px; font-size: 17px; line-height: 1.45; color: #4f4f4c; }
.zug-haupt .zug-kopf p { color: var(--gelb); font-size: 19px; font-weight: 500; }
.zug-fakten { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 0; padding-top: 14px; border-top: 1px solid #d6d6d1; margin-top: auto; }
.zug-haupt .zug-fakten { border-top-color: var(--kante); margin-top: 0; }
.zug-fakten dt { font-size: 15px; color: #5b5b58; }
.zug-haupt .zug-fakten dt { color: var(--grau); }
.zug-fakten dd { margin: 2px 0 0; font-size: 18px; font-weight: 600; line-height: 1.3; }
.zug-haupt .zug-fakten dd { font-size: 21px; }
.zug-text { font-size: 18px; line-height: 1.55; color: #dcdcd6; max-width: 38em; }
.zug-abschluesse h4 { font-size: 16px; font-weight: 500; letter-spacing: 0; color: var(--grau); margin-bottom: 8px; }
.zug-abschluesse ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.zug-abschluesse li { position: relative; padding: 10px 0 10px 22px; border-bottom: 1px solid var(--kante); font-size: 17px; font-weight: 500; }
.zug-abschluesse li::before { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 10px; margin-top: -5px; border-radius: 50%; background: var(--orange); }
.zug-bild { margin: auto calc(-1 * clamp(20px, 2.4vw, 32px)) 0; position: relative; min-height: 220px; flex: 1 1 220px; }
.zug-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 959px) {
  .zuege { grid-template-columns: 1fr; }
  .zug-spalte { grid-template-rows: none; }
  .zug-bild { flex: none; min-height: 0; }
  .zug-bild img { position: static; aspect-ratio: 16 / 10; height: auto; }
}
@media (max-width: 520px) {
  .zug-fakten { grid-template-columns: 1fr 1fr; }
  .zug-fakten > div:last-child { grid-column: 1 / -1; }
  .zug-abschluesse ul { grid-template-columns: 1fr; }
}

/* Foerderung und Fahrkarte */
.foerderung { background: var(--blech); }
.foerder-raster { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: stretch; }
.fahrkarte-buehne { display: flex; align-items: center; justify-content: center; padding: clamp(20px, 3vw, 44px); background: repeating-linear-gradient(135deg, #222220 0 14px, #1f1f1d 14px 28px); border: 1px solid var(--kante); border-radius: 6px; }
.fahrkarte { position: relative; width: 100%; max-width: 520px; background: #fbfaf6; color: var(--nacht); border-radius: 10px; padding: 26px 28px 28px; box-shadow: 0 24px 50px -24px rgba(0,0,0,.8); transform: rotate(-2deg); }
.fahrkarte::before, .fahrkarte::after { content: ""; position: absolute; top: 50%; width: 26px; height: 26px; margin-top: -13px; border-radius: 50%; background: #20201e; }
.fahrkarte::before { left: -13px; }
.fahrkarte::after { right: -13px; }
.fk-kopf { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 2px dashed #c9c9c2; }
.fk-kopf img { width: 120px; }
.fk-kopf span { font-size: 15px; font-weight: 600; color: #fff; background: var(--nacht); padding: 4px 12px; border-radius: 3px; }
.fk-felder { margin: 0; padding-top: 6px; }
.fk-felder > div { display: grid; grid-template-columns: 104px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid #e2e2dc; align-items: baseline; }
.fk-felder dt { font-size: 15px; color: #5b5b58; }
.fk-felder dd { margin: 0; font-size: 19px; font-weight: 600; line-height: 1.3; }
.fk-preis { border-bottom: 0 !important; }
.fk-preis dd { color: #8a5a00; }
.fk-loch { position: absolute; right: 22px; top: 22px; width: 0; height: 0; }
.fk-stempel { position: absolute; right: 22px; top: 78px; display: flex; flex-direction: column; align-items: center; padding: 10px 18px; border: 4px solid #c27c00; border-radius: 8px; color: #c27c00; transform: rotate(-12deg); line-height: 1.05; text-transform: uppercase; letter-spacing: .06em; background: rgba(251,250,246,.6); }
.fk-stempel span { font-size: 26px; font-weight: 800; }
.fk-stempel small { font-size: 12px; font-weight: 600; letter-spacing: .08em; }
.stempel-wartet .fk-stempel { opacity: 0; transform: rotate(-24deg) scale(2.2); }
.stempel-da .fk-stempel { animation: stempeln .5s cubic-bezier(.3,1.5,.5,1) both; }
@keyframes stempeln { from { opacity: 0; transform: rotate(-24deg) scale(2.2); } 60% { opacity: 1; } to { opacity: 1; transform: rotate(-12deg) scale(1); } }
.stempel-da .fahrkarte { animation: wackeln .35s ease .32s; }
@keyframes wackeln { 0%, 100% { transform: rotate(-2deg); } 40% { transform: rotate(-2deg) translateY(4px); } }
.foerder-text { display: flex; flex-direction: column; justify-content: center; }
.foerder-text h3 { font-size: clamp(1.6rem, 2.6vw, 2.3rem); color: #fff; margin-bottom: 20px; }
.foerder-wege { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--gelb); }
.foerder-wege li { padding: 16px 0 16px 34px; border-bottom: 1px solid var(--kante); font-size: 19px; color: var(--grau); position: relative; }
.foerder-wege li::before { content: ""; position: absolute; left: 2px; top: 24px; width: 18px; height: 10px; border-left: 3px solid var(--gelb); border-bottom: 3px solid var(--gelb); transform: rotate(-45deg); }
.foerder-wege strong { color: var(--text); font-weight: 600; }
.foerder-hinweis { margin-top: 18px; font-size: 18px; color: var(--grau); }
.sicher { margin-top: clamp(56px, 7vw, 100px); }
.sicher-titel { font-size: clamp(1.8rem, 3.2vw, 2.8rem); color: #fff; padding-bottom: 18px; border-bottom: 2px solid var(--gelb); }
.sicher-liste { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 5vw, 80px); }
.sicher-liste > div { padding: 22px 0; border-bottom: 1px solid var(--kante); }
.sicher-liste dt { font-size: 21px; font-weight: 600; color: #fff; }
.sicher-liste dd { margin: 6px 0 0; font-size: 18px; line-height: 1.5; color: var(--grau); max-width: 34em; }
.sicher-liste > div:first-child dt { color: var(--gelb); }
@media (max-width: 959px) {
  .foerder-raster, .sicher-liste { grid-template-columns: 1fr; }
  .fahrkarte { padding: 22px 18px 24px; }
  .fk-felder > div { grid-template-columns: 84px 1fr; }
  .fk-felder dd { font-size: 17px; }
  .fk-stempel { right: 8px; top: auto; bottom: -26px; padding: 8px 12px; }
  .fahrkarte-buehne { padding-bottom: 48px; }
  .fk-stempel span { font-size: 21px; }
}

/* Fahrtverlauf als Zuganzeige */
.fahrtverlauf { background: var(--nacht); }
.zugdisplay { background: #050505; border: 1px solid #2a2a27; border-radius: 10px; box-shadow: inset 0 0 0 6px #121211, 0 30px 60px -40px #000; padding: clamp(18px, 2.4vw, 32px); }
.zd-kopf { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding-bottom: 18px; border-bottom: 1px solid #262623; font-size: 18px; color: var(--grau); }
.zd-linie { display: inline-flex; align-items: center; justify-content: center; min-width: 52px; height: 36px; padding: 0 10px; background: var(--orange); color: var(--nacht); font-weight: 700; border-radius: 4px; }
.zd-richtung strong { color: #fff; font-weight: 600; }
.zd-naechster { margin-left: auto; }
.zd-naechster strong { color: var(--gelb); font-weight: 600; transition: opacity .3s; }
.halte { list-style: none; margin: 0; padding: 32px 0 6px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); position: relative; }
.halt { position: relative; padding: 46px 14px 0 0; }
.halt::before { content: ""; position: absolute; top: 13px; left: 0; right: 0; height: 6px; background: #3a3a36; }
.halt::after { content: ""; position: absolute; top: 13px; left: 0; height: 6px; width: 100%; background: var(--gelb); transform-origin: 0 50%; transform: scaleX(0); transition: transform .8s linear; }
.halt-kurs::after { background: var(--orange); }
.halt-ziel::before, .halt-ziel::after { display: none; }
.halt.fertig::after { transform: scaleX(1); }
.halt-punkt { position: absolute; top: 2px; left: 0; z-index: 1; width: 28px; height: 28px; border-radius: 50%; background: #050505; border: 5px solid #5a5a55; transition: border-color .3s, background-color .3s, transform .3s; }
.halt.erreicht .halt-punkt { border-color: var(--gelb); background: var(--gelb); }
.halt.jetzt .halt-punkt { transform: scale(1.25); box-shadow: 0 0 0 6px rgba(255,201,51,.25); }
.halt-ziel .halt-punkt { width: 40px; height: 40px; top: -4px; left: -6px; border-color: var(--orange); }
.halt-ziel.erreicht .halt-punkt { background: var(--orange); border-color: var(--orange); }
.halt h3 { font-size: 20px; line-height: 1.2; color: #fff; letter-spacing: -0.01em; }
.halt p { margin-top: 8px; font-size: 17px; line-height: 1.45; color: var(--grau); }
.halt-ziel h3 { color: var(--orange); font-size: 23px; }
.zd-fuss { display: none; }
@media (min-width: 1100px) {
  .zd-fuss { display: grid; grid-template-columns: 3fr 3fr 1fr; margin-top: 22px; padding-top: 14px; border-top: 1px solid #262623; font-size: 16px; color: var(--grau); }
  .zd-takt { display: none; }
  .zd-kurs { color: var(--orange); font-weight: 600; }
}
@media (max-width: 1099px) {
  .halte { grid-template-columns: 1fr; padding-top: 24px; }
  .halt { padding: 0 0 30px 54px; }
  .halt::before, .halt::after { top: 6px; bottom: -6px; left: 11px; right: auto; width: 6px; height: auto; transform-origin: 50% 0; transform: scaleY(0); }
  .halt::before { transform: none; }
  .halt.fertig::after { transform: scaleY(1); }
  .halt-punkt { top: 0; }
  .halt-ziel .halt-punkt { top: -6px; left: -6px; }
  .halt h3 { font-size: 21px; padding-top: 1px; }
  .zd-naechster { margin-left: 0; flex: 1 0 100%; }
}

/* Bildband */
.bildband img { width: 100%; height: clamp(260px, 42vw, 620px); object-fit: cover; object-position: 50% 55%; }

/* Fortbildungen und Auftrag */
.zwei-spalten { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 80px); align-items: stretch; }
.fb-block h3 { font-size: clamp(1.6rem, 2.4vw, 2.2rem); margin-bottom: 18px; }
.fb-liste { list-style: none; margin: 0; padding: 0; border-top: 3px solid var(--nacht); }
.fb-liste li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid #cfcfca; font-size: 20px; font-weight: 500; }
.fb-liste li::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--orange); transform: rotate(45deg); }
.fb-auftrag { display: flex; flex-direction: column; }
.fb-auftrag figure { position: relative; flex: 1 1 220px; min-height: 220px; margin-bottom: 26px; }
.fb-auftrag img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; }
.fb-auftrag p { font-size: 18px; line-height: 1.55; color: #4f4f4c; max-width: 32em; }
.fb-auftrag .textlink { margin-top: 10px; font-size: 20px; }
@media (max-width: 959px) { .zwei-spalten { grid-template-columns: 1fr; } .fb-auftrag figure { flex: none; min-height: 0; } .fb-auftrag img { position: static; aspect-ratio: 16 / 10; height: auto; } }

/* Raeume und Karriere */
.karriere { background: var(--blech); }
.zwei-karten { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(20px, 3vw, 44px); }
.karte { display: flex; flex-direction: column; background: var(--nacht); border: 1px solid var(--kante); border-radius: 6px; overflow: hidden; }
.karte img { aspect-ratio: 3 / 2; object-fit: cover; }
.karte-text { flex: 1; display: flex; flex-direction: column; padding: clamp(20px, 2.6vw, 34px); border-top: 4px solid var(--gelb); }
.karte h3 { font-size: clamp(1.5rem, 2.3vw, 2.1rem); color: #fff; }
.karte p { margin-top: 12px; font-size: 18px; line-height: 1.55; color: var(--grau); max-width: 32em; }
.karte .textlink { margin-top: auto; padding-top: 14px; color: #fff; }
@media (max-width: 699px) { .zwei-karten { grid-template-columns: 1fr; } }

/* FAQ */
.faq-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: stretch; }
.faq-kopf { display: flex; flex-direction: column; }
.faq-kopf h2 { font-size: clamp(2.3rem, 4.8vw, 4.4rem); }
.faq-kopf p { margin-top: 18px; max-width: 24em; font-size: 18px; color: #4f4f4c; }
.faq-kopf p a { color: var(--nacht); font-weight: 600; white-space: nowrap; }
.faq-bild { position: relative; flex: 1 1 200px; min-height: 200px; margin-top: 30px; }
.faq-bild img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.faq { border-top: 3px solid var(--nacht); }
.faq-eintrag { border-bottom: 1px solid #cfcfca; }
.faq-eintrag summary { list-style: none; cursor: pointer; display: grid; grid-template-columns: 1fr 32px; gap: 20px; align-items: center; min-height: 44px; padding: 24px 0; font-size: clamp(1.2rem, 1.7vw, 1.45rem); font-weight: 600; line-height: 1.3; }
.faq-eintrag summary::-webkit-details-marker { display: none; }
.faq-eintrag summary::after { content: ""; width: 32px; height: 32px; border-radius: 3px; background: linear-gradient(var(--nacht), var(--nacht)) center / 14px 2px no-repeat, linear-gradient(var(--nacht), var(--nacht)) center / 2px 14px no-repeat, var(--gelb); transition: transform .2s; }
.faq-eintrag[open] summary::after { transform: rotate(45deg); }
.faq-eintrag p { padding: 0 52px 26px 0; font-size: 18px; line-height: 1.6; color: #3f3f3c; max-width: 42em; }
@media (max-width: 959px) { .faq-raster { grid-template-columns: 1fr; } .faq-bild { display: none; } .faq-eintrag p { padding-right: 0; } }

/* Anmeldung */
.anmeldung { background: var(--nacht); }
.anmeldung-raster { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 5vw, 80px); align-items: stretch; }
.anmeldung-text { display: flex; flex-direction: column; }
.anmeldung-text h2 { font-size: clamp(2.5rem, 5.2vw, 4.8rem); color: #fff; }
.anmeldung-lead { margin-top: 22px; font-size: 19px; line-height: 1.55; color: var(--grau); max-width: 30em; }
.naechste-info { margin-top: 28px; padding: 18px 20px 20px; background: var(--tafel); border: 1px solid var(--kante); border-radius: 6px; container-type: inline-size; }
.ni-label { font-size: 15px; color: var(--grau); margin-bottom: 10px; }
.ni-flaps { --fb-b: min(30px, calc((100cqi - 15 * 4px) / 16)); --fb-h: calc(var(--fb-b) * 1.45); min-height: var(--fb-h); display: flex; }
.ni-flaps .statisch { font-size: 22px; letter-spacing: 0; text-transform: none; }
.anmeldung-telefon { margin-top: auto; padding-top: 26px; font-size: 18px; color: var(--grau); }
.anmeldung-telefon a { display: inline-flex; align-items: center; min-height: 44px; font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 600; color: #fff; text-decoration: none; font-variant-numeric: tabular-nums; }
.formular { background: #fff; color: var(--nacht); border-top: 6px solid var(--orange); border-radius: 4px; padding: clamp(24px, 4vw, 52px); }
.formular h3 { font-size: clamp(1.5rem, 2.2vw, 2rem); margin-bottom: 26px; }
.feld { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.feld-paar { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.feld label { font-size: 17px; font-weight: 500; }
.feld input, .feld select { width: 100%; min-height: 58px; padding: 12px 16px; font: inherit; font-size: 19px; color: var(--nacht); background: #fff; border: 1px solid #85857f; border-radius: 3px; appearance: none; }
.feld select { background-image: linear-gradient(45deg, transparent 50%, var(--nacht) 50%), linear-gradient(135deg, var(--nacht) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 44px; }
.feld input:focus, .feld select:focus { outline: 3px solid var(--orange); outline-offset: 0; border-color: var(--nacht); }
.feld [aria-invalid="true"] { border-color: #b3261e; border-width: 2px; }
.formular .knopf-gross { margin-top: 8px; cursor: pointer; font-family: inherit; }
.formular .knopf:hover { background: var(--nacht); border-color: var(--nacht); color: #fff; }
.formular-hinweis { margin-top: 16px; font-size: 16px; color: #55554f; line-height: 1.5; }
.formular-fehler { margin-bottom: 12px; color: #b3261e; font-weight: 500; }
.danke-titel { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 14px; }
.formular-danke p:not(.danke-titel) { font-size: 19px; color: #4f4f4c; }
@media (max-width: 959px) {
  .anmeldung-raster { grid-template-columns: 1fr; }
  .anmeldung-telefon { margin-top: 0; }
  .feld-paar { grid-template-columns: 1fr; }
  .formular { margin-inline: calc(-1 * var(--rand)); border-radius: 0; padding: 28px var(--rand) 32px; }
}

/* Standorte als Bahnhofsschilder */
.standorte { background: var(--blech); }
.so-raster { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(16px, 2vw, 28px); }
.so-karte { display: flex; flex-direction: column; background: var(--nacht); border: 1px solid var(--kante); border-radius: 6px; overflow: hidden; }
.so-name { margin: 0; padding: 22px 24px 20px; background: #fff; color: var(--nacht); font-size: clamp(2rem, 3.2vw, 2.9rem); font-weight: 700; border-bottom: 8px solid var(--gelb); }
.so-adresse { padding: 22px 24px 0; font-size: 19px; line-height: 1.5; }
.so-kontakt { padding: 12px 24px 0; font-size: 18px; line-height: 1.5; }
.so-kontakt a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; text-decoration-color: var(--orange); font-variant-numeric: tabular-nums; }
.so-zeiten { padding: 8px 24px 0; font-size: 17px; color: var(--grau); }
.so-start { margin: auto 24px 0; padding: 16px 0 22px; border-top: 1px solid var(--kante); margin-top: 20px; font-size: 18px; color: var(--grau); }
.so-start time { color: var(--gelb); font-weight: 600; font-variant-numeric: tabular-nums; }
@media (max-width: 959px) { .so-raster { grid-template-columns: 1fr; } }

/* Fuss */
.fuss { background: var(--nacht); color: var(--grau); border-top: 1px solid var(--kante); padding: 56px 0 140px; font-size: 17px; }
.fuss-raster { display: grid; grid-template-columns: 2fr 1.4fr 1fr 1fr; gap: 32px; }
.fuss-marke img { width: 190px; }
.fuss-marke p { margin-top: 14px; }
.fuss-titel { color: #fff; font-weight: 600; margin-bottom: 8px; }
.fuss ul { list-style: none; margin: 0; padding: 0; }
.fuss a { color: var(--text); display: inline-flex; align-items: center; min-height: 44px; }
.fuss-unten { margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--kante); font-size: 16px; }
@media (max-width: 959px) { .fuss-raster { grid-template-columns: 1fr 1fr; } .fuss-marke { grid-column: 1 / -1; } }

/* Bahnhofsuhr */
.uhr-sekunde { transform-box: view-box; transform-origin: 32px 32px; animation: sekunde 60s linear infinite; }
@keyframes sekunde { 0% { transform: rotate(0deg); } 97.5% { transform: rotate(360deg); } 100% { transform: rotate(360deg); } }

/* Gestaffelte Einblendungen */
.warten { opacity: 0; transform: translateY(20px); }
.da { transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); transition-delay: calc(var(--i, 0) * 90ms); }

@media (prefers-reduced-motion: reduce) {
  .lauftext-band { animation: none; }
  .warten, .tafel-wartet .ks-zeile { opacity: 1; transform: none; }
  .stempel-wartet .fk-stempel { opacity: 1; transform: rotate(-12deg); }
  .halt::after { transform: none !important; }
}

/* ---------- Navigation mit Untermenues und Fuss mit Seitenlinks (Startseite und Unterseiten) ---------- */
.nav-gruppe { position: relative; display: flex; align-items: center; }
.nav-auf { display: inline-flex; align-items: center; justify-content: center; width: 30px; min-height: 44px; margin-left: -8px; padding: 0; background: none; border: 0; color: var(--text); cursor: pointer; }
.nav-auf::before { content: ""; width: 7px; height: 7px; border: solid currentColor; border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.nav-auf[aria-expanded="true"]::before { transform: translateY(2px) rotate(-135deg); }
.nav-auf:hover { color: var(--gelb); }
.hauptnav .nav-unter { display: none; position: absolute; top: calc(100% + 14px); left: 0; z-index: 5; flex-direction: column; gap: 0; min-width: 300px; padding: 8px 0; background: var(--tafel); border: 1px solid var(--kante); border-top: 4px solid var(--gelb); border-radius: 0 0 6px 6px; box-shadow: 0 30px 60px -30px #000; }
.hauptnav .nav-unter::before { content: ""; position: absolute; left: 0; right: 0; top: -19px; height: 19px; }
.hauptnav .nav-unter-breit { min-width: 320px; }
.hauptnav .nav-unter a { min-height: 44px; padding: 0 20px; font-size: 17px; font-weight: 500; white-space: nowrap; }
.hauptnav .nav-unter li:first-child a { font-weight: 600; color: var(--gelb); }
.hauptnav .nav-unter a:hover { background: var(--blech); color: var(--gelb); }
.hauptnav a[aria-current="page"] { color: var(--gelb); }
.kopf-aktion .knopf[aria-current="page"] { background: var(--gelb); border-color: var(--gelb); color: var(--nacht); }
@media (min-width: 1101px) {
  .nav-gruppe:hover > .nav-unter, .nav-gruppe.auf > .nav-unter { display: flex; }
  .nav-gruppe:hover > .nav-auf::before { transform: translateY(2px) rotate(-135deg); }
}
@media (min-width: 1101px) and (max-width: 1260px) {
  .kopf-innen { gap: 18px; }
  .hauptnav ul a { padding: 0 9px; font-size: 16px; }
  .nav-auf { width: 24px; margin-left: -6px; }
}
@media (max-width: 1100px) {
  .nav-gruppe { display: grid; grid-template-columns: minmax(0, 1fr) 56px; align-items: stretch; }
  .nav-auf { width: 56px; min-height: 56px; margin: 0; border-bottom: 1px solid var(--kante); }
  .nav-auf::before { width: 9px; height: 9px; }
  .hauptnav .nav-unter { position: static; grid-column: 1 / -1; min-width: 0; padding: 4px 0 12px 16px; background: none; border: 0; border-bottom: 1px solid var(--kante); border-left: 4px solid var(--gelb); border-radius: 0; box-shadow: none; }
  .hauptnav .nav-unter::before { display: none; }
  .nav-gruppe.auf > .nav-unter { display: flex; }
  .hauptnav .nav-unter a { min-height: 48px; padding: 0; font-size: 18px; border-bottom: 0; white-space: normal; }
  .hauptnav .nav-unter a:hover { background: none; }
}
.fuss-raster-voll { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); }
.fuss-raster-voll .fuss-marke p { line-height: 1.6; }
.fuss-titel-folgen { margin-top: 20px; }
.fuss-unten-voll { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 32px; }
.fuss-recht { display: flex; flex-wrap: wrap; gap: 0 24px; }
@media (max-width: 959px) { .fuss-raster-voll { grid-template-columns: 1fr 1fr; } }
@media (max-width: 479px) { .fuss-raster-voll { gap: 28px 20px; } .fuss-raster-voll .fuss-spalte:last-child { grid-column: 1 / -1; } }

/* Links der Startseite auf die Unterseiten */
.zug-link { color: inherit; text-decoration: underline; text-decoration-color: transparent; text-decoration-thickness: 3px; text-underline-offset: .2em; transition: text-decoration-color .2s; }
.zug-link::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.zug-karte { position: relative; transition: transform .2s, box-shadow .2s; }
.zug-karte:hover { transform: translateY(-3px); box-shadow: 0 1px 0 #d6d6d1, 0 24px 40px -28px rgba(0,0,0,.45); }
.zug-karte:hover .zug-link, .zug-link:focus-visible { text-decoration-color: var(--orange); }
.zug-karte:focus-within { outline: 3px solid var(--orange); outline-offset: 3px; }
.zug-link:focus-visible { outline: none; }
.zug-mehr { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; color: inherit; }
.zug-mehr::after { content: ""; width: 9px; height: 9px; border: solid currentColor; border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s; }
.zug-karte:hover .zug-mehr::after { transform: translateX(4px) rotate(45deg); }
.zug-haupt .zug-mehr { color: var(--gelb); }
.zug-bild { z-index: 0; }
.abschnitt-link { margin-top: 28px; }
.fb-liste li { padding: 0; }
.fb-liste li::before { display: none; }
.fb-liste a { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 60px; padding: 8px 0; color: inherit; text-decoration: none; }
.fb-liste a::before { content: ""; flex: none; width: 12px; height: 12px; background: var(--orange); transform: rotate(45deg); }
.fb-liste a::after { content: ""; flex: none; width: 9px; height: 9px; margin-left: auto; border: solid var(--nacht); border-width: 2px 2px 0 0; transform: rotate(45deg); transition: transform .2s; }
.fb-liste a:hover { text-decoration: underline; text-decoration-color: var(--orange); text-decoration-thickness: 3px; text-underline-offset: .3em; }
.fb-liste a:hover::after { transform: translateX(4px) rotate(45deg); }
.fb-alle { margin-top: 16px; }
.textlinks { display: flex; flex-wrap: wrap; gap: 4px 28px; margin-top: 10px; }
.textlinks .textlink { font-size: 20px; }
.abfahrten-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 699px) { .abfahrten-knoepfe { flex-direction: column; } .abfahrten-knoepfe .knopf { width: 100%; } }
.so-links { list-style: none; margin: 36px 0 0; padding: 22px 0 0; border-top: 1px solid var(--kante); display: flex; flex-wrap: wrap; gap: 8px 32px; }
.so-links a { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; text-decoration: underline; text-decoration-color: var(--gelb); text-decoration-thickness: 3px; text-underline-offset: .3em; }
