/* ==========================================================================
   KONFERENZ (Style 2 Variant): Broadcast Match Wall
   Dark stadium charcoal, one amber on-air accent. Corner rule: 4px on
   surfaces, 2px on tags, buttons square-ish 4px. No glows.
   ========================================================================== */

:root {
  --bg-void: #0D0F12;
  --bg-surface: #14171C;
  --bg-elevated: #1B2027;
  --bg-hover: #222933;
  --line: rgba(241, 236, 226, 0.09);
  --line-strong: rgba(241, 236, 226, 0.2);
  --ink: #F1ECE2;
  --ink-dim: #9AA3AE;
  --ink-faint: #6B7480;
  --amber: #F2A413;
  --amber-ink: #0D0F12;
  --amber-dim: rgba(242, 164, 19, 0.14);
  --amber-line: rgba(242, 164, 19, 0.5);
  --live: #E24B3B;
  --live-dim: rgba(226, 75, 59, 0.16);
  --card-yellow: #E5B63A;
  --home: #F2A413;
  --away: #F1ECE2;

  --r-surface: 4px;
  --r-tag: 2px;
  --r-btn: 4px;

  --font-display: 'Barlow Condensed', 'Arial Narrow', system-ui, sans-serif;
  --font-sans: 'Barlow', system-ui, -apple-system, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, monospace;

  --wall-width: 380px;
  --header-h: 56px;
  color-scheme: dark;
}

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

html {
  background: var(--bg-void);
  color: var(--ink);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-size: 14.5px;
  line-height: 1.5;
  min-height: 100dvh;
  overflow-x: hidden;
}

img, svg { display: block; }
button, a { color: inherit; font-family: inherit; }
ul, ol { list-style: none; }

.icon {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  background: var(--amber);
  color: var(--amber-ink);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  padding: 8px 14px;
  text-decoration: none;
  border-radius: var(--r-btn);
}
.skip-link:focus { left: 16px; }
:focus-visible { outline: 2px solid var(--amber); outline-offset: 2px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* ==========================================================================
   HEADER (single line, 56px)
   ========================================================================== */
.top-bar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: rgba(13, 15, 18, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.top-bar-inner {
  height: 100%;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  background: var(--bg-surface);
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s, color 0.15s, border-color 0.15s;
}
.back-link:hover { background: var(--bg-elevated); color: var(--ink); border-color: var(--line-strong); }

.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  text-decoration: none;
  min-width: 0;
  white-space: nowrap;
}
.brand-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  overflow: hidden;
  text-overflow: ellipsis;
}
.brand-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--amber);
  line-height: 1;
}
.brand-day {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  padding-left: 10px;
  border-left: 1px solid var(--line-strong);
}

.header-status {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.demo-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px dashed var(--line-strong);
  padding: 3px 8px;
  border-radius: var(--r-tag);
  white-space: nowrap;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--r-btn);
  background: var(--live-dim);
  border: 1px solid rgba(226, 75, 59, 0.4);
  color: var(--ink);
  text-decoration: none;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
.live-pill:hover { background: rgba(226, 75, 59, 0.26); }

.live-dot,
.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
  flex-shrink: 0;
  animation: onAir 1.6s ease-in-out infinite;
}

@keyframes onAir {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

/* ==========================================================================
   SPLIT-SCREEN KONFERENZ LAYOUT
   ========================================================================== */
.konferenz {
  display: grid;
  grid-template-columns: var(--wall-width) minmax(0, 1fr);
  min-height: calc(100dvh - var(--header-h));
}

.wand-col {
  background: var(--bg-void);
  border-right: 1px solid var(--line);
}

.wand {
  position: sticky;
  top: var(--header-h);
  max-height: calc(100dvh - var(--header-h));
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
}

.wand-head {
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--line);
}

.wand-title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1;
  color: var(--ink);
}

