/* ==========================================================================
   Schneider 3000 — Design-System (Aufschlag v1)
   Dunkel, athletisch. Display: Barlow Condensed. Text: Barlow.
   ========================================================================== */

:root {
  /* Farben */
  --bg: #0b0d10;
  --surface: #14181d;
  --surface-2: #1b2129;
  --line: #262d36;
  --text: #f2f5f7;
  --muted: #9aa5b1;
  --volt: #d8ff3e;
  --volt-soft: rgba(216, 255, 62, 0.12);
  --volt-ink: #0b0d10;
  --blue: #2f6fe0;

  /* Typografie */
  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Layout */
  --container: 1160px;
  --radius: 16px;
  --radius-sm: 10px;
  --header-h: 72px;
}

/* --- Reset ---------------------------------------------------------------- */

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

::selection {
  background: var(--volt);
  color: var(--volt-ink);
}

:focus-visible {
  outline: 2px solid var(--volt);
  outline-offset: 3px;
  border-radius: 2px;
}

/* --- Utilities ------------------------------------------------------------ */

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--volt);
  color: var(--volt-ink);
  padding: 0.6rem 1rem;
  font-weight: 600;
  z-index: 100;
}

.skip-link:focus {
  left: 0;
}

.eyebrow {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--volt);
  margin: 0 0 0.75rem;
}

/* Platzhalter-Markierung: bewusst sichtbar, bis echte Fakten da sind */
.ph {
  border: 1px dashed rgba(216, 255, 62, 0.55);
  border-radius: 6px;
  padding: 0 0.4em;
  color: var(--volt);
  font-style: normal;
  white-space: nowrap;
}

/* --- Typografie ------------------------------------------------------------ */

h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.02;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(3.2rem, 11vw, 7.5rem);
}

h2 {
  font-size: clamp(2.2rem, 5.5vw, 3.8rem);
}

h3 {
  font-size: clamp(1.4rem, 3vw, 1.9rem);
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: clamp(1.15rem, 2vw, 1.35rem);
  color: var(--muted);
  max-width: 46rem;
}

/* --- Buttons ---------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 0.85rem 1.9rem;
  border-radius: 999px;
  border: 2px solid var(--volt);
  background: var(--volt);
  color: var(--volt-ink);
  transition: transform 0.15s ease, background 0.2s ease, color 0.2s ease;
  cursor: pointer;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(242, 245, 247, 0.4);
}

.btn--ghost:hover {
  border-color: var(--volt);
  color: var(--volt);
}

/* --- Header ------------------------------------------------------------------ */

.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--header-h);
  z-index: 50;
  display: flex;
  align-items: center;
  background: rgba(11, 13, 16, 0.72);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(38, 45, 54, 0.6);
}

.site-header .container {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
  gap: 0.45rem;
}

.brand span {
  color: var(--volt);
}

.site-nav ul {
  list-style: none;
  display: flex;
  gap: clamp(1rem, 3vw, 2.2rem);
  margin: 0;
  padding: 0;
}

.site-nav a {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--volt);
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 0.5rem;
  cursor: pointer;
}

.nav-toggle .bar {
  display: block;
  width: 26px;
  height: 2px;
  background: var(--text);
  margin: 6px 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: rgba(11, 13, 16, 0.97);
    border-bottom: 1px solid var(--line);
    padding: 1.5rem 2rem 2rem;
    transform: translateY(-115%);
    transition: transform 0.3s ease;
    visibility: hidden;
  }

  .site-nav.is-open {
    transform: translateY(0);
    visibility: visible;
  }

  .site-nav ul {
    flex-direction: column;
    gap: 1.2rem;
  }

  .site-nav a {
    font-size: 1.5rem;
  }

  .nav-toggle[aria-expanded="true"] .bar:nth-child(1) {
    transform: translateY(8px) rotate(45deg);
  }

  .nav-toggle[aria-expanded="true"] .bar:nth-child(2) {
    opacity: 0;
  }

  .nav-toggle[aria-expanded="true"] .bar:nth-child(3) {
    transform: translateY(-8px) rotate(-45deg);
  }
}

/* --- Hero ---------------------------------------------------------------------- */

.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.hero__media,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 20%;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 13, 16, 0.35) 0%, rgba(11, 13, 16, 0.05) 40%, rgba(11, 13, 16, 0.92) 92%),
    linear-gradient(90deg, rgba(11, 13, 16, 0.55) 0%, rgba(11, 13, 16, 0) 55%);
}

.hero .container {
  position: relative;
  z-index: 1;
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
  padding-top: calc(var(--header-h) + 2rem);
}

.hero h1 {
  margin-bottom: 0.15em;
}

.hero h1 .volt {
  color: var(--volt);
}

.hero__sub {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: rgba(242, 245, 247, 0.85);
  max-width: 38rem;
  margin-bottom: 1.75rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

/* Hero-Varianten für Unterseiten */
.hero--page {
  min-height: 62svh;
}

/* --- Stats ------------------------------------------------------------------------ */

.stats {
  border-block: 1px solid var(--line);
  background: var(--surface);
}

.stats .container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0;
}

