:root {
  --bg: #08090b;
  --panel: #111318;
  --panel-soft: #171a20;
  --text: #f5f6f7;
  --muted: #a7adb7;
  --red: #e21f2f;
  --red-dark: #a50e1a;
  --line: rgba(255,255,255,.12);
  --max: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px),
    var(--bg);
  background-size: 46px 46px;
}

a { color: inherit; }
.page-shell { overflow: hidden; }

.hero {
  min-height: 78vh;
  position: relative;
  display: flex;
  flex-direction: column;
  isolation: isolate;
  background:
    linear-gradient(90deg, rgba(5,6,8,.96) 0%, rgba(5,6,8,.78) 45%, rgba(5,6,8,.2) 100%),
    linear-gradient(0deg, rgba(5,6,8,.82), transparent 45%),
    url("assets/porsche.jpeg") center 54% / cover no-repeat;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(circle at 72% 40%, transparent 0 12%, rgba(0,0,0,.18) 55%, rgba(0,0,0,.5) 100%);
}

.nav {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 14px; text-decoration: none; }
.brand-number {
  display: grid;
  place-items: center;
  width: 64px;
  height: 48px;
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
  letter-spacing: -2px;
  background: var(--red);
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}
.brand-text { font-weight: 900; line-height: .92; letter-spacing: .06em; }
.brand-text small { color: var(--muted); font-size: 10px; letter-spacing: .22em; }
.twitch-link {
  padding: 12px 17px;
  border: 1px solid rgba(255,255,255,.35);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  transition: .2s ease;
}
.twitch-link:hover { background: white; color: black; }

