@font-face { font-family: "Schibsted Grotesk"; src: url("/fonts/schibsted-grotesk-var.woff2") format("woff2"); font-weight: 400 900; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --paper: oklch(0.968 0.004 230);
  --ink: oklch(0.24 0.03 250);
  --navy: oklch(0.34 0.035 250);
  --ink-soft: oklch(0.46 0.025 250);
  --orange: oklch(0.72 0.17 55);
  --orange-deep: oklch(0.56 0.15 50);
  --orange-text: oklch(0.48 0.13 48);
  --rule: oklch(0.34 0.035 250 / 0.16);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh;
  background: var(--paper); color: var(--navy);
  font-family: var(--sans); font-size: 17px; line-height: 1.6;
  padding: 0 clamp(16px, 5vw, 80px);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
::selection { background: oklch(0.72 0.17 55 / 0.25); color: var(--ink); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 2px; }

header, footer { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 13px; color: var(--ink-soft); }
header { padding: clamp(18px, 3vw, 34px) 0; border-bottom: 1px solid var(--rule); }
footer { padding: 18px 0 clamp(18px, 3vw, 32px); border-top: 1px solid var(--rule); flex-wrap: wrap; }
.credit { font-size: 12px; flex: 1 1 320px; text-align: center; }
.marke { font-weight: 700; font-size: 15px; letter-spacing: -0.015em; color: var(--ink); display: inline-flex; align-items: center; gap: 10px; }
.marke::before { content: ""; width: 9px; height: 9px; background: var(--orange); }

main {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(12px, 2vw, 32px);
  align-items: center; padding: clamp(24px, 4vh, 56px) 0;
  min-height: calc(100svh - 96px);
}
.text { grid-column: 1 / span 6; }
h1 {
  margin: 0 0 clamp(20px, 2.6vw, 32px);
  font-weight: 650; color: var(--ink);
  font-size: clamp(2.6rem, 5.2vw, 4.9rem); line-height: 0.95; letter-spacing: -0.045em;
  text-wrap: balance;
}
.intro { margin: 0; max-width: 36ch; font-size: clamp(17px, 1.5vw, 19px); line-height: 1.55; color: var(--ink-soft); text-wrap: pretty; }

/* Modell */
.modell { grid-column: 7 / span 6; display: grid; gap: 8px; }
model-viewer {
  width: 100%; height: min(72vh, 680px); min-height: 420px;
  background: transparent; --poster-color: transparent;
  cursor: grab;
}
model-viewer:active { cursor: grabbing; }
model-viewer:focus-visible { outline: 2px solid var(--navy); outline-offset: 4px; }
.hinweis { margin: 0; text-align: center; font-size: 12px; color: var(--ink-soft); }

.hs {
  display: block; width: 0; height: 0; padding: 0; margin: 0; border: 0; background: none;
  font: inherit; color: var(--ink); pointer-events: none;
  opacity: 0; transition: opacity 300ms var(--ease);
}
.hs[data-visible] { opacity: 1; }
.hs::before { content: ""; position: absolute; left: 14px; top: 0; width: 46px; height: 1px; background: oklch(0.34 0.035 250 / 0.5); }
.hs.aktiv::before { background: var(--orange-deep); }
.hs-t { position: absolute; left: 68px; top: 0; transform: translateY(-50%); display: grid; text-align: left; line-height: 1.25; }
.hs strong { font-weight: 600; font-size: 15px; white-space: nowrap; }
.hs-t span { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }

.laden { position: absolute; left: 50%; bottom: 12%; width: 120px; height: 2px; margin-left: -60px; background: var(--rule); overflow: hidden; }
.laden span { display: block; height: 100%; width: 40%; background: var(--navy); }
.laden.fertig { display: none; }

@media (prefers-reduced-motion: no-preference) {
  .laden span { animation: laden 1.2s var(--ease) infinite; }
}
@keyframes laden { from { transform: translateX(-100%); } to { transform: translateX(250%); } }

/* Fakten-Karussell */
.fakten { border-top: 1px solid var(--rule); padding: clamp(48px, 9vh, 112px) 0 clamp(56px, 10vh, 120px); }
.fakten h2 { margin: 0 0 clamp(28px, 5vh, 56px); font-size: clamp(1.6rem, 2.6vw, 2.4rem); font-weight: 650; letter-spacing: -0.035em; color: var(--ink); }
.fakten-raster { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.karten { position: relative; margin: clamp(56px, 6vw, 80px) clamp(56px, 6vw, 88px) 0; height: clamp(280px, 28vw, 380px); perspective: 1000px; touch-action: pan-y; cursor: grab; }
.karte {
  position: absolute; inset: 0; border-radius: 22px; padding: clamp(24px, 3vw, 40px);
  display: flex; flex-direction: column; justify-content: space-between;
  box-shadow: 0 18px 40px -18px oklch(0.24 0.03 250 / 0.45);
  transition: transform 800ms cubic-bezier(.4, 1.6, .3, 1), opacity 500ms var(--ease);
  user-select: none; -webkit-user-select: none;
}
.karte .k-zahl { font-size: clamp(3rem, 7vw, 6rem); font-weight: 700; letter-spacing: -0.05em; line-height: 0.95; }
.karte .k-titel { font-size: 15px; font-weight: 600; max-width: 22ch; }
.karte .k-quelle { font-size: 12px; opacity: 0.75; }
.karte.navy { background: var(--navy); color: oklch(0.97 0.004 230); }
.karte.teal { background: oklch(0.48 0.075 172); color: oklch(0.98 0.005 170); }
.karte.orange { background: var(--orange); color: oklch(0.22 0.04 50); }
.karte.knochen { background: oklch(0.9 0.025 85); color: var(--ink); }
.fakten-inhalt { display: grid; gap: 28px; }
.fakt-aktiv { min-height: 13em; }
.fakt-titel { margin: 0; font-size: clamp(1.3rem, 2vw, 1.75rem); font-weight: 650; letter-spacing: -0.025em; color: var(--ink); }
.fakt-quelle { margin: 4px 0 20px; font-size: 14px; color: var(--ink-soft); }
.fakt-text { margin: 0; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.6; color: var(--ink); max-width: 42ch; }
.fakt-text .w { display: inline-block; white-space: pre; }
.fakten-steuerung { display: flex; align-items: center; gap: 14px; }
.pfeil {
  width: 48px; height: 48px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--ink); color: oklch(0.97 0.004 230); transition: background-color 250ms var(--ease);
}
.pfeil:hover { background: var(--orange-deep); }
.pfeil svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.zaehler { margin-left: 8px; font-size: 13px; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: no-preference) {
  .fakt-aktiv.rein .w { animation: wort 260ms ease-out both; animation-delay: calc(var(--i) * 22ms); }
  .fakt-aktiv.rein .fakt-titel, .fakt-aktiv.rein .fakt-quelle { animation: hoch 300ms ease-out both; }
}
@media (prefers-reduced-motion: reduce) { .karte { transition: opacity 200ms; } }
@keyframes wort { from { filter: blur(8px); opacity: 0; transform: translateY(5px); } }
@keyframes hoch { from { opacity: 0; transform: translateY(12px); } }

@media (max-width: 860px) {
  .fakten-raster { grid-template-columns: 1fr; gap: 48px; }
  .karten { margin: 48px 44px 0; height: 280px; }
  .fakt-aktiv { min-height: 11em; }
  main { grid-template-columns: 1fr; row-gap: 24px; padding: 28px 0 32px; }
  .text, .modell { grid-column: 1; }
  model-viewer { height: 62vh; min-height: 380px; }
  .hs::before { left: 10px; width: 28px; }
  .hs-t { left: 44px; }
  .credit { order: 3; flex-basis: 100%; text-align: left; }
}
