/* Bus-Helfer – Gestaltung nach der Vorlage. Mindestschrift 19 px, Knöpfe mindestens 64 px, Kontrast AA. */
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/static/fonts/atkinson-hyperlegible-400.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: "Atkinson Hyperlegible";
  src: url("/static/fonts/atkinson-hyperlegible-700.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --blue: #0B4F9C; --blue-dark: #083A73; --ink: #111111; --muted: #4A4A4A;
  --light: #E8EEF6; --light-ink: #0B2A4F; --green: #1D5B3A; --line: #E4E4E4;
  --amber-bg: #FFF1D6; --amber: #B86E00; --amber-ink: #5A3300;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: #fff; color: var(--ink);
  font-family: "Atkinson Hyperlegible", system-ui, -apple-system, sans-serif;
  font-size: 19px; line-height: 1.35;
}
.page {
  max-width: 480px; margin: 0 auto;
  padding: 20px 20px calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 16px; min-height: 100vh;
}
p { margin: 0; }
a { color: var(--blue); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 4px solid var(--ink); outline-offset: 2px; }
.muted { color: var(--muted); }

.hello { display: flex; flex-direction: column; gap: 4px; padding-top: 8px; }
.title { margin: 0; font-size: 32px; line-height: 1.15; font-weight: 700; }
.subtitle { display: block; margin-top: 4px; font-size: 21px; font-weight: 400; color: var(--muted); }

.back {
  display: flex; align-items: center; gap: 6px; min-height: 44px;
  font-size: 21px; font-weight: 700; text-decoration: none; color: var(--blue);
}

/* Große Knöpfe */
.btn-big, .btn-act {
  display: flex; align-items: center; text-decoration: none; border-radius: 16px; font-weight: 700;
}
.btn-big { justify-content: space-between; min-height: 76px; padding: 0 20px; font-size: 26px; gap: 12px; }
.btn-big .btn-sub { font-size: 19px; font-weight: 400; text-align: right; }
.btn-act { justify-content: center; gap: 10px; min-height: 64px; padding: 0 16px; font-size: 22px; text-align: center; }
.btn-xl { min-height: 72px; font-size: 24px; }
.btn-primary { background: var(--blue); color: #fff; border: 0; font-family: inherit; }
.btn-light { background: var(--light); color: var(--light-ink); }
.btn-outline { border: 2px solid var(--ink); color: var(--ink); }
.btn-green { background: var(--green); color: #fff; }
.btn-green-outline { border: 3px solid var(--green); color: var(--green); }
.btn-primary:active, .btn-green:active { filter: brightness(0.9); }
.when { text-align: center; color: var(--muted); margin-top: 2px; }

/* Karte mit Zeiten */
.card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--blue); color: #fff; }
.card .big { font-size: 34px; font-weight: 700; line-height: 1.1; }

/* Live-Feld */
.live { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 2px solid; }
.live svg { flex: 0 0 30px; margin-top: 2px; }
.live-title { font-size: 21px; font-weight: 700; }
.live-line { font-size: 19px; }
.live-ok { background: #E3F2E8; border-color: var(--green); color: #123D27; }
.live-late { background: var(--amber-bg); border-color: var(--amber); color: var(--amber-ink); }
.live-out { background: #FDE8E8; border-color: #A11A1A; color: #5C0B0B; }
.live-none { background: #EDEDED; border-color: #6B6B6B; color: #222; }

/* Schritte */
.steps { display: flex; flex-direction: column; gap: 14px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step p { font-size: 21px; line-height: 1.35; padding-top: 2px; }
.tile {
  flex: 0 0 56px; height: 56px; border-radius: 12px; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 19px; font-weight: 700;
}
.tile-walk { background: #EDEDED; color: var(--ink); }
.tile-train { background: #9E1B32; }
.tile-bus { background: var(--blue); }
.tile-ast { background: #8A5200; font-size: 17px; }

.later { display: flex; flex-direction: column; gap: 8px; padding-top: 8px; border-top: 2px solid var(--line); }
.later-head { font-size: 21px; font-weight: 700; }
.later-row { font-size: 21px; }
.badge { display: inline-block; padding: 1px 8px; border-radius: 8px; border: 2px solid; font-size: 19px; font-weight: 700; }
.badge-late { background: var(--amber-bg); border-color: var(--amber); color: var(--amber-ink); }
.badge-out { background: #FDE8E8; border-color: #A11A1A; color: #5C0B0B; }

.actions { display: flex; flex-direction: column; gap: 10px; margin-top: auto; }
.notice { display: flex; flex-direction: column; gap: 6px; padding: 18px; border-radius: 16px; background: var(--amber-bg); border: 2px solid var(--amber); color: #2B1900; }
.notice-head { font-size: 24px; font-weight: 700; }
.notice-plain { font-size: 21px; }
.note { color: #333; margin-top: auto; }

/* Suche */
.search { display: flex; flex-direction: column; gap: 8px; }
.search label { color: #333; }
.search input[type="text"] {
  width: 100%; min-height: 60px; padding: 0 16px; border: 3px solid var(--blue); border-radius: 14px;
  font-family: inherit; font-size: 24px; color: var(--ink); background: #fff;
}
.search .btn-primary { cursor: pointer; margin-top: 4px; }
.suggest { display: flex; flex-direction: column; gap: 10px; }
.suggest a {
  display: flex; flex-direction: column; justify-content: center; gap: 2px; min-height: 72px; padding: 8px 18px;
  border-radius: 14px; background: var(--light); color: var(--light-ink); text-decoration: none;
}
.s-main { font-size: 23px; font-weight: 700; }
.s-sub { font-size: 19px; }