.hero-content {
  width: min(var(--max), calc(100% - 40px));
  margin: auto;
  padding: 90px 0 120px;
}
.eyebrow {
  margin: 0 0 16px;
  color: #f04a57;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .2em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 760px;
  margin-bottom: 20px;
  font-size: clamp(50px, 8vw, 105px);
  line-height: .88;
  letter-spacing: -.065em;
  text-transform: uppercase;
}
.lead { max-width: 650px; color: #d3d6dc; font-size: clamp(18px, 2vw, 25px); line-height: 1.45; }
.cta {
  display: inline-block;
  margin-top: 20px;
  padding: 15px 22px;
  background: var(--red);
  text-decoration: none;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  box-shadow: 8px 8px 0 rgba(255,255,255,.14);
}
.hero-stripe {
  position: absolute;
  right: -60px;
  bottom: 50px;
  width: 420px;
  height: 24px;
  transform: rotate(-7deg);
  background: repeating-linear-gradient(90deg, var(--red) 0 60px, white 60px 120px);
  opacity: .88;
}

main { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.stream-section { padding: 90px 0 55px; }
.section-heading { display: flex; justify-content: space-between; gap: 25px; align-items: end; margin-bottom: 28px; }
h2 { font-size: clamp(38px, 5vw, 68px); line-height: .95; letter-spacing: -.04em; text-transform: uppercase; margin-bottom: 0; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 14px;
  background: var(--panel-soft);
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  white-space: nowrap;
}
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: #d4a63a; box-shadow: 0 0 14px currentColor; }
.status-pill.online .status-dot { background: #2fe07e; }
.status-pill.offline .status-dot { background: #8e949e; }

.video-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 300px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(12,14,18,.88), rgba(4,5,7,.72));
  border: 1px solid rgba(255,255,255,.42);
  border-radius: 18px;
  box-shadow:
    0 0 0 1px rgba(226,31,47,.55),
    0 0 28px rgba(226,31,47,.20),
    0 35px 80px rgba(0,0,0,.50),
    inset 0 1px 0 rgba(255,255,255,.20);
  backdrop-filter: blur(14px) saturate(118%);
  -webkit-backdrop-filter: blur(14px) saturate(118%);
}
.twitch-player, .twitch-player iframe { width: 100% !important; height: 100% !important; border: 0; }
.offline-card {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: url("assets/helmet.jpeg") center 47% / 108% auto no-repeat;
  transition: opacity .45s ease, visibility .45s ease, transform .45s ease;
}
.offline-card.hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(1.015); }
.offline-shade { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(2,3,5,.68), rgba(2,3,5,.22)), linear-gradient(0deg, rgba(2,3,5,.50), rgba(2,3,5,.05) 52%, rgba(2,3,5,.28)); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.offline-content { position: relative; z-index: 1; width: min(760px, calc(100% - 48px)); padding: clamp(22px, 4vw, 42px); text-align: center; background: linear-gradient(145deg, rgba(8,10,13,.50), rgba(8,10,13,.24)); border: 1px solid rgba(255,255,255,.22); border-radius: 18px; box-shadow: 0 18px 50px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.16); backdrop-filter: blur(10px) saturate(115%); -webkit-backdrop-filter: blur(10px) saturate(115%); }
.race-number {
  display: inline-block;
  margin-bottom: 20px;
  font-size: clamp(52px, 9vw, 120px);
  line-height: .75;
  font-weight: 1000;
  font-style: italic;
  letter-spacing: -.08em;
  color: transparent;
  -webkit-text-stroke: 2px rgba(255,255,255,.55);
}
.offline-content h3 { margin-bottom: 12px; font-size: clamp(44px, 7vw, 88px); line-height: .9; text-transform: uppercase; letter-spacing: -.05em; }
.offline-content p:not(.eyebrow) { max-width: 620px; margin: 0 auto 26px; color: #d7dae0; font-size: clamp(15px, 2vw, 20px); line-height: 1.5; }
.offline-content a { display: inline-block; padding: 13px 18px; background: var(--red); font-weight: 900; text-transform: uppercase; letter-spacing: .07em; text-decoration: none; }
.stream-note { margin-top: 16px; color: var(--muted); font-size: 13px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 30px 0 90px; background: var(--line); border: 1px solid var(--line); }
.feature-grid article { padding: 35px; background: var(--panel); }
.feature-grid span { display: block; margin-bottom: 38px; color: var(--red); font-size: 12px; font-weight: 900; letter-spacing: .12em; }
.feature-grid h3 { margin-bottom: 12px; font-size: 25px; text-transform: uppercase; }
.feature-grid p { margin-bottom: 0; color: var(--muted); line-height: 1.6; }

footer {
  width: min(var(--max), calc(100% - 40px));
  margin: 0 auto;
  padding: 35px 0 50px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 28px;
  align-items: center;
  color: var(--muted);
  font-size: 13px;
}
.footer-brand { color: white; font-size: 20px; font-weight: 900; letter-spacing: .08em; }
.footer-brand strong { color: var(--red); }
footer p { margin: 0; }
footer a { text-decoration: none; }

@media (max-width: 760px) {
  .hero { min-height: 700px; background-position: 64% center; }
  .twitch-link { display: none; }
  .hero-content { padding-top: 110px; }
  .hero-stripe { width: 280px; right: -80px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .video-frame { aspect-ratio: 9 / 12; }
  .offline-card { background-position: 52% center; }
  .feature-grid { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; gap: 10px; }
}

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

/* Optisches Update Sommer 2026 */
.video-frame {
  border: 1px solid rgba(255,255,255,.55);
  box-shadow:
    0 0 0 2px rgba(226,31,47,.70),
    0 0 0 7px rgba(226,31,47,.08),
    0 18px 55px rgba(226,31,47,.18),
    0 38px 95px rgba(0,0,0,.62),
    inset 0 1px 0 rgba(255,255,255,.32);
}

.video-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(115deg, rgba(255,255,255,.18), transparent 13% 72%, rgba(255,255,255,.05)),
    linear-gradient(180deg, rgba(255,255,255,.06), transparent 28%);
  mix-blend-mode: screen;
}

.offline-card {
  background-size: 118% auto;
  filter: saturate(1.16) contrast(1.07) brightness(1.08);
}

.offline-shade {
  background:
    linear-gradient(90deg, rgba(2,3,5,.44), rgba(2,3,5,.08) 58%, rgba(2,3,5,.24)),
    linear-gradient(0deg, rgba(2,3,5,.36), rgba(2,3,5,.02) 56%, rgba(2,3,5,.18));
  backdrop-filter: blur(1.5px);
  -webkit-backdrop-filter: blur(1.5px);
}

.offline-content {
  background:
    linear-gradient(145deg, rgba(12,14,18,.52), rgba(12,14,18,.22)),
    rgba(255,255,255,.025);
  border: 1px solid rgba(255,255,255,.34);
  box-shadow:
    0 24px 65px rgba(0,0,0,.38),
    0 0 0 1px rgba(226,31,47,.20),
    inset 0 1px 0 rgba(255,255,255,.24);
  backdrop-filter: blur(12px) saturate(135%);
  -webkit-backdrop-filter: blur(12px) saturate(135%);
}

.offline-content::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(120deg, rgba(255,255,255,.13), transparent 26% 78%, rgba(226,31,47,.10));
}

.offline-content > * { position: relative; z-index: 1; }
.offline-content a { box-shadow: 0 10px 24px rgba(226,31,47,.28); transition: transform .2s ease, box-shadow .2s ease; }
.offline-content a:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(226,31,47,.38); }

@media (max-width: 760px) {
  .offline-card { background-size: cover; }
  .video-frame { border-radius: 14px; }
}
