/* ============================================================
   NECKAR STUDIO v2 — Dark Premium Studio
   Design-System gemäß DESIGN.md · nur index.html (Landing)
   ============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@500;700&family=Inter:wght@400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  /* Backgrounds */
  --bg: #07080C;
  --surface: #0D0F16;
  --surface-alt: #11141D;
  --surface-hover: #161A26;

  /* Borders */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(96, 165, 250, 0.45);

  /* Text */
  --text: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-tertiary: #64748B;

  /* Accent */
  --accent: #3B82F6;
  --accent-hover: #60A5FA;
  --accent-2: #22C55E;
  --gradient-brand: linear-gradient(135deg, #3B82F6 0%, #22C55E 100%);

  /* RGB helpers */
  --bg-rgb: 7, 8, 12;
  --surface-rgb: 13, 15, 22;
  --accent-rgb: 59, 130, 246;
  --accent-2-rgb: 34, 197, 94;

  /* Semantic */
  --success: #22C55E;
  --error: #EF4444;
  --warning: #F59E0B;

  /* Fonts */
  --font-display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', Consolas, monospace;

  /* Easing */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-cinema: cubic-bezier(0.65, 0, 0.35, 1);
}

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-secondary);
  font: 400 1rem/1.7 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
ul, ol { list-style: none; }

h1, h2, h3 { font-family: var(--font-display); color: var(--text); font-weight: 700; }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }

::selection { background: rgba(var(--accent-rgb), 0.35); color: var(--text); }

.shell { max-width: 1200px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }
.shell-wide { max-width: 1400px; margin: 0 auto; padding: 0 clamp(1.25rem, 4vw, 2.5rem); }

section { position: relative; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 500 0.75rem/1.4 var(--font-mono);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-hover);
  margin-bottom: 1rem;
}
.eyebrow::before { content: ''; width: 1.5rem; height: 1px; background: var(--accent); }

.section-head { text-align: center; max-width: 40rem; margin: 0 auto 3.5rem; }
.section-head .eyebrow::before { display: none; }
.section-head .eyebrow::after, .section-head .eyebrow::before { content: ''; width: 1.5rem; height: 1px; background: var(--accent); display: block; }
.section-head h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; }
.section-head p { margin-top: 0.9rem; color: var(--text-secondary); }

/* Ghost-Titel hinter Section-Headlines */
.ghost-wrap { position: relative; }
.ghost-wrap::before {
  content: attr(data-ghost);
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -55%);
  font: 700 clamp(4rem, 12vw, 9rem)/1 var(--font-display);
  letter-spacing: -0.03em;
  color: var(--text);
  opacity: 0.05;
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}
.ghost-wrap > * { position: relative; z-index: 1; }

/* ---------- Buttons ---------- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font: 600 0.95rem/1 var(--font-body);
  border-radius: 0.75rem;
  padding: 0.85rem 1.6rem;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  min-height: 44px;
}
.btn-primary {
  color: #fff;
  background: var(--accent);
  border: 1px solid transparent;
  transition: background 0.2s var(--ease-out), box-shadow 0.3s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.4), 0 8px 32px rgba(var(--accent-rgb), 0.35);
  transform: translateY(-2px);
}
.btn-primary:active { transform: translateY(0) scale(0.98); }
.btn-primary:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 3px; }
.btn-primary:disabled { opacity: 0.45; pointer-events: none; }

.btn-secondary {
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border);
  transition: border-color 0.2s, background 0.2s, transform 0.2s var(--ease-out);
}
.btn-secondary:hover { border-color: var(--border-hover); background: var(--surface-hover); transform: translateY(-2px); }
.btn-secondary:active { transform: translateY(0) scale(0.98); }
.btn-secondary:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.btn-icon { width: 1em; height: 1em; flex-shrink: 0; }

/* ---------- Links ---------- */
.link {
  color: var(--accent-hover);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0% 1px;
  background-position: 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s var(--ease-out);
}
.link:hover, .link:focus-visible { background-size: 100% 1px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: 500 0.72rem/1 var(--font-mono);
  letter-spacing: 0.08em;
  color: var(--accent-hover);
  background: rgba(var(--accent-rgb), 0.1);
  border: 1px solid rgba(var(--accent-rgb), 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
}
.badge--live {
  color: var(--accent-2);
  background: rgba(var(--accent-2-rgb), 0.1);
  border-color: rgba(var(--accent-2-rgb), 0.25);
}
.badge--live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-2);
  animation: pulse 1.8s infinite;
}
@keyframes pulse { 50% { opacity: 0.4; transform: scale(0.8); } }

