/* EventRace Monitor 2 - Hochformat 1080 x 1920, skaliert auf jede Bildschirmgroesse */
:root {
  color-scheme: dark;
  --bg: #0D1013;
  --surface: #151A1F;
  --surface-2: #1B2128;
  --line: #27303A;
  --text: #EEF1F3;
  --muted: #8995A1;
  --soft: #B7C0C9;
  --purple: #B35CFF;
  --green: #2BD46A;
  --yellow: #FFC400;
  --live: #E0312B;
  --font-display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --font-body: "Barlow", "Helvetica Neue", Helvetica, sans-serif;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); }
body { color: var(--text); font-family: var(--font-body); overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; }

.stage { position: relative; width: 1080px; height: 1920px; transform-origin: center center; flex: none; }
.screen {
  position: absolute; inset: 0; background: var(--bg);
  display: grid; grid-template-rows: 150px 1fr 76px; padding: 36px 40px 0;
}
.num { font-variant-numeric: tabular-nums; font-family: var(--font-body); }
.label { font-size: 22px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }

/* Kopf */
.m-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.m-title { font-family: var(--font-display); font-size: 76px; font-weight: 800; line-height: 0.95; }
.m-sub { font-size: 30px; color: var(--soft); margin-top: 8px; }
.m-right { text-align: right; }
.pill { display: inline-block; font-size: 22px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; padding: 6px 14px; border-radius: 6px; border: 1px solid var(--line); color: var(--muted); }
.pill.live { background: var(--live); border-color: var(--live); color: #fff; }
.pill.done { background: var(--text); border-color: var(--text); color: var(--bg); }
.pill.ready { border-color: var(--yellow); color: var(--yellow); }
.m-meta { font-family: var(--font-display); font-size: 48px; font-weight: 700; margin-top: 10px; }

/* Inhalt */
.m-body { min-height: 0; padding-top: 30px; display: flex; flex-direction: column; gap: 34px; }
.panel { display: flex; flex-direction: column; gap: 12px; }
.panel h2 { font-size: 24px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.panel h2 span { display: block; margin-top: 6px; font-size: 22px; letter-spacing: 0.02em; text-transform: none; font-weight: 500; }
svg text { font-family: var(--font-body); }

/* Fuss */
.m-foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); font-size: 22px; color: var(--muted); }
.dots { display: flex; gap: 10px; align-items: center; }
.dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--text); }

/* Kacheln */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--surface); border-radius: 12px; padding: 22px 26px; }
.tile .v { font-family: var(--font-display); font-size: 76px; font-weight: 700; line-height: 1; margin-top: 8px; }
.tile .s { font-size: 24px; color: var(--soft); margin-top: 8px; }
.t-fl { color: var(--purple); }

/* Listen */
.rows { display: flex; flex-direction: column; gap: 10px; }
.row { display: grid; align-items: center; gap: 18px; background: var(--surface); border-radius: 10px; min-height: 112px; padding-right: 22px; overflow: hidden; }
.chip { align-self: stretch; display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-weight: 800; font-size: 40px; }
.who b { display: block; font-family: var(--font-display); font-size: 44px; font-weight: 800; line-height: 1; }
.who span { font-size: 24px; color: var(--soft); }
.big { font-family: var(--font-display); font-weight: 700; font-size: 48px; text-align: right; }
.rank { font-family: var(--font-display); font-weight: 800; font-size: 48px; text-align: center; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Demo-Steuerung (nur Vorschau) */
.demo-bar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 10px 16px; flex: none; }
.demo-bar button { font: 600 14px var(--font-body); color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 8px 14px; cursor: pointer; min-height: 36px; }
.demo-bar button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.demo-bar button:focus-visible { outline: 2px solid var(--yellow); outline-offset: 2px; }
