/* ===================================================
   JCB Regie – Stylesheet
   Dark "Backstage / Spotlight" Theme
   Mobile-first, mit CSS-Variablen strukturiert
=================================================== */

:root {
  /* Farben – Basis */
  --bg: #08090d;
  --bg-elevated: #101219;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-strong: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.1);
  --border-strong: rgba(255, 255, 255, 0.22);
  --text: #f4f5f7;
  --text-muted: #9aa0b2;
  --text-faint: #666c80;

  /* Farben – Akzente (aus dem Logo abgeleitet) */
  --gold: #ffcc33;
  --gold-soft: #ffe08a;
  --blue: #3a63e0;
  --blue-soft: #8fb0ff;
  --red: #ef4444;

  /* Abstände */
  --space-xs: 0.5rem;
  --space-sm: 1rem;
  --space-md: 1.5rem;
  --space-lg: 2.5rem;
  --space-xl: 4rem;
  --space-2xl: 6.5rem;

  /* Radius & Schatten */
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 26px;
  --shadow-md: 0 12px 40px rgba(0, 0, 0, 0.45);
  --shadow-glow-gold: 0 0 0 1px rgba(255, 204, 51, 0.3), 0 8px 30px rgba(255, 204, 51, 0.15);

  /* Layout */
  --max-width: 1140px;
  --header-height: 78px;

  /* Typografie */
  --font-base: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  /* Wird per JS für den Spotlight-Effekt im Hero gesetzt */
  --pointer-x: 50%;
  --pointer-y: 30%;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-base);
  color: var(--text);
  background-color: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

h1, h2, h3, p {
  margin: 0;
}

::selection {
  background-color: var(--gold);
  color: #1a1300;
}

/* ===================== LAYOUT HELPERS ===================== */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--space-md);
}

/* ===================== BACKGROUND GLOW ===================== */
/* Rein dekorative, fixierte Spotlight-Ebene hinter dem gesamten Content */
.stage-glow {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(600px 400px at 15% -10%, rgba(58, 99, 224, 0.28), transparent 60%),
    radial-gradient(700px 500px at 85% 10%, rgba(255, 204, 51, 0.16), transparent 60%),
    radial-gradient(900px 700px at 50% 110%, rgba(58, 99, 224, 0.14), transparent 60%);
}

header, main, footer {
  position: relative;
  z-index: 1;
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(8, 9, 13, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  min-width: 0;
}

.brand-logo-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  width: 42px;
  flex-shrink: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 204, 51, 0.25), transparent 70%);
  transition: transform 0.3s ease;
}

.brand:hover .brand-logo-ring {
  transform: scale(1.08) rotate(-6deg);
}

.brand-logo {
  height: 40px;
  width: 40px;
  object-fit: contain;
  border-radius: 50%;
}

.brand-name {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  white-space: nowrap;
  color: var(--text);
}

/* ===================== BUTTONS ===================== */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn-icon,
.download-btn svg {
  width: 16px;
  height: 16px;
  transition: transform 0.2s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--gold), #ffb020);
  color: #1a1300;
  box-shadow: 0 4px 18px rgba(255, 176, 32, 0.35);
}

.btn-primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 20%, rgba(255, 255, 255, 0.55) 40%, transparent 60%);
  transform: translateX(-120%);
  transition: transform 0.6s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(255, 176, 32, 0.45);
}

.btn-primary:hover::before {
  transform: translateX(120%);
}

.btn-primary:hover .btn-icon {
  transform: translateX(3px);
}

.btn-primary:active {
  transform: translateY(0);
}

/* ===================== EYEBROW / KICKER ===================== */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-soft);
}

.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 10px 2px rgba(255, 204, 51, 0.6);
}

/* ===================== HERO ===================== */
.hero {
  padding-block: var(--space-2xl) var(--space-xl);
  text-align: center;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    500px circle at var(--pointer-x) var(--pointer-y),
    rgba(255, 204, 51, 0.12),
    transparent 65%
  );
  pointer-events: none;
  transition: background 0.3s ease;
}

.hero-inner {
  max-width: 720px;
  position: relative;
}

.hero-inner > * + * {
  margin-top: var(--space-sm);
}

.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.4rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #ffffff 30%, var(--gold-soft) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 2.5vw, 1.3rem);
  color: var(--text-muted);
  max-width: 540px;
  margin-inline: auto;
}

.hero-hint {
  font-size: 0.95rem;
  color: var(--text-faint);
}

.hero-hint a {
  text-decoration: underline;
  text-underline-offset: 3px;
  font-weight: 600;
  color: var(--blue-soft);
  transition: color 0.2s ease;
}

.hero-hint a:hover {
  color: var(--gold-soft);
}

/* ===================== SECTIONS ===================== */
section {
  padding-block: var(--space-xl);
}

.downloads,
.livestream {
  border-top: 1px solid var(--border);
}

.container > .eyebrow,
.container > .section-title,
.container > .section-subtitle {
  display: block;
  text-align: center;
}

.section-title {
  font-size: clamp(1.7rem, 4vw, 2.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-top: var(--space-xs);
}

.section-subtitle {
  color: var(--text-muted);
  margin-top: var(--space-xs);
  margin-bottom: var(--space-lg);
  font-size: 1.05rem;
}

/* ===================== DOWNLOAD GRID ===================== */
.download-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}

.download-card {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: var(--space-md);
  transition: border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease;
}

.download-card:hover {
  border-color: var(--border-strong);
  background-color: var(--surface-strong);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.file-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  margin-bottom: 0.9rem;
}

.file-badge.pdf {
  color: var(--blue-soft);
  background: rgba(58, 99, 224, 0.16);
  border: 1px solid rgba(58, 99, 224, 0.3);
}

.file-badge.zip {
  color: var(--gold-soft);
  background: rgba(255, 204, 51, 0.14);
  border: 1px solid rgba(255, 204, 51, 0.3);
}

.download-title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
}

.download-desc {
  color: var(--text-muted);
  font-size: 0.92rem;
}

.download-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.65rem 1.2rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--text);
  background-color: transparent;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
  align-self: flex-start;
}

.download-btn:hover {
  background-color: var(--gold);
  border-color: var(--gold);
  color: #1a1300;
}

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

/* ===================== VIDEO / LIVESTREAM ===================== */
.video-frame {
  border-radius: var(--radius-lg);
  padding: 3px;
  background: linear-gradient(135deg, rgba(255, 204, 51, 0.5), rgba(58, 99, 224, 0.5));
}

.video-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 Seitenverhältnis */
  border-radius: calc(var(--radius-lg) - 3px);
  overflow: hidden;
  background-color: #000;
}

.video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ===================== FOOTER ===================== */
.site-footer {
  padding-block: var(--space-lg);
  text-align: center;
  border-top: 1px solid var(--border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-sm);
}

.footer-logo {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  opacity: 0.7;
}

.site-footer p {
  color: var(--text-faint);
  font-size: 0.9rem;
}

/* ===================== SCROLL-REVEAL ANIMATION ===================== */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

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

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

  .btn-primary::before {
    display: none;
  }
}

/* ===================== MEDIA QUERIES ===================== */

/* Tablet und größer */
@media (min-width: 640px) {
  .download-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Laptop und größer */
@media (min-width: 960px) {
  .download-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero {
    padding-block: 8rem 5.5rem;
  }
}

/* Grosser Desktop */
@media (min-width: 1280px) {
  :root {
    --max-width: 1200px;
  }
}