/* ---------- Header ---------- */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.35s, border-color 0.35s, backdrop-filter 0.35s;
}
.site-header.is-scrolled {
  background: rgba(var(--bg-rgb), 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom-color: var(--border);
}
.header-layout { display: flex; align-items: center; gap: 1.5rem; height: 72px; }
.header-logo { flex-shrink: 0; }
.ns-logo { height: 34px; width: auto; }
.ns-logo-neckar { font: 700 42px var(--font-display); fill: var(--text); letter-spacing: -1px; }
.ns-logo-studio { font: 500 42px var(--font-display); fill: var(--text-tertiary); letter-spacing: -1px; }
.ns-logo-arc { stroke: var(--accent); }

.main-nav { display: flex; gap: 0.25rem; margin-left: auto; }
.main-nav a {
  font: 500 0.9rem/1 var(--font-body);
  color: var(--text-secondary);
  text-decoration: none;
  padding: 0.65rem 0.85rem;
  border-radius: 0.5rem;
  transition: color 0.2s, background 0.2s;
}
.main-nav a:hover { color: var(--text); background: var(--surface-hover); }
.main-nav a[aria-current="page"] { color: var(--text); }

.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.nav-toggle {
  display: none;
  flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  cursor: pointer;
}
.nav-toggle span { display: block; width: 18px; height: 2px; margin: 0 auto; background: var(--text); border-radius: 2px; transition: transform 0.3s var(--ease-out), opacity 0.2s; }
.site-header.is-open .nav-toggle span:first-child { transform: translateY(3.5px) rotate(45deg); }
.site-header.is-open .nav-toggle span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.mobile-nav {
  display: none;
  flex-direction: column;
  background: rgba(var(--bg-rgb), 0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1.5rem 1.5rem;
}
.mobile-nav a {
  color: var(--text);
  text-decoration: none;
  font: 500 1.05rem/1 var(--font-body);
  padding: 0.9rem 0.25rem;
  min-height: 44px;
  display: flex; align-items: center;
}
.mobile-nav a + a { border-top: 1px solid var(--border); }
.mobile-nav .mobile-nav-cta {
  margin-top: 0.75rem;
  justify-content: center;
  background: var(--accent);
  color: #fff;
  border-radius: 0.75rem;
  border-top: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 9rem 0 6rem;
  overflow: hidden;
}

/* Aurora (CSS-only: vorgeblurte Radial-Gradients, nur transform animiert) */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.aurora i {
  position: absolute;
  width: 60vw; height: 60vw;
  max-width: 900px; max-height: 900px;
  border-radius: 50%;
  opacity: 0.5;
}
.aurora i:nth-child(1) {
  top: -25%; left: -10%;
  background: radial-gradient(circle, rgba(var(--accent-rgb), 0.22) 0%, transparent 65%);
  animation: auroraA 26s var(--ease-cinema) infinite alternate;
}
.aurora i:nth-child(2) {
  bottom: -30%; right: -15%;
  background: radial-gradient(circle, rgba(var(--accent-2-rgb), 0.14) 0%, transparent 65%);
  animation: auroraB 32s var(--ease-cinema) infinite alternate;
}
@keyframes auroraA { to { transform: translate(8vw, 6vh) scale(1.15); } }
@keyframes auroraB { to { transform: translate(-6vw, -8vh) scale(1.1); } }

.hero-layout { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; width: 100%; }

.hero .badge { margin-bottom: 1.25rem; }
.hero h1 {
  font-size: clamp(2.8rem, 6.5vw, 5.2rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
}
.hero h1 .accent-line {
  background: var(--gradient-brand);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: gradientFlow 8s ease-in-out infinite alternate;
  text-shadow: none;
}
@keyframes gradientFlow { to { background-position: 100% 100%; } }
/* Glow nur auf der H1-Gesamtfläche, nicht auf dem Gradient-Span */
.hero h1 { text-shadow: 0 0 60px rgba(var(--accent-rgb), 0.18); }

/* SplitText: JS zerlegt in .st-word > .st-char */
.st-word { display: inline-block; white-space: nowrap; }
.st-char { display: inline-block; }
.js .hero h1 .st-char { opacity: 0; transform: translateY(0.6em) rotate(4deg); }

.hero-sub { font-size: 1.125rem; line-height: 1.7; max-width: 33rem; margin-bottom: 2rem; }

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 2rem; }

.hero-trust { display: flex; flex-wrap: wrap; gap: 0.85rem 1.75rem; font-size: 0.82rem; color: var(--text-tertiary); margin-bottom: 1.25rem; }
.hero-trust span { display: inline-flex; align-items: center; gap: 0.45rem; }
.hero-trust svg { width: 0.85rem; height: 0.85rem; color: var(--accent-2); flex-shrink: 0; }

.price-pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.price-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: 400 0.78rem/1 var(--font-body);
  color: var(--text-secondary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.45rem 0.9rem;
  min-height: 32px;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s, transform 0.2s var(--ease-out);
}
.price-pill strong { font-family: var(--font-mono); font-weight: 500; color: var(--text); }
.price-pill:hover { border-color: var(--border-hover); color: var(--text); transform: translateY(-2px); }
.price-pill--hot { border-color: rgba(var(--accent-rgb), 0.4); background: rgba(var(--accent-rgb), 0.08); color: var(--accent-hover); }
.price-pill--hot strong { color: var(--accent-hover); }
.price-pill--hot em { font-style: normal; font-size: 0.65rem; background: var(--accent); color: #fff; padding: 0.15rem 0.4rem; border-radius: 4px; }

/* Constellation */
.constellation {
  position: relative;
  height: 540px;
  perspective: 1400px;
  transform-style: preserve-3d;
}
.star-card {
  position: absolute;
  top: calc(50% + var(--y, 0) * 1px);
  left: calc(50% + var(--x, 0) * 1px);
  transform:
    translate3d(-50%, -50%, calc(var(--z, 0) * 1px))
    rotateX(calc(var(--rx, 0) * 1deg))
    rotateY(calc(var(--ry, 0) * 1deg))
    rotateZ(calc(var(--rz, 0) * 1deg));
  opacity: var(--depth-fade, 1);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  will-change: transform;
  white-space: nowrap;
}
.star-card .sc-label { font: 500 0.62rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); display: block; margin-bottom: 0.3rem; }
.star-card .sc-value { font: 500 1.15rem/1.1 var(--font-mono); letter-spacing: -0.01em; color: var(--text); display: flex; align-items: center; gap: 0.45rem; }
.star-card .sc-value.ok { color: var(--accent-2); }
.star-card .sc-value.blue { color: var(--accent-hover); }
.star-card code { font: 400 0.78rem/1.5 var(--font-mono); color: var(--text-secondary); }
.star-card code .tag { color: var(--accent-hover); }
.star-card code .ok { color: var(--accent-2); }

/* ---------- Proof / Terminal (Konvergenz-Ziel) ---------- */
.proof { padding: clamp(5rem, 12vh, 9rem) 0; }
.proof-layout { display: grid; grid-template-columns: 1fr 1.15fr; gap: 4rem; align-items: center; }
.proof-copy h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 1rem; }
.proof-copy p { max-width: 36rem; margin-bottom: 1.75rem; }
.proof-list { display: flex; flex-direction: column; gap: 0.7rem; }
.proof-list li { display: flex; align-items: flex-start; gap: 0.65rem; font-size: 0.95rem; }
.proof-list svg { width: 1rem; height: 1rem; color: var(--accent-2); flex-shrink: 0; margin-top: 0.25rem; }

.terminal {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  font: 400 0.85rem/1.7 var(--font-mono);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.terminal-bar { display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 1rem; border-bottom: 1px solid var(--border); }
.terminal-dot { width: 10px; height: 10px; border-radius: 50%; }
.terminal-dot:nth-child(1) { background: var(--error); }
.terminal-dot:nth-child(2) { background: var(--warning); }
.terminal-dot:nth-child(3) { background: var(--success); }
.terminal-title { margin-left: 0.6rem; font-size: 0.72rem; color: var(--text-tertiary); letter-spacing: 0.08em; }
.terminal-body { padding: 1.5rem; color: var(--text-secondary); }
.terminal-body .line { display: block; }
.terminal-body .prompt { color: var(--accent-hover); }
.terminal-body .ok { color: var(--accent-2); }
.terminal-body .dim { color: var(--text-tertiary); }

/* ---------- Marquee + Stats ---------- */
.band { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-alt); overflow: hidden; }
.marquee { display: flex; overflow: hidden; padding: 1.1rem 0; user-select: none; }
.marquee-track {
  display: flex; flex-shrink: 0; align-items: center; gap: 3rem;
  padding-right: 3rem;
  animation: marquee 28s linear infinite;
  font: 500 0.95rem/1 var(--font-mono);
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
  white-space: nowrap;
}
.marquee-track span { display: flex; align-items: center; gap: 3rem; }
.marquee-track .dot { color: var(--accent); }
@keyframes marquee { to { transform: translateX(-100%); } }
.marquee:hover .marquee-track { animation-play-state: paused; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--border); }
.stat { padding: 2rem 1.5rem; text-align: center; }
.stat + .stat { border-left: 1px solid var(--border); }
.stat-val { font: 500 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-mono); letter-spacing: -0.01em; color: var(--text); display: block; }
.stat-val .unit { font-size: 0.6em; color: var(--text-tertiary); }
.stat-lbl { font-size: 0.78rem; color: var(--text-tertiary); margin-top: 0.5rem; display: block; }

