/* Steelcast – Gameday-Look: dunkler Stadion-Grund, Gold als Signalfarbe,
   schmale Versalien wie Trikotnummern, schräge Kanten statt runder Karten. */

@font-face { font-family: "Barlow Condensed"; font-weight: 700; font-display: swap; src: url("/assets/fonts/barlow-condensed-700.woff2") format("woff2"); }
@font-face { font-family: "Barlow Condensed"; font-weight: 800; font-display: swap; src: url("/assets/fonts/barlow-condensed-800.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 400; font-display: swap; src: url("/assets/fonts/source-sans-3-400.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 600; font-display: swap; src: url("/assets/fonts/source-sans-3-600.woff2") format("woff2"); }
@font-face { font-family: "Source Sans 3"; font-weight: 700; font-display: swap; src: url("/assets/fonts/source-sans-3-700.woff2") format("woff2"); }

:root {
  --schwarz: #101820;
  --nacht: #0b1016;
  --flaeche: #151d27;
  --flaeche-2: #1c2632;
  --linie: #2a3440;
  --gold: #ffb612;
  --gold-dunkel: #d99a00;
  --gold-hell: #ffc94a;
  --orange: #df922a;
  --rot: #c60c30;
  --blau: #00539b;
  --text: #f2f0ea;
  --text-leise: #a9b0bb;
  --ok: #5cc28a;
  --fehler: #ff7a70;

  --f-display: "Barlow Condensed", "Arial Narrow", Impact, sans-serif;
  --f-text: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  --breite: 1160px;
  --rand: max(16px, env(safe-area-inset-left, 0px));
  --rand-r: max(16px, env(safe-area-inset-right, 0px));
  --schraege: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%);
  color-scheme: dark;
}

