/* Travelotse · ein Stil (Klar), Schriftgröße über data-gross.
   Ziele: Text mindestens 16 px, Fließtext 18 px, Kontrast ab 7:1 für Text, Tippflächen ab 44 px.
   Systemschriften (SF Pro, Roboto, Segoe), keine fremden Server. */
:root{
  --bg:#EEF2F5; --karte:#FFFFFF; --ink:#0F1A21; --muted:#3F4D57; --line:#D6DEE4; --acc:#08496C; --acc-hell:#E3EFF6;
  --band:#0E3B55; --band-ink:#FFFFFF; --band-muted:#C9DCE7;
  --gut:#14612F; --warn:#8A4300; --rot:#AE1F17;
  --bus:#13344A; --bus-ink:#FFFFFF; --zug:#9E1218; --zug-ink:#FFFFFF;
  --radius:14px; --rand:1px solid var(--line); --schatten:0 1px 2px rgba(15,26,33,.06),0 2px 10px rgba(15,26,33,.05);
  --an:#0F1A21; --an-ink:#FFFFFF;
  --fam:#FFF3D3; --fam-rand:1px solid #E6C569;
  --head:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --body:system-ui,-apple-system,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;
  --head-tt:none; --head-skew:none; --head-farbe:var(--ink); --zeit:var(--ink);
}