/* ---------- Problem vs. Lösung ---------- */
.problem { padding: clamp(5rem, 12vh, 9rem) 0; }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }

/* ---------- Cards (Spotlight-Basis) ---------- */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s var(--ease-out);
}
.card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(var(--accent-rgb), 0.09), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.card:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.card:hover::before { opacity: 1; }
.card:focus-within { border-color: var(--accent); }
.card > * { position: relative; }

.vs-head { display: flex; align-items: center; gap: 0.65rem; margin-bottom: 1.25rem; }
.vs-icon { width: 2.1rem; height: 2.1rem; border-radius: 0.55rem; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.vs-icon svg { width: 1rem; height: 1rem; }
.vs-icon.bad { background: rgba(239, 68, 68, 0.12); color: var(--error); }
.vs-icon.good { background: rgba(var(--accent-2-rgb), 0.12); color: var(--accent-2); }
.vs-title { font: 700 1rem/1.3 var(--font-display); color: var(--text); }
.vs-list { display: flex; flex-direction: column; gap: 0.7rem; }
.vs-list li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.9rem; line-height: 1.5; }
.vs-list svg { width: 0.9rem; height: 0.9rem; flex-shrink: 0; margin-top: 0.25rem; }
.vs-list .bad { color: var(--error); }
.vs-list .good { color: var(--accent-2); }

