:root {
  --bg: #f5f6f8; --card: #ffffff; --ink: #14181f; --muted: #5d6673; --line: #e2e5ea;
  --accent: #2f6fdd; --accent-ink: #ffffff; --seat-off: #d5d9e0; --shadow: 0 1px 2px rgba(20,24,31,.06), 0 4px 16px rgba(20,24,31,.05);
  --radius: 14px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1217; --card: #181c23; --ink: #eef0f3; --muted: #99a2b0; --line: #2a303a;
    --accent: #6a9bf5; --accent-ink: #0f1217; --seat-off: #2c333e; --shadow: none;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
a { color: var(--accent); }

.top { position: sticky; top: 0; z-index: 10; background: var(--card); border-bottom: 1px solid var(--line); }
.top__in { display: flex; align-items: center; gap: 20px; min-height: 60px; flex-wrap: wrap; padding-block: 8px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: -.01em; }
.brand svg { color: var(--accent); }
.tabs { display: flex; gap: 4px; overflow-x: auto; margin-left: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: flex; flex-direction: column; align-items: flex-start; padding: 6px 14px; border-radius: 10px;
  text-decoration: none; color: var(--muted); white-space: nowrap; line-height: 1.2; border: 1px solid transparent; }
.tab small { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
.tab b { font-size: 15px; font-weight: 600; color: var(--ink); }
.tab:hover { background: var(--bg); }
.tab[aria-current="page"] { background: var(--accent); }
.tab[aria-current="page"] small, .tab[aria-current="page"] b { color: var(--accent-ink); }

main { padding-block: 24px 40px; min-height: 70vh; }
.loading { color: var(--muted); }
h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 4px; letter-spacing: -.02em; }
.sub { margin: 0; color: var(--muted); }
.head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.meta { font-size: 13px; color: var(--muted); text-align: right; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.chart { padding: 20px 12px 8px; }
.chart svg { display: block; width: 100%; height: auto; max-width: 760px; margin: 0 auto; }
.seat { transition: opacity .15s, r .15s; }
.dim .seat:not(.on) { opacity: .15; }
.center-n { font-size: 44px; font-weight: 700; fill: var(--ink); letter-spacing: -.03em; }
.center-l { font-size: 14px; fill: var(--muted); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 12px 0 20px; }
.stat { padding: 12px 16px; }
.stat b { display: block; font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.2; }
.stat span { font-size: 13px; color: var(--muted); }

.bar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; margin: 4px 0 16px; background: var(--seat-off); }
.bar i { display: block; min-width: 2px; }

.facs { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; margin-bottom: 28px; }
.fac { text-align: left; font: inherit; color: inherit; cursor: pointer; padding: 12px 14px; display: flex; gap: 12px; align-items: center;
  border: 1px solid var(--line); border-radius: 12px; background: var(--card); }
.fac:hover { border-color: var(--accent); }
.fac[aria-pressed="true"] { outline: 2px solid var(--accent); outline-offset: 1px; }
.fac__dot { width: 14px; height: 14px; border-radius: 50%; flex: none; }
.fac__n { margin-left: auto; text-align: right; line-height: 1.15; }
.fac__n b { font-size: 1.35rem; letter-spacing: -.02em; }
.fac__n small { display: block; color: var(--muted); font-size: 12px; }
.fac__t { line-height: 1.25; min-width: 0; }
.fac__t b { display: block; }
.fac__t small { color: var(--muted); font-size: 12px; display: block; overflow: hidden; text-overflow: ellipsis; }

.tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; align-items: center; }
.tools h2 { margin: 0 auto 0 0; font-size: 1.25rem; letter-spacing: -.01em; }
input[type=search], select { font: inherit; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
input[type=search] { min-width: min(260px, 100%); }

.grp { margin-bottom: 14px; padding: 0; overflow: hidden; }
.grp > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-weight: 600; }
.grp > summary::-webkit-details-marker { display: none; }
.grp > summary::after { content: "▾"; margin-left: auto; color: var(--muted); transition: transform .15s; }
.grp[open] > summary::after { transform: rotate(180deg); }
.grp .cnt { color: var(--muted); font-weight: 400; }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 6px 14px; padding: 4px 16px 16px; margin: 0; list-style: none; }
.members li { padding: 6px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.members a { color: inherit; text-decoration: none; }
.members a:hover { color: var(--accent); text-decoration: underline; }
.tag { font-size: 11px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 0 6px; white-space: nowrap; }
.empty { color: var(--muted); padding: 8px 16px 16px; }

.note { padding: 18px 20px; border-left: 4px solid #e0a100; margin-bottom: 20px; }
.note b { display: block; margin-bottom: 4px; }
.foot { color: var(--muted); font-size: 13px; padding-bottom: 32px; }

@media (max-width: 640px) {
  .meta { text-align: left; }
  .tabs { margin-left: 0; width: 100%; }
  .center-n { font-size: 52px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Ticker */
.ticker { display: flex; align-items: stretch; overflow: hidden; margin-bottom: 16px; }
.ticker__lbl { flex: none; display: flex; align-items: center; padding: 0 14px; background: var(--accent); color: var(--accent-ink);
  font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.ticker__view { flex: 1; overflow: hidden; min-width: 0; }
.ticker__track { display: flex; width: max-content; animation: tick var(--dur, 60s) linear infinite; }
.ticker__view:hover .ticker__track, .ticker__view:focus-within .ticker__track { animation-play-state: paused; }
.ticker__set { display: flex; flex: none; }
.tick { display: inline-flex; align-items: center; gap: 8px; padding: 12px 22px; color: var(--ink); text-decoration: none; white-space: nowrap; font-size: 14px; }
.tick b { font-weight: 600; }
.tick time { color: var(--muted); font-size: 12px; }
.tick__t { max-width: 46ch; overflow: hidden; text-overflow: ellipsis; }
.tick:hover .tick__t { text-decoration: underline; }
.tick--gruen b { color: #3d9a35; }
@keyframes tick { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker__track { animation: none; }
  .ticker__view { overflow-x: auto; }
  .ticker__set[aria-hidden] { display: none; }
}

/* Meldungsliste */
.news { list-style: none; margin: 0 0 8px; padding: 4px 16px; }
.news li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.news li:last-child { border-bottom: 0; }
.news li > .fac__dot { margin-top: 7px; }
.news a { font-weight: 600; color: var(--ink); text-decoration: none; }
.news a:hover { color: var(--accent); text-decoration: underline; }
.news small { display: block; color: var(--muted); font-size: 12px; }
.news p { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.news .is-gruen { box-shadow: -3px 0 0 #3d9a35; padding-left: 10px; margin-left: -13px; }
.news__miss { margin: 0 0 28px; text-align: left; }
.tools .meta { text-align: right; }
