:root {
  --ink: #0f0a1f;
  --surface: #1a1432;
  --line: #4f4870;
  --gold: #e6b866;
  --gold-soft: #f5d9a0;
  --paper: #f5f1ff;
  --muted: #b4adcf;
  --danger: #f87171;
  --ok: #34d399;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--ink);
  color: var(--paper);
  padding-bottom: 76px;
  -webkit-font-smoothing: antialiased;
}

.topbar {
  display: flex; align-items: baseline; gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
  position: sticky; top: 0; background: var(--ink); z-index: 5;
}
.brand { font-weight: 800; letter-spacing: .12em; font-size: 13px; color: var(--gold); }
.title { font-size: 15px; color: var(--muted); }

main { padding: 16px 20px 24px; max-width: 560px; margin: 0 auto; }

.card {
  background: var(--surface);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
}

.label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 6px; }
.gross { font-size: 22px; font-weight: 700; margin: 0 0 4px; }
.muted { color: var(--muted); font-size: 14px; margin: 0; }
.fussnote { color: var(--muted); font-size: 12px; margin: 14px 0 0; text-align: center; }
.stand { color: var(--muted); font-size: 12px; text-align: center; margin-top: 18px; }

.passkopf { display: flex; justify-content: space-between; align-items: center; }
.status { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(52,211,153,.15); color: var(--ok); }
.status.aus { background: rgba(248,113,113,.15); color: var(--danger); }

.qrfeld {
  aspect-ratio: 1; margin: 16px auto 0; max-width: 320px;
  background: #fff; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  color: #111; padding: 12px;
}
.qrfeld img, .qrfeld svg { width: 100%; height: 100%; }
.hinweis { color: #444; font-size: 14px; text-align: center; }

.filter { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 12px; }
.pill {
  border: 1px solid rgba(255,255,255,.18); background: transparent; color: var(--paper);
  padding: 10px 16px; border-radius: 999px; font-size: 14px; min-height: 44px;
}
.pill.aktiv { background: var(--gold); color: #150f2b; border-color: var(--gold); font-weight: 700; }

.tag { border-top: 1px solid rgba(255,255,255,.08); padding: 14px 0 4px; }
.tagkopf { display: flex; gap: 14px; align-items: baseline; margin-bottom: 10px; }
.tagdatum { font-weight: 800; font-size: 18px; color: var(--gold); }
.tagwoche { color: var(--muted); font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }

.termin {
  display: flex; gap: 14px; align-items: baseline;
  padding: 10px 0; border-bottom: 1px solid rgba(255,255,255,.06);
}
.zeit { color: var(--gold-soft); font-variant-numeric: tabular-nums; font-weight: 700; min-width: 52px; }
.kurs { font-weight: 600; }
.ort { color: var(--muted); font-size: 13px; }
.termin.ausfall .kurs { text-decoration: line-through; color: var(--muted); }
.termin.ausfall .zeit { color: var(--danger); }
.flag { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold); }

.aushang { border-left: 3px solid var(--gold); padding-left: 14px; margin-bottom: 18px; }
.aushang h3 { margin: 2px 0 6px; font-size: 17px; }
.aushang a { color: var(--gold-soft); }

.tabs {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; background: var(--surface);
  border-top: 1px solid rgba(255,255,255,.12);
  padding-bottom: env(safe-area-inset-bottom);
}
.tab {
  flex: 1; background: none; border: 0; color: var(--muted);
  padding: 16px 0; font-size: 14px; min-height: 56px; position: relative;
}
.tab.aktiv { color: var(--gold); font-weight: 700; }
.badge {
  position: absolute; top: 10px; right: 26%;
  background: var(--gold); color: #150f2b; border-radius: 999px;
  font-size: 10px; font-weight: 800; padding: 1px 6px;
}