/* ---------- Pin-Swap: Pakete ----------
   Default: statisch gestapelt (kein JS nötig).
   JS fügt .is-active hinzu → Pin + Szenenwechsel. */
.pin-swap { padding: clamp(5rem, 12vh, 9rem) 0; }
.pin-swap.is-active { height: 220vh; padding: 0; }
.pin-swap-inner {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 3.5rem;
  align-items: start;
}
/* Statischer Modus: linke Spalte läuft als Sticky-Sidebar mit */
.pin-swap:not(.is-active) .ps-left { position: sticky; top: 6rem; }
.pin-swap.is-active .pin-swap-inner { align-items: center; }
.pin-swap.is-active .pin-swap-inner {
  position: sticky; top: 0;
  height: 100vh;
  overflow: hidden;
}
.ps-left .eyebrow { margin-bottom: 1.25rem; }
.ps-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.08; letter-spacing: -0.02em; margin-bottom: 0.4rem; }
.ps-price { font: 500 clamp(1.8rem, 3vw, 2.4rem)/1 var(--font-mono); color: var(--accent-hover); margin-bottom: 1rem; }
.ps-desc { max-width: 30rem; margin-bottom: 1.75rem; min-height: 3.4em; }
.ps-progress { display: flex; gap: 0.5rem; margin-top: 2rem; }
.pin-swap:not(.is-active) .ps-progress { display: none; }
.ps-progress i { width: 2.25rem; height: 3px; border-radius: 999px; background: var(--border); transition: background 0.3s; }
.ps-progress i.on { background: var(--accent); }

.ps-right { display: flex; flex-direction: column; gap: 1.5rem; }
.pin-swap.is-active .ps-right { position: relative; display: block; height: min(560px, 72vh); }
.scene { display: flex; align-items: center; }
.pin-swap.is-active .scene { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.pin-swap.is-active .scene:first-child { opacity: 1; visibility: visible; }

.pack-card {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 2.25rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.pack-card.card-featured {
  border-color: rgba(var(--accent-rgb), 0.5);
  background: linear-gradient(160deg, rgba(var(--accent-rgb), 0.08), var(--surface) 55%);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb), 0.3), 0 24px 64px rgba(var(--accent-rgb), 0.12);
}
.pack-name { font: 500 0.75rem/1.4 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 0.75rem; display: flex; align-items: center; gap: 0.6rem; }
.pack-price { font: 500 2.8rem/1 var(--font-mono); letter-spacing: -0.01em; color: var(--text); margin-bottom: 1.5rem; }
.pack-price .unit { font-size: 0.45em; color: var(--text-tertiary); }
.pack-feats { display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 1.75rem; }
.pack-feats li { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.92rem; }
.pack-feats svg { width: 0.9rem; height: 0.9rem; color: var(--accent-2); flex-shrink: 0; margin-top: 0.28rem; }
.pack-note { font-size: 0.78rem; color: var(--text-tertiary); }

