/* ============================================================
   AI2ROI — Signature-Stylesheet
   Design-Direktive: Modern/Lebendig (abgeleitet aus Neovynt)
   Tailwind (CDN) liefert Layout/Abstände/Typo; diese Datei liefert
   die Design-Tokens und die Signature-Effekte (Grid-Backdrop,
   Gradient-Orbs, Scanline, Gradient-Text). Kein Build-Schritt.
   ============================================================ */

/* ---- Design-Tokens (semantisch, an EINER Stelle) ---------- */
:root {
  /* Flächen */
  --bg: #000000;
  --fg: #ffffff;

  /* Dunkles UA-Rendering (Caret, Autofill, Scrollbar) — ergänzt das HTML-<meta> */
  color-scheme: dark;

  /* Akzent-Gradient (Pink → Rot) */
  --grad-a: #ea64b4;
  --grad-b: #f62248;
  --grad-c: 180, 80, 200; /* lila Tertiär-Akzent (orb-3, Tiefe) — als RGB-Tripel für rgba() */

  /* Abgeleitete Akzent-Stufen */
  --accent: var(--grad-b);
  --accent-soft: rgba(246, 34, 72, 0.55);

  /* Gedämpfte Schrift-Stufen */
  --fg-muted: rgba(255, 255, 255, 0.78);
  --fg-subtle: rgba(255, 255, 255, 0.55);
  --fg-faint: rgba(255, 255, 255, 0.35);

  /* Grid-Backdrop */
  --grid: rgba(255, 255, 255, 0.04);

  /* Karten / Trennlinien */
  --card: rgba(255, 255, 255, 0.03);
  --card-border: rgba(255, 255, 255, 0.08);
  --card-border-bright: rgba(246, 34, 72, 0.35);

  /* Abgeleitete Flächen / Glows (für Layout-Komponenten in M2) */
  --surface-hover: rgba(255, 255, 255, 0.05);
  --header-bg: rgba(0, 0, 0, 0.55);
  --shimmer: rgba(255, 255, 255, 0.06);
  --accent-glow: rgba(246, 34, 72, 0.25);
  --accent-glow-strong: rgba(246, 34, 72, 0.42);
  --thumb-tint: linear-gradient(135deg, rgba(234, 100, 180, 0.10), rgba(246, 34, 72, 0.10));
  --overlay-dark: rgba(0, 0, 0, 0.45);

  /* Formular-Felder (Newsletter, M3) */
  --field-bg: rgba(255, 255, 255, 0.04);
  --field-border: rgba(255, 255, 255, 0.12);
  --field-border-focus: rgba(246, 34, 72, 0.5);

  /* Status-Akzente (Inline-Feedback) — als Tokens, damit kein hardcoded-Farbwert im Code */
  --success: #57e3a3;
  --success-soft: rgba(87, 227, 163, 0.12);
  --error: #ff5d73;
  --error-soft: rgba(255, 93, 115, 0.12);

  /* Layout-Maße */
  --maxw: 1120px;
  --radius: 18px;
}

/* ---- Basis ----------------------------------------------- */
* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  font-feature-settings: "ss01", "cv11";
  font-weight: 400; /* Hierarchie über Größe + Farbe, nicht über Gewicht */
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Headings erben Gewicht 400 — Hierarchie kommt aus Tailwind-Größen + Farbe */
h1, h2, h3, h4, h5, h6 { font-weight: 400; margin: 0; }

body {
  position: relative;
  min-height: 100%;
  isolation: isolate;
}

a { color: inherit; }

