/* ═══════════════════════════════════════════════════════════
   GateReady · Design-System (Version 2: ruhig, klar, Blau)
   Alle Seiten nutzen diese eine Datei. Farben, Schriften und
   Radien stehen ganz oben als Variablen – dort änderst du den
   Look der gesamten App an einer Stelle.
   Hell/Dunkel folgt der Einstellung im Profil bzw. dem Handy.
   ═══════════════════════════════════════════════════════════ */

@view-transition { navigation: auto; }

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  color-scheme: light dark;

  /* Flächen */
  --bg:        #F3F4F6;
  --surface:   #FFFFFF;
  --surface-2: #EBEDF0;
  --fill:      rgba(17,24,39,.045);
  --seg-on:    #FFFFFF;

  /* Text */
  --ink:   #111827;
  --ink-2: #5B6472;
  --ink-3: #959CA8;

  /* Linien */
  --line:   rgba(17,24,39,.07);
  --line-2: rgba(17,24,39,.13);

  /* Akzent: ein klares Blau */
  --accent:      #2563EB;
  --accent-ink:  #FFFFFF;
  --accent-soft: rgba(37,99,235,.10);
  --accent-text: #1D4FD7;

  /* Alte Namen zeigen auf das neue Blau (werden in Seiten noch genutzt) */
  --signal:      var(--accent);
  --signal-ink:  var(--accent-ink);
  --signal-soft: var(--accent-soft);

  /* Hauptkarte (früher "Abflugtafel") */
  --board:      var(--surface);
  --board-ink:  var(--ink);
  --board-dim:  var(--ink-2);
  --board-line: var(--line);
  --board-glow: rgba(37,99,235,.10);
  --shadow:     0 1px 2px rgba(17,24,39,.04), 0 6px 20px rgba(17,24,39,.05);

  /* Haupt-Button */
  --cta:     var(--accent);
  --cta-ink: var(--accent-ink);

  /* Status (immer zusammen mit Text, nie nur Farbe) */
  --ok:   #16A34A;  --ok-soft:   rgba(22,163,74,.11);  --ok-solid: #DCF3E3;
  --warn: #D98E04;  --warn-soft: rgba(217,142,4,.14);
  --bad:  #DC3A3A;  --bad-soft:  rgba(220,58,58,.09);
  --info: var(--accent); --info-soft: var(--accent-soft);
  --night: #6551C9; --night-soft: rgba(101,81,201,.11);

  /* Andrang-Stufen 1–5: ruhig → sehr voll */
  --lv1: #16A34A; --lv2: #16A34A; --lv3: #E4A11B; --lv4: #EA7A3F; --lv5: #DC3A3A;
  --bar: #D9DCE2;   /* Diagramm-Balken ohne Hervorhebung */

  /* Form */
  --r-l: 24px;
  --r-m: 18px;
  --r-s: 12px;
  --gutter: 20px;
  --tab-h: 60px;

  /* Schrift: Systemschrift (SF Pro auf iPhone, Roboto auf Android) */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI Variable Display", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-board: var(--font-display);

  --ease: cubic-bezier(.2,.8,.2,1);
}

/* Dunkel – gedämpftes Schiefergrau statt Schwarz */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg:        #16191F;
    --surface:   #1F232B;
    --surface-2: #2A2F38;
    --fill:      rgba(236,239,244,.05);
    --seg-on:    #3A404B;
    --ink:   #ECEFF4;
    --ink-2: #A2A9B6;
    --ink-3: #6D7584;
    --line:   rgba(236,239,244,.07);
    --line-2: rgba(236,239,244,.13);
    --accent:      #4F8EFF;
    --accent-ink:  #FFFFFF;
    --accent-soft: rgba(79,142,255,.14);
    --accent-text: #7DABFF;
    --board-glow: rgba(79,142,255,.15);
    --shadow:     0 0 0 1px var(--line);
    --ok:   #34C46E;  --ok-soft:   rgba(52,196,110,.15);  --ok-solid: #1C3A2A;
    --warn: #F0B23A;  --warn-soft: rgba(240,178,58,.15);
    --bad:  #F06363;  --bad-soft:  rgba(240,99,99,.14);
    --lv1: #34C46E; --lv2: #34C46E; --lv3: #F0B23A; --lv4: #F08A50; --lv5: #F06363;
    --bar: #343A45;
    --night: #A99BFF; --night-soft: rgba(169,155,255,.15);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:        #16191F;
  --surface:   #1F232B;
  --surface-2: #2A2F38;
  --fill:      rgba(236,239,244,.05);
  --seg-on:    #3A404B;
  --ink:   #ECEFF4;
  --ink-2: #A2A9B6;
  --ink-3: #6D7584;
  --line:   rgba(236,239,244,.07);
  --line-2: rgba(236,239,244,.13);
  --accent:      #4F8EFF;
  --accent-ink:  #FFFFFF;
  --accent-soft: rgba(79,142,255,.14);
  --accent-text: #7DABFF;
  --board-glow: rgba(79,142,255,.15);
  --shadow:     0 0 0 1px var(--line);
  --ok:   #34C46E;  --ok-soft:   rgba(52,196,110,.15);  --ok-solid: #1C3A2A;
  --warn: #F0B23A;  --warn-soft: rgba(240,178,58,.15);
  --bad:  #F06363;  --bad-soft:  rgba(240,99,99,.14);
  --lv1: #34C46E; --lv2: #34C46E; --lv3: #F0B23A; --lv4: #F08A50; --lv5: #F06363;
  --bar: #343A45;
  --night: #A99BFF; --night-soft: rgba(169,155,255,.15);
}
:root[data-theme="light"] { color-scheme: light; }


/* ── Grundlagen ─────────────────────────────────────────── */

html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); }

body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.45;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 40px);
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; -webkit-appearance: none; appearance: none; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.num { font-variant-numeric: tabular-nums; }
.mt-l { margin-top: 24px; }

.ic { width: 20px; height: 20px; flex-shrink: 0; }

.app {
  max-width: 560px;
  margin: 0 auto;
  padding: calc(env(safe-area-inset-top, 0px) + 6px) var(--gutter) 0;
}

/* Sanfter Seitenaufbau: Inhalte gleiten nacheinander herein */
.app > * { animation: rise .5s var(--ease) backwards; }
.app > :nth-child(2) { animation-delay: .03s; }
.app > :nth-child(3) { animation-delay: .06s; }
.app > :nth-child(4) { animation-delay: .09s; }
.app > :nth-child(5) { animation-delay: .12s; }
.app > :nth-child(6) { animation-delay: .15s; }
.app > :nth-child(n+7) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }


/* ── Kopfzeile ──────────────────────────────────────────── */

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
}
.navbar-actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }

.back {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  height: 44px;
  margin-left: -10px;
  padding: 0 10px 0 4px;
  font-size: 16px;
  font-weight: 500;
  color: var(--accent-text);
}
.back .ic { width: 24px; height: 24px; stroke-width: 2; }
.back:active, .nav-action:active { opacity: .5; }

.nav-action { height: 40px; padding: 0 10px; font-size: 16px; font-weight: 600; color: var(--accent-text); }

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  box-shadow: var(--shadow);
  transition: transform .15s var(--ease);
}
.icon-btn:active { transform: scale(.92); }
.icon-btn-sm { width: 32px; height: 32px; background: transparent; box-shadow: none; color: var(--ink-2); flex-shrink: 0; }
.icon-btn-sm .ic { width: 18px; height: 18px; }

.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 650; font-size: 17px; letter-spacing: -.02em; }
.brand-mark {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--accent-ink);
  flex-shrink: 0;
}
.brand-mark .ic { width: 16px; height: 16px; stroke-width: 2.6; }
/* Das Logo bringt sein eigenes blaues Quadrat mit und füllt die Fläche ganz aus */
.brand-mark:has(.ic-logo) { background: none; overflow: hidden; }
.brand-mark .ic-logo { width: 100%; height: 100%; }


/* ── Überschriften & Text ───────────────────────────────── */

.kicker { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-top: 8px; }
.large-title {
  font-family: var(--font-display);
  font-size: 30px;
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -.025em;
  margin: 2px 0 8px;
  text-wrap: balance;
}
.title-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.title-row .large-title { margin-bottom: 0; }
.lead { font-size: 16px; color: var(--ink-2); margin-bottom: 24px; text-wrap: pretty; }

/* Abschnitte: kleine, ruhige Überschrift über dem Inhalt */
.section { margin-top: 30px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 4px 10px; }
.section-title {
  font-size: 13px;
  line-height: 1.3;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin: 0 4px 10px;
}
.section-head .section-title { margin: 0; }
.section-link { font-size: 14px; font-weight: 600; color: var(--accent-text); }
.section-sub { font-size: 14px; color: var(--ink-2); margin: -4px 4px 12px; }
.footnote { font-size: 13px; line-height: 1.5; color: var(--ink-3); margin: 14px 4px 0; }

.list-head { font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin: 26px 4px 10px; }
.list-head:first-child { margin-top: 8px; }
.list-head.sticky {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 2;
  margin: 18px -4px 0;
  padding: 8px 8px 10px;
  background: var(--bg);
}


/* ── Hauptkarte (dein Flug) ─────────────────────────────── */

.board {
  display: block;
  position: relative;
  overflow: hidden;
  margin-top: 16px;
  padding: 18px 20px 20px;
  color: var(--ink);
  background: radial-gradient(125% 75% at 100% 0%, var(--board-glow), transparent 72%), var(--surface);
  border-radius: var(--r-l);
  box-shadow: var(--shadow);
  transition: transform .2s var(--ease);
}
a.board:active { transform: scale(.985); }

.board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--ink-2);
}
.board-head > span:last-child { display: inline-flex; align-items: center; gap: 2px; }
.board-head .ic { width: 16px; height: 16px; }
.board-flight {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .01em;
}

