/* „Preis-Gleis“: ruhiges warmes Grau, eine Akzentfarbe (Terrakotta) nur für den billigsten Preis.
   Erkennungszeichen ist das Gleis: eine Schiene, jeder Verkäufer eine Haltestelle, je teurer, desto weiter rechts. */
:root { --bg:#f4f2ee; --flaeche:#fbfaf7; --fg:#22211f; --muted:#77736b; --line:#e2ded6; --rule:#22211f;
  --akzent:#d4573b; --akzent-hell:#f6dfd7; --bar:#22211f; --barbg:#e2ded6;
  --schrift: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; }
@media (prefers-color-scheme: dark) { :root { --bg:#16171a; --flaeche:#1d1f23; --fg:#ece8df; --muted:#9a968d;
  --line:#2e3036; --rule:#ece8df; --akzent:#f07a5a; --akzent-hell:#3a2620; --bar:#ece8df; --barbg:#2e3036; } }
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--fg); font: 16px/1.55 var(--schrift); }
header, main, footer { max-width: 920px; margin: 0 auto; padding: 0 16px; }
header { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 24px;
  padding-top: 22px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
header > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 28px; }
header .marke { font-weight: 750; font-size: 1.15rem; letter-spacing: -.02em; color: var(--fg); text-decoration: none; }
header .marke .punkt { color: var(--akzent); }
header .marke .untertitel { font-weight: 400; font-size: .85rem; letter-spacing: 0; color: var(--muted); margin-left: 8px; }
nav, .sprache { font-size: .9rem; }
nav a, .sprache a { color: var(--muted); text-decoration: none; }
nav a:hover, .sprache a:hover { color: var(--fg); }
.sprache strong { color: var(--fg); }
a { color: var(--fg); text-decoration-color: var(--akzent); text-underline-offset: 3px; }
a:hover { color: var(--akzent); }
.aktuell { margin: 40px 0 0; font-size: .85rem; color: var(--muted); }
.aktuell::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--akzent); margin-right: 8px; vertical-align: 1px; }
h1 { font-size: clamp(1.8rem, 4.6vw, 2.7rem); line-height: 1.1; font-weight: 700; letter-spacing: -.025em;
  margin: 8px 0 10px; max-width: 24ch; }
main > h1:first-child { margin-top: 40px; }
h2 { font-size: 1.2rem; font-weight: 700; letter-spacing: -.01em; margin: 56px 0 14px; }
h3 { font-size: 1rem; font-weight: 650; margin: 26px 0 8px; }
h4 { font-size: .95rem; font-weight: 650; margin: 18px 0 4px; }
.stand { color: var(--muted); font-size: .9rem; margin: 0; }
.kurz { font-size: clamp(1.05rem, 2.5vw, 1.15rem); line-height: 1.55; margin: 22px 0 0; max-width: 64ch; }
.klein { color: var(--muted); font-size: .82rem; }
main > p.klein { margin: 8px 0 0; max-width: 72ch; }

/* Das Preis-Gleis */
.gleis-block { margin: 28px 0 0; padding: 18px 20px 14px; background: var(--flaeche); border: 1px solid var(--line);
  border-radius: 14px; }
.gleis-block figcaption { font-weight: 650; font-size: .95rem; }
.gleis-block .klein { margin: 4px 0 0; }
.gleis { display: block; width: 100%; height: auto; overflow: visible; }
.gleis-block .gleis { margin: 10px 0 0; max-width: 680px; }
.gleis.schmal { display: none; }
@media (max-width: 560px) { .gleis-block { padding: 14px 14px 12px; } .gleis.breit { display: none; }
  .gleis.schmal { display: block; } }
.gleis .schiene { stroke: var(--fg); stroke-width: 3; stroke-linecap: round; }
.gleis .halt { fill: var(--flaeche); stroke: var(--fg); stroke-width: 2.5; }
.gleis .halt.billig { fill: var(--akzent); stroke: var(--akzent); }
.gleis text { font: 13px var(--schrift); fill: var(--fg); text-anchor: middle; }
.gleis text.wert { font-weight: 600; font-variant-numeric: tabular-nums; }
.gleis text.wert.billig { fill: var(--akzent); font-weight: 750; }
.gleis text.name { fill: var(--muted); font-size: 12px; }
.gleis.klein { width: 200px; flex: none; }
.gleis.klein .schiene { stroke-width: 2.5; }
.gleis.klein .rest { stroke: var(--muted); stroke-width: 1.5; stroke-dasharray: 2 4; opacity: .6; }
.gleis.klein .strich { stroke: var(--line); stroke-width: 1; }
.gleis.klein .halt { stroke-width: 1.5; }
.gleis.klein text { font-size: 12px; text-anchor: start; fill: var(--muted); }
.gleis.klein text.faktor { font-weight: 650; fill: var(--fg); font-variant-numeric: tabular-nums; }
.strecken li.skala { display: flex; gap: 20px; padding: 6px 0 4px; border-bottom: 1px solid var(--line); }
.strecken li.skala text { font-size: 11px; }