/* ---- Signature-Effekt: Grid-Backdrop ---------------------- */
/* 1:1 aus Neovynt portiert. Fixed, hinter allem (z-index -3). */
.fx-grid {
  content: "";
  position: fixed;
  inset: -2px;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 0%, #000 35%, transparent 75%);
          mask-image: radial-gradient(ellipse at center, #000 0%, #000 35%, transparent 75%);
  z-index: -3;
  pointer-events: none;
  animation: grid-drift 60s linear infinite;
}

/* ---- Signature-Effekt: Vignette + Grain ------------------- */
.fx-grain {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 40%, rgba(0, 0, 0, 0.65) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  pointer-events: none;
  z-index: -1;
  mix-blend-mode: screen;
}

/* ---- Signature-Effekt: Gradient-Orbs ---------------------- */
.orb {
  position: fixed;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.55;
  z-index: -2;
  pointer-events: none;
  will-change: transform;
}
.orb-1 {
  width: 620px; height: 620px;
  left: -180px; top: -200px;
  background: radial-gradient(circle, var(--grad-a) 0%, transparent 70%);
  animation: float-a 18s ease-in-out infinite;
}
.orb-2 {
  width: 560px; height: 560px;
  right: -160px; bottom: -180px;
  background: radial-gradient(circle, var(--grad-b) 0%, transparent 70%);
  animation: float-b 22s ease-in-out infinite;
}
.orb-3 {
  width: 380px; height: 380px;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(var(--grad-c), 0.5) 0%, transparent 70%);
  opacity: 0.4;
  animation: pulse-c 9s ease-in-out infinite;
}

/* ---- Signature-Effekt: Scanline --------------------------- */
.scan {
  position: fixed;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent-soft), transparent);
  z-index: -1;
  animation: scan 14s linear infinite;
  pointer-events: none;
}

/* ---- Signature-Effekt: Gradient-Text ---------------------- */
.gradient-text {
  background-image: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ---- Wortmarke / Logo ------------------------------------- */
.logo {
  width: min(72vw, 640px);
  height: auto;
  filter: drop-shadow(0 0 24px rgba(246, 34, 72, 0.18))
          drop-shadow(0 0 60px rgba(234, 100, 180, 0.12));
  animation: logo-in 1.2s cubic-bezier(0.2, 0, 0, 1) both,
             logo-glow 6s ease-in-out 1.2s infinite;
}

/* ---- Einblend-Helfer (dezente Fade-Ins) ------------------- */
.fade-in {
  opacity: 0;
  animation: fade-in 1.4s ease forwards;
}
.fade-in-delay-1 { animation-delay: 0.5s; }
.fade-in-delay-2 { animation-delay: 0.8s; }
.fade-in-delay-3 { animation-delay: 1s; }

/* ---- Keyframes (1:1 aus Neovynt) -------------------------- */
@keyframes logo-in {
  from { opacity: 0; transform: translateY(8px) scale(0.985); filter: blur(8px); }
  to   { opacity: 1; transform: none; filter: drop-shadow(0 0 24px rgba(246, 34, 72, 0.18)) drop-shadow(0 0 60px rgba(234, 100, 180, 0.12)); }
}
@keyframes logo-glow {
  0%, 100% { filter: drop-shadow(0 0 24px rgba(246, 34, 72, 0.18)) drop-shadow(0 0 60px rgba(234, 100, 180, 0.12)); }
  50%      { filter: drop-shadow(0 0 36px rgba(246, 34, 72, 0.32)) drop-shadow(0 0 90px rgba(234, 100, 180, 0.22)); }
}
@keyframes fade-in {
  to { opacity: 1; }
}
@keyframes float-a {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(60px, 40px); }
}
@keyframes float-b {
  0%, 100% { transform: translate(0, 0); }
  50%      { transform: translate(-50px, -30px); }
}
@keyframes pulse-c {
  0%, 100% { transform: translate(-50%, -50%) scale(1);   opacity: 0.4; }
  50%      { transform: translate(-50%, -50%) scale(1.15); opacity: 0.55; }
}
@keyframes scan {
  0%   { transform: translateY(0); }
  100% { transform: translateY(100vh); }
}
@keyframes grid-drift {
  0%   { background-position: 0 0, 0 0; }
  100% { background-position: 64px 64px, 64px 64px; }
}

/* ---- prefers-reduced-motion respektieren ------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .fade-in { opacity: 1; }
  .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .scroll-cue { animation: none !important; }
}

/* ============================================================
   Layout-Komponenten (Milestone 2: Startseite)
   Branded Komponenten über Design-Tokens — keine hardcoded Farben.
   Tailwind (CDN) liefert generische Utilities; die Marken-Bausteine
   (Buttons, Karten, Sektionen) leben hier über semantische Tokens.
   ============================================================ */