/* Route MUC ── ✈ ── BCN */
.route { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 14px; margin-top: 16px; }
.route-pt { display: flex; flex-direction: column; min-width: 0; }
.route-pt.end { align-items: flex-end; text-align: right; }
.route .iata { font-family: var(--font-display); font-size: 30px; font-weight: 650; line-height: 1; letter-spacing: -.01em; }
.route .city {
  font-size: 13px;
  color: var(--ink-2);
  margin-top: 5px;
  min-height: 1.35em;
  max-width: 9.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.route .route-line { height: 30px; }

.route-line { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.route-line::before, .route-line::after { content: ""; flex: 1; height: 1.5px; border-radius: 1px; }
.route-line::before { background: linear-gradient(90deg, transparent, var(--accent)); opacity: .85; }
.route-line::after  { background: repeating-linear-gradient(90deg, var(--line-2) 0 4px, transparent 4px 8px); }
.route-line .ic { width: 18px; height: 18px; color: var(--accent); transform: rotate(45deg); }

.board-times { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.board-times .end { text-align: right; }
.board-k, .board-d { display: block; font-size: 13px; color: var(--ink-2); }
.board-v { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 650; line-height: 1.2; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }

.board-divider { margin: 18px 0; border-top: 1px solid var(--line); }

.board-label { font-size: 14px; font-weight: 500; color: var(--ink-2); margin-top: 20px; }
.board-divider + .board-label { margin-top: 0; }
.board-sub { font-size: 15px; color: var(--ink-2); text-wrap: pretty; }
.board .btn { margin-top: 20px; }
.is-dev { font-size: 13px; font-weight: 700; letter-spacing: .08em; color: var(--accent-text); }

.board-rows { margin-top: 16px; border-top: 1px solid var(--line); }
.board-rows:empty { display: none; }
.board-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  font-size: 15px;
  border-bottom: 1px solid var(--line);
}
.board-row:last-child,
.board-row:not(:has(~ .board-row:not([hidden]))) { border-bottom: 0; min-height: 42px; padding-top: 6px; }
.board-row > span { flex: 1; color: var(--ink-2); }
.board-row > .meter { flex: none; width: 24px; }
.board-row > b { font-weight: 600; font-variant-numeric: tabular-nums; }
.board-row > .ic { width: 18px; height: 18px; color: var(--ink-3); }

/* Große Uhrzeit (Funktion GR.flaps) */
.flaps {
  margin: 2px 0 6px;
  font-family: var(--font-display);
  font-size: clamp(54px, 17vw, 72px);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.035em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

/* Noch keine Zeit: Retro-7-Segment-Anzeige "--:--" */
.flaps.is-empty { margin: 10px 0 12px; line-height: 0; }
.seg7 { display: block; width: min(58%, 220px); height: auto; overflow: visible; }
.seg7 .seg { fill: var(--ink); opacity: .07; }
.seg7 .seg.on { fill: var(--accent); opacity: 1; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--accent) 60%, transparent)); }
@media (prefers-reduced-motion: no-preference) {
  .seg7 .seg.on { animation: seg-glow 2.6s ease-in-out infinite; }
}
@keyframes seg-glow { 50% { opacity: .55; } }

.now-figure { display: flex; align-items: baseline; gap: 8px; margin: 4px 0 2px; }
.now-figure .flaps { margin: 0; }
.now-unit { font-size: 22px; font-weight: 600; color: var(--ink-2); }


/* ── Andrang-Anzeige (5 Stufen) ─────────────────────────── */

.meter { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; flex-shrink: 0; }
.meter i { width: 4px; border-radius: 2px; background: var(--line-2); }
.meter i:nth-child(1) { height: 6px; }
.meter i:nth-child(2) { height: 8px; }
.meter i:nth-child(3) { height: 10px; }
.meter i:nth-child(4) { height: 12px; }
.meter i:nth-child(5) { height: 14px; }
.meter.lv1 i.on { background: var(--lv1); }
.meter.lv2 i.on { background: var(--lv2); }
.meter.lv3 i.on { background: var(--lv3); }
.meter.lv4 i.on { background: var(--lv4); }
.meter.lv5 i.on { background: var(--lv5); }
.bg-lv1 { background: var(--lv1); }
.bg-lv2 { background: var(--lv2); }
.bg-lv3 { background: var(--lv3); }
.bg-lv4 { background: var(--lv4); }
.bg-lv5 { background: var(--lv5); }


/* ── Kleine Bausteine ───────────────────────────────────── */

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 600;
  white-space: nowrap;
  background: var(--fill);
  color: var(--ink);
  flex-shrink: 0;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); }
.tag-ok   { background: var(--ok-soft); }   .tag-ok .dot   { background: var(--ok); }
.tag-warn { background: var(--warn-soft); } .tag-warn .dot { background: var(--warn); }
.tag-bad  { background: var(--bad-soft); }  .tag-bad .dot  { background: var(--bad); }
.tag-info { background: var(--accent-soft); } .tag-info .dot { background: var(--accent); }

/* Herkunft einer Zahl: gemeldet · aus Flugdaten · Platzhalter */
.src-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
  white-space: nowrap;
  vertical-align: 1px;
}
.src-tag::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.src-reports { background: var(--ok-soft); color: var(--ok); }
.src-data    { background: var(--accent-soft); color: var(--accent-text); }
.src-model   { background: var(--fill); color: var(--ink-3); box-shadow: inset 0 0 0 1px var(--line-2); }
.src-weak    { background: var(--warn-soft); color: var(--warn); }
.src-legend { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; margin: 12px 4px 0; font-size: 12.5px; color: var(--ink-3); }
.src-legend span:not(.src-tag) { margin-right: 4px; }

/* Nachtflugverbot */
.tag-night { background: var(--night-soft); color: var(--night); gap: 5px; }
.tag-night .ic { width: 13px; height: 13px; stroke-width: 2.2; }
.night-ic { width: 18px; height: 18px; color: var(--night); }
.is-night { color: var(--night) !important; font-weight: 600; }

/* Terminal / Gate als kleines Etikett */
.sign {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 7px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.sign-sm { height: 22px; min-width: 24px; padding: 0 7px; font-size: 13px; border-radius: 6px; }
/* Gate auf der Startseite: kräftig, damit es auf einen Blick lesbar ist */
.board-row .sign { height: 26px; min-width: 32px; padding: 0 9px; font-size: 15px; background: var(--accent); color: #fff; }

.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  animation: spin .7s linear infinite;
  flex-shrink: 0;
}
.spinner-lg { width: 30px; height: 30px; border-width: 3px; color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }


/* ── Buttons ────────────────────────────────────────────── */

.btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 52px;
  padding: 0 22px;
  border-radius: 14px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -.005em;
  transition: transform .15s var(--ease), opacity .2s, background .2s, color .2s, filter .2s;
}
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.btn .ic { width: 19px; height: 19px; stroke-width: 2.1; }
.btn .spinner { display: none; }
.btn.loading .spinner { display: inline-block; }
.btn-inline { display: inline-flex; width: auto; }

.btn-primary,
.btn-signal    { background: var(--accent); color: var(--accent-ink); }
@media (hover: hover) { .btn-primary:hover, .btn-signal:hover { filter: brightness(1.07); } }
.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-plain     { background: transparent; color: var(--accent-text); min-height: 46px; font-size: 15px; font-weight: 600; }
.btn-danger    { color: var(--bad); }
.btn-delete    { background: var(--bad); color: #fff; }
.locate-btn { justify-content: flex-start; width: auto; min-height: 40px; margin-top: 6px; padding: 0 4px; }
.btn.is-saved  { background: var(--ok-solid); color: var(--ink); cursor: default; filter: none; }
.btn.is-saved .ic { color: var(--ok); }

.sticky-cta {
  position: sticky;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 12px);
  z-index: 5;
  margin-top: 28px;
}
.sticky-cta .btn:not(.is-saved) { box-shadow: 0 10px 28px rgba(0,0,0,.18); }


/* ── Listen ─────────────────────────────────────────────── */

.group { background: var(--surface); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); }

.row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-height: 56px;
  padding: 12px 16px;
  text-align: left;
  transition: background .15s;
}
.row + .row::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: var(--sep, 16px);
  border-top: 1px solid var(--line);
}
.group.has-icons { --sep: 62px; }
a.row:active, button.row:active { background: var(--fill); }
@media (hover: hover) { a.row:hover, button.row:hover { background: var(--fill); } }

/* Icon in einer Zeile: kleines getöntes Quadrat */
.row-icon {
  width: 32px;
  height: 32px;
  padding: 6px;
  border-radius: 9px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.row-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.row-title { font-size: 16px; font-weight: 600; }
.row-sub { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-value { font-size: 15px; color: var(--ink-2); text-align: right; }
.row-chev { width: 18px; height: 18px; color: var(--ink-3); }

.row.kv { min-height: 52px; }
.row.kv .row-title { flex: 1; font-weight: 400; color: var(--ink-2); }
.row.kv .row-value { color: var(--ink); font-weight: 600; }

.row-lead { width: 64px; flex-shrink: 0; font-family: var(--font-display); font-size: 19px; font-weight: 650; }


/* ── Hinweise ───────────────────────────────────────────── */

.notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 16px 0;
  padding: 14px 12px 14px 16px;
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 15px;
}
.notice > .ic { width: 20px; height: 20px; margin-top: 1px; }
.notice-text { flex: 1; color: var(--ink-2); }
.notice-text b { display: block; color: var(--ink); font-weight: 600; }
.notice-bad  { background: var(--bad-soft); box-shadow: none; }  .notice-bad > .ic  { color: var(--bad); }
.notice-info { background: var(--accent-soft); box-shadow: none; } .notice-info > .ic { color: var(--accent); }

/* Push-Benachrichtigung */
.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  width: min(420px, calc(100% - 20px));
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 8px 12px 12px;
  border-radius: 20px;
  background: var(--surface);
  background: color-mix(in srgb, var(--surface) 88%, transparent);
  -webkit-backdrop-filter: blur(24px) saturate(1.6);
  backdrop-filter: blur(24px) saturate(1.6);
  box-shadow: 0 12px 40px rgba(0,0,0,.2), 0 0 0 1px var(--line);
  transform: translate(-50%, calc(-100% - 40px));
  transition: transform .5s var(--ease);
}
.toast.show { transform: translate(-50%, 0); }
.toast .brand-mark { width: 38px; height: 38px; border-radius: 10px; }
.toast .brand-mark .ic { width: 20px; height: 20px; }
.toast-body { flex: 1; min-width: 0; }
.toast-meta { font-size: 13px; color: var(--ink-2); }
.toast-title { font-size: 15px; font-weight: 600; }
.toast-msg { font-size: 15px; line-height: 1.35; }


/* ── Zustände (leer, laden, Fehler, Erfolg) ─────────────── */

.state { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 64px 12px 24px; }
.state-title { font-size: 19px; font-weight: 650; letter-spacing: -.015em; margin-top: 18px; }
.state-text { color: var(--ink-2); margin: 6px 0 22px; max-width: 32ch; text-wrap: pretty; }
.empty-art {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 20px;
  background: var(--accent-soft);
  color: var(--accent);
}
.empty-art .ic { width: 28px; height: 28px; }
.empty-art.ok { background: var(--ok-soft); color: var(--ok); }