.wand-sub {
  margin-top: 4px;
  font-size: 13px;
  color: var(--ink-dim);
}

/* Match wall rows: broadcast score bugs, not cards */
.wand-list {
  display: flex;
  flex-direction: column;
}

.wall-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px 12px 16px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
  color: var(--ink);
  transition: background-color 0.15s;
}
.wall-row:hover { background: var(--bg-surface); }
.wall-row:active { background: var(--bg-elevated); }

.wall-row::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: transparent;
}
.wall-row.is-active { background: var(--bg-surface); }
.wall-row.is-active::before { background: var(--amber); }

.wall-row-top {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
}

.wall-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1;
}
.wall-status .live-dot { width: 6px; height: 6px; }
.wall-status.is-live { color: var(--live); }
.wall-status.is-ft { color: var(--ink-dim); }
.wall-status.is-upcoming { color: var(--amber); }

.wall-venue {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wall-teams {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.wall-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  line-height: 1.1;
  white-space: nowrap;
  overflow: hidden;
}
.wall-crest { width: 16px; height: 16px; flex-shrink: 0; display: inline-flex; }
.wall-crest svg { width: 16px; height: 16px; }
.wall-team .wall-crest svg { width: 14px; height: 14px; }
.wall-team-name {
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
  min-width: 0;
}
.wall-rank {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--ink-faint);
  min-width: 14px;
  text-align: center;
}
.wall-row.is-active .wall-rank { color: var(--amber); }

.wall-score {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-align: right;
  white-space: nowrap;
}
.wall-score.is-time { font-size: 15px; font-weight: 600; color: var(--amber); letter-spacing: 0; }
.wall-row:not(.is-active) .wall-score { color: var(--ink-dim); }

.wall-clock {
  grid-column: 1 / -1;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-dim);
}
.wall-row.is-active .wall-clock { color: var(--ink); }

.wall-bar {
  grid-column: 1 / -1;
  height: 3px;
  margin-top: 7px;
  display: flex;
  gap: 2px;
}
.wall-bar span.is-home { background: var(--amber); }
.wall-bar span.is-away { background: var(--ink-faint); }
.wall-bar span.is-zero { background: transparent; }

/* Ticker across all matches (compact on-air list) */
.ticker {
  margin-top: auto;
  border-top: 1px solid var(--line-strong);
  background: var(--bg-surface);
}

.ticker-title {
  padding: 12px 18px 6px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--amber);
}

.ticker-list {
  padding: 0 0 8px;
  max-height: 260px;
  overflow-y: auto;
}

.ticker-item {
  display: grid;
  grid-template-columns: 38px 54px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  font-size: 12.5px;
  border-bottom: 1px solid var(--line);
}
.ticker-item:last-child { border-bottom: 0; }
.ticker-item:hover { background: var(--bg-elevated); }

.ticker-min {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.ticker-match {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-dim);
}
.ticker-item.is-goal .ticker-match { color: var(--amber); }
.ticker-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
}
.ticker-type {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-faint);
}
.ticker-type.is-goal { color: var(--amber); }
.ticker-type.is-red { color: var(--live); }
.ticker-type.is-yellow { color: var(--card-yellow); }

.ticker-empty {
  padding: 10px 18px 14px;
  font-size: 12.5px;
  color: var(--ink-faint);
}

/* ==========================================================================
   FOCUS COLUMN (selected match)
   ========================================================================== */
.fokus-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
}

.fokus {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  overflow: hidden;
  background: var(--bg-surface);
}
.fokus:focus-visible { outline-offset: 2px; }

.fokus-backdrop {
  position: absolute;
  inset: 0 0 auto 0;
  height: 340px;
  background-image: url('../assets/stadium-night.jpg');
  background-size: cover;
  background-position: center 40%;
  opacity: 0.35;
  pointer-events: none;
}
.fokus-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13, 15, 18, 0.55) 0%, rgba(20, 23, 28, 0.92) 70%, #14171C 100%);
}