html { scroll-behavior: smooth; }

/* ---- Skip-Link (A11y: Header überspringen, WCAG 2.4.1) ---- */
.skip-link {
  position: absolute;
  left: 12px;
  top: -120px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 10px;
  background: var(--bg);
  border: 1px solid var(--card-border-bright);
  color: var(--fg);
  font-size: 14px;
  text-decoration: none;
  transition: top 160ms ease;
}
.skip-link:focus { top: 12px; outline: 2px solid var(--grad-a); outline-offset: 3px; }
/* Programmatisch (per Skip-Link) fokussiertes <main> braucht keinen Fokus-Ring */
[tabindex="-1"]:focus { outline: none; }

/* ---- Container -------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}

/* ---- Header / Nav ----------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--card-border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  height: 64px;
}
.brand {
  font-size: 17px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--fg);
  text-decoration: none;
  white-space: nowrap;
  transition: filter 200ms ease;
}
.brand:hover { filter: drop-shadow(0 0 14px var(--accent-glow-strong)); }
.brand:focus-visible { outline: 2px solid var(--grad-a); outline-offset: 4px; border-radius: 4px; }
.nav-links {
  display: flex;
  gap: 30px;
  font-size: 13px;
  letter-spacing: 0.08em;
  color: var(--fg-subtle);
}
.nav-links a {
  text-decoration: none;
  transition: color 180ms ease;
}
.nav-links a:hover { color: var(--fg); }
.nav-links a:focus-visible { outline: 2px solid var(--grad-a); outline-offset: 4px; border-radius: 4px; color: var(--fg); }

/* ---- Buttons ---------------------------------------------- */
/* Einzige Stelle mit erlaubtem font-weight > 400 (siehe typography.md). */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 14px;
  letter-spacing: 0.02em;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 180ms ease, box-shadow 220ms ease,
              background 200ms ease, border-color 180ms ease, color 180ms ease;
}
.btn:focus-visible {
  outline: 2px solid var(--grad-a);
  outline-offset: 3px;
}
.btn-primary {
  background-image: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: var(--fg);
  box-shadow: 0 8px 30px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow-strong);
}
.btn-secondary {
  background: var(--card);
  border-color: var(--card-border);
  color: var(--fg);
}
.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: var(--card-border-bright);
  background: var(--surface-hover);
}
.btn-sm { padding: 9px 16px; font-size: 13px; }

