/* Roboto Condensed lokal geladen – keine Verbindung zu Google Fonts.
   Pfad gilt für eine CSS-Datei unter /assets/style.css und Fonts unter /fonts/. */
@font-face {
  font-family: "Roboto Condensed";
  src: url("../fonts/RobotoCondensed-VariableFont_wght.ttf") format("truetype");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --bg: #0a0b0d;
  --surface: #14161a;
  --surface2: #1c1f24;
  --text: #f7f7f8;
  --muted: #a9adb6;
  --red: #e52632;
  --line: #30343a;
  --max: 1200px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 17px/1.5 "Roboto Condensed", "Arial Narrow", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
img, video { max-width: 100%; }
.container { width: min(var(--max), calc(100% - 40px)); margin: auto; }

/* Kopfzeile und Navigation */
.site-header { height: 124px; position: sticky; top: 0; z-index: 50; background: #090a0bef; border-bottom: 1px solid #ffffff18; backdrop-filter: blur(16px); }
.header-inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 25px; }
.logo { display: inline-flex; align-items: center; justify-content: center; min-width: 220px; flex-shrink: 0; }
.logo img { display: block; height: 104px; width: auto; max-width: 240px; object-fit: contain; }
.logo-fallback { font-weight: 800; letter-spacing: -.025em; font-size: 25px; line-height: 1; }
.logo-fallback span { color: var(--red); }
.nav { display: flex; align-items: center; gap: 28px; }
.nav a { font-size: 13px; font-weight: 800; letter-spacing: .025em; text-transform: uppercase; }
.nav a:hover, .footer a:hover { color: var(--red); }
.menu-toggle { display: none; background: transparent; border: 0; color: #fff; font-size: 27px; }

/* Buttons */
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; border: 0; border-radius: 3px; background: var(--red); color: #fff; font-weight: 900; letter-spacing: .015em; text-transform: uppercase; padding: 15px 23px; font-size: 13px; transition: transform .2s, background .2s; }
.btn:hover { background: #ff3946; transform: translateY(-2px); }
.btn-outline { background: transparent; border: 1px solid #9ba0a8; }
.btn-outline:hover { background: #fff; color: #111; }
.btn::before, .btn::after { content: none !important; }

/* Hero */
.hero { position: relative; min-height: min(760px, 85svh); display: flex; align-items: end; overflow: hidden; background: radial-gradient(circle at 65% 40%, #3c1a1e, #0a0b0d 70%); }
.hero-video, .hero-poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-poster { background: linear-gradient(130deg, #17191e, #561820 70%, #0c0d10); }
.hero-shade { position: absolute; inset: 0; background: linear-gradient(90deg, #090a0bea 0%, #090a0b85 55%, #090a0b36), linear-gradient(0deg, #090a0d 0%, transparent 55%); }
.hero-content { position: relative; z-index: 2; padding: 100px 0 110px; min-width: 0; }
.eyebrow { color: #fff; font-size: 12px; font-weight: 900; letter-spacing: .11em; text-transform: uppercase; }
.hero .eyebrow { color: #fff; }
.hero h1 { font-size: clamp(44px, 7vw, 100px); line-height: 1.01; letter-spacing: -.025em; text-transform: uppercase; max-width: 100%; margin: 18px 0 25px; font-weight: 800; color: #fff; overflow-wrap: normal; }
.hero h1 span { color: #fff; }
.lead { max-width: 620px; font-size: clamp(17px, 2vw, 22px); color: #e0e1e4; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-bottom { position: absolute; bottom: 25px; right: 30px; z-index: 3; }
.icon-btn { border: 1px solid #ffffff70; color: #fff; background: #0009; padding: 9px 12px; border-radius: 3px; }

/* Allgemeine Abschnitte */
.section { padding: 90px 0; }
.section-alt { background: var(--surface); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 30px; }
.section h2, .page-title { font-size: clamp(34px, 5vw, 64px); line-height: 1.03; letter-spacing: -.025em; text-transform: uppercase; margin: 10px 0 12px; font-weight: 800; }
.section-desc { color: var(--muted); max-width: 650px; margin: 0; }

/* Videogalerie */
.video-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.video-card { background: #1a1c21; min-width: 0; }
.video-trigger { display: block; width: 100%; padding: 0; border: 0; background: #26292e; color: #fff; text-align: left; position: relative; aspect-ratio: 9 / 14; overflow: hidden; }
.video-trigger img, .video-trigger video { height: 100%; width: 100%; object-fit: cover; display: block; }
.video-trigger::after { content: '▶'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #e52632ed; font-size: 19px; padding-left: 3px; }
.video-info { padding: 16px; }
.video-info strong { display: block; }
.video-info small { color: var(--muted); }
.empty-state { padding: 42px; border: 1px dashed #50545b; background: #17191c; color: var(--muted); grid-column: 1 / -1; }

/* Leaderboard */
.ranking-tabs { display: flex; gap: 8px; margin: 25px 0; }
.tab { border: 1px solid var(--line); background: #22252a; color: #e6e7e9; padding: 13px 20px; font-weight: 800; }
.tab[aria-selected="true"] { background: var(--red); border-color: var(--red); color: #fff; }
.ranking { display: none; }
.ranking.active { display: block; }
.ranking-header, .ranking-row { display: grid; grid-template-columns: 65px minmax(0, 1fr) 130px; gap: 16px; align-items: center; padding: 18px 22px; }
.ranking-header { font-size: 12px; color: #a9adb6; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.ranking-row { background: #1b1e23; border-bottom: 1px solid #33373d; }
.ranking-row:first-of-type { background: #282125; }
.rank-number { font-size: 26px; font-weight: 800; color: #f04b54; }
.rank-name { font-weight: 800; }
.rank-sub { display: block; color: var(--muted); font-size: 13px; }
.rank-time { text-align: right; font-weight: 900; font-size: 21px; font-variant-numeric: tabular-nums; }
.ranking-note { font-size: 13px; color: var(--muted); margin-top: 16px; }

/* Teilnahme und Regeln */
.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.way { background: var(--surface2); border: 1px solid #363940; padding: 34px; }
.way .num { color: var(--red); font-size: 40px; font-weight: 800; }
.way h3 { font-size: 29px; text-transform: uppercase; line-height: 1.1; margin: 12px 0; }
.way p { color: var(--muted); }
.rules { max-width: 900px; }
.rule { border-bottom: 1px solid var(--line); }
.rule summary { padding: 21px 4px; cursor: pointer; font-size: 17px; font-weight: 800; list-style: none; display: flex; justify-content: space-between; }
.rule summary::after { content: '+'; color: var(--red); font-size: 24px; }
.rule[open] summary::after { content: '−'; }
.rule p { margin: 0 0 22px; color: var(--muted); }
.cta { text-align: center; background: linear-gradient(135deg, #6e1019, #dc2632); padding: 80px 20px; }
.cta h2 { font-size: clamp(38px, 6vw, 75px); line-height: 1; margin: 12px auto; max-width: 800px; text-transform: uppercase; letter-spacing: -.05em; }
.cta .btn { background: #fff; color: #171717; }

/* Footer und Unterseiten */
.footer { border-top: 1px solid #2d3035; padding: 32px 0; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.page { min-height: 65vh; padding: 70px 0; }
.page-narrow { max-width: 760px; }
.page p { color: #c4c7ce; }

/* Anmeldeformular */
.form-card { background: #191c21; border: 1px solid #353940; padding: 30px; margin: 30px 0; }
.field { margin-bottom: 22px; }
.field > label { display: block; font-weight: 800; margin-bottom: 7px; }
/* Volle Breite nur für Textfelder – niemals für Radio/Checkbox */
.field input:not([type="radio"]):not([type="checkbox"]),
.field select,
.field textarea { width: 100%; border: 1px solid #4a4e55; border-radius: 3px; padding: 13px 14px; background: #0f1114; color: #fff; }

/* Auswahlfelder links, Text rechts und vertikal mittig */
.radio-option,
.checkline { display: flex; flex-direction: row; align-items: center; justify-content: flex-start; gap: 14px; width: 100%; cursor: pointer; }
.radio-option { margin: 18px 0; }
.checkline { margin: 12px 0; }
.radio-option input[type="radio"],
.checkline input[type="checkbox"],
.field input[type="radio"],
.field input[type="checkbox"] { appearance: auto; -webkit-appearance: auto; box-sizing: border-box; width: 28px; height: 28px; min-width: 28px; max-width: 28px; flex: 0 0 28px; margin: 0; padding: 0; border-radius: initial; accent-color: var(--red); cursor: pointer; align-self: center; }
.radio-option span,
.checkline span { flex: 1 1 auto; min-width: 0; line-height: 1.4; }
/* Auch wenn Text ohne span direkt im label steht, richtet Flex ihn korrekt aus. */
.radio-option, .checkline { line-height: 1.4; }
.hint { color: var(--muted); font-size: 13px; }
.notice { padding: 17px; border-left: 4px solid var(--red); background: #282126; margin: 20px 0; }

/* Video-Modal */
.modal { position: fixed; inset: 0; background: #000e; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal-box { width: min(900px, 100%); position: relative; }
.modal video { width: 100%; max-height: 85vh; background: #000; }
.modal-close { position: absolute; top: -45px; right: 0; background: transparent; border: 0; color: #fff; font-size: 32px; }
.muted { color: var(--muted); }

/* Typografie */
h1, h2, h3, .page-title, .btn, .nav a, .ranking-row, .ranking-header, .tab { font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif; }
h1, h2, h3, .page-title { font-weight: 800; }

/* Tablet */
@media (max-width: 850px) {
  .site-header { height: 106px; }
  .header-inner { position: relative; justify-content: flex-end; }
  .logo { position: absolute; left: 50%; transform: translateX(-50%); min-width: 0; margin: 0; }
  .logo img { height: 84px; width: auto; max-width: min(220px, 58vw); }
  .menu-toggle { display: block; margin-left: auto; position: relative; z-index: 2; }
  .nav { display: none; position: absolute; top: 106px; left: 0; right: 0; background: #14161a; padding: 25px 20px; flex-direction: column; align-items: stretch; gap: 20px; }
  .nav.open { display: flex; }
  .hero { min-height: 720px; }
  .hero-content { padding: 110px 0 90px; }
  .hero h1 { font-size: clamp(42px, 9vw, 68px); }
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .section { padding: 65px 0; }
  .ways { grid-template-columns: 1fr; }
}

/* Smartphone */
@media (max-width: 520px) {
  .container { width: calc(100% - 30px); }
  .logo img { height: 84px; max-width: min(220px, 58vw); }
  .hero { min-height: 680px; }
  .hero h1 { font-size: clamp(38px, 10vw, 54px); }
  .section-head { display: block; }
  .video-grid { gap: 10px; }
  .video-info { padding: 12px; }
  .ranking-header, .ranking-row { grid-template-columns: 38px minmax(0, 1fr) 80px; gap: 8px; padding: 14px 10px; }
  .rank-time { font-size: 16px; }
  .rank-number { font-size: 20px; }
  .tab { padding: 11px; font-size: 12px; }
  .form-card { padding: 18px; }
  .way { padding: 24px; }
  .radio-option, .checkline { align-items: center; gap: 12px; }
  .radio-option input[type="radio"], .checkline input[type="checkbox"] { margin: 0; align-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