.fokus-head {
  position: relative;
  padding: 14px 20px 18px;
  border-bottom: 1px solid var(--line);
}

.onair-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--ink-dim);
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 24px;
  padding: 0 10px;
  border-radius: var(--r-tag);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1;
  background: var(--amber);
  color: var(--amber-ink);
}
.status-badge.is-live {
  background: var(--live);
  color: #fff;
}
.status-badge.is-ft { background: var(--bg-elevated); color: var(--ink-dim); border: 1px solid var(--line-strong); }
.status-badge.is-ft .status-dot,
.status-badge.is-upcoming .status-dot { display: none; }
.status-badge.is-live .status-dot { background: #fff; }

.onair-clock {
  font-size: 20px;
  font-weight: 700;
  color: var(--amber);
  letter-spacing: -0.02em;
}
.onair-phase { text-transform: uppercase; letter-spacing: 0.06em; font-size: 11px; }
.onair-venue { margin-left: auto; font-weight: 500; color: var(--ink-dim); }

.scoreboard {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: start;
  gap: 24px;
}

.team { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.team-home { align-items: flex-end; text-align: right; }
.team-away { align-items: flex-start; text-align: left; }

.team-row { display: flex; align-items: center; gap: 14px; max-width: 100%; }
.team-home .team-row { flex-direction: row-reverse; }

.crest {
  width: 56px;
  height: 56px;
  padding: 7px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-surface);
  background: var(--bg-void);
  flex-shrink: 0;
}
.crest svg { width: 100%; height: 100%; }

.team-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}
.team-home .team-meta { justify-content: flex-end; }

.team-code {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  padding: 2px 6px;
  border-radius: var(--r-tag);
}
.team-form {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--ink-dim);
}

.team-name {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(22px, 2.3vw, 32px);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  line-height: 1.05;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.scorers {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.team-home .scorers { align-items: flex-end; }
.scorer {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.scorer svg { width: 12px; height: 12px; }
.scorer-min {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink);
}
.scorer-name { color: var(--ink); font-weight: 500; }
.scorer-note { color: var(--ink-faint); font-size: 11.5px; }
.scorer.is-goal svg { color: var(--amber); }
.scorer.is-red svg { color: var(--live); }

.score {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px 8px;
  background: var(--bg-void);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--amber);
  border-radius: var(--r-surface);
  font-family: var(--font-display);
  font-size: clamp(48px, 5vw, 72px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}
.score.is-vs { font-size: clamp(34px, 4vw, 48px); color: var(--amber); letter-spacing: 0.1em; }
.score.is-time { font-family: var(--font-mono); font-size: clamp(30px, 3.6vw, 44px); letter-spacing: -0.04em; color: var(--ink); }
.score-sep { color: var(--ink-faint); font-weight: 500; }

.score-caption {
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--ink);
  max-width: 64ch;
}

/* Focus body: tabs + views */
.fokus-body { padding: 0 20px 20px; }

.panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 16px;
  padding: 16px 0 12px;
}

.panel-title-group { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

.panel-title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.1;
  color: var(--ink);
}
.panel-sub { font-size: 13px; color: var(--ink-dim); }

.tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
  padding: 3px 8px;
  border-radius: var(--r-tag);
  white-space: nowrap;
}

.tabs {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  overflow: hidden;
}
.tab {
  height: 34px;
  padding: 0 14px;
  border: 0;
  background: var(--bg-void);
  color: var(--ink-dim);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.tab + .tab { border-left: 1px solid var(--line-strong); }
.tab:hover { color: var(--ink); background: var(--bg-elevated); }
.tab.is-active { background: var(--amber); color: var(--amber-ink); }

.view[hidden] { display: none; }

/* Timeline: on-air log with a minute spine */
.timeline {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  column-gap: 12px;
  row-gap: 4px;
  align-items: center;
}
.timeline-divider {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-dim);
}
.timeline-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line);
}