/* ---- Sektions-Grundlagen ---------------------------------- */
.section {
  padding-block: clamp(64px, 10vw, 120px);
  scroll-margin-top: 84px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(26px, 4.5vw, 44px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 22ch;
}
.section-lead {
  margin-top: 18px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 60ch;
}

/* ---- Hero ------------------------------------------------- */
.hero {
  position: relative;
  min-height: calc(100vh - 64px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 24px;
  padding-block: 72px 104px;
  scroll-margin-top: 84px;
}
.hero .logo { width: min(56vw, 440px); margin-bottom: 2px; }
.hero-tagline {
  font-size: clamp(30px, 6vw, 60px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  max-width: 16ch;
  color: var(--fg);
}
.hero-sub {
  font-size: clamp(15px, 2.2vw, 19px);
  line-height: 1.6;
  color: var(--fg-muted);
  max-width: 54ch;
}
.meta-line {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 11px;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.meta-line .dot {
  width: 4px; height: 4px;
  border-radius: 50%;
  background: var(--fg-faint);
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  margin-top: 6px;
}
.scroll-cue {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--fg-subtle);
  text-decoration: none;
  font-size: 11px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  transition: color 180ms ease;
  animation: cue-bounce 2.4s ease-in-out infinite;
}
.scroll-cue:hover { color: var(--fg-muted); }
.scroll-cue:focus-visible { outline: 2px solid var(--grad-a); outline-offset: 4px; border-radius: 6px; color: var(--fg-muted); }
.scroll-cue svg { width: 18px; height: 18px; }

/* ---- Pillars (Kernbotschaft) ------------------------------ */
.pillars {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.pillar {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
}
.pillar::before {
  content: "";
  position: absolute;
  left: 0; top: 0;
  width: 48px; height: 3px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}
.pillar h3 { font-size: 20px; color: var(--fg); margin-bottom: 10px; }
.pillar p { font-size: 15px; line-height: 1.65; color: var(--fg-muted); }

/* ---- Kategorie-Karten (Formate) --------------------------- */
.card-grid {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.cat-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
  transition: transform 220ms ease, border-color 200ms ease, background 220ms ease;
}
.cat-card:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-bright);
  background: var(--surface-hover);
}
.cat-num {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 0.2em;
  margin-bottom: 16px;
  background-image: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.cat-card h3 { font-size: 19px; color: var(--fg); margin-bottom: 9px; }
.cat-card p { font-size: 14.5px; line-height: 1.6; color: var(--fg-muted); }

/* ---- Video-Galerie (Platzhalter, in M4 befüllt) ----------- */
.section-head-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.video-grid {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.video-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  border: 1px solid var(--card-border);
}
.video-thumb {
  aspect-ratio: 16 / 9;
  background: var(--thumb-tint);
}
.video-body { padding: 16px 18px 20px; }
.video-line {
  height: 12px;
  border-radius: 6px;
  background: var(--card-border);
}
.video-line + .video-line { margin-top: 10px; width: 70%; }
.video-note {
  margin-top: 22px;
  font-size: 13px;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
}
/* Skeleton-Shimmer — dient zugleich als Lade-Zustand in M4 (loading-states.md). */
.skeleton .video-thumb,
.skeleton .video-line { position: relative; overflow: hidden; }
.skeleton .video-thumb::after,
.skeleton .video-line::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--shimmer), transparent);
  animation: shimmer 1.6s infinite;
}

/* ---- Echte Video-Karten (M4: aus videos.json gerendert) --------------- */
.video-thumb { position: relative; }
.video-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.video-card--link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform 220ms ease, border-color 200ms ease, background 220ms ease;
}
.video-card--link:hover {
  transform: translateY(-4px);
  border-color: var(--card-border-bright);
  background: var(--surface-hover);
}
.video-card--link:focus-visible {
  outline: 2px solid var(--grad-a);
  outline-offset: 3px;
}
/* Play-Badge mittig auf dem Thumbnail */
.video-card--link .video-thumb::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 54px;
  height: 54px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: var(--overlay-dark)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 7.5v9l8-4.5z'/%3E%3C/svg%3E")
    center / 22px no-repeat;
  opacity: 0.82;
  transition: opacity 200ms ease, transform 200ms ease;
}
.video-card--link:hover .video-thumb::after {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.08);
}
.video-title {
  font-size: 16px;
  line-height: 1.4;
  color: var(--fg);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-date {
  margin-top: 8px;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  color: var(--fg-subtle);
}

/* ---- Empty- / Fehler-State der Galerie (empty-states.md) -------------- */
.video-empty {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 12px;
  padding: clamp(36px, 6vw, 64px) 28px;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px dashed var(--card-border);
}
.video-empty-icon svg {
  width: 36px;
  height: 36px;
  color: var(--fg-faint);
}
.video-empty-title { font-size: 17px; color: var(--fg); }
.video-empty-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-subtle);
  max-width: 44ch;
}
.video-empty .btn { margin-top: 8px; }