/* ---------- Prozess (Pin-Scrub) ---------- */
.process { background: var(--surface-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.process-inner { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 5rem 0; }
.process-track { position: relative; margin-top: 3.5rem; }
.process-line { position: absolute; top: 1.5rem; left: 5%; right: 5%; height: 2px; background: var(--border); }
.process-line-fill { height: 100%; background: var(--gradient-brand); transform: scaleX(0); transform-origin: left center; }
.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; position: relative; }
.process-step { text-align: center; --step-on: 0; }
.process-num {
  width: 3rem; height: 3rem;
  margin: 0 auto 1.25rem;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  font: 500 1rem/1 var(--font-mono);
  color: var(--text-tertiary);
  position: relative; z-index: 1;
  transition: border-color 0.3s, color 0.3s, box-shadow 0.3s;
}
.process-step.is-on .process-num {
  border-color: var(--accent);
  color: var(--accent-hover);
  box-shadow: 0 0 24px rgba(var(--accent-rgb), 0.35);
}
.process-step h3 { font-size: 0.95rem; margin-bottom: 0.4rem; }
.process-step p { font-size: 0.85rem; line-height: 1.55; color: var(--text-tertiary); }
.process-step.is-on p { color: var(--text-secondary); }

/* ---------- Projekt-Cockpit (Angebot / Zahlplan / Client-Hub) ---------- */
.hub { padding: clamp(5rem, 12vh, 9rem) 0; }
.hub-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}
.hub-tabs { display: flex; border-bottom: 1px solid var(--border); }
.hub-tab {
  flex: 1;
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  font: 600 0.9rem/1 var(--font-body);
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1.1rem 1rem;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.hub-tab + .hub-tab { border-left: 1px solid var(--border); }
.hub-tab:hover { color: var(--text); background: var(--surface-hover); }
.hub-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.hub-tab.is-active { color: var(--text); border-bottom-color: var(--accent); background: var(--surface-alt); }
.hub-tab-num { font: 500 0.72rem/1 var(--font-mono); color: var(--accent-hover); letter-spacing: 0.1em; }

.hub-pane { display: none; padding: 2.5rem; }
.hub-pane.is-active { display: block; }
.hub-pane-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 3rem; align-items: center; }
.hub-explain h3 { font-size: 1.4rem; line-height: 1.25; letter-spacing: -0.01em; margin-bottom: 0.75rem; }
.hub-explain p { font-size: 0.95rem; margin-bottom: 1.25rem; max-width: 34rem; }
.hub-demo-tag { margin-bottom: 0; }

.hub-field { display: block; max-width: 18rem; }
.hub-field span { display: block; font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 0.5rem; }
.hub-field input {
  width: 100%;
  font: 500 1rem/1 var(--font-body);
  color: var(--text);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.75rem 0.9rem;
  min-height: 44px;
  transition: border-color 0.2s;
}
.hub-field input::placeholder { color: var(--text-tertiary); }
.hub-field input:hover { border-color: var(--border-hover); }
.hub-field input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }

/* Angebot-Mock */
.offer-doc {
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 2rem;
}
.offer-hello { font: 700 1.5rem/1.2 var(--font-display); color: var(--text); }
.offer-sub { font-size: 0.85rem; color: var(--text-tertiary); margin: 0.35rem 0 1.5rem; }
.offer-lines { display: flex; flex-direction: column; }
.offer-lines li { display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem; padding: 0.65rem 0; border-bottom: 1px solid var(--border); }
.offer-lines span { color: var(--text-tertiary); }
.offer-lines strong { color: var(--text); font-weight: 500; text-align: right; }
.offer-total { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding-top: 1.1rem; }
.offer-total span { font-size: 0.82rem; color: var(--text-tertiary); }
.offer-total strong { font: 500 1.8rem/1 var(--font-mono); color: var(--accent-hover); letter-spacing: -0.01em; }
.offer-note { margin-top: 1rem; font: 400 0.72rem/1.5 var(--font-mono); color: var(--text-tertiary); }