.tl-min {
  justify-self: end;
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-dim);
  padding: 3px 6px;
  border: 1px solid var(--line);
  border-radius: var(--r-tag);
  background: var(--bg-void);
  text-align: center;
  white-space: nowrap;
}
.tl-min.is-goal { color: var(--amber); border-color: var(--amber-line); }
.tl-min.is-red { color: var(--live); border-color: rgba(226, 75, 59, 0.5); }

.tl-event {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 8px 12px;
  border-left: 2px solid transparent;
  background: var(--bg-elevated);
  border-radius: 0 var(--r-tag) var(--r-tag) 0;
  font-size: 13.5px;
}
.tl-event.is-away { grid-column: 2; border-left-color: var(--line-strong); }
.tl-event.is-home { grid-column: 2; border-left-color: var(--amber); }
.tl-event.is-goal { background: var(--amber-dim); border-color: var(--amber); }
.tl-event.is-red { background: var(--live-dim); border-color: var(--live); }
.tl-event.is-yellow { border-color: var(--card-yellow); }
.tl-event.is-info { background: transparent; border: 1px dashed var(--line-strong); border-radius: var(--r-tag); }

.tl-icon { width: 14px; height: 14px; flex-shrink: 0; }
.tl-icon svg { width: 14px; height: 14px; }
.tl-icon.is-goal { color: var(--amber); }
.tl-icon.is-red { color: var(--live); }
.tl-icon.is-yellow { color: var(--card-yellow); }
.tl-icon.is-info { color: var(--ink-dim); }

.tl-text { display: flex; flex-direction: column; min-width: 0; }
.tl-player { font-weight: 600; color: var(--ink); }
.tl-detail { font-size: 12px; color: var(--ink-dim); }

.tl-side {
  margin-left: auto;
  padding-left: 12px;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  flex-shrink: 0;
}
.tl-event.is-home .tl-side { color: var(--amber); }

/* ==========================================================================
   PITCH + LINEUPS
   ========================================================================== */
.pitch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}
.pitch-forms { display: flex; align-items: center; gap: 8px; }
.form-pill {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: var(--r-tag);
  border: 1px solid var(--line-strong);
  background: var(--bg-void);
}
.form-pill.is-home { color: var(--home); border-color: var(--amber-line); }
.form-pill.is-away { color: var(--ink); }

.filter {
  display: inline-flex;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-btn);
  overflow: hidden;
}
.filter-btn {
  height: 30px;
  padding: 0 12px;
  border: 0;
  background: var(--bg-void);
  color: var(--ink-dim);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.filter-btn + .filter-btn { border-left: 1px solid var(--line-strong); }
.filter-btn:hover { color: var(--ink); background: var(--bg-elevated); }
.filter-btn.is-active { background: var(--amber); color: var(--amber-ink); font-weight: 600; }

.pitch-stage {
  padding: 10px;
  background: var(--bg-void);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
}
.pitch-svg { width: 100%; height: auto; }

.pitch-player-node { cursor: pointer; }
.pitch-player-node:hover .node-circle { stroke-width: 2.6; }
.pitch-player-node:focus-visible { outline: none; }
.pitch-player-node:focus-visible .node-ring { opacity: 1; stroke-dasharray: none; }
.pitch-player-node.is-selected .node-ring { opacity: 1; }
.node-ring { opacity: 0; transition: opacity 0.15s; }

.inspector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-height: 44px;
  margin-top: 12px;
  padding: 10px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
}
.inspector-hint { font-size: 13px; color: var(--ink-dim); }

.inspector-main { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inspector-num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 13px;
  padding: 2px 7px;
  border-radius: var(--r-tag);
  background: var(--bg-void);
  border: 1px solid var(--line-strong);
  color: var(--ink);
}
.inspector-num.is-home { color: var(--home); border-color: var(--amber-line); }
.inspector-name { font-family: var(--font-display); font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.03em; }
.inspector-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }
.inspector-badges { display: flex; gap: 6px; flex-wrap: wrap; }

.badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--r-tag);
}
.badge.is-goal { background: var(--amber-dim); color: var(--amber); }
.badge.is-yellow { background: rgba(229, 182, 58, 0.16); color: var(--card-yellow); }
.badge.is-red { background: var(--live-dim); color: var(--live); }
.badge.is-info { background: var(--bg-void); color: var(--ink-dim); border: 1px solid var(--line); }

.lineups {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.lineup {
  background: var(--bg-elevated);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  padding: 12px 14px;
}
.lineup-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.lineup-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lineup-form { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim); flex-shrink: 0; }

.roster-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 5px 8px;
  border: 1px solid transparent;
  border-radius: var(--r-tag);
  background: transparent;
  text-align: left;
  cursor: pointer;
}
.roster-item:hover { background: var(--bg-surface); }
.roster-item.is-selected { background: var(--bg-surface); border-color: var(--amber-line); }
.roster-left { display: flex; align-items: center; gap: 8px; min-width: 0; }
.roster-num { width: 22px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--ink-dim); text-align: right; font-variant-numeric: tabular-nums; }
.roster-pos { width: 30px; font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-faint); }
.roster-name { font-size: 13px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster-tags { display: inline-flex; gap: 4px; flex-shrink: 0; }
.micro {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: var(--r-tag);
}
.micro.is-goal { background: var(--amber-dim); color: var(--amber); }
.micro.is-yellow { background: rgba(229, 182, 58, 0.16); color: var(--card-yellow); }
.micro.is-red { background: var(--live-dim); color: var(--live); }
.micro.is-info { background: var(--bg-void); color: var(--ink-dim); }

/* ==========================================================================
   TELEMETRY (compact dual bars, no filled background track)
   ========================================================================== */
.telemetry {
  margin-top: 16px;
  padding: 14px 16px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  background: var(--bg-void);
}
.telemetry-head {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}
.telemetry-title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.telemetry-sub { font-size: 12.5px; color: var(--ink-dim); }

.telemetry-bars { display: grid; gap: 12px; }

.tel-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  gap: 12px;
}
.tel-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  font-size: 13.5px;
  font-weight: 700;
}
.tel-num.is-home { text-align: right; color: var(--home); }
.tel-num.is-away { text-align: left; color: var(--ink); }

.tel-center { display: flex; flex-direction: column; gap: 4px; }
.tel-label {
  text-align: center;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-dim);
}
.tel-track {
  display: flex;
  height: 4px;
  gap: 2px;
}
.tel-fill-home { background: var(--home); transition: width 0.3s ease; }
.tel-fill-away { background: var(--ink-faint); transition: width 0.3s ease; }

/* ==========================================================================
   LOWER GRID: standings + fund demo
   ========================================================================== */
.lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.panel {
  background: var(--bg-surface);
  border: 1px solid var(--line);
  border-radius: var(--r-surface);
  min-width: 0;
}
.panel .panel-head { padding: 16px 18px 12px; }

.standings-wrap { width: 100%; overflow-x: auto; }

.standings-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}
.standings-table th {
  padding: 8px 8px 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}
.standings-table th.col-team { text-align: left; }
.standings-table td {
  padding: 9px 8px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}
.standings-table tbody tr:last-child td { border-bottom: 0; }
.standings-table tbody tr { transition: background-color 0.12s; }
.standings-table tbody tr:hover { background: var(--bg-elevated); }
.standings-table tr.is-match-team { background: var(--amber-dim); }
.standings-table tr.is-match-team:hover { background: rgba(242, 164, 19, 0.2); }
.standings-table tr.is-match-team td:first-child { box-shadow: inset 3px 0 0 var(--amber); }