/* ── Formulare ──────────────────────────────────────────── */

.field-label { display: block; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); margin: 0 4px 8px; }
.field-label.mt-l { margin-top: 24px; }
.hint { font-size: 13.5px; color: var(--ink-3); margin: 8px 4px 0; text-wrap: pretty; }

.input {
  display: block;
  width: 100%;
  height: 54px;
  padding: 0 16px;
  border: 0;
  border-radius: 14px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line-2);
  font-size: 17px;
  outline: none;
  transition: box-shadow .2s;
  -webkit-appearance: none;
  appearance: none;
}
.input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.input::placeholder, .form-row input::placeholder { color: var(--ink-3); opacity: 1; }

/* Großes Eingabefeld für die Flugnummer */
.input-board {
  height: 76px;
  padding: 0 20px;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 650;
  letter-spacing: .02em;
  text-transform: uppercase;
}
.input-board::placeholder { color: var(--ink-3); opacity: .45; }

.form-group { background: var(--surface); border-radius: var(--r-m); overflow: hidden; box-shadow: var(--shadow); }
.form-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  padding: 0 16px;
  cursor: text;
  transition: background .15s;
}
.form-row + .form-row::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16px;
  right: 0;
  border-top: 1px solid var(--line);
}
.form-row:focus-within { background: var(--fill); }
.form-label { width: 104px; flex-shrink: 0; font-size: 15px; color: var(--ink-2); }
.form-row input {
  flex: 1;
  min-width: 0;
  height: 54px;
  border: 0;
  background: transparent;
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.form-row input::-webkit-date-and-time-value { text-align: left; }
.form-row:has(.ocr-filled) { background: var(--accent-soft); }
.ocr-mark {
  flex-shrink: 0;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}
.ocr-mark:empty { display: none; }

/* Umschalter (Segmented Control) */
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 2px;
  padding: 3px;
  margin-bottom: 20px;
  border-radius: 12px;
  background: var(--surface-2);
}
.seg button {
  height: 36px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink-2);
  transition: background .2s, color .2s, box-shadow .2s;
}
.seg button[aria-selected="true"],
.seg button[aria-checked="true"] {
  background: var(--seg-on);
  color: var(--ink);
  box-shadow: 0 1px 3px rgba(0,0,0,.12), 0 0 0 .5px var(--line);
}