/* Zahlplan */
.pay-pkgs { display: inline-flex; gap: 0.4rem; background: var(--surface-alt); border: 1px solid var(--border); border-radius: 999px; padding: 0.3rem; }
.pay-pkg {
  font: 600 0.82rem/1 var(--font-body);
  color: var(--text-tertiary);
  background: transparent;
  border: none;
  border-radius: 999px;
  padding: 0.6rem 1.1rem;
  min-height: 36px;
  cursor: pointer;
  transition: color 0.2s, background 0.2s;
}
.pay-pkg:hover { color: var(--text); }
.pay-pkg:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pay-pkg.is-active { color: #fff; background: var(--accent); }

.pay-card { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 1rem; padding: 1.75rem; }
.pay-title { font: 500 0.72rem/1.4 var(--font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); margin-bottom: 1.1rem; }
.pay-plans { display: flex; flex-direction: column; gap: 0.6rem; }
.pay-plan {
  display: flex; align-items: center; gap: 0.9rem;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}
.pay-plan:hover { border-color: var(--border-hover); }
.pay-plan:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.pay-plan.is-active { border-color: rgba(var(--accent-rgb), 0.55); background: rgba(var(--accent-rgb), 0.07); }
.pay-radio { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border); flex-shrink: 0; position: relative; transition: border-color 0.2s; }
.pay-plan.is-active .pay-radio { border-color: var(--accent); }
.pay-plan.is-active .pay-radio::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.pay-info { flex: 1; min-width: 0; }
.pay-info strong { display: block; font: 600 0.92rem/1.3 var(--font-body); color: var(--text); }
.pay-info em { display: block; font-style: normal; font-size: 0.76rem; color: var(--text-tertiary); margin-top: 0.15rem; }
.pay-amount { text-align: right; flex-shrink: 0; }
.pay-amount strong { display: block; font: 500 1.05rem/1.2 var(--font-mono); color: var(--text); }
.pay-amount em { display: block; font-style: normal; font: 400 0.72rem/1.4 var(--font-mono); color: var(--accent-2); margin-top: 0.15rem; }
.pay-plan[data-plan="split"] .pay-amount em,
.pay-plan[data-plan="raten"] .pay-amount em { color: var(--text-tertiary); }
.pay-rates { display: inline-flex; gap: 0.3rem; margin-left: 0.5rem; vertical-align: middle; }
.pay-rate {
  font: 500 0.72rem/1 var(--font-mono);
  color: var(--text-tertiary);
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 0.4rem;
  padding: 0.3rem 0.55rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.pay-rate:hover { color: var(--text); border-color: var(--border-hover); }
.pay-rate:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.pay-rate.is-active { color: var(--accent-hover); border-color: rgba(var(--accent-rgb), 0.5); background: rgba(var(--accent-rgb), 0.1); }
.pay-note { margin-top: 1.1rem; font: 400 0.72rem/1.5 var(--font-mono); color: var(--text-tertiary); }

/* Client-Hub Status */
.status-card { background: var(--surface-alt); border: 1px solid var(--border); border-radius: 1rem; padding: 1.75rem; }
.status-list { display: flex; flex-direction: column; }
.status-list li { display: flex; gap: 1rem; position: relative; padding-bottom: 1.5rem; }
.status-list li:last-child { padding-bottom: 0; }
.status-list li::before { content: ''; position: absolute; left: 10px; top: 24px; bottom: 2px; width: 2px; background: var(--border); }
.status-list li:last-child::before { display: none; }
.status-list li.done::before { background: rgba(var(--accent-2-rgb), 0.45); }
.status-dot {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  border: 2px solid var(--border);
  background: var(--surface);
  display: flex; align-items: center; justify-content: center;
  position: relative; z-index: 1;
  color: var(--accent-2);
}
.status-list li.done .status-dot { border-color: var(--accent-2); background: rgba(var(--accent-2-rgb), 0.12); }
.status-list li.active .status-dot { border-color: var(--accent); }
.status-list li.active .status-dot::after { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); animation: pulse 1.8s infinite; }
.status-info { flex: 1; min-width: 0; }
.status-info strong { display: block; font: 600 0.92rem/1.3 var(--font-body); color: var(--text); }
.status-info em { display: block; font-style: normal; font-size: 0.76rem; color: var(--text-tertiary); margin-top: 0.15rem; }
.status-bar { display: block; height: 6px; border-radius: 999px; background: var(--border); overflow: hidden; margin-top: 0.6rem; max-width: 260px; }
.status-bar-fill { display: block; height: 100%; width: var(--p, 0%); border-radius: 999px; background: var(--gradient-brand); transition: width 1s var(--ease-out); }