/* ---- Abschluss-CTA ---------------------------------------- */
.cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  border-radius: 28px;
  border: 1px solid var(--card-border);
  background: var(--card);
  padding: clamp(40px, 7vw, 72px) 28px;
}
.cta::before {
  content: "";
  position: absolute;
  inset: -40% 30% auto 30%;
  height: 320px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.cta > * { position: relative; }
.cta .section-title,
.cta .section-lead { margin-inline: auto; }
.cta-actions {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

/* ---- Footer ----------------------------------------------- */
.site-footer {
  margin-top: 40px;
  border-top: 1px solid var(--card-border);
  padding-block: 36px;
}
.site-footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.footer-links { display: flex; gap: 26px; }
.footer-links a {
  text-decoration: none;
  transition: color 180ms ease, text-shadow 180ms ease;
}
.footer-links a:hover {
  color: var(--fg);
  text-shadow: 0 0 12px var(--accent-glow-strong);
}
.footer-links a:focus-visible { outline: 2px solid var(--grad-a); outline-offset: 4px; border-radius: 4px; color: var(--fg); }

/* ============================================================
   Rechtstexte (Impressum / Datenschutz)
   Editoriale Lese-Schicht: zentrierte Spalte, grosszügiger
   Rhythmus, akzentuierte Marken-Typografie — alles über Tokens.
   ============================================================ */
.legal {
  max-width: 700px;
  margin-inline: auto;
  padding: clamp(56px, 9vw, 108px) 24px clamp(72px, 11vw, 128px);
  counter-reset: legal-sec;
}

/* Kopf */
.legal-title {
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.06;
  letter-spacing: -0.02em;
  color: var(--fg);
}
.legal-lede {
  margin-top: 18px;
  font-size: 12.5px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}
.legal-intro {
  margin-top: 30px;
  font-size: 17px;
  line-height: 1.8;
  color: var(--fg-muted);
}
.legal-row:first-of-type,
.legal-block:first-of-type { margin-top: 30px; }

/* Impressum: Label / Inhalt, zwei Spalten mit Luft */
.legal-row {
  display: grid;
  grid-template-columns: 170px 1fr;
  gap: 36px;
  align-items: baseline;
  border-top: 1px solid var(--card-border);
  padding-block: 32px;
}
.legal-row > h2 {
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}
.legal-body { font-size: 16px; line-height: 1.85; color: var(--fg-muted); }
.legal-body p { margin: 0 0 4px; }
.legal-body p:last-child { margin-bottom: 0; }
.legal-body strong { color: var(--fg); }

/* Datenschutz: nummerierte Abschnitte (CSS-Counter → „01" als Akzent-Marke) */
.legal-block {
  border-top: 1px solid var(--card-border);
  padding-block: 40px;
  counter-increment: legal-sec;
}
.legal-block h2 {
  font-size: clamp(21px, 2.9vw, 27px);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: var(--fg);
  margin-bottom: 20px;
  scroll-margin-top: 84px;
}
.legal-block h2::before {
  content: counter(legal-sec, decimal-leading-zero);
  display: block;
  margin-bottom: 12px;
  font-size: 12px;
  letter-spacing: 0.28em;
  color: var(--accent);
}
.legal-block h3 { font-size: 17px; color: var(--fg); margin: 28px 0 10px; }
.legal-block p { font-size: 16px; line-height: 1.85; color: var(--fg-muted); margin: 0 0 16px; }
.legal-block p:last-child { margin-bottom: 0; }
.legal-block ul {
  margin: 8px 0 18px;
  padding-left: 0;
  list-style: none;
  color: var(--fg-muted);
  font-size: 16px;
  line-height: 1.7;
}
.legal-block li { position: relative; margin-bottom: 10px; padding-left: 24px; }
.legal-block li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 13px;
  width: 12px;
  height: 2px;
  background: linear-gradient(90deg, var(--grad-a), var(--grad-b));
}
.legal-block strong { color: var(--fg); }

/* Links in Rechtstexten */
.legal-body a, .legal-block a, .legal-note a {
  color: var(--fg);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 180ms ease, text-shadow 180ms ease;
}
.legal-body a:hover, .legal-block a:hover, .legal-note a:hover {
  border-color: var(--accent);
  text-shadow: 0 0 12px var(--accent-glow-strong);
}
.legal-body a:focus-visible, .legal-block a:focus-visible, .legal-note a:focus-visible {
  outline: 2px solid var(--grad-a);
  outline-offset: 3px;
  border-radius: 3px;
}

.legal-note {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--card-border);
  font-size: 13px;
  line-height: 1.8;
  color: var(--fg-subtle);
}
.legal-updated {
  margin-top: 28px;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-subtle);
}

/* ============================================================
   Newsletter-Landingpage (Milestone 3)
   Eigenes gebrandetes AC-Formular + Inline-Feedback.
   Reuse der Token-Bausteine (.btn, .eyebrow, .field …), keine
   hardcoded Farben — alles über semantische Tokens.
   ============================================================ */