/* Plus/Minus-Regler */
.stepper {
  display: grid;
  grid-template-columns: 52px 1fr 52px;
  align-items: center;
  padding: 8px;
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.stepper button { height: 52px; border-radius: 12px; background: var(--surface-2); font-size: 24px; font-weight: 500; color: var(--ink); transition: transform .15s var(--ease); }
.stepper button:active { transform: scale(.94); }
.stepper-val { display: flex; align-items: baseline; justify-content: center; gap: 6px; }
.stepper input {
  width: 3ch;
  border: 0;
  background: transparent;
  text-align: center;
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 650;
  letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  outline: none;
  -moz-appearance: textfield;
  appearance: textfield;
}
.stepper input::-webkit-inner-spin-button,
.stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper-unit { font-size: 16px; color: var(--ink-2); }

/* Kleiner Plus/Minus-Regler in einer Listenzeile */
.mini-stepper { display: inline-flex; align-items: center; gap: 4px; flex-shrink: 0; }
.mini-stepper button { width: 34px; height: 34px; border-radius: 10px; background: var(--surface-2); font-size: 18px; font-weight: 600; color: var(--ink); }
.mini-stepper button:active { transform: scale(.94); }
.mini-stepper b { min-width: 26px; text-align: center; font-variant-numeric: tabular-nums; }

/* Suchfeld */
.search { position: relative; margin-bottom: 4px; }
.search .ic { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--ink-3); pointer-events: none; }
.search input {
  width: 100%;
  height: 44px;
  padding: 0 14px 0 40px;
  border: 0;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 16px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.search input:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.search input::placeholder { color: var(--ink-3); }


/* ── Startseite: Flughafen-Kacheln ──────────────────────── */

.tiles {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  margin: 0 calc(var(--gutter) * -1);
  padding: 2px var(--gutter) 6px;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--gutter);
  scrollbar-width: none;
}
.tiles::-webkit-scrollbar { display: none; }
.tile {
  flex: 0 0 132px;
  display: flex;
  flex-direction: column;
  padding: 14px 14px 12px;
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
  transition: transform .15s var(--ease);
}
.tile:active { transform: scale(.97); }
.tile-code { font-family: var(--font-display); font-size: 22px; font-weight: 650; line-height: 1; }
.tile-city { font-size: 13px; color: var(--ink-2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 18px; }
.tile-wait { font-size: 16px; font-weight: 650; font-variant-numeric: tabular-nums; }
.tile-label { font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }


/* ── Meine Flüge: Flugkarten ────────────────────────────── */

.flight {
  position: relative;
  display: flex;
  margin-bottom: 10px;
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.flight-link { flex: 1; min-width: 0; padding: 16px; transition: background .15s; }
.flight-link:active { background: var(--fill); }
.flight-top { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.flight-code {
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-text);
  font-size: 13.5px;
  font-weight: 650;
  line-height: 1;
}
.flight-airline { flex: 1; min-width: 0; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.leg { display: grid; grid-template-columns: auto 1fr auto; align-items: start; gap: 12px; }
.leg > div:not(.route-line) { display: flex; flex-direction: column; }
.leg .end { align-items: flex-end; }
.leg .iata { font-family: var(--font-display); font-size: 24px; font-weight: 650; line-height: 1; }
.leg .t { font-size: 14px; color: var(--ink-2); margin-top: 5px; font-variant-numeric: tabular-nums; }
.leg .route-line { height: 24px; }

.flight-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--ink-2);
}
.flight-meta .warn-text { color: var(--ink); font-weight: 600; }
.flight-alert { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 14px; font-weight: 600; }
.flight-alert .ic { width: 18px; height: 18px; color: var(--bad); }
.flight.is-alert { box-shadow: inset 3px 0 0 var(--bad), var(--shadow); }

.flight-del {
  display: none;
  align-items: center;
  justify-content: center;
  width: 72px;
  flex-shrink: 0;
  background: var(--bad);
  color: #fff;
}
.flight-list.editing .flight-del { display: flex; }
.flight-list.editing .flight-link { pointer-events: none; opacity: .8; }


/* ── Reiseplan (Zeitleiste) ─────────────────────────────── */

.timeline { padding: 2px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.tl {
  position: relative;
  display: grid;
  grid-template-columns: 54px 14px 1fr auto;
  align-items: start;
  gap: 0 12px;
  padding: 14px 0;
}
.tl:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 72px;
  top: 26px;
  bottom: -24px;
  width: 1.5px;
  background: var(--line-2);
}
.tl-time { font-family: var(--font-display); font-size: 17px; font-weight: 650; line-height: 1.2; padding-top: 1px; font-variant-numeric: tabular-nums; }
.tl-time.muted { color: var(--ink-3); }
.tl-time .ic { width: 20px; height: 20px; color: var(--ink-2); }
.tl-dot {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  margin: 6px auto 0;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: inset 0 0 0 2px var(--ink-3);
}
.tl.key .tl-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.tl.key .tl-title { font-weight: 700; }
.tl.key .tl-time { color: var(--accent-text); }
.tl-title { font-size: 15.5px; font-weight: 600; line-height: 1.3; }
.tl-sub { margin-top: 3px; font-size: 14px; color: var(--ink-2); }
.tl-sub .meter { display: inline-flex; vertical-align: -1px; margin-right: 7px; }
.tl-action { font-size: 14px; font-weight: 600; color: var(--accent-text); padding-top: 1px; }
.tl-action .ic { width: 18px; height: 18px; color: var(--ink-3); }
a.tl:active { opacity: .6; }


/* ── Flug buchen: Von → Nach, Ziele, Reisedaten ─────────── */

.rp { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.rp-field {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0;
  padding: 14px 16px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow);
  text-align: left; transition: transform .15s var(--ease);
}
.rp-field:active { transform: scale(.98); }
.rp-field.is-end { align-items: flex-end; text-align: right; }
.rp-k { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.rp-code { font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.1; letter-spacing: -.01em; }
.rp-code.is-empty { color: var(--ink-3); }
.rp-city { max-width: 100%; font-size: 14px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rp-swap {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 0 5px var(--bg); transition: transform .25s var(--ease);
}
.rp-swap .ic { width: 18px; height: 18px; rotate: 90deg; }
.rp-swap:active { transform: rotate(180deg); }

.dest-tiles { align-items: flex-start; }
.dest-tiles .tile { flex-basis: 112px; height: auto; justify-content: flex-start; text-align: left; }
.dest-tiles .tile-foot { display: none; }
.dest-tiles .tile-label { margin-top: 10px; }
.tile.is-selected { box-shadow: inset 0 0 0 2px var(--accent), var(--shadow); }

.dp { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dp-card {
  position: relative; display: flex; flex-direction: column; gap: 2px;
  padding: 14px 16px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); cursor: pointer;
}
.dp-k { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.dp-day { font-size: 14px; font-weight: 600; color: var(--accent-text); margin-top: 6px; }
.dp-date { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.dp-card.is-empty .dp-day { color: var(--ink-3); }
.dp-card.is-empty .dp-date { font-size: 17px; font-weight: 600; color: var(--ink-2); padding-top: 5px; }
.dp-card { transition: transform .15s var(--ease); }
.dp-card:active { transform: scale(.98); }
.dp-clear { position: absolute; z-index: 1; top: 8px; right: 8px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); }
.dp-clear .ic { width: 15px; height: 15px; }

/* Eigener Kalender */
.cal-sheet { display: flex; flex-direction: column; height: 86dvh; overflow: hidden; padding-bottom: 0; }
.cal-mode { margin: 12px 0 0; }
.cal-sum { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 6px; margin-top: 10px; }
.cal-sum.is-oneway { grid-template-columns: 1fr; }
.cal-sum.is-oneway > .ic, .cal-sum.is-oneway > #calRet { display: none; }
.cal-sum > .ic { width: 18px; height: 18px; color: var(--ink-3); }
.cal-slot { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; border-radius: var(--r-m); background: var(--surface); text-align: left; color: var(--ink); transition: box-shadow .2s var(--ease); }
.cal-slot b { font-size: 16px; font-weight: 700; }
.cal-slot.is-active { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); margin-top: 14px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 12px; font-weight: 600; color: var(--ink-3); text-align: center; }
.cal-months { position: relative; flex: 1; overflow-y: auto; overscroll-behavior: contain; padding-bottom: 12px; }
.cal-month h3 { margin: 18px 4px 8px; font-size: 16px; font-weight: 700; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); row-gap: 4px; isolation: isolate; }
.cal-day { position: relative; z-index: 0; height: 44px; font-size: 15px; font-weight: 600; color: var(--ink); background: none; }
.cal-day::before { content: ""; position: absolute; inset: 2px; border-radius: 50%; z-index: -1; transition: background .15s var(--ease); }
.cal-day:disabled { color: var(--ink-3); opacity: .45; cursor: default; }
.cal-day.is-today::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 4px; height: 4px; margin-left: -2px; border-radius: 50%; background: var(--accent); }
.cal-day.in-range { background: var(--accent-soft); }
.cal-day.has-range.is-start { background: linear-gradient(90deg, transparent 50%, var(--accent-soft) 50%); }
.cal-day.has-range.is-end { background: linear-gradient(90deg, var(--accent-soft) 50%, transparent 50%); }
.cal-day.is-start, .cal-day.is-end { color: #fff; }
.cal-day.is-start::before, .cal-day.is-end::before { background: var(--accent); }
.cal-day.is-start::after, .cal-day.is-end::after { background: #fff; }
.cal-foot { display: grid; gap: 10px; padding: 12px 0 calc(env(safe-area-inset-bottom, 0px) + 16px); border-top: 1px solid var(--line); }
.cal-foot .btn { margin-top: 0; }

.ap-sheet { min-height: 70dvh; }
.ap-sheet .ap-group { margin-top: 0; }


/* ── Öffi-Verbindung (wie im DB Navigator) ──────────────── */

.jr { padding: 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.jr-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 14px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.jr-arrow { color: var(--ink-3); font-size: 13px; }
.jr-sum-walk { display: inline-flex; align-items: flex-end; color: var(--ink-2); }
.jr-sum-walk .ic { width: 20px; height: 20px; }
.jr-sum-walk sub { font-size: 11px; font-weight: 700; line-height: 1; }

/* Linien-Abzeichen: Verkehrsmittel + Liniennummer */
.jr-badge { display: inline-flex; align-items: center; height: 24px; border-radius: 999px; overflow: hidden; font-size: 12.5px; font-weight: 750; white-space: nowrap; box-shadow: inset 0 0 0 1.5px var(--c); }
.jr-kind { display: grid; place-items: center; height: 100%; padding: 0 7px; background: var(--c); color: #fff; }
.jr-label { padding: 0 8px; color: var(--ink); }
.jr-badge.is-train { --c: var(--ink); border-radius: 6px; }

.jr-point, .jr-stop { display: grid; grid-template-columns: 1fr auto; align-items: baseline; column-gap: 10px; }
.jr-point { position: relative; padding: 10px 0 10px 26px; }
.jr-ticket { margin-top: 14px; width: 100%; }
.jr-ring { position: absolute; left: 3px; top: 15px; width: 12px; height: 12px; border-radius: 50%; box-shadow: inset 0 0 0 2.5px var(--ink-2); }
.jr-point.is-end .jr-ring { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.jr-name { font-weight: 650; min-width: 0; }
.jr-point b, .jr-stop b { font-variant-numeric: tabular-nums; font-weight: 700; }
.jr-gl { grid-column: 1 / -1; font-size: 13px; color: var(--ink-2); }

.jr-walk { display: flex; align-items: center; gap: 8px; padding: 8px 0 8px 26px; margin-left: 8px; border-left: 2px dotted var(--line-2); font-size: 14px; color: var(--ink-2); }
.jr-walk .ic { width: 18px; height: 18px; margin-left: -6px; }

/* Fahrt: Karte mit farbiger Linie links, Ein- und Ausstieg als Punkte */
.jr-ride { position: relative; margin: 6px 0; padding: 12px 14px 12px 34px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.jr-ride::before { content: ""; position: absolute; left: 14px; top: 22px; bottom: 22px; width: 4px; border-radius: 2px; background: var(--c); }
.jr-ride .jr-stop { position: relative; }
.jr-ride .jr-stop::before { content: ""; position: absolute; left: -26px; top: 5px; width: 12px; height: 12px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 3px var(--c); }
.jr-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 6px; }
.jr-dir { font-size: 14.5px; font-weight: 600; }
.jr-meta { font-size: 13px; color: var(--ink-2); margin-bottom: 12px; }


/* ── Diagramm: Andrang im Tagesverlauf ──────────────────── */

.chart-card { padding: 14px 16px 12px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.chart-read { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; margin-bottom: 8px; }
.chart-read-time { font-size: 14px; color: var(--ink-2); }
.chart-read-val { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; text-align: right; }

.chart {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
  height: 128px;
  padding-top: 22px;
  border-bottom: 1px solid var(--line-2);
  touch-action: pan-y;
  cursor: crosshair;
}
.chart-bar { position: relative; display: flex; align-items: flex-end; height: 100%; }
.chart-bar > span {
  display: block;
  width: 100%;
  max-width: 22px;
  height: var(--h);
  margin: 0 auto;
  border-radius: 4px 4px 0 0;
  background: var(--bar);
  transition: background .15s;
}
.chart-bar.is-past > span { opacity: .5; }
.chart-bar.is-active > span { background: var(--ink-3); opacity: 1; }
.chart-bar.is-mark > span { background: var(--accent); opacity: 1; }
.chart-pin {
  position: absolute;
  left: 50%;
  bottom: calc(var(--h) + 5px);
  transform: translateX(-50%);
  font-size: 11px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
  color: var(--accent-text);
  pointer-events: none;
}
.chart-axis { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 6px; font-size: 11px; color: var(--ink-3); font-variant-numeric: tabular-nums; }


/* ── Flughafen: Wartezeiten je Station ──────────────────── */

.station { display: block; padding: 14px 16px 16px; }
.station-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.station-name { display: flex; flex-direction: column; align-items: flex-start; gap: 5px; font-weight: 600; }
.station-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.station-src small { font-size: 12px; font-weight: 500; color: var(--ink-3); }
.station-val { font-size: 14px; color: var(--ink-2); white-space: nowrap; }
.station-val b { font-size: 16px; font-weight: 650; color: var(--ink); font-variant-numeric: tabular-nums; }
.track { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.track > span { display: block; height: 100%; width: 0; border-radius: 3px; transition: width .9s var(--ease); }

.ap-group { --sep: 80px; }
.ap-group .row.first::before { display: none; }

/* Suche in der Flughafen-Liste: Einträge gleiten weich an ihren neuen Platz */
::view-transition-group(*) { animation-duration: .32s; animation-timing-function: var(--ease); }
::view-transition-old(*), ::view-transition-new(*) { animation-duration: .22s; }
.ap-code { width: 50px; flex-shrink: 0; font-family: var(--font-display); font-size: 19px; font-weight: 650; }
.ap-wait { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; flex-shrink: 0; }
.ap-wait-top { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ap-wait-label { font-size: 13px; color: var(--ink-2); }


/* ── Boarding-Pass-Import ───────────────────────────────── */

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-bottom: 20px; list-style: none; }
.step { font-size: 13px; font-weight: 600; color: var(--ink-3); transition: color .3s; }
.step::before { content: ""; display: block; height: 4px; margin-bottom: 8px; border-radius: 2px; background: var(--line-2); transition: background .3s; }
.step.active { color: var(--ink); }
.step.active::before { background: var(--accent); }

.drop {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 240px;
  padding: 28px 20px;
  text-align: center;
  border-radius: var(--r-l);
  border: 1.5px dashed var(--line-2);
  background: var(--surface);
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.drop:active, .drop.dragover { background: var(--fill); border-color: var(--accent); }
.drop-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 12px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--accent-ink);
}
.drop-icon .ic { width: 26px; height: 26px; }
.drop-title { font-size: 17px; font-weight: 650; }
.drop-sub { font-size: 15px; color: var(--ink-2); }
.drop-meta { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

.preview { margin-bottom: 16px; border-radius: var(--r-m); overflow: hidden; background: var(--surface); }
.preview img { width: 100%; max-height: 260px; object-fit: contain; }

.scan { padding: 18px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.scan-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; font-weight: 600; }
.scan-head .spinner { color: var(--accent); }
.scan-pct { margin-left: auto; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.progress { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .3s; }

.raw { margin-top: 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.raw summary {
  display: flex;
  justify-content: space-between;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  list-style: none;
  cursor: pointer;
}
.raw summary::-webkit-details-marker { display: none; }
.raw summary::after { content: "Anzeigen"; font-weight: 500; color: var(--accent-text); }
.raw[open] summary::after { content: "Ausblenden"; }
.raw pre {
  max-height: 160px;
  overflow: auto;
  margin: 0 16px 16px;
  padding: 12px;
  border-radius: 10px;
  background: var(--surface-2);
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink-2);
  white-space: pre-wrap;
  word-break: break-word;
}


/* ── Tab-Leiste ─────────────────────────────────────────── */

.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  background: color-mix(in srgb, var(--bg) 84%, transparent);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  backdrop-filter: saturate(1.8) blur(20px);
  border-top: 1px solid var(--line);
}
.tabbar-inner {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  max-width: 560px;
  height: var(--tab-h);
  margin: 0 auto;
}
.tab {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-3);
  transition: color .2s;
}
.tab .ic { width: 24px; height: 24px; stroke-width: 1.7; transition: transform .15s var(--ease); }
.tab:active .ic { transform: scale(.88); }
.tab[aria-current="page"] { color: var(--accent-text); }
.tab[aria-current="page"] .ic { stroke-width: 2.1; }
.tab[aria-current="page"]::before {
  content: "";
  position: absolute;
  top: -1px;
  left: 50%;
  width: 22px;
  height: 2px;
  margin-left: -11px;
  border-radius: 0 0 2px 2px;
  background: var(--accent);
}


/* ── Schalter (an/aus) ──────────────────────────────────── */

.switch { position: relative; flex-shrink: 0; width: 51px; height: 31px; }
.switch input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; z-index: 1; }
.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: background .2s;
}
.switch span::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 27px;
  height: 27px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 6px rgba(0,0,0,.2);
  transition: transform .25s var(--ease);
}
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Umschalter in einer Listenzeile */
.row .seg { margin: 0; flex-shrink: 0; }
.row .seg button { height: 32px; padding: 0 12px; font-size: 14px; }
.row-stack { flex-direction: column; align-items: stretch; gap: 10px; }
.row-stack .seg { width: 100%; }


/* ── Profil & Anmeldung ─────────────────────────────────── */

.avatar {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 22px;
  font-weight: 650;
}
.profile-card { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.profile-name { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.profile-mail { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; }

.auth-card { padding: 20px 16px 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.auth-card .board-label { margin: 0; }
.auth-title { font-size: 19px; font-weight: 650; letter-spacing: -.015em; }
.auth-text { font-size: 15px; color: var(--ink-2); margin: 4px 0 18px; }
.auth-buttons { display: grid; gap: 10px; }
.btn-google { background: #fff; color: #1f1f1f; box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-apple  { background: #000; color: #fff; }
:root[data-theme="dark"] .btn-apple { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn-apple { box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); } }
.btn-google svg, .btn-apple svg { width: 20px; height: 20px; }
.divider { display: flex; align-items: center; gap: 12px; margin: 18px 0; font-size: 13px; color: var(--ink-3); }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.auth-card .form-group { background: var(--bg); box-shadow: none; }
.link-btn { font-size: 15px; font-weight: 600; color: var(--accent-text); }

.buffer-sum { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; }
.buffer-sum b { font-family: var(--font-display); font-size: 24px; font-weight: 650; line-height: 1; letter-spacing: -.01em; }
.buffer-parts { font-size: 13px; color: var(--ink-2); padding: 0 16px 14px; margin-top: -6px; }


/* ── Wetter-Karte ───────────────────────────────────────── */

.wx { padding: 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.wx-warm { background: radial-gradient(110% 80% at 100% 0%, rgba(240,178,58,.14), transparent 65%), var(--surface); }
.wx-cool { background: radial-gradient(110% 80% at 100% 0%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 65%), var(--surface); }
.wx-main { display: flex; justify-content: space-between; gap: 12px; }
.wx-place { font-size: 14px; color: var(--ink-2); }
.wx-temp { font-family: var(--font-display); font-size: 56px; font-weight: 300; line-height: 1; letter-spacing: -.03em; margin-top: 6px; }
.wx-label { font-size: 15px; font-weight: 600; margin-top: 4px; }
.wx-neutral .wx-label { font-weight: 400; color: var(--ink-2); margin-top: 6px; }
.wx-icon .ic { width: 56px; height: 56px; stroke-width: 1.3; color: var(--ink-2); }
.wx-warm .wx-icon .ic { color: var(--warn); }
.wx-cool .wx-icon .ic { color: var(--accent); }
.wx-meta { display: flex; gap: 16px; margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.wx-hours {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.wx-hours div { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); }
.wx-hours .ic { width: 20px; height: 20px; color: var(--ink-2); }
.wx-hours b { font-size: 15px; font-weight: 600; color: var(--ink); }



/* ── Wartezeit melden ───────────────────────────────────── */

.report { padding: 16px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.report-q { font-size: 16px; font-weight: 600; }
.report-sub { font-size: 14px; color: var(--ink-2); margin-top: 2px; }
.report-options { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.report-options button {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 12px 4px;
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 12px;
  color: var(--ink-2);
  transition: transform .15s var(--ease), background .2s;
}
.report-options button b { font-family: var(--font-display); font-size: 18px; font-weight: 650; color: var(--ink); line-height: 1.2; }
.report-options button:active { transform: scale(.95); background: var(--accent-soft); }
.report-options button:disabled { opacity: .5; }
.report-msg { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
.report-msg.ok { color: var(--ink); font-weight: 600; }
.report-msg.ok::before { content: "✓ "; color: var(--ok); }


/* ── Flugzeug fliegt die Route entlang ──────────────────── */

.route-line.fly { container-type: inline-size; }
.route-line.fly .ic { animation: plane-fly 2s var(--ease) .3s both; }
.route-line.fly::before { transform-origin: left center; animation: route-draw 2s var(--ease) .3s both; }
.route-line.fly::after { animation: route-fade .6s ease 1.9s both; }
@keyframes plane-fly {
  from { translate: calc(-50cqw + 10px) 0; opacity: 0; }
  12%  { opacity: 1; }
  to   { translate: 0 0; opacity: 1; }
}
@keyframes route-draw { from { transform: scaleX(0); } }
@keyframes route-fade { from { opacity: 0; } }


/* ── Startseite: Schnellzugriff ─────────────────────────── */

.quick { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.quick-item {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 104px;
  padding: 14px 12px 12px;
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--shadow);
  font-size: 15px;
  font-weight: 650;
  line-height: 1.25;
  transition: transform .15s var(--ease), background .15s;
}
.quick-item .ic {
  width: 34px;
  height: 34px;
  padding: 7px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.quick-item small { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.quick-item:first-child .ic { background: var(--accent); color: var(--accent-ink); }
.quick-item:active { transform: scale(.97); }
@media (hover: hover) { .quick-item:hover { background: color-mix(in srgb, var(--surface) 92%, var(--accent)); } }


/* Große Karte "Flug buchen" */
.book-card {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 10px;
  padding: 20px 18px;
  border-radius: var(--r-l);
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 62%, #0B1B4D));
  color: #fff;
  box-shadow: 0 10px 28px color-mix(in srgb, var(--accent) 36%, transparent);
  transition: transform .15s var(--ease);
}
.book-card::after {
  content: "";
  position: absolute;
  right: -40px;
  top: -60px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  pointer-events: none;
}
.book-card:active { transform: scale(.98); }
.book-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 15px;
  background: rgba(255,255,255,.16);
}
.book-icon .ic { width: 26px; height: 26px; }
.book-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.book-title { font-family: var(--font-display); font-size: 20px; font-weight: 700; letter-spacing: -.015em; }
.book-sub { font-size: 14px; opacity: .85; }
.book-chev { width: 22px; height: 22px; opacity: .85; }


/* ── Startseite: dein Abflughafen ───────────────────────── */

.home-airport .ap-code { font-size: 20px; }
.home-airport .row-sub { white-space: normal; }


/* ── Terminal & Gate auf der Karte ──────────────────────── */

.board-signs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin-top: 14px; font-size: 13px; color: var(--ink-2); }
.board-signs span { display: inline-flex; align-items: center; gap: 6px; }


/* ── Unteres Fenster (Sheet) ────────────────────────────── */

.sheet-backdrop {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(8,10,14,.45);
  animation: fade-in .2s ease both;
}
.sheet {
  width: 100%;
  max-width: 560px;
  max-height: 90dvh;
  overflow-y: auto;
  padding: 10px var(--gutter) calc(env(safe-area-inset-bottom, 0px) + 20px);
  border-radius: 24px 24px 0 0;
  background: var(--bg);
  animation: sheet-up .35s var(--ease) both;
}
.sheet-grab { position: relative; width: 38px; height: 5px; margin: 0 auto 14px; border-radius: 3px; background: var(--line-2); touch-action: none; cursor: grab; }
/* Größere Fläche zum Anfassen als der sichtbare Balken */
.sheet-grab::before { content: ""; position: absolute; inset: -14px -90px -10px; }
.sheet-head { touch-action: none; cursor: grab; user-select: none; }
.sheet .section-title { font-size: 20px; font-weight: 700; letter-spacing: -.02em; text-transform: none; color: var(--ink); margin: 0 0 4px; }
.sheet .group { margin-top: 14px; }
.sheet .btn { margin-top: 16px; }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes fade-in { from { opacity: 0; } }


/* ── Boardingkarte vorzeigen (immer hell, damit Scanner sie lesen) ── */

.pass { padding: 20px 20px 18px; border-radius: 22px; background: #fff; color: #111827; box-shadow: 0 10px 40px rgba(0,0,0,.25); }
.pass-head { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: #5B6472; }
.pass-flight { padding: 3px 10px; border-radius: 999px; background: rgba(37,99,235,.1); color: #1D4FD7; font-weight: 700; }
.pass-route { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 14px 0 12px; }
.pass-route b { font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -.01em; }
.pass-route .ic { flex: 1; height: 22px; color: #2563EB; transform: rotate(45deg); }
.pass-meta { display: grid; grid-template-columns: 1.6fr .7fr .7fr; gap: 10px; padding: 12px 0 16px; border-top: 1px dashed #D5D9E0; font-size: 15px; font-weight: 600; }
.pass-meta span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pass-meta small { display: block; font-size: 11.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: #959CA8; }
.pass-code { display: grid; place-items: center; min-height: 140px; padding: 6px 0 2px; color: #111827; }
.pass-code img { width: 100%; image-rendering: pixelated; }
.pass-code.is-square img { width: min(78%, 300px); }

/* Knopf "Boardingkarte zeigen" */
.pass-btn { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-m);
  background: var(--surface); box-shadow: var(--shadow); text-align: left; width: 100%; transition: transform .15s var(--ease); }
.pass-btn:active { transform: scale(.98); }
.pass-btn .row-icon { background: var(--accent); color: var(--accent-ink); }


/* ── Boardingkarte scannen ──────────────────────────────── */

.import-options { display: grid; gap: 10px; }
.import-option {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--shadow);
  text-align: left;
  cursor: pointer;
  transition: transform .15s var(--ease);
}
.import-option:active { transform: scale(.98); }
.import-option .drop-icon { width: 48px; height: 48px; margin: 0; border-radius: 14px; flex-shrink: 0; }
.import-option .drop-icon .ic { width: 24px; height: 24px; }
.import-option.secondary .drop-icon { background: var(--accent-soft); color: var(--accent-text); }

.scanner {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 62dvh;
  margin: 0 auto;
  border-radius: var(--r-l);
  background: #000;
}
.scanner video { width: 100%; height: 100%; object-fit: cover; }
.scanner-frame {
  position: absolute;
  inset: 22% 8%;
  border-radius: 18px;
  box-shadow: 0 0 0 100vmax rgba(0,0,0,.45);
  pointer-events: none;
}
/* Ecken: Rahmen nur dort sichtbar, wo beide Verläufe überlappen */
.scanner-frame::before {
  content: "";
  position: absolute;
  inset: -3px;
  border: 3px solid #fff;
  border-radius: 20px;
  -webkit-mask: linear-gradient(90deg, #000 20%, transparent 20% 80%, #000 80%), linear-gradient(#000 20%, transparent 20% 80%, #000 80%);
  -webkit-mask-composite: source-in;
  mask: linear-gradient(90deg, #000 20%, transparent 20% 80%, #000 80%), linear-gradient(#000 20%, transparent 20% 80%, #000 80%);
  mask-composite: intersect;
}
.scanner-line {
  position: absolute;
  left: 10%;
  right: 10%;
  top: 22%;
  height: 2px;
  background: #4F8EFF;
  box-shadow: 0 0 12px #4F8EFF;
  animation: scan-line 2.2s ease-in-out infinite alternate;
}
@keyframes scan-line { to { top: 78%; } }
.scanner-hint {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 16px;
  padding: 0 20px;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,.6);
}

.leg-pick { display: flex; align-items: center; gap: 12px; }
.leg-pick .switch { margin-left: auto; }


/* ── Werbung ────────────────────────────────────────────── */

.ad-slot {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 28px;
  padding: 12px 16px 14px;
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: var(--shadow);
}
.ad-label { font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--ink-3); }
.ad-preview {
  display: grid;
  place-items: center;
  min-height: 80px;
  padding: 12px;
  border-radius: 10px;
  border: 1.5px dashed var(--line-2);
  text-align: center;
  font-size: 13px;
  color: var(--ink-3);
}
.ad-preview a { text-decoration: underline; color: var(--ink-2); }

.consent {
  position: fixed;
  left: 50%;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 10px);
  z-index: 65;
  width: min(520px, calc(100% - 20px));
  padding: 16px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: 0 12px 40px rgba(0,0,0,.22), 0 0 0 1px var(--line);
  transform: translateX(-50%);
  animation: sheet-up .4s var(--ease) both;
}
.consent-title { font-size: 17px; font-weight: 650; }
.consent-text { font-size: 14px; color: var(--ink-2); margin-top: 4px; }
.consent-text a { text-decoration: underline; }
.consent-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.consent-actions .btn { min-height: 46px; font-size: 15px; }


/* ── Premium / Abo ──────────────────────────────────────── */

.premium-hero { text-align: left; }
.premium-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.premium-badge .ic { width: 14px; height: 14px; }
.premium-title { font-family: var(--font-display); font-size: 28px; font-weight: 700; line-height: 1.12; letter-spacing: -.025em; margin-top: 14px; }
.premium-sub { font-size: 15px; color: var(--ink-2); margin-top: 6px; }

.features .row-icon { color: var(--accent-text); }
.feature-soon { font-size: 11px; font-weight: 700; letter-spacing: .04em; color: var(--ink-3); margin-left: 6px; }

.plans { display: grid; gap: 10px; }
.plan {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px;
  border-radius: var(--r-m);
  background: var(--surface);
  box-shadow: inset 0 0 0 1.5px var(--line-2);
  text-align: left;
  transition: box-shadow .2s;
}
.plan[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.plan-radio {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--line-2);
  transition: box-shadow .2s;
}
.plan[aria-checked="true"] .plan-radio,
.row[aria-checked="true"] .plan-radio { box-shadow: inset 0 0 0 7px var(--accent); }
.trains { display: inline-flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 4px; }
.train { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--ink); }
.train-line { padding: 1px 6px; border-radius: 999px; background: #408335; color: #fff; font-size: 12px; font-weight: 700; }
.train-delay { color: var(--bad); font-weight: 600; }
.train-gl { padding: 0 6px; border-radius: 5px; background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--ink); }
.train-gl.changed { background: var(--warn-soft); color: var(--ink); }
.plan-name { font-size: 16px; font-weight: 650; }
.plan-note { font-size: 14px; color: var(--ink-2); }
.plan-price { margin-left: auto; text-align: right; }
.plan-price b { display: block; font-family: var(--font-display); font-size: 22px; font-weight: 650; line-height: 1.1; letter-spacing: -.01em; }
.plan-price span { font-size: 13px; color: var(--ink-2); }
.plan-save {
  position: absolute;
  top: -10px;
  right: 14px;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--accent-ink);
  font-size: 12px;
  font-weight: 700;
}
.legal { font-size: 12px; line-height: 1.55; color: var(--ink-3); margin: 14px 4px 0; text-align: center; }
.legal a { text-decoration: underline; }


/* ── Bewegung reduzieren, wenn im System eingestellt ────── */

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ── Startseite: Wetter zum Wischen ─────────────────────── */
.wx-swipe { display: flex; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter) 6px; scroll-padding: 0 var(--gutter); }
.wx-swipe::-webkit-scrollbar { display: none; }
.wx-slide { flex: 0 0 100%; scroll-snap-align: start; }
.wx-slide .wx { height: 100%; }
.wx-tabs { display: flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--surface-2); }
.wx-tabs:empty { display: none; }
.wx-tabs button { height: 26px; padding: 0 10px; border-radius: 7px; font-size: 13px; font-weight: 700; color: var(--ink-2); transition: background .2s, color .2s; }
.wx-tabs button[aria-selected="true"] { background: var(--seg-on); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

/* ── Startseite: Wann losfahren ─────────────────────────── */
.go-card { display: block; padding: 16px; border-radius: var(--r-m); background: radial-gradient(120% 80% at 100% 0%, var(--board-glow), transparent 70%), var(--surface); box-shadow: var(--shadow); color: var(--ink); }
.go-card:active { transform: scale(.99); }
.go-empty { display: flex; align-items: center; gap: 14px; }
.go-icon { display: grid; place-items: center; flex: none; width: 42px; height: 42px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.go-icon .ic { width: 22px; height: 22px; }
.go-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.go-k { font-size: 12px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-3); }
.go-time { font-family: var(--font-display); font-size: 44px; font-weight: 700; line-height: 1.05; letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }
.go-chip { flex: none; margin-top: 4px; padding: 6px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-text); font-size: 13px; font-weight: 700; }
.go-chip.is-now { background: var(--accent); color: #fff; }
.go-chip.is-late { background: var(--bad); color: #fff; }
.go-how { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 12px; }
.go-how-text { gap: 8px; font-size: 14px; color: var(--ink-2); }
.go-how-text .ic { width: 20px; height: 20px; color: var(--accent-text); }
.go-steps { list-style: none; margin: 14px 0 0; padding: 12px 0 0; border-top: 1px solid var(--line); }
.go-steps li { position: relative; display: grid; grid-template-columns: 52px 1fr; gap: 10px; padding: 5px 0 5px 16px; font-size: 14px; color: var(--ink-2); }
.go-steps li::before { content: ""; position: absolute; left: 0; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); }
.go-steps li:not(:last-child)::after { content: ""; position: absolute; left: 3px; top: 20px; bottom: -6px; width: 1px; background: var(--line); }
.go-steps b { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.go-steps span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.go-steps li.is-key::before { background: var(--accent); }
.go-steps li.is-key span { color: var(--ink); font-weight: 600; }

/* Keine Scrollbalken – auf dem Handy wird ohnehin gewischt */
html, .sheet, .cal-months { scrollbar-width: none; }
html::-webkit-scrollbar, .sheet::-webkit-scrollbar, .cal-months::-webkit-scrollbar { display: none; }


/* ── Bestätigungscode ───────────────────────────────────── */
.code-lead { margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.code-lead b { color: var(--ink); }
.code-input {
  display: block; width: 100%; height: 64px; margin-top: 20px; padding: 0 16px;
  border: 0; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2);
  font-family: var(--font-display); font-size: 32px; font-weight: 700; letter-spacing: .5em; text-align: center; text-indent: .5em;
  color: var(--ink); font-variant-numeric: tabular-nums;
}
.code-input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.code-input::placeholder { color: var(--ink-3); letter-spacing: .5em; }

/* ── Profilbild & Profil bearbeiten ─────────────────────── */
.avatar-photo { overflow: hidden; }
.avatar-photo img, .avatar-lg img { width: 100%; height: 100%; object-fit: cover; }
.profile-edit { display: block; margin-top: 4px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.pe-photo { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-top: 8px; }
.avatar-lg { width: 112px; height: 112px; font-size: 44px; overflow: hidden; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 25%, transparent); }
.pe-photo-actions { display: flex; align-items: center; gap: 4px; }
.pe-photo-actions .btn { margin-top: 0; height: 40px; min-height: 40px; padding: 0 16px; font-size: 15px; }
.pe-photo-actions .btn .ic { width: 18px; height: 18px; }
.pe-static { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); font-size: 16px; }

/* ── Start-Animation (nur App) ──────────────────────────── */
html.booting body > :not(.boot) { visibility: hidden; }
.boot { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: var(--bg); transition: opacity .4s var(--ease), transform .4s var(--ease); }
.boot.is-done { opacity: 0; transform: scale(1.04); pointer-events: none; }
.boot-stage { position: relative; width: 240px; height: 240px; display: grid; place-items: center; }
.boot-logo .ic { width: 96px; height: 96px; border-radius: 26px; box-shadow: 0 16px 40px color-mix(in srgb, var(--accent) 40%, transparent); animation: boot-logo .9s cubic-bezier(.2,.8,.2,1.2) both; }
.boot-trail { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); overflow: visible; }
.boot-trail path { fill: none; stroke: color-mix(in srgb, var(--accent) 55%, transparent); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 600; stroke-dashoffset: 600; animation: boot-trail 1.5s .2s cubic-bezier(.45,.05,.3,1) forwards; }
.boot-plane { position: absolute; left: 0; top: 0; color: var(--ink); offset-path: path("M-60 290 C 70 260, 190 170, 380 0"); offset-rotate: auto; animation: boot-fly 1.5s .2s cubic-bezier(.45,.05,.3,1) both; }
.boot-plane .ic { width: 34px; height: 34px; transform: rotate(45deg); }
.boot-name { font-family: var(--font-display); font-size: 24px; font-weight: 700; letter-spacing: -.02em; animation: boot-name .6s .6s var(--ease) both; }
@keyframes boot-logo { from { opacity: 0; transform: scale(.7); } }
@keyframes boot-trail { to { stroke-dashoffset: 0; } }
@keyframes boot-fly { from { offset-distance: 0%; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { offset-distance: 100%; opacity: 0; } }
@keyframes boot-name { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .boot * { animation-duration: .01s !important; animation-delay: 0s !important; } }

/* ── Flugsuche: Datum-Knöpfe und Abflugliste ────────────── */
.fs-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 999px;
  background: var(--surface); color: var(--ink-2); font-size: 15px; font-weight: 600; box-shadow: inset 0 0 0 1px var(--line-2);
  transition: background .2s, color .2s, box-shadow .2s; }
.fs-chip .ic { width: 17px; height: 17px; }
.fs-chip.is-on { background: var(--accent-soft); color: var(--accent-text); box-shadow: inset 0 0 0 2px var(--accent); }
.fs-row { gap: 14px; }
.fs-time { flex: none; width: 54px; display: flex; flex-direction: column; font-family: var(--font-display); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; }
.fs-time small { font-size: 12px; font-weight: 700; color: var(--warn); }
.fs-code { font-size: 13px; font-weight: 600; color: var(--ink-3); margin-left: 2px; }
.fs-row .tag { flex: none; }
.fs-row.is-gone .fs-time, .fs-row.is-gone .row-title { text-decoration: line-through; color: var(--ink-3); }
.fs-chip small { font-size: 12px; font-weight: 600; opacity: .7; }
.fs-day { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 15px; font-weight: 600; color: var(--ink); }
.fs-day .ic { width: 18px; height: 18px; color: var(--accent-text); }
.seg button[hidden] { display: none; }

/* ── Airline-Logos (pics.avs.io, quadratisch) ───────────── */
.al-logo { flex: none; display: inline-block; object-fit: cover; border-radius: 9px; background: #fff; box-shadow: 0 0 0 1px var(--line); vertical-align: middle; }
.al-sm { width: 28px; height: 28px; border-radius: 8px; }
.al-md { width: 34px; height: 34px; }
.al-kicker { width: 20px; height: 20px; border-radius: 6px; margin-right: 8px; position: relative; top: -1px; }
.al-empty { background: var(--surface-2); box-shadow: none; }
.board-flight-wrap { display: inline-flex; align-items: center; gap: 8px; }
.flight-top .al-logo { margin-right: 2px; }

/* ── Startseite: Umschalter Übersicht / Route ───────────── */
.home-view { margin: 4px 0 12px; }

/* ── Route (Reiseplan wie in der MVV-App): Zuhause → Flughafen → Flug → Ziel ── */
.rt { padding: 16px 16px 8px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.rt-sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.rt-chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px; border-radius: 999px; background: var(--fill); font-size: 13px; font-weight: 700; }
.rt-chip .ic { width: 16px; height: 16px; }
.rt-chip-fly { padding-left: 3px; background: var(--accent-soft); color: var(--accent-text); }
.al-chip { width: 20px; height: 20px; border-radius: 50%; }
/* Zeile = [Uhrzeit | Punkt/Linie | Text] */
.rt-point, .rt-seg { display: grid; grid-template-columns: 48px 22px 1fr; column-gap: 8px; }
.rt-point { position: relative; padding: 8px 0; align-items: start; }
.rt-time { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 15px; text-align: right; padding-top: 1px; }
.rt-dot { position: relative; justify-self: center; width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--surface); box-shadow: inset 0 0 0 3px var(--ink-2); z-index: 1; }
.rt-point.is-small .rt-dot { width: 8px; height: 8px; margin-top: 6px; box-shadow: inset 0 0 0 2px var(--ink-3); }
.rt-point.is-small .rt-title { font-size: 14.5px; font-weight: 600; }
.rt-point.is-start .rt-dot { box-shadow: inset 0 0 0 3px var(--accent); }
.rt-point.is-transfer .rt-dot { width: 14px; height: 14px; margin-top: 3px; box-shadow: inset 0 0 0 3px var(--warn); }
.rt-point.is-end .rt-dot { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.rt-title { font-weight: 650; line-height: 1.3; }
.rt-sub { margin-top: 2px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.rt-sub .ic { width: 15px; height: 15px; vertical-align: -3px; margin-right: 2px; }
/* durchgehende Linie zwischen den Punkten */
.rt-point::before { content: ""; position: absolute; left: calc(48px + 8px + 10px); top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.rt-point.is-start::before { top: 16px; }
.rt-point.is-end::before { bottom: auto; height: 12px; }
.rt-seg { align-items: stretch; }
.rt-bar { justify-self: center; width: 4px; border-radius: 2px; background: var(--line-2); }
.rt-seg.is-ground .rt-bar { width: 2px; background: repeating-linear-gradient(var(--ink-3) 0 4px, transparent 4px 8px); }
.rt-seg.is-fly .rt-bar { background: var(--accent); }
.rt-seg-body { padding: 6px 0 10px; min-width: 0; }
.rt-seg.is-empty .rt-seg-body { padding: 4px 0; }
.rt-ground { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.rt-flight { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.rt-gap { font-weight: 700; color: var(--ink); }
.rt-gap.is-tight, .board-row b.is-tight { color: var(--warn); }
.rt-link { display: inline-flex; align-items: center; gap: 2px; font-weight: 600; color: var(--accent-text); }
.rt-link .ic { width: 16px; height: 16px; }

/* ── Einführung (Tour) ──────────────────────────────────── */
.tour { position: fixed; inset: 0; z-index: 300; }
.tour-hole { position: fixed; border-radius: 16px; box-shadow: 0 0 0 9999px rgba(6,9,20,.72), 0 0 0 2px var(--accent); transition: all .35s var(--ease); pointer-events: none; }
.tour-card { position: fixed; left: 16px; right: 16px; max-width: 420px; margin: 0 auto; padding: 18px; border-radius: 20px; background: var(--surface); box-shadow: 0 20px 50px rgba(0,0,0,.4); animation: fade-in .25s ease; }
.tour-step { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--accent-text); }
.tour-title { margin-top: 4px; font-size: 19px; font-weight: 700; letter-spacing: -.01em; }
.tour-text { margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.tour-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 16px; }
.tour-actions .btn { width: auto; min-height: 44px; margin: 0; padding: 0 22px; }
.tour-skip { font-size: 15px; font-weight: 600; color: var(--ink-3); padding: 10px 4px; }
/* Seiten ohne hervorgehobenes Element: ganzer Hintergrund abgedunkelt */
.tour.no-target { background: rgba(6,9,20,.72); }
.tour-btns { display: flex; align-items: center; gap: 8px; }
.tour-actions .btn-plain { min-height: 44px; padding: 0 12px; }
.tour-actions .btn { white-space: nowrap; }

/* Reiseplan: farbige Linie endet genau am letzten Punkt – auch wenn darunter "Gl. …" steht */
.jr-ride:has(.jr-stop:last-child .jr-gl)::before { bottom: 41px; }

/* Fenster von unten: Inhalt scrollt im Fenster, die Seite dahinter bleibt stehen */
.sheet { overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
html:has(.sheet-backdrop:not([hidden])), body:has(.sheet-backdrop:not([hidden])) { overflow: hidden; }

/* Live-Angaben im Reiseplan (Verspätung, Ausfall, pünktlich) */
.live-tag { display: inline-block; margin-left: 6px; padding: 1px 6px; border-radius: 6px; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.live-tag.is-late { background: var(--warn-soft); color: var(--warn); }
.live-tag.is-bad { background: var(--bad-soft); color: var(--bad); }
.live-tag.is-ok { background: var(--ok-soft); color: var(--ok); }
.jr-gl.is-changed { color: var(--warn); font-weight: 700; }

/* ── Checkliste ─────────────────────────────────────────── */
.ck-progress { height: 6px; margin-top: 12px; border-radius: 3px; background: var(--fill); overflow: hidden; }
.ck-progress span { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .3s var(--ease); }
.ck-row { gap: 12px; min-height: 48px; }
.ck-row .row-body { cursor: pointer; }
.ck-box { flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 7px; box-shadow: inset 0 0 0 2px var(--line-2); color: #fff; transition: background .15s, box-shadow .15s; }
.ck-box .ic { width: 16px; height: 16px; stroke-width: 2.6; }
.ck-row.is-done .ck-box { background: var(--accent); box-shadow: none; }
.ck-row.is-done .row-title { color: var(--ink-3); text-decoration: line-through; }
.ck-del { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--ink-3); }
.ck-del .ic { width: 16px; height: 16px; }
.ck-add { display: flex; gap: 8px; margin-top: 16px; }
.ck-add input { flex: 1; min-width: 0; height: 46px; padding: 0 14px; border: 0; border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; box-shadow: inset 0 0 0 1px var(--line-2); }
.ck-add input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--accent); }
.ck-add .icon-btn { width: 46px; height: 46px; border-radius: 12px; background: var(--accent); color: #fff; }
.ck-entry .ck-count { font-weight: 700; color: var(--accent-text); }

/* ── Route (Startseite): Schritte auf einer Linie, erledigte abgehakt ── */
.rv { padding: 8px 14px 6px; border-radius: var(--r-m); background: var(--surface); box-shadow: var(--shadow); }
.rv-step { position: relative; display: grid; grid-template-columns: 44px 34px 1fr; column-gap: 10px; padding: 10px 0; }
.rv-step::before { content: ""; position: absolute; left: calc(44px + 10px + 16px); top: 0; bottom: 0; width: 2px; background: var(--line-2); }
.rv-step:first-child::before { top: 24px; }
.rv-step:last-child::before { bottom: auto; height: 24px; }
.rv-step.is-done::before { background: var(--accent); }
.rv-step.is-ground::before { background: repeating-linear-gradient(var(--ink-3) 0 4px, transparent 4px 8px); }
.rv-step.is-fly::before { width: 4px; left: calc(44px + 10px + 15px); background: var(--accent); }
.rv-time { padding-top: 7px; text-align: right; font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }
.rv-node { position: relative; z-index: 1; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); box-shadow: 0 0 0 4px var(--surface); }
.rv-node .ic { width: 17px; height: 17px; }
.rv-step.is-key .rv-node, .rv-step.is-fly .rv-node { background: var(--accent-soft); color: var(--accent-text); }
.rv-step.is-transfer .rv-node { background: var(--warn-soft); color: var(--warn); }
.rv-step.is-end .rv-node { background: var(--accent); color: #fff; }
.rv-step.is-done .rv-node { background: var(--accent); color: #fff; }
.rv-step.is-done .rv-time, .rv-step.is-done .rv-title, .rv-step.is-done .rv-sub { opacity: .5; }
.rv-step.is-now .rv-node { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--accent-soft); background: var(--accent); color: #fff; }
.rv-body { min-width: 0; padding-top: 6px; }
.rv-title { font-weight: 650; line-height: 1.3; }
.rv-sub { margin-top: 2px; font-size: 13.5px; color: var(--ink-2); line-height: 1.4; }
.rv-now { margin-left: 8px; padding: 2px 8px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 11.5px; font-weight: 700; vertical-align: 2px; }
/* aufklappbare Bahnverbindung */
.rv-details { margin-top: 10px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.rv-details summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 12px; list-style: none; cursor: pointer; }
.rv-details summary::-webkit-details-marker { display: none; }
.rv-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; min-width: 0; }
.rv-more { flex: none; display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.rv-more .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.rv-details[open] .rv-more .ic { transform: rotate(90deg); }
.rv-details .jr { box-shadow: none; background: transparent; padding: 4px 12px 12px; }
.rv-details .jr-sum { display: none; }
/* Flug als Karte */
.rv-flight { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 12px; border-radius: 14px; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line); }
.rv-flight-times { display: flex; flex-direction: column; }
.rv-flight-times.end { text-align: right; margin-left: auto; }
.rv-flight-times b { font-size: 17px; font-variant-numeric: tabular-nums; }
.rv-flight-times span { font-size: 12.5px; color: var(--ink-2); }
.rv-flight-line { flex: 1; display: flex; justify-content: center; color: var(--accent); }
.rv-flight-line .ic { width: 18px; height: 18px; }

/* Frühere/spätere Verbindung + Warnung "Flug nicht mehr erreichbar" */
.conn-btns { display: inline-flex; gap: 14px; }
.missed { margin-bottom: 14px; padding: 22px 18px 18px; border-radius: var(--r-m); background: var(--bad-soft); text-align: center; }
.missed-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--bad); color: #fff; margin-bottom: 12px; }
.missed-ic .ic { width: 26px; height: 26px; }
.missed-title { font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--ink); margin: 0 0 8px; text-wrap: balance; }
.missed-text { font-size: 14.5px; color: var(--ink-2); margin: 0 0 16px; text-wrap: pretty; }
.missed-text b { color: var(--bad); }
#journey.is-missed { opacity: .55; }

/* Checkliste: zu welchem Flug sie gehört */
.ck-flight { display: flex; align-items: center; gap: 12px; margin: 4px 0 2px; padding: 12px 14px; border-radius: var(--r-m); background: var(--accent-soft); }
.ck-flight-logo { width: 36px; height: 36px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--surface); color: var(--accent); }
.ck-flight-logo .ic { width: 20px; height: 20px; }
.ck-flight-body { display: grid; gap: 2px; min-width: 0; }
.ck-flight-body b { font-size: 16px; color: var(--ink); }
.ck-flight-body span { font-size: 13px; color: var(--ink-2); }

/* Geteilte Checkliste */
.ck-sec { margin-top: 22px; }
.ck-sec-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 650; color: var(--ink); margin: 0; }
.ck-sec-title .ic { width: 18px; height: 18px; color: var(--accent); }
.ck-sec-sub { font-size: 12.5px; color: var(--ink-3); margin: 3px 0 0; }
.ck-other { padding: 12px 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.ck-other summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; list-style: none; }
.ck-other summary::-webkit-details-marker { display: none; }
.ck-count { font-size: 13px; color: var(--ink-3); font-weight: 600; }
.ck-box.is-ro { opacity: .6; }
.ck-by { display: inline-flex; align-items: center; gap: 4px; margin-top: 2px; font-size: 12px; font-weight: 600; color: var(--accent); }
.ck-by .ic { width: 12px; height: 12px; }
.ck-priv-btn { margin-top: 22px; }

/* Reise teilen */
.share-lead { margin: 14px 2px 4px; font-size: 14.5px; color: var(--ink-2); text-wrap: pretty; }
.share-toggle { margin: 12px 0 14px; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1px var(--line); }
.share-qr { display: grid; place-items: center; margin: 18px auto 6px; width: 220px; height: 220px; padding: 10px; border-radius: 18px; background: #fff; }
.share-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.share-code-label { text-align: center; font-size: 13px; color: var(--ink-3); margin: 10px 0 2px; }
.share-code { text-align: center; font-family: var(--font-display); font-size: 30px; font-weight: 750; letter-spacing: .12em; color: var(--ink); margin: 0 0 4px; }
.share-avatar { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 700; }
.share-stop { color: var(--bad); margin-top: 14px; }
.share-sheet .notice { margin-top: 14px; }
.shared-by { display: flex; align-items: center; gap: 10px; width: 100%; margin: 4px 0 12px; padding: 10px 14px; border: 0; border-radius: var(--r-m); background: var(--accent-soft); color: var(--ink-2); font: inherit; font-size: 14px; text-align: left; }
.shared-by .ic { width: 18px; height: 18px; color: var(--accent); flex: none; }
.shared-by .ic:last-child { margin-left: auto; color: var(--ink-3); }
.shared-by b { color: var(--ink); }
.share-entry .row-icon { background: var(--accent-soft); color: var(--accent); }
.shared-tag { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); font-weight: 600; } .shared-tag .ic { width: 14px; height: 14px; }

/* Kamera beim Scannen: ca. ein Drittel des Bildschirms, oben (sonst rutscht sie aus dem Bild) */
#cameraStep .scanner, .join-scan .scanner { width: 100%; height: 36dvh; aspect-ratio: auto; max-height: none; }

/* Checkliste anlegen: Vorschläge ankreuzen */
.ck-pick-lead { margin: 16px 2px 4px; font-size: 14px; color: var(--ink-2); text-wrap: pretty; }
.ck-pick-head { display: flex; align-items: baseline; justify-content: space-between; margin-top: 16px; }
.ck-pick-head .field-label { margin: 0; }
.ck-pick-all { border: 0; background: none; padding: 4px 2px; font: inherit; font-size: 13px; font-weight: 600; color: var(--accent-text); }
.ck-pick { cursor: pointer; }
.ck-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ck-pick .ck-box .ic { opacity: 0; }
.ck-pick input:checked + .ck-box { background: var(--accent); box-shadow: none; color: #fff; }
.ck-pick input:checked + .ck-box .ic { opacity: 1; }
.ck-pick .share-avatar { margin-right: -4px; }
.ck-title { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.ck-rename .ic { width: 16px; height: 16px; color: var(--ink-3); }
.ck-title-input { font-size: 18px; font-weight: 700; padding: 6px 10px; min-height: 0; }
.ck-empty { margin: 10px 2px; font-size: 13.5px; color: var(--ink-3); }
.ck-bell { flex: none; width: 34px; height: 34px; border: 0; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.ck-bell .ic { width: 17px; height: 17px; }
.ck-more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--accent-text); }
.ck-more .ic { width: 15px; height: 15px; }
.ck-create { display: flex; align-items: center; gap: 12px; width: 100%; margin-top: 14px; padding: 14px; border: 0; border-radius: var(--r-m); background: var(--surface); box-shadow: inset 0 0 0 1.5px var(--line-2); font: inherit; text-align: left; color: inherit; }
.ck-create > .ic { color: var(--accent); width: 20px; height: 20px; }
.ck-create-ic { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; background: var(--accent-soft); color: var(--accent); }
.ck-create-ic .ic { width: 20px; height: 20px; }

/* Checklisten-Fenster: groß gezogen */

.ck-sheet.is-full { max-height: none; }

/* Erfolgs-Animation */
.celebrate { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; background: rgba(8,12,24,.55); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: cel-fade .25s ease both; }
.celebrate.is-out { animation: cel-fade .3s ease reverse both; }
.celebrate-card { display: grid; justify-items: center; gap: 10px; padding: 32px 28px 28px; margin: 0 32px; border-radius: 28px; background: var(--surface); box-shadow: 0 30px 80px rgba(0,0,0,.4); text-align: center; animation: cel-pop .5s cubic-bezier(.2,1.4,.4,1) both; }
.celebrate-check { width: 96px; height: 96px; }
.celebrate-check circle { fill: var(--accent); stroke: none; transform-origin: center; animation: cel-pop .45s cubic-bezier(.2,1.5,.4,1) both; }
.celebrate-check path { fill: none; stroke: #fff; stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 40; stroke-dashoffset: 40; animation: cel-draw .45s .3s ease-out forwards; }
.celebrate-title { font-family: var(--font-display); font-size: 22px; font-weight: 750; color: var(--ink); margin: 6px 0 0; text-wrap: balance; }
.celebrate-sub { font-size: 14.5px; color: var(--ink-2); margin: 0; }
@keyframes cel-fade { from { opacity: 0; } }
@keyframes cel-pop { from { transform: scale(.4); opacity: 0; } }
@keyframes cel-draw { to { stroke-dashoffset: 0; } }
.celebrate.is-info .celebrate-check circle { fill: var(--ink-3); } .celebrate.is-error .celebrate-check circle { fill: var(--bad); }

/* Wartezeit messen (Flughafen-Seite) */
.report-mode { margin-bottom: 14px; }
.measure { margin-top: 14px; }
.measure-stations, .measure-lanes, .measure-adjust { display: grid; gap: 8px; margin-top: 8px; }
.measure-stations { grid-template-columns: repeat(3, 1fr); }
.measure-lanes, .measure-adjust { grid-template-columns: repeat(4, 1fr); }
.measure-stations button, .measure-lanes button, .measure-adjust button {
  min-height: 48px; padding: 8px 6px; border: 0; border-radius: 12px; font: inherit; font-size: 14px; font-weight: 600;
  color: var(--ink); background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); line-height: 1.2; hyphens: manual;
}
.measure-stations button[aria-pressed="true"], .measure-lanes button[aria-pressed="true"] { background: var(--accent-soft); box-shadow: inset 0 0 0 2px var(--accent); color: var(--accent-text); }
.measure-adjust button { font-family: var(--font-display); font-size: 17px; }
.measure-adjust button:active, .measure-stations button:active, .measure-lanes button:active { transform: scale(.95); }
.measure-go { margin-top: 14px; min-height: 56px; font-size: 17px; }
.measure-label { text-align: center; font-size: 14px; color: var(--ink-2); margin: 4px 0 0; }
.measure-clock { text-align: center; font-family: var(--font-display); font-size: 56px; font-weight: 750; letter-spacing: -.02em; color: var(--ink); margin: 2px 0 4px; font-variant-numeric: tabular-nums; }
.measure-clock small { font-size: 20px; font-weight: 600; color: var(--ink-2); }
.field-label .opt { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--ink-3); }

/* Startseite: laufende Messung */
.measure-banner { display: flex; align-items: center; gap: 12px; margin-top: 12px; padding: 14px 16px; border-radius: var(--r-m); background: var(--accent); color: var(--accent-ink); text-decoration: none; }
.measure-banner .ic { width: 22px; height: 22px; flex: none; }
.measure-banner b { display: block; font-size: 15px; }
.measure-banner span span { font-size: 13px; opacity: .85; }
.measure-banner .row-chev { margin-left: auto; }
.now-sep { font-family: var(--font-display); font-size: .7em; font-weight: 600; color: var(--ink-2); margin: 0 4px; align-self: center; }