.standings-table th:first-child,
.standings-table td:first-child { padding-left: 18px; }
.standings-table th:last-child,
.standings-table td:last-child { padding-right: 18px; }

.col-rank, .col-num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  text-align: center;
  color: var(--ink-dim);
}
.col-rank { font-weight: 700; color: var(--ink); width: 30px; }
.col-pts { font-weight: 700; color: var(--ink); }

.team-cell { display: flex; align-items: center; gap: 9px; min-width: 0; }
.table-crest { width: 18px; height: 18px; flex-shrink: 0; }
.table-crest svg { width: 18px; height: 18px; }
.table-team-name {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.form-bars { display: inline-flex; gap: 3px; justify-content: center; }
.form-bar { width: 5px; height: 14px; border-radius: 1px; }
.form-bar.is-w { background: var(--amber); }
.form-bar.is-d { background: var(--ink-faint); height: 10px; }
.form-bar.is-l { background: var(--live); height: 7px; }

/* Fund demo */
.fonds-photo {
  position: relative;
  height: 118px;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: flex-end;
}
.fonds-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  opacity: 0.5;
}
.fonds-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 23, 28, 0.3) 0%, #14171C 100%);
}
.fonds-photo-content {
  position: relative;
  z-index: 2;
  padding: 14px 18px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.fonds-kicker {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--amber);
}
.fonds-title {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fonds-body { padding: 16px 18px 18px; display: grid; gap: 12px; }

.fonds-figures {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.fonds-amount-wrap { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.fonds-amount {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
  line-height: 1;
}
.fonds-goal { font-family: var(--font-mono); font-size: 12.5px; color: var(--ink-dim); }
.fonds-percent {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
  padding: 3px 8px;
  border-radius: var(--r-tag);
}

.segments {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 3px;
  height: 10px;
}
.progress-seg { background: var(--bg-elevated); border-radius: 1px; transition: background-color 0.2s; }
.progress-seg.is-filled { background: var(--amber); }
.progress-seg.is-partial { background: rgba(242, 164, 19, 0.45); }

.fonds-meta { font-family: var(--font-mono); font-size: 12px; color: var(--ink-dim); }

.fonds-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: var(--r-btn);
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
  cursor: pointer;
  transition: filter 0.15s, background-color 0.15s, color 0.15s, transform 0.1s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { flex: 1; background: var(--amber); border-color: var(--amber); color: var(--amber-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--ink-dim); font-size: 14px; }
.btn-ghost:hover { background: var(--bg-elevated); color: var(--ink); }
.btn-secondary { height: 34px; background: var(--bg-void); border-color: var(--line-strong); color: var(--ink); font-size: 14px; }
.btn-secondary:hover { border-color: var(--amber); background: var(--bg-elevated); }

.fonds-feedback {
  min-height: 18px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--amber);
}

/* ==========================================================================
   FICTIONAL ADS (clearly labelled)
   ========================================================================== */
.anzeige {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.partner { padding: 16px 18px; display: grid; gap: 12px; }
.partner-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.partner-brand { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.partner-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--bg-void);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-surface);
  color: var(--amber);
  flex-shrink: 0;
}
.partner-name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}
.partner-copy { margin-top: 2px; font-size: 13px; color: var(--ink-dim); line-height: 1.45; }

.ad-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-dim);
  border: 1px solid var(--line-strong);
  background: var(--bg-void);
  padding: 2px 6px;
  border-radius: var(--r-tag);
  white-space: nowrap;
  flex-shrink: 0;
}

.partner-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.partner-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-dim); }
.partner-confirm {
  font-size: 12.5px;
  color: var(--ink);
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
  border-radius: var(--r-tag);
  padding: 8px 10px;
}
.mono { font-family: var(--font-mono); font-weight: 700; color: var(--amber); }