/* ---- Hero-Split: Pitch links, Anmelde-Karte rechts -------- */
.nl-hero {
  min-height: calc(100vh - 64px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(32px, 6vw, 72px);
  padding-block: clamp(56px, 9vw, 104px);
}
.nl-title {
  font-size: clamp(30px, 5vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--fg);
  max-width: 17ch;
  margin-top: 4px;
}
.nl-lead {
  margin-top: 20px;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.7;
  color: var(--fg-muted);
  max-width: 52ch;
}
.nl-benefits {
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 14px;
  max-width: 52ch;
}
.nl-benefits li {
  position: relative;
  padding-left: 30px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--fg-muted);
}
.nl-benefits li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 14px;
  height: 8px;
  border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent);
  transform: rotate(-45deg);
}

/* ---- Anmelde-Karte ---------------------------------------- */
.nl-card {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  border: 1px solid var(--card-border);
  background: var(--card);
  padding: clamp(28px, 4vw, 40px);
}
.nl-card::before {
  content: "";
  position: absolute;
  inset: -50% 20% auto 20%;
  height: 280px;
  background: radial-gradient(ellipse at center, var(--accent-glow) 0%, transparent 70%);
  pointer-events: none;
}
.nl-card > * { position: relative; }
.nl-card-title {
  font-size: clamp(20px, 3vw, 26px);
  line-height: 1.2;
  color: var(--fg);
}
.nl-card-sub {
  margin-top: 10px;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--fg-subtle);
}

/* ---- ActiveCampaign-Formular (restyled auf AI2ROI) -------- */
/* Die AC-Default-Styles (Roboto, Blau, weißer Hintergrund) sind aus dem
   Embed entfernt; hier skinnen wir die AC-Klassenstruktur über unsere
   Tokens. Die AC-Submit-/Validierungs-Logik (JSONP) bleibt unverändert. */
#_form_67_ {
  position: static;
  margin: 24px 0 0;
  padding: 0;
  max-width: none;
  background: transparent;
  border: none;
  border-radius: 0;
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
}
#_form_67_ * { box-sizing: border-box; }
#_form_67_ ._form-content { margin: 0; }
#_form_67_ ._form_element { position: relative; margin-bottom: 16px; max-width: 100%; }
#_form_67_ ._form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 400; /* Hierarchie über Größe + Farbe, nicht Gewicht (typography.md) */
  letter-spacing: 0.04em;
  color: var(--fg-muted);
}
#_form_67_ .field-required { color: var(--accent); }
#_form_67_ ._field-wrapper { position: relative; }
#_form_67_ input[type="text"] {
  display: block;
  width: 100%;
  padding: 13px 15px;
  border-radius: 12px;
  background: var(--field-bg);
  border: 1px solid var(--field-border);
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  transition: border-color 180ms ease, box-shadow 200ms ease, background 180ms ease;
}
#_form_67_ input[type="text"]::placeholder { color: var(--fg-subtle); }
#_form_67_ input[type="text"]:focus-visible {
  outline: none;
  border-color: var(--field-border-focus);
  box-shadow: 0 0 0 3px var(--accent-glow);
  background: var(--surface-hover);
}
#_form_67_ input[type="text"]._has_error {
  border-color: var(--error);
  box-shadow: 0 0 0 3px var(--error-soft);
}

/* Submit — gebrandeter Gradient-Button (einzige font-weight>400-Stelle) */
#_form_67_ ._button-wrapper { margin-top: 4px; }
#_form_67_ ._submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  background-image: linear-gradient(90deg, var(--grad-a), var(--grad-b));
  color: var(--fg);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: 0 8px 30px var(--accent-glow);
  transition: transform 180ms ease, box-shadow 220ms ease;
}
#_form_67_ ._submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 40px var(--accent-glow-strong);
}
#_form_67_ ._submit:focus-visible { outline: 2px solid var(--grad-a); outline-offset: 3px; }
#_form_67_ ._submit:disabled { cursor: not-allowed; opacity: 0.7; transform: none; }
/* Loading-State: AC setzt .processing beim Submit (loading-states.md) */
#_form_67_ ._submit.processing { color: transparent; position: relative; }
#_form_67_ ._submit.processing::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 18px;
  height: 18px;
  margin: -9px 0 0 -9px;
  border-radius: 50%;
  border: 2px solid var(--fg-faint);
  border-top-color: var(--fg);
  animation: spin 0.7s linear infinite;
}