[hidden] { display: none !important; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body { margin: 0; background: var(--nacht); color: var(--text); font-family: var(--f-text); font-size: 1.0625rem; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-underline-offset: 3px; }
a:hover { color: #ffd166; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 800; line-height: 1.02; text-transform: uppercase; text-wrap: balance; margin: 0; letter-spacing: .01em; }
h1 { font-size: clamp(2.4rem, 6vw, 4.2rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0; }
.wrap { max-width: var(--breite); margin: 0 auto; padding-left: var(--rand); padding-right: var(--rand-r); }
.prose { max-width: 68ch; display: grid; gap: 1em; }
.kicker { font-family: var(--f-mono); font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.leise { color: var(--text-leise); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--gold); color: var(--schwarz); padding: 8px 14px; z-index: 100; font-weight: 700; }
.skip:focus { top: 12px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; font-family: var(--f-display); font-weight: 700; font-size: 1.05rem; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; padding: 10px 18px; border: 2px solid var(--gold); color: var(--gold); background: transparent; cursor: pointer; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%); }
.btn:hover { background: color-mix(in srgb, var(--gold) 14%, transparent); color: var(--gold); }
.btn--voll { background: var(--gold); color: var(--schwarz); }
.btn--voll:hover { background: #ffc94a; color: var(--schwarz); }
.btn-reihe { display: flex; flex-wrap: wrap; gap: 10px; }

/* Kopf */
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 60; background: var(--schwarz); }
.kopf { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; background: var(--schwarz); border-bottom: 3px solid var(--gold); }
.kopf .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; line-height: 1; }
.logo__rund { width: 48px; height: 48px; flex: none; }
.logo__schrift { height: 44px; width: auto; flex: none; }
.seiten-logo { display: block; width: min(320px, 100%); height: auto; margin-bottom: 24px; }
.logo--fuss .logo__schrift { height: auto; width: min(260px, 100%); }
@media (max-width: 420px) { .logo__schrift { height: 36px; } .logo__rund { width: 40px; height: 40px; } }
.nav { display: flex; align-items: center; gap: 4px; }
.nav a { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 1.05rem; color: #c9ced6; text-decoration: none; padding: 8px 10px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--gold); }
.nav .btn { margin-left: 8px; padding: 6px 14px; font-size: 1rem; }
.nav .btn--voll, .nav .btn--voll:hover { color: var(--schwarz); }
.nav-schalter { display: none; background: none; border: 2px solid var(--linie); color: var(--text); font-family: var(--f-display); font-weight: 700; text-transform: uppercase; padding: 6px 12px; cursor: pointer; min-height: 44px; }
@media (max-width: 820px) {
  .nav-schalter { display: block; }
  .nav { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; background: var(--schwarz); border-bottom: 3px solid var(--gold); padding: 8px var(--rand-r) 16px var(--rand); }
  .nav[hidden] { display: none; }
  .nav a { padding: 12px 4px; border-bottom: 1px solid var(--linie); }
  .nav .btn { margin: 12px 0 0; justify-content: center; }
}
@media (min-width: 821px) { .nav[hidden] { display: flex !important; } }

/* Hero: Illustration der Hosts auf Orange, Text links daneben */
.hero { position: relative; background: var(--orange); color: var(--schwarz); overflow: hidden; }
.hero__bild { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.hero .wrap { position: relative; min-height: clamp(380px, 46vw, 640px); display: grid; align-content: center; padding-block: 48px; }
.hero__text { display: grid; gap: 6px; max-width: min(46%, 560px); justify-items: start; }
.hero__kicker { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.1rem, 2vw, 1.6rem); letter-spacing: .32em; }
.hero h1 { font-size: clamp(3.4rem, 9vw, 8.5rem); line-height: .86; letter-spacing: .01em; color: var(--schwarz); }
.hero__logo { margin: 6px 0 10px; }
.hero__logo img { display: block; width: clamp(260px, 36vw, 500px); max-width: 100%; height: auto; }
.hero__verein { font-family: var(--f-display); font-weight: 700; font-size: clamp(1.15rem, 2.2vw, 1.9rem); text-transform: uppercase; letter-spacing: .04em; }
.hero .btn-reihe { margin-top: 18px; }
.hero .btn { border-color: var(--schwarz); color: var(--schwarz); }
.hero .btn:hover { background: rgba(16, 24, 32, .1); color: var(--schwarz); }
.hero .btn--voll { background: var(--schwarz); color: var(--gold); }
.hero .btn--voll:hover { background: #000; color: var(--gold); }
.hero :focus-visible { outline-color: var(--schwarz); }
@media (max-width: 760px) {
  .hero__bild { position: static; display: block; height: auto; aspect-ratio: 800 / 785; }
  .hero .wrap { min-height: 0; padding-block: 32px 8px; }
  .hero__text { max-width: none; }
}

/* Neue Folge unter dem Hero */
.neu { background: var(--schwarz); border-bottom: 1px solid var(--linie); }
.neu .wrap { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px 28px; align-items: center; padding-block: 28px; }
.neu__nummer { font-family: var(--f-display); font-weight: 800; font-size: clamp(3.4rem, 7vw, 5rem); line-height: .9; color: var(--gold); font-variant-numeric: tabular-nums; }
.neu__text { display: grid; gap: 6px; min-width: 0; }
.neu__titel { font-family: var(--f-display); font-weight: 800; font-size: clamp(1.5rem, 3vw, 2.2rem); line-height: 1.05; text-transform: uppercase; text-wrap: balance; }
.neu__text p:last-child { color: var(--text-leise); max-width: 70ch; }
@media (max-width: 760px) { .neu .wrap { grid-template-columns: auto minmax(0, 1fr); } .neu .btn-reihe { grid-column: 1 / -1; } }

/* Abschnitte */
.abschnitt { padding-block: 56px; }
.abschnitt--hell { background: var(--schwarz); }
.abschnitt__kopf { display: flex; justify-content: space-between; align-items: end; gap: 12px 24px; flex-wrap: wrap; margin-bottom: 24px; border-top: 3px solid var(--text); padding-top: 14px; }
.abschnitt__kopf a { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; text-decoration: none; }

/* Folgenkarten */
.raster { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.karte { background: var(--schwarz); border: 1px solid #232e3a; display: grid; grid-template-rows: auto 1fr; text-decoration: none; color: var(--text); clip-path: var(--schraege); transition: border-color .2s, transform .2s; }
.karte:hover { border-color: var(--gold); color: var(--text); transform: translateY(-2px); }
.karte__bild { position: relative; aspect-ratio: 16 / 9; max-width: 100%; overflow: hidden; background: var(--orange); }
.karte__bild img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.karte:hover .karte__bild img { transform: scale(1.04); }
.karte__nummer { position: absolute; left: 0; bottom: 0; font-family: var(--f-display); font-weight: 800; font-size: 2rem; line-height: 1; padding: 6px 14px 6px 12px; color: var(--gold); background: var(--schwarz); font-variant-numeric: tabular-nums; clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 100%, 0 100%); }
.karte__nummer span { font-size: .8rem; color: var(--text-leise); margin-right: 6px; letter-spacing: .1em; }
.karte__inhalt { padding: 14px 18px 18px; display: grid; gap: 8px; align-content: start; }
.karte__titel { font-weight: 700; font-size: 1.05rem; line-height: 1.3; }
.karte__meta { font-family: var(--f-mono); font-size: .72rem; color: var(--text-leise); text-transform: uppercase; letter-spacing: .06em; }

/* Merkmale */
.merkmale { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.merkmal { border-left: 4px solid var(--gold); padding: 4px 0 4px 16px; display: grid; gap: 4px; }

/* Merch */
.merch { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.produkt { background: var(--flaeche); padding: 14px; display: grid; gap: 6px; align-content: start; text-decoration: none; color: var(--text); clip-path: var(--schraege); }
.produkt:hover { color: var(--text); outline: 2px solid var(--gold); }
.produkt__bild { aspect-ratio: 1; max-width: 100%; background: repeating-linear-gradient(45deg, #1f2a36 0 8px, #1a2430 8px 16px); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 1.4rem; color: #44525f; text-transform: uppercase; }
.produkt__linie { justify-self: start; font-family: var(--f-mono); font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; background: var(--gold); color: var(--schwarz); padding: 2px 7px; }
.produkt__linie--fan { background: #3d4b5a; color: var(--text); }
.produkt__preis { font-family: var(--f-mono); color: var(--gold); font-size: .85rem; }
@media (max-width: 760px) { .merch { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Folgenseite */
.folge-kopf { background: var(--schwarz); border-bottom: 1px solid var(--linie); }
.folge-kopf .wrap { padding-block: 40px; display: grid; gap: 14px; }
.folge-kopf__nummer { font-family: var(--f-display); font-weight: 800; font-size: clamp(4rem, 12vw, 7rem); line-height: .9; color: var(--gold); }
.folge-raster { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: start; }
@media (max-width: 820px) { .folge-raster { grid-template-columns: 1fr; } }
.liste { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.liste li { padding: 10px 14px; background: var(--flaeche); border-left: 3px solid var(--gold); }
.seitenleiste { display: grid; gap: 16px; background: var(--flaeche); padding: 20px; }

/* Spotify mit Klick zum Laden */
.player { background: var(--flaeche); border: 1px solid var(--linie); padding: 20px; display: grid; gap: 12px; }
.player__bild { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.player iframe { width: 100%; height: 232px; border: 0; border-radius: 12px; }
.player__hinweis { font-size: .88rem; color: var(--text-leise); }

/* Archiv-Filter */
.filter { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.filter input { flex: 1 1 260px; min-width: 0; background: var(--flaeche); border: 2px solid var(--linie); color: var(--text); font: inherit; padding: 10px 14px; }
.filter input:focus { border-color: var(--gold); outline: none; }
.saisons { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.saisons__knopf { font-family: var(--f-display); font-weight: 700; font-size: 1rem; text-transform: uppercase; letter-spacing: .04em; padding: 7px 14px; background: var(--flaeche); color: var(--text); border: 2px solid var(--linie); cursor: pointer; }
.saisons__knopf span { font-family: var(--f-mono); font-size: .75rem; color: var(--text-leise); margin-left: 4px; }
.saisons__knopf:hover { border-color: var(--gold); }
.saisons__knopf[aria-pressed="true"] { background: var(--gold); border-color: var(--gold); color: var(--schwarz); }
.saisons__knopf[aria-pressed="true"] span { color: var(--schwarz); }
.saison + .saison { margin-top: 40px; }
.saison__titel { display: flex; align-items: baseline; gap: 12px; border-bottom: 2px solid var(--gold); padding-bottom: 8px; margin-bottom: 16px; }
.saison__titel span { font-family: var(--f-mono); font-size: .8rem; font-weight: 400; color: var(--text-leise); letter-spacing: 0; text-transform: none; }
.filter__treffer { font-family: var(--f-mono); font-size: .8rem; color: var(--text-leise); align-self: center; }

/* Team */
.team { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.person { background: var(--flaeche); padding: 20px; display: grid; gap: 6px; clip-path: var(--schraege); }
.person__initiale { width: 56px; height: 56px; display: grid; place-items: center; background: var(--gold); color: var(--schwarz); font-family: var(--f-display); font-weight: 800; font-size: 1.8rem; }

/* Fuß */
.fuss { background: var(--schwarz); border-top: 3px solid var(--gold); padding-block: 40px calc(40px + env(safe-area-inset-bottom, 0px)); }
.fuss .wrap { display: grid; gap: 24px; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); }
.fuss h3 { font-size: 1.05rem; margin-bottom: 8px; color: var(--text-leise); }
.fuss ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fuss a { color: var(--text); text-decoration: none; }
.fuss a:hover { color: var(--gold); }
.fuss__klein { grid-column: 1 / -1; font-size: .85rem; color: var(--text-leise); border-top: 1px solid var(--linie); padding-top: 16px; }
@media (max-width: 760px) { .fuss .wrap { grid-template-columns: 1fr; } }

/* Totop-Button */
.totop { position: fixed; right: max(18px, calc(env(safe-area-inset-right, 0px) + 14px)); bottom: calc(env(safe-area-inset-bottom, 0px) + 18px); width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; background: var(--gold); color: var(--schwarz); box-shadow: 0 6px 18px rgba(0, 0, 0, .45); display: grid; place-items: center; opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; transition: opacity .25s, transform .25s; z-index: 40; }
.totop.sichtbar { opacity: 1; transform: none; pointer-events: auto; }
.totop svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop circle { fill: none; stroke: var(--schwarz); stroke-width: 3; stroke-linecap: round; opacity: .85; }
.totop b { position: relative; font-size: 1.3rem; line-height: 1; }

/* Dashboard (/intern/) */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--flaeche); border-top: 3px solid var(--gold); padding: 14px 16px; display: grid; gap: 2px; }
.kpi__name { font-family: var(--f-mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; color: var(--text-leise); }
.kpi__wert { font-family: var(--f-display); font-weight: 800; font-size: 2.2rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi__trend { font-family: var(--f-mono); font-size: .74rem; color: var(--text-leise); }
.kpi__trend--hoch { color: var(--ok); }
.kpi__trend--runter { color: var(--fehler); }
.dash__raster { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dash__panel { background: var(--flaeche); padding: 16px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.dash__panel--breit { grid-column: 1 / -1; }
.dash__panel svg { width: 100%; height: auto; display: block; }
.dash__tabelle { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
.dash__tabelle th, .dash__tabelle td { padding: 6px 8px; border-bottom: 1px solid var(--linie, #2a3440); text-align: right; }
.dash__tabelle th { color: var(--text-leise, #a9b0bb); font-weight: 600; }
.dash__tabelle th:first-child, .dash__tabelle td:first-child { text-align: left; overflow-wrap: anywhere; }
.dash__tabelle td:nth-child(2) { color: var(--gold); font-weight: 700; }
@media (max-width: 600px) { .dash__tabelle th:nth-child(4), .dash__tabelle td:nth-child(4) { display: none; } }
.balken { display: grid; gap: 8px; font-size: .9rem; }
.balken__zeile { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
.balken__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.balken__zahl { font-family: var(--f-mono); font-variant-numeric: tabular-nums; color: var(--text-leise); }
.balken__spur { grid-column: 1 / -1; height: 6px; background: var(--flaeche-2); }
.balken__spur i { display: block; height: 100%; background: var(--gold); }
.dash__leer { color: var(--text-leise); font-size: .9rem; }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } .dash__raster { grid-template-columns: 1fr; } }