html{font-size:100%;-webkit-text-size-adjust:100%}
html[data-gross="1"]{font-size:118.75%}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--ink);font:1.125rem/1.45 var(--body);padding-bottom:5.5rem}
/* Lange Wörter (Skandinavienkai, Fahrplanwechsel, ZOB/Hauptbahnhof) dürfen umbrechen statt über den Rand zu laufen */
body{overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
a{color:var(--acc)}
button,select,input{font:inherit;color:inherit}
h1,h2,h3,h4{margin:0;line-height:1.2}
h2{font:700 1.375rem var(--head);color:var(--head-farbe);text-transform:var(--head-tt);display:inline-block;transform:var(--head-skew);transform-origin:left bottom}

:focus-visible{outline:3px solid var(--acc);outline-offset:2px;border-radius:6px}
[hidden]{display:none!important}

/* Kopf mit Band */
.kopf{background:var(--band);color:var(--band-ink);padding:0 0 1.25rem}
.kopf-innen{max-width:36rem;margin:0 auto;padding:8px 14px;display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px;min-height:60px}
.logo{display:flex;align-items:center;gap:8px;min-height:44px;color:var(--band-ink);text-decoration:none;font:800 21px var(--body);letter-spacing:-.01em}
.leuchtturm{width:24px;height:28px;flex:0 0 auto}

.kopf-knoepfe{display:flex;align-items:center;gap:6px;margin-left:auto}
.gross-knopf{min-width:44px;min-height:44px;font-size:16px;border:1px solid rgba(255,255,255,.45);border-radius:10px;background:transparent;color:var(--band-ink);font-weight:800;cursor:pointer}
.gross-knopf span{font-size:.8em;vertical-align:super}
.gross-knopf[aria-pressed="true"]{background:var(--band-ink);color:#0E3B55}

.heute{max-width:36rem;margin:0 auto;padding:.5rem 1rem 0}
.datum{margin:0;color:var(--band-muted);font-weight:600;font-size:1rem}
.heute h1{font:800 2rem/1.1 var(--body);margin:.125rem 0 .375rem;letter-spacing:-.015em}

.heute-text{margin:0;color:var(--band-muted)}

main{max-width:36rem;margin:-.25rem auto 0;padding:0 .75rem;display:flex;flex-direction:column;gap:.875rem}
.karte{background:var(--karte);border:var(--rand);border-radius:var(--radius);box-shadow:var(--schatten);padding:1rem}
.karte-kopf{display:flex;justify-content:space-between;align-items:baseline;gap:.5rem;flex-wrap:wrap;margin-bottom:.25rem}
.stand{font-size:1rem;color:var(--muted);font-weight:600}

/* Knöpfe */
.link{min-height:2.75rem;padding:0 .5rem;border:0;background:none;color:var(--acc);font-weight:700;font-size:1rem;cursor:pointer}
.icon-knopf{min-width:2.75rem;min-height:2.75rem;display:inline-flex;align-items:center;justify-content:center;border:0;background:none;color:var(--muted);cursor:pointer;border-radius:10px}
.icon-knopf svg,.knopf-zweit svg,.suche-feld svg{width:1.375rem;height:1.375rem;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.knopf{display:block;width:100%;min-height:3.25rem;margin:.75rem 0 0;border:0;border-radius:12px;background:var(--an);color:var(--an-ink);font-weight:700;font-size:1.0625rem;cursor:pointer}
.knopf-zweit{display:flex;width:100%;align-items:center;justify-content:center;gap:.5rem;min-height:3.25rem;margin:.75rem 0 0;border:2px solid var(--acc);border-radius:12px;background:transparent;color:var(--acc);font-weight:700;font-size:1.0625rem;cursor:pointer}

/* Erstbesuch */
.erstbesuch{background:var(--acc-hell);border-radius:12px;padding:.875rem 1rem;margin:.5rem 0 .75rem}
.erstbesuch p{margin:0}

/* Haltestellen */
.halt{padding:.25rem 0 .5rem}
.halt+.halt{border-top:3px solid var(--line);margin-top:.5rem;padding-top:.75rem}
/* Name über die ganze Breite, darunter Fußweg links und Knöpfe rechts – lange Namen laufen nie in „Wechseln“ */
.halt-kopf{display:flex;flex-wrap:wrap;align-items:center;gap:.125rem .5rem}
.halt-titel{display:contents}
.halt-kopf h3{flex:1 1 100%;overflow-wrap:anywhere}
.halt-kopf .weg{flex:0 0 auto}
.weg-text{white-space:nowrap}
.halt h3{font:800 1.375rem/1.2 var(--body)}
.halt.neben h3{font-size:1.1875rem}

.halt-knoepfe{display:flex;align-items:center;flex:0 0 auto;margin-left:auto}
.halt.haupt .entfernen{display:none}
.weg{display:inline-flex;align-items:center;gap:.375rem;margin-top:.125rem;font-size:1rem;color:var(--muted);font-weight:600}
.weg-wahl{min-height:2.75rem;padding:0 .5rem;border:var(--rand);border-radius:10px;background:var(--karte);color:var(--ink);font-weight:700;font-size:1rem}
.richtung{margin-top:.625rem}
.richtung h4{font-size:1rem;font-weight:800;letter-spacing:.04em;text-transform:uppercase;color:var(--muted);padding-bottom:.25rem}
.fahrten{list-style:none;margin:0;padding:0}
.fahrt{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.75rem;min-height:3.75rem;padding:.375rem 0;border-top:1px solid var(--line)}
.linie{min-width:3rem;height:2.25rem;padding:0 .5rem;display:flex;align-items:center;justify-content:center;border-radius:8px;font-weight:800;font-size:1.0625rem;background:var(--bus);color:var(--bus-ink);font-variant-numeric:tabular-nums}
.linie.zug{background:var(--zug);color:var(--zug-ink)}

.ziel{display:flex;flex-direction:column;min-width:0}
.ziel b{font-weight:700;overflow-wrap:break-word;hyphens:auto;-webkit-hyphens:auto}
.status{font-size:1rem;font-weight:600;color:var(--muted)}
.status.gut{color:var(--gut)} .status.warn{color:var(--warn)} .status.rot{color:var(--rot)}
.status.gut::before,.status.warn::before{content:"";display:inline-block;width:.5rem;height:.5rem;border-radius:50%;background:currentColor;margin-right:.375rem;vertical-align:.1em}
.zeit{text-align:right;display:flex;flex-direction:column;align-items:flex-end}
.zeit b{font-size:1.625rem;line-height:1.05;font-weight:800;color:var(--zeit);font-variant-numeric:tabular-nums;white-space:nowrap}

.zeit small{font-size:.9375rem;color:var(--muted);font-variant-numeric:tabular-nums}
.los{align-self:flex-start;display:inline-block;margin-top:.25rem;padding:.125rem .5rem;border-radius:999px;background:var(--acc);color:#fff;font-size:.9375rem;font-weight:800;white-space:nowrap}

.fahrt.knapp{opacity:.55}
.fahrt.weg-ausfall .ziel b,.fahrt.weg-ausfall .zeit b{text-decoration:line-through}
.leer{color:var(--muted);margin:.375rem 0;font-size:1rem}

/* übrige Startseite */
.hinweis{color:var(--muted);margin:.5rem 0 0}
.klein{font-size:1rem;color:var(--muted)}

.fuss{padding:.25rem .25rem 1rem;color:var(--muted);font-size:1rem}
.fuss p{margin:.375rem 0}
.fuss-links a{display:inline-block;padding:.625rem 1rem .625rem 0;font-weight:700}

/* Leiste unten */
.leiste{position:fixed;left:.5rem;right:.5rem;bottom:.5rem;max-width:36rem;margin:0 auto;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:var(--karte);border:var(--rand);border-radius:16px;box-shadow:0 4px 18px rgba(0,0,0,.16);padding-bottom:env(safe-area-inset-bottom)}

.leiste a{min-height:3.875rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:.1875rem;color:var(--muted);text-decoration:none;font-weight:700;font-size:.8125rem}
.leiste a[aria-current="page"]{color:var(--acc)}
.leiste svg{width:1.375rem;height:1.375rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

/* Auswahl */
dialog{width:100%;max-width:36rem;height:100vh;height:100dvh;max-height:100dvh;margin:0 auto;border:0;border-radius:0;padding:.75rem 1rem calc(1.5rem + env(safe-area-inset-bottom));background:var(--karte);color:var(--ink);overflow-y:auto}
dialog::backdrop{background:rgba(0,0,0,.5)}
.wahl-kopf{display:flex;justify-content:space-between;align-items:center;gap:.5rem}
.suche-label{display:block;font-weight:700;margin-top:.75rem;font-size:1rem}
.suche-feld{display:flex;align-items:center;gap:.5rem;margin-top:.25rem;padding:0 .75rem;border:2px solid var(--line);border-radius:12px;background:var(--bg)}
.suche-feld:focus-within{border-color:var(--acc)}
.suche-feld svg{color:var(--muted);flex:0 0 auto}
#suche{flex:1;min-width:0;min-height:3.25rem;border:0;background:transparent;font-size:1.125rem;outline:none}
.gruppe{margin:1rem 0 .25rem;font-size:.9375rem;font-weight:800;letter-spacing:.06em;color:var(--muted)}
.wahl-eintrag{width:100%;min-height:3.5rem;display:flex;justify-content:space-between;align-items:center;gap:.75rem;padding:.5rem .25rem;border:0;border-top:1px solid var(--line);background:none;text-align:left;cursor:pointer}
.wahl-eintrag span{font-weight:700}
.wahl-eintrag small{color:var(--muted);font-size:.9375rem;text-align:right}
.wahl-eintrag mark{background:var(--acc-hell);color:inherit;border-radius:3px}
html,body{overflow-x:hidden}

/* Rechtsseiten */
.zurueck{color:var(--band-ink);font-weight:700;font-size:16px;min-height:44px;display:inline-flex;align-items:center}
.rechtsseite .kopf{padding-bottom:1rem}
.rechtsseite main{margin-top:1rem}
.text h1{font:800 1.875rem/1.15 var(--body);margin:0 0 .25rem}
.text h2{display:block;transform:none;font:800 1.125rem var(--body);text-transform:none;color:var(--ink);margin:1.25rem 0 .25rem}
.text p,.text li{margin:.25rem 0}
.text ul{padding-left:1.25rem;margin:.25rem 0}
.text .en{color:var(--muted);font-size:1rem}
.umgedreht{unicode-bidi:bidi-override;direction:rtl}

/* ---------- Abfahrten einklappbar ---------- */
.aufklapper{display:inline-flex;align-items:center;gap:.375rem;min-height:2.75rem;margin:-.25rem 0 -.25rem -.375rem;padding:0 .5rem 0 .375rem;border:0;border-radius:10px;background:none;color:inherit;font:inherit;text-transform:inherit;letter-spacing:inherit;cursor:pointer;text-align:left}
.aufklapper:hover{background:var(--acc-hell)}
.chevron{width:1.375rem;height:1.375rem;fill:none;stroke:currentColor;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;transition:transform .15s}
.aufklapper[aria-expanded="false"] .chevron{transform:rotate(-90deg)}
@media (prefers-reduced-motion:reduce){.chevron{transition:none}}
.zugeklappt .karte-kopf{margin-bottom:0}
.abf-kurz{margin:.375rem 0 0;color:var(--ink);font-size:1rem;line-height:1.4}
.abf-kurz b{font-weight:700}
.abf-aus-zeile{margin:.75rem 0 0;text-align:center}
.link-leise{min-height:2.75rem;padding:0 .5rem;border:0;background:none;color:var(--muted);font-size:1rem;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.abf-hinweis{max-width:36rem;margin:0 auto;padding:.5rem 1rem;color:var(--muted);font-size:1rem;display:flex;align-items:center;justify-content:space-between;gap:.5rem;flex-wrap:wrap}

/* ---------- App-Look (23.11.): Schnellzugriff, Diese Woche, Kategorie-Farben ---------- */
:root{--radius:18px;--rand:1px solid transparent;
  --k-verkehr:#7A3B00;--k-verkehr-bg:#FFF1E0;--k-blau:#951A13;--k-blau-bg:#FDE8E6;--k-stadt:#08496C;--k-stadt-bg:#E3EFF6;
  --k-kultur:#5B2A86;--k-kultur-bg:#F1E8FA;--k-fam:#5C4300;--k-fam-bg:#FFF3D3;--k-grau:#3F4D57;--k-grau-bg:#ECEFF2;--k-gruen:#0F5429;--k-gruen-bg:#E7F3EA}

.block-titel{margin:.25rem .25rem .5rem;font-size:1.25rem}
.schnell{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.5rem;margin-top:.25rem}
.schnell a{display:flex;flex-direction:column;align-items:center;gap:.375rem;padding:.625rem .125rem .5rem;min-height:4.75rem;background:var(--karte);border:var(--rand);border-radius:16px;box-shadow:var(--schatten);color:var(--ink);text-decoration:none;font-size:.875rem;font-weight:700;text-align:center;line-height:1.15}
.s-icon{width:2.5rem;height:2.5rem;border-radius:12px;display:flex;align-items:center;justify-content:center;background:var(--k-grau-bg);color:var(--k-grau)}
.s-icon svg{width:1.375rem;height:1.375rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

.s-fam .s-icon{background:var(--k-fam-bg);color:var(--k-fam)}

.woche-liste{display:flex;gap:.625rem;overflow-x:auto;padding:0 .125rem .375rem;scroll-snap-type:x mandatory}
.woche-karte{flex:none;width:12.5rem;scroll-snap-align:start;display:flex;flex-direction:column;align-items:flex-start;gap:.25rem;padding:.75rem;background:var(--karte);border:var(--rand);border-radius:var(--radius);box-shadow:var(--schatten);color:var(--ink);text-decoration:none}
.woche-tag{display:inline-flex;flex-direction:column;align-items:center;background:var(--band);color:#fff;border-radius:10px;padding:.25rem .625rem;line-height:1.1;margin-bottom:.25rem}
.woche-tag span{font-size:.875rem;font-weight:800;letter-spacing:.04em}
.woche-tag b{font-size:1.25rem}
.woche-titel{font-size:1rem;line-height:1.3}
.woche-ort{font-size:1rem;color:var(--muted);line-height:1.3}
.woche-kat{margin-top:auto;font-size:.9375rem;font-weight:800;border-radius:999px;padding:.125rem .5rem;background:var(--k-grau-bg);color:var(--k-grau)}
.woche-kat.kat-familie{background:var(--k-fam-bg);color:var(--k-fam)}
.woche-kat.kat-ferien{background:var(--k-gruen-bg);color:var(--k-gruen)}
.woche-kat.kat-kultur{background:var(--k-kultur-bg);color:var(--k-kultur)}

@media (max-width:359px){.schnell{grid-template-columns:repeat(4,minmax(0,1fr));gap:.375rem}.schnell a{font-size:.8125rem}}
.woche-kat.kat-natur{background:var(--k-gruen-bg);color:var(--k-gruen)}
.woche-kat.kat-markt,.woche-kat.kat-stadt{background:var(--k-stadt-bg);color:var(--k-stadt)}
.woche-kat.kat-sport{background:var(--k-verkehr-bg);color:var(--k-verkehr)}
.woche-kat.kat-kirche{background:var(--k-grau-bg);color:var(--k-grau)}
/* Nach-oben-Knopf (oben.js) – sitzt rechts über der unteren Leiste */
.oben-knopf{position:fixed;z-index:30;right:max(.75rem,calc((100vw - 36rem)/2 + .5rem));bottom:calc(5.25rem + env(safe-area-inset-bottom));display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;padding:0;border:2px solid #FFFFFF;border-radius:999px;background:var(--acc);color:#FFFFFF;box-shadow:0 4px 14px rgba(0,0,0,.22);cursor:pointer}
.oben-knopf[hidden]{display:none}
.oben-knopf span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.oben-knopf svg{width:1.5rem;height:1.5rem;fill:none;stroke:currentColor;stroke-width:2.6;stroke-linecap:round;stroke-linejoin:round}
.oben-knopf:focus-visible{outline:3px solid var(--ink);outline-offset:3px}

/* ---------- Startseite Layout A „Postkarte“ (23.11.2026, Christian) ----------
   Heller Kopf, Bild als Postkarte ohne Beschriftung (KI-Illustration, Hinweis im Fuß), Wetter als eigene Karte,
   „Heute für dich“ (Müll, Notdienst, Abfahrt), darunter Kacheln nur für Bereiche, die dort NICHT stehen. */
.kopf-a{background:var(--bg);color:var(--ink);padding:0 0 .25rem}
.kopf-a .logo{color:var(--ink)}
.kopf-a .leuchtturm polygon,.kopf-a .leuchtturm path{stroke:#0F1A21;stroke-width:.9;stroke-linejoin:round}
.kopf-a .gross-knopf{border-color:var(--muted);color:var(--ink)}
.kopf-a .gross-knopf[aria-pressed="true"]{background:var(--ink);color:#FFFFFF}
.kopf-a .datum{color:var(--muted)}
.kopf-a .heute{padding-bottom:0}
.kopf-a .heute h1{font-size:1.875rem;margin:.125rem 0 0}
.kopf-a + main{margin-top:.75rem}
.postkarte{margin:0;border:6px solid #FFFFFF;border-radius:20px;overflow:hidden;box-shadow:0 2px 12px rgba(15,26,33,.14);background:#DCE8EF}
.postkarte img{display:block;width:100%;height:auto;aspect-ratio:16/10;object-fit:cover;object-position:50% 58%}
.wetter-karte{padding:.375rem .875rem .25rem}
.wetter-karte .hl{margin:0;padding:.25rem 0 0;border-radius:0}
.wetter-karte .hl-wetter .hl-sym{width:2.25rem;height:2.25rem}
.wetter-karte .hl-temp{font-size:1.875rem}
.wetter-karte #heute-lage{min-height:7.5rem}
.fuer-dich{padding:.875rem 1rem .25rem}
.fuer-dich h2{margin-bottom:.125rem}
.fd-zeile{display:flex;align-items:center;gap:.875rem;min-height:4.5rem;padding:.625rem 0;border-top:1px solid var(--line);color:var(--ink);text-decoration:none}
.fuer-dich h2 + .fd-zeile{border-top:0}
.fd-icon{width:3rem;height:3rem;flex:none;border-radius:12px;display:flex;align-items:center;justify-content:center}
.fd-icon svg{width:1.625rem;height:1.625rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.fd-muell .fd-icon{background:var(--k-gruen-bg);color:var(--k-gruen)}
.fd-not .fd-icon{background:var(--k-blau-bg);color:var(--k-blau)}
.fd-bus .fd-icon{background:var(--k-stadt-bg);color:var(--k-stadt)}
.fd-text{flex:1;min-width:0;display:flex;flex-direction:column;gap:.125rem}
.fd-text b{font-size:1.1875rem;font-weight:800;line-height:1.25}
.fd-text span{font-size:1rem;color:var(--muted);line-height:1.35;overflow-wrap:anywhere}
.fd-pfeil{width:1.375rem;height:1.375rem;flex:none;fill:none;stroke:var(--muted);stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.schnell.breit{grid-template-columns:repeat(2,minmax(0,1fr));gap:.625rem;margin-top:0}
.schnell.breit h2{grid-column:1/-1;margin:.25rem .25rem 0}
.schnell.breit a{flex-direction:row;justify-content:flex-start;gap:.75rem;min-height:4.5rem;padding:.625rem .75rem;font-size:1.0625rem;text-align:left;overflow-wrap:anywhere}
.schnell.breit .s-icon{width:2.75rem;height:2.75rem;flex:none}
.s-kueck .s-icon,.s-fpw .s-icon{background:var(--k-stadt-bg);color:var(--k-stadt)}
.s-gelb .s-icon{background:#FFF3D3;color:#5C4300}
.s-neu-hier .s-icon{background:var(--k-gruen-bg);color:var(--k-gruen)}
@media (max-width:359px){.schnell.breit{grid-template-columns:1fr}}

/* ---------- Drucken (Müll-Termine, Gelbe Säcke, Notdienst): nur Inhalt, schwarz auf weiß ---------- */
@media print{
  .leiste,.oben-knopf,.kopf-knoepfe,.sprung,.postkarte,.wetter-karte,.schnell,.fuer-dich,.fuss-nav,.sprungmarke,.abf-aus-zeile,#abfahrten,.abf-hinweis,.woche,dialog,.knopf-zweit,.chevron,[data-drucken]{display:none!important}
  body{background:#FFFFFF!important;color:#000000!important;padding:0!important;font-size:12pt}
  .kopf{background:none!important;color:#000000!important;padding:0!important}
  .kopf *,.datum,.heute-text{color:#000000!important;text-shadow:none!important}
  main{max-width:none;padding:0}
  .karte{box-shadow:none!important;border:1px solid #999999!important;break-inside:avoid;background:#FFFFFF!important}
  a{color:#000000!important}
  .hl{background:none!important;color:#000000!important}
}