.led {
  position: relative;
  border: 1px solid var(--line-strong);
  border-left: 4px solid var(--amber);
  border-radius: var(--r-surface);
  background-color: var(--bg-surface);
  background-image: repeating-linear-gradient(0deg, rgba(241, 236, 226, 0.03) 0 1px, transparent 1px 4px);
  display: flex;
  align-items: center;
  overflow: hidden;
}
.led-content {
  width: 100%;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 18px;
  flex-wrap: wrap;
}
.led-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.led-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: var(--bg-void);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-surface);
  color: var(--ink);
  flex-shrink: 0;
}
.led-name {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.led-sub { font-size: 12.5px; color: var(--ink-dim); margin-top: 2px; }
.led-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.led-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--amber);
  background: var(--amber-dim);
  border: 1px solid var(--amber-line);
  padding: 4px 9px;
  border-radius: var(--r-tag);
  white-space: nowrap;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--bg-void);
}
.footer-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 18px 20px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px 20px;
  font-size: 12.5px;
  color: var(--ink-dim);
}
.footer-link {
  color: var(--amber);
  text-decoration: none;
  font-weight: 600;
  white-space: nowrap;
}
.footer-link:hover { text-decoration: underline; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .anzeige { grid-template-columns: 1fr; }
}

.anzeige { align-items: start; }

@media (max-width: 1024px) {
  :root { --wall-width: 320px; }
  .brand-kicker { display: none; }
  .lower-grid { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .konferenz {
    grid-template-columns: 1fr;
    min-height: 0;
  }
  .wand-col { border-right: 0; border-bottom: 1px solid var(--line-strong); }
  .wand {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .wand-head { padding: 14px 16px 10px; }
  .wand-title { font-size: 24px; }
  .wand-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    background: var(--line);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .wall-row { border-bottom: 0; background: var(--bg-void); padding: 12px 14px; }
  .wall-row.is-active { background: var(--bg-surface); }
  .wall-venue { display: none; }
  .ticker { margin-top: 0; }
  .ticker-list { max-height: 200px; }
  .fokus-col { padding: 12px; }
  .scoreboard { grid-template-columns: 1fr; gap: 14px; text-align: center; }
  .team-home, .team-away { align-items: center; text-align: center; }
  .team-home .team-row, .team-away .team-row { flex-direction: column; gap: 8px; }
  .team-home .team-meta, .team-away .team-meta { justify-content: center; }
  .team-home .scorers { align-items: center; }
  .score { justify-content: center; order: -1; width: 100%; }
  .onair-venue { margin-left: 0; width: 100%; }
  .lineups { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .top-bar-inner { padding: 0 12px; gap: 10px; }
  .back-link-text { display: none; }
  .back-link { padding: 0 8px; }
  .brand-title { font-size: 20px; }
  .brand-day { font-size: 14px; padding-left: 8px; }
  .demo-tag { display: none; }
  .live-pill { padding: 0 10px; font-size: 13px; }

  .wand-list { grid-template-columns: 1fr; }
  .fokus-head { padding: 12px 14px 16px; }
  .fokus-body { padding: 0 14px 16px; }
  .team-name { font-size: 22px; }
  .timeline { grid-template-columns: 40px minmax(0, 1fr); }
  .tl-side { padding-left: 8px; }
  .panel-head { align-items: flex-start; }
  .tabs { width: 100%; }
  .tab { flex: 1; }
  .standings-table th:first-child, .standings-table td:first-child { padding-left: 14px; }
  .standings-table th:last-child, .standings-table td:last-child { padding-right: 14px; }
  .fonds-photo-content, .fonds-body, .partner, .led-content { padding-left: 14px; padding-right: 14px; }
  .footer-inner { padding: 16px 14px 24px; }
}

@media (max-width: 400px) {
  .col-goals { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

/* Spieltagsredaktion */
.wand-title{letter-spacing:-.035em;text-transform:none}.wand .ticker{border-inline:0}.fonds-kicker{display:none}
