/* Body, Typo-Defaults, Hintergrund. */

/* === Selbst-gehostete Fonts (DSGVO-safe, kein Google-CDN) === */
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/JetBrainsMono-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../assets/fonts/JetBrainsMono-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/SpaceGrotesk-Latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Space Grotesk';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../assets/fonts/SpaceGrotesk-LatinExt.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

html, body {
  background: var(--bg-0);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 400;
  overflow-x: hidden;
}

/* Lenis-Smooth-Scroll-Hooks. Wenn Lenis nicht lädt, nutze CSS-smooth als Fallback. */
html.lenis,
html.lenis body { height: auto; }
html.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth { scroll-behavior: auto; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: clip; }
.lenis.lenis-scrolling iframe { pointer-events: none; }

/* Default fallback */
html:not(.lenis) { scroll-behavior: smooth; }

/* Respektiere User-Präferenz: keine Animationen */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .bg-stars, .comet { animation: none !important; }
}

/* Subtle scrollbar */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-0); }
::-webkit-scrollbar-thumb { background: var(--green-deep); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--green); }

/* === Typo-Helper === */
.mono { font-family: var(--font-mono); }
.glow { text-shadow: 0 0 6px rgba(57,255,20,.9), 0 0 18px rgba(57,255,20,.5); }
.glow-hard { text-shadow: 0 0 2px #fff, 0 0 8px var(--green), 0 0 24px var(--green), 0 0 48px rgba(57,255,20,.3); }
.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 4px;
  color: var(--green);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 10px;
  border: 1px solid rgba(57,255,20,0.35);
  background: rgba(57,255,20,0.06);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  text-shadow: 0 0 8px rgba(57,255,20,.6);
  position: relative;
  overflow: hidden;
}
.eyebrow::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse-dot 1.6s ease-in-out infinite;
  flex-shrink: 0;
}
.eyebrow::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 0%, rgba(57,255,20,.15) 50%, transparent 100%);
  transform: translateX(-110%);
  animation: eyebrow-sweep 5s ease-in-out infinite;
}
@keyframes eyebrow-sweep { 0%, 70% { transform: translateX(-110%); } 90%, 100% { transform: translateX(110%); } }
.dim { color: var(--ink-dim); }

/* === Helper === */
.section { padding: var(--s-8) var(--pad-x); border-bottom: 1px solid var(--line); position: relative; }
.section-head { display: grid; grid-template-columns: 200px 1fr; gap: var(--s-6); margin-bottom: var(--s-5); align-items: end; }
.section-head h2 { font-size: clamp(40px, 5vw, 64px); font-weight: 700; letter-spacing: -2px; line-height: 0.95; }
.section-head h2 .accent { color: var(--green); }
.muted { color: var(--ink-dim); font-family: var(--font-mono); font-size: 11px; letter-spacing: 2px; }

@media (max-width: 720px) {
  .section { padding: var(--s-7) var(--pad-x); }
  .section-head { grid-template-columns: 1fr; gap: var(--s-3); }
}