/* Inline-Feldfehler: AC-Tooltip → statischer Block unter dem Feld (forms.md) */
#_form_67_ ._error { position: static; display: block; margin-top: 6px; }
#_form_67_ ._error-arrow { display: none; }
#_form_67_ ._error-inner {
  padding: 10px 13px;
  border-radius: 10px;
  background: var(--error-soft);
  border: 1px solid var(--error);
  color: var(--error);
  font-size: 13px;
  line-height: 1.45;
  text-align: left;
}
#_form_67_ ._error-inner._form_error { margin-bottom: 14px; }
#_form_67_ ._show_be_error { min-width: 100%; }

/* Erfolg: AC zeigt ._form-thank-you nach erfolgreicher Anmeldung */
#_form_67_ ._form-thank-you {
  padding: 16px 18px;
  border-radius: 12px;
  background: var(--success-soft);
  border: 1px solid var(--success);
  color: var(--success);
  font-size: 15px;
  line-height: 1.55;
  text-align: center;
}

.nl-consent {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--fg-subtle);
}
.nl-consent a {
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: border-color 180ms ease, color 180ms ease;
}
.nl-consent a:hover { color: var(--fg); border-color: var(--accent); }
.nl-consent a:focus-visible { outline: 2px solid var(--grad-a); outline-offset: 3px; border-radius: 3px; }

/* ---- Scroll-Reveal (no-JS-sicher: nur mit .js aktiv) ------ */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 700ms ease;
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---- zusätzliche Keyframes -------------------------------- */
@keyframes shimmer { 100% { transform: translateX(100%); } }
@keyframes cue-bounce {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================================
   Claude-Core-Download-Seite (claude-core-download.html)
   Reuse von .cta / .card-grid / .cat-card; nur zwei Zusätze:
   ein kleiner Hinweis unter dem Download-Button und ein dezenter
   Inline-Code-Stil für Commands/Dateinamen — alles über Tokens.
   ============================================================ */
.dl-note {
  margin-top: 22px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--fg-subtle);
}
.dl-note a {
  color: var(--fg-muted);
  text-decoration: none;
  border-bottom: 1px solid var(--accent-soft);
  transition: color 180ms ease, border-color 180ms ease;
}
.dl-note a:hover { color: var(--fg); border-color: var(--accent); }
.dl-note a:focus-visible { outline: 2px solid var(--grad-a); outline-offset: 3px; border-radius: 3px; }

/* Inline-Code (Commands, Dateinamen) — dezent getönt über Tokens */
code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: 0.92em;
  padding: 0.08em 0.4em;
  border-radius: 6px;
  background: var(--surface-hover);
  border: 1px solid var(--card-border);
  color: var(--fg);
}

/* ---- Responsive ------------------------------------------- */
@media (max-width: 880px) {
  .pillars, .card-grid, .video-grid { grid-template-columns: 1fr 1fr; }
  .nl-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    min-height: 0;
    padding-block: clamp(48px, 12vw, 80px);
  }
}
@media (max-width: 620px) {
  .nav-links { display: none; }
  .pillars, .card-grid, .video-grid { grid-template-columns: 1fr; }
  .hero-actions, .cta-actions { flex-direction: column; width: 100%; }
  .hero-actions .btn, .cta-actions .btn { width: 100%; }
  .meta-line { flex-wrap: wrap; justify-content: center; gap: 10px; font-size: 10px; letter-spacing: 0.28em; }
  .section-head-row { flex-direction: column; align-items: flex-start; }
  .site-footer .wrap { flex-direction: column; text-align: center; gap: 14px; }
  .legal-row { grid-template-columns: 1fr; gap: 14px; padding-block: 28px; }
  .legal-row > h2 { margin-bottom: 2px; }
}