/* „ab“-Preis */
.ab { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 20px 0 0; }
.ab p { margin: 0; }
.ab-preis { font-size: clamp(1.9rem, 5.5vw, 2.5rem); font-weight: 750; letter-spacing: -.02em; line-height: 1;
  font-variant-numeric: tabular-nums; }
.ab-preis span { font-size: .42em; font-weight: 400; color: var(--muted); letter-spacing: 0; margin-right: 2px; }
.ab-info { color: var(--muted); font-size: .92rem; }

/* Startseite: Strecken als Liste mit kleinem Gleis */
.strecken { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.strecken li { border-bottom: 1px solid var(--line); }
.zeile { display: flex; align-items: center; gap: 20px; padding: 14px 10px; margin: 0 -10px; color: var(--fg);
  text-decoration: none; border-radius: 10px; }
.zeile:hover { background: var(--flaeche); color: var(--fg); }
.z-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.z-name { font-weight: 650; font-size: 1.05rem; }
.z-info { color: var(--muted); font-size: .84rem; }
.z-preis { flex: none; min-width: 7.5em; text-align: right; font-weight: 750; font-size: 1.2rem;
  font-variant-numeric: tabular-nums; }
.z-preis small { font-size: .62em; font-weight: 400; color: var(--muted); }
@media (max-width: 560px) { .zeile { flex-wrap: wrap; gap: 6px 14px; } .z-text { flex-basis: 100%; }
  .gleis.klein { width: 170px; } .z-preis { margin-left: auto; min-width: 0; }
  .strecken li.skala .z-text { display: none; } }

/* Tabellen */
.tabelle { overflow-x: auto; background: var(--flaeche); border: 1px solid var(--line); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; font-size: .92rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
thead th { font-size: .78rem; font-weight: 600; color: var(--muted); white-space: nowrap; }
td.zahl, th.zahl { text-align: right; white-space: nowrap; }
.billig { color: var(--akzent); font-weight: 750; }
.zeit { white-space: nowrap; }
td.vorlauf { font-weight: 650; white-space: nowrap; }
td.vorlauf .klein { font-weight: 400; }
.balken { display: inline-block; width: 48px; height: 5px; margin-left: 10px; vertical-align: middle; border-radius: 3px;
  background: linear-gradient(to right, var(--bar) var(--a), var(--barbg) var(--a)); }

/* Buchen */
.buchen { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.buchen a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line); background: var(--flaeche);
  border-radius: 999px; color: var(--fg); text-decoration: none; font-weight: 600; font-size: .92rem; }
.buchen a::after { content: " \2192"; color: var(--muted); }
.buchen a:hover { border-color: var(--fg); }
.buchen a.bester { background: var(--akzent); border-color: var(--akzent); color: #fff; }
.buchen a.bester::after, .buchen a.bester .klein { color: #fff; }
.buchen a.bester .klein { font-weight: 400; }

/* Suche, FAQ, Sprachwahl, Fuß */
.suche { width: 100%; max-width: 360px; padding: 10px 14px; margin: 0 0 14px; font: inherit; color: var(--fg);
  background: var(--flaeche); border: 1px solid var(--line); border-radius: 999px; outline: none; }
.suche:focus { border-color: var(--fg); }
.suche::placeholder { color: var(--muted); }
.faq h3 { margin: 24px 0 4px; }
.faq p { margin: 0; max-width: 70ch; }
.wahl { display: flex; gap: 10px; flex-wrap: wrap; margin: 28px 0; }
.wahl a { padding: 12px 24px; border: 1px solid var(--line); background: var(--flaeche); border-radius: 999px;
  color: var(--fg); text-decoration: none; font-weight: 650; font-size: 1.1rem; }
.wahl a.vorschlag { background: var(--akzent); border-color: var(--akzent); color: #fff; }
footer { color: var(--muted); font-size: .82rem; border-top: 1px solid var(--line); margin-top: 72px;
  padding-top: 16px; padding-bottom: 40px; }
footer a { color: var(--muted); }
code { font-size: .9em; }