/* ---------- Check-Teaser + WebGL ---------- */
.check-teaser { padding: clamp(5rem, 12vh, 9rem) 0; overflow: hidden; }
.check-panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
}
.check-copy { padding: 3rem 2.75rem; position: relative; z-index: 2; }
.check-copy h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); line-height: 1.1; letter-spacing: -0.02em; margin: 0.25rem 0 1rem; }
.check-copy p { max-width: 42ch; margin-bottom: 1.75rem; }
.check-visual {
  position: relative;
  border-left: 1px solid var(--border);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.75rem;
  padding: 2.5rem 1.5rem;
  min-height: 360px;
}
.webgl-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.check-grade { position: relative; width: 140px; height: 140px; z-index: 2; }
.check-grade svg { transform: rotate(-90deg); }
.check-grade .ring-bg { stroke: var(--border); }
.check-grade .ring-val { stroke: var(--accent-2); }
.check-grade-num {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
}
.check-grade-num strong { font: 500 2.8rem/0.9 var(--font-mono); color: var(--accent-2); }
.check-grade-num span { font: 500 0.6rem/1.4 var(--font-mono); letter-spacing: 0.18em; text-transform: uppercase; color: var(--text-tertiary); margin-top: 0.3rem; }
.check-visual figcaption { position: relative; z-index: 2; font-size: 0.74rem; color: var(--text-tertiary); text-align: center; max-width: 20ch; }

/* ---------- Bento ---------- */
.bento { padding: clamp(5rem, 12vh, 9rem) 0; }
.grid-bento {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 190px;
  gap: 1.5rem;
}
.grid-bento .card { display: flex; flex-direction: column; justify-content: flex-end; }
.grid-bento > :first-child { grid-column: span 2; grid-row: span 2; }
.grid-bento > :nth-child(4) { grid-column: span 2; }
.bento-icon { width: 2.4rem; height: 2.4rem; border-radius: 0.65rem; background: rgba(var(--accent-rgb), 0.1); border: 1px solid rgba(var(--accent-rgb), 0.2); color: var(--accent-hover); display: flex; align-items: center; justify-content: center; margin-bottom: auto; }
.bento-icon svg { width: 1.1rem; height: 1.1rem; }
.grid-bento h3 { font-size: 1.1rem; margin: 1rem 0 0.35rem; }
.grid-bento p { font-size: 0.88rem; line-height: 1.55; color: var(--text-tertiary); }
.bento-score { font: 500 clamp(3.5rem, 6vw, 5rem)/1 var(--font-mono); color: var(--accent-2); letter-spacing: -0.02em; }
.bento-score .unit { font-size: 0.35em; color: var(--text-tertiary); }

/* ---------- Referenz-Hinweis (ehrlich) ---------- */
.honest { padding: 0 0 clamp(5rem, 12vh, 9rem); }
.honest-strip {
  border: 1px dashed var(--border);
  border-radius: 1rem;
  padding: 2rem 2.25rem;
  display: flex; flex-wrap: wrap; align-items: center; gap: 1.5rem;
  background: var(--surface);
}
.honest-strip svg { width: 1.5rem; height: 1.5rem; color: var(--accent-hover); flex-shrink: 0; }
.honest-strip p { flex: 1; min-width: 240px; font-size: 0.95rem; }
.honest-strip p strong { color: var(--text); }

/* ---------- Final CTA ---------- */
.fcta {
  position: relative;
  padding: clamp(6rem, 16vh, 10rem) 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background:
    radial-gradient(60% 80% at 50% 110%, rgba(var(--accent-rgb), 0.18) 0%, transparent 70%),
    var(--surface-alt);
  overflow: hidden;
}
.fcta h2 { font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.02em; line-height: 1.05; margin-bottom: 1rem; }
.fcta p { max-width: 30rem; margin: 0 auto 2.25rem; }
.fcta-btns { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: 2.5rem 0 6rem; }
.footer-shell { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; font-size: 0.85rem; color: var(--text-tertiary); }
.footer-links a { color: var(--text-tertiary); text-decoration: none; transition: color 0.2s; padding: 0.5rem 0.15rem; }
.footer-links a:hover { color: var(--text); }
.footer-egg {
  margin-top: 2rem;
  font: 400 0.78rem/1.6 var(--font-mono);
  color: var(--text-tertiary);
  min-height: 1.6em;
}
.footer-egg .prompt { color: var(--accent-hover); }
.footer-egg .ok { color: var(--accent-2); }
.footer-egg .caret { display: inline-block; width: 7px; height: 1em; vertical-align: text-bottom; background: var(--accent-2); animation: caretBlink 1s steps(1) infinite; }
@keyframes caretBlink { 50% { opacity: 0; } }
.footer-credit { width: 100%; margin-top: 1rem; font-size: 0.72rem; color: var(--text-tertiary); opacity: 0.7; }
.footer-credit a { color: inherit; }