.stat {
  padding: 1.9rem 1.5rem;
  border-left: 1px solid var(--line);
}

.stat:first-child {
  border-left: 0;
}

.stat__value {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  line-height: 1;
  color: var(--volt);
}

.stat__label {
  margin-top: 0.4rem;
  color: var(--muted);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .stat {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .stat:first-child {
    border-top: 0;
  }
}

/* --- Sections ------------------------------------------------------------------------ */

.section {
  padding-block: clamp(4rem, 9vw, 7.5rem);
}

.section--alt {
  background: var(--surface);
  border-block: 1px solid var(--line);
}

.section-head {
  max-width: 46rem;
  margin-bottom: clamp(2.2rem, 5vw, 3.8rem);
}

/* --- Cards ------------------------------------------------------------------------ */

.cards {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: rgba(216, 255, 62, 0.5);
}

.card__media {
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__media img {
  transform: scale(1.045);
}

.card__body {
  padding: 1.5rem 1.6rem 1.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  flex: 1;
}

.card__body h3 {
  margin: 0;
}

.card__body p {
  color: var(--muted);
  margin: 0;
}

.card__more {
  margin-top: auto;
  padding-top: 1rem;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--volt);
  font-size: 1rem;
}

/* --- Media-Split (Bild + Text) -------------------------------------------------------- */

.split {
  display: grid;
  gap: clamp(1.8rem, 5vw, 4rem);
  align-items: center;
}

@media (min-width: 860px) {
  .split {
    grid-template-columns: 1fr 1fr;
  }

  .split--rev > .split__media {
    order: 2;
  }
}

.split__media img {
  border-radius: var(--radius);
  border: 1px solid var(--line);
  width: 100%;
}

/* --- Timeline ------------------------------------------------------------------------ */

.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  position: relative;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  bottom: 6px;
  width: 2px;
  background: var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 2.2rem 2.4rem;
}

.timeline li:last-child {
  padding-bottom: 0;
}

.timeline li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--volt);
}

.timeline__year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--volt);
  letter-spacing: 0.04em;
}

.timeline__title {
  font-weight: 600;
  font-size: 1.15rem;
}

.timeline p {
  color: var(--muted);
  margin: 0.2rem 0 0;
}

/* --- Tabelle (Bestzeiten) --------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

th,
td {
  text-align: left;
  padding: 0.95rem 1.2rem;
  border-bottom: 1px solid var(--line);
}

th {
  font-family: var(--font-display);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 1rem;
  color: var(--muted);
}

td.time {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--volt);
}

/* --- Zitat-Band ------------------------------------------------------------------------ */

.quote-band {
  position: relative;
  padding-block: clamp(5rem, 12vw, 9rem);
  overflow: hidden;
}

.quote-band__media,
.quote-band__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.quote-band::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(11, 13, 16, 0.78);
}

.quote-band .container {
  position: relative;
  z-index: 1;
}

.quote-band blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.8rem, 4.5vw, 3.2rem);
  line-height: 1.15;
  text-transform: uppercase;
  max-width: 52rem;
}

.quote-band blockquote strong {
  color: var(--volt);
  font-weight: 700;
}

.quote-band figcaption {
  margin-top: 1.2rem;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.95rem;
}

/* --- Partner-Strip ------------------------------------------------------------------------ */

.partner-grid {
  display: grid;
  gap: 1.2rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.partner-tile {
  border: 1px dashed var(--line);
  border-radius: var(--radius-sm);
  min-height: 110px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-family: var(--font-display);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--surface);
}

/* --- CTA-Band ------------------------------------------------------------------------ */

.cta-band {
  background: var(--volt);
  color: var(--volt-ink);
  padding-block: clamp(3.5rem, 8vw, 6rem);
}

.cta-band h2 {
  margin-bottom: 0.4em;
}

.cta-band p {
  max-width: 40rem;
  font-size: 1.15rem;
}

.cta-band .btn {
  background: var(--volt-ink);
  border-color: var(--volt-ink);
  color: var(--volt);
}

/* --- Footer ------------------------------------------------------------------------ */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 3rem 0 2.5rem;
  background: var(--bg);
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer .container {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 3rem;
  justify-content: space-between;
  align-items: center;
}

.site-footer nav ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 1.4rem;
  margin: 0;
  padding: 0;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--volt);
}

.site-footer .brand {
  font-size: 1.2rem;
}

/* --- Legal-Seiten ------------------------------------------------------------------------ */

.prose {
  max-width: 46rem;
}

.prose h2 {
  font-size: 1.6rem;
  margin-top: 2.2em;
}

.prose p,
.prose li {
  color: var(--muted);
}

/* --- 404 / Game ------------------------------------------------------------------------ */

.game-section {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-block: calc(var(--header-h) + 2rem) 3rem;
}

.game-wrap {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: clamp(0.75rem, 2vw, 1.5rem);
}

#dino-canvas {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius-sm);
  background: var(--bg);
  touch-action: manipulation;
}

.game-hint {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0.9rem 0 0;
  text-align: center;
}

/* --- Reveal-Animation --------------------------------------------------------------------- */

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .card,
  .card__media img,
  .btn {
    transition: none;
  }
}