/* ---------- Sticky Mobile CTA / Back-to-top / Cookies ---------- */
.sticky-mobile-cta {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
  gap: 0.6rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: rgba(var(--bg-rgb), 0.9);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--border);
}
.sticky-mobile-cta a { flex: 1; justify-content: center; }

.back-to-top {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 80;
  width: 44px; height: 44px;
  border-radius: 0.75rem;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-secondary);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: opacity 0.3s, transform 0.3s, visibility 0.3s, border-color 0.2s;
}
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; }
.back-to-top:hover { border-color: var(--border-hover); color: var(--text); }
.back-to-top svg { width: 1rem; height: 1rem; }

.cookie-banner {
  position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 110;
  max-width: 560px; margin: 0 auto;
  background: var(--surface-alt);
  border: 1px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem 1.25rem;
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
  display: none;
  flex-wrap: wrap; align-items: center; gap: 0.9rem;
}
.cookie-banner.is-visible { display: flex; }
.cookie-banner p { flex: 1; min-width: 200px; font-size: 0.85rem; }
.cookie-banner .link { white-space: nowrap; }
.cookie-actions { display: flex; gap: 0.5rem; }
.cookie-btn-reject {
  font: 600 0.85rem/1 var(--font-body);
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 0.6rem;
  padding: 0.65rem 1rem;
  min-height: 44px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
}
.cookie-btn-reject:hover { color: var(--text); border-color: var(--border-hover); }

/* ---------- Reveal Utilities ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); }
.js .reveal.is-visible {
  opacity: 1; transform: none;
  transition: opacity 0.7s var(--ease-out), transform 0.7s var(--ease-out);
  transition-delay: var(--stagger, 0s);
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .main-nav { display: none; }
  .nav-toggle { display: flex; margin-left: auto; }
  .header-actions .header-button { display: none; }
  .site-header.is-open .mobile-nav { display: flex; }

  .hero-layout { grid-template-columns: 1fr; gap: 2rem; }
  .constellation { height: 380px; }
  .proof-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .grid-bento { grid-template-columns: repeat(2, 1fr); }
  .grid-bento > :first-child { grid-column: span 2; }
  .grid-bento > :nth-child(4) { grid-column: span 2; }
  .pin-swap-inner { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--border); }
}

@media (max-width: 640px) {
  .hero { padding: 7.5rem 0 4rem; min-height: 0; }
  .hero h1 { font-size: clamp(2.4rem, 11vw, 2.9rem); }
  .constellation { height: 300px; }

  .problem-grid { grid-template-columns: 1fr; }
  .hub-pane { padding: 1.5rem; }
  .hub-pane-grid { grid-template-columns: 1fr; gap: 1.75rem; }
  .hub-tab { flex-direction: column; gap: 0.3rem; padding: 0.85rem 0.5rem; font-size: 0.8rem; }
  .pay-amount strong { font-size: 0.95rem; }
  .grid-bento { grid-template-columns: 1fr; grid-auto-rows: auto; }
  .grid-bento > * { grid-column: auto !important; grid-row: auto !important; min-height: 160px; }

  /* Pin-Swap → gestapelte Sections */
  .pin-swap { height: auto; padding: 4rem 0; }
  .pin-swap-inner { position: static; height: auto; grid-template-columns: 1fr; overflow: visible; }
  .pin-swap .ps-left { position: static; }
  .ps-right { height: auto; display: flex; flex-direction: column; gap: 1.5rem; }
  .scene { position: static; opacity: 1 !important; visibility: visible !important; }
  .ps-progress { display: none; }
  .ps-desc { min-height: 0; }

  /* Prozess → gestapelte Steps */
  .process-inner { min-height: 0; }
  .process-line { display: none; }
  .process-steps { grid-template-columns: 1fr; gap: 2rem; }

  .check-panel { grid-template-columns: 1fr; }
  .check-visual { border-left: none; border-top: 1px solid var(--border); }
  .check-copy { padding: 2.25rem 1.5rem; }

  .sticky-mobile-cta { display: flex; }
  .back-to-top { bottom: 5.5rem; }
  .cookie-banner { bottom: 5rem; }

  html { scroll-behavior: auto; }
}

/* ---------- Reduced Motion ---------- */
@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;
  }
  .js .reveal, .js .hero h1 .st-char { opacity: 1; transform: none; }
  .pin-swap { height: auto; padding: 4rem 0; }
  .pin-swap-inner { position: static; height: auto; }
  .scene { position: static; opacity: 1 !important; visibility: visible !important; }
  .webgl-canvas { display: none; }
}
