/* ==========================================================================
   CSL Relaunch – Landingpage Desktop-Prototyp
   Tokens aus Figma (Variablen mit Fallbacks)
   ========================================================================== */

:root {
  /* Farben */
  --color-bg-main: #ffffff;
  --color-bg-alt: #f3f6f9;
  --color-bg-dark: #0e385b;
  --color-brand-primary: #0e385b;
  --color-navy-700: #2a5a86;
  --color-action-default: #ff9f24;
  --color-text-primary: #0a2238;
  --color-text-muted: #5b6c7d;
  --color-text-accent: #589bd7;
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: #dce3ea;
  --color-text-accent-on-dark: #ffe1ba;
  --color-border-default: #dce3ea;
  --color-border-on-dark: #2a5a86;

  /* Schrift */
  --font-display: "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body: "Instrument Sans", system-ui, sans-serif;
  --font-accent: "DM Serif Display", Georgia, serif;

  --type-h1: 88px;
  --type-h2: 56px;
  --type-h2-accent: 64px;
  --type-h2-sm: 40px;        /* Zwischenstufe H2 → H3 (noch nicht in Figma) */
  --type-h3: 26px;
  --type-lead: 20px;
  --type-body: 16px;
  --type-small: 16px;
  --type-label: 14px;

  /* Abstände */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* Radien */
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 999px;

  /* Layout */
  --layout-max: 1536px;
  --layout-gutter: 24px;
  --layout-section-pad: 120px;
  --layout-heading-gap: 48px;
  --layout-grid-gap: 24px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-width: 1280px; /* Desktop-Prototyp */
  font-family: var(--font-body);
  font-size: var(--type-body);
  line-height: 1.6;
  color: var(--color-text-primary);
  background: var(--color-bg-main);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }
img { display: block; max-width: none; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

/* ---------- Layout ---------- */
.section {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: var(--layout-section-pad) var(--layout-gutter);
  position: relative;
}
.section--alt { background: var(--color-bg-alt); }
.section--dark { background: var(--color-bg-dark); color: var(--color-text-on-dark); }

.container {
  width: 100%;
  max-width: var(--layout-max);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--layout-heading-gap);
  position: relative;
}

/* ---------- Typografie ---------- */
.label {
  font-weight: 500;
  font-size: var(--type-label);
  line-height: 1.3;
  color: var(--color-text-muted);
}
.h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-h1);
  line-height: 1.04;
}
.h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-h2);
  line-height: 1.08;
  color: var(--color-text-primary);
}
/* Zwischenstufe für Unterüberschriften innerhalb einer Sektion */
.h2-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-h2-sm);
  line-height: 1.12;
  letter-spacing: -0.4px;
  color: var(--color-text-primary);
}
.h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-h3);
  line-height: 1.18;
  letter-spacing: -0.26px;
}
.accent {
  font-family: var(--font-accent);
  font-style: italic;
  font-weight: 400;
  color: var(--color-text-accent);
}
.h2 .accent { font-size: var(--type-h2-accent); }
.lead {
  font-size: var(--type-lead);
  line-height: 1.5;
  color: var(--color-text-muted);
}
.body { font-size: var(--type-body); line-height: 1.6; color: var(--color-text-muted); }
.small { font-size: var(--type-small); line-height: 1.5; color: var(--color-text-muted); }
.strong { font-weight: 700; color: var(--color-text-primary); }

.section-header {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  width: 900px;
}
.section-header--center { align-items: center; text-align: center; margin-inline: auto; }
/* Überschrift → Fließtext: 32px (Label → Überschrift bleibt 12px) */
.section-header > .h2 + .lead { margin-top: calc(var(--space-6) - var(--space-3)); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  height: 48px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-weight: 700;
  font-size: var(--type-body);
  line-height: 1;
  white-space: nowrap;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn--arrow { padding-right: var(--space-2); }
.btn__chip {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background: var(--color-action-default);
  flex-shrink: 0;
  transition: transform .2s ease;
}
.btn__chip img { width: 16px; height: 16px; }
.btn__chip--rotate img { transform: rotate(-45deg); }
.btn:hover .btn__chip { transform: translateX(2px); }

.btn--primary { background: var(--color-brand-primary); color: var(--color-text-on-dark); }
.btn--primary:hover { background: #164a76; }
.btn--primary-on-dark { background: var(--color-bg-main); color: var(--color-text-primary); }
.btn--primary-on-dark:hover { background: #eef3f8; }
.btn--secondary-on-dark { border-color: var(--color-border-on-dark); color: var(--color-text-on-dark); background: transparent; }
.btn--secondary-on-dark:hover { border-color: #4e82b3; background: rgba(255,255,255,.04); }
.btn--secondary { border-color: var(--color-border-default); color: var(--color-text-primary); background: transparent; }
.btn--secondary:hover { border-color: var(--color-text-muted); }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--layout-gutter);
  background: var(--color-bg-dark);
  color: var(--color-text-on-dark);
}
/* Körnung (Noise) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .18;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.hero__glow {
  position: absolute;
  left: 50%;
  top: -360px;
  width: 1500px;
  height: 1040px;
  transform: translateX(-50%);
  pointer-events: none;
}
.hero__bars {
  position: absolute;
  bottom: 57px;
  display: flex;
  align-items: flex-end;
  gap: 22px;
  pointer-events: none;
}
.hero__bars span {
  width: 150px;
  border-radius: 30px;
  background: rgba(42, 90, 134, .16);
}
.hero__bars span:nth-child(1) { height: 300px; }
.hero__bars span:nth-child(2) { height: 470px; }
.hero__bars span:nth-child(3) { height: 640px; }
.hero__bars--left { left: calc(50% - 1070px); }
.hero__bars--right { left: calc(50% + 576px); }

/* Nav */
.nav {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--layout-max);
  height: 96px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo { display: flex; align-items: flex-end; gap: 8px; }
.logo__wordmark { width: 275px; height: 16px; }
.logo__signet { display: flex; align-items: flex-end; gap: 4px; height: 36px; }
.logo__signet span { width: 9px; border-radius: 3px; background: var(--color-text-on-dark); }
.logo__signet span:nth-child(1) { height: 14px; }
.logo__signet span:nth-child(2) { height: 24px; }
.logo__signet span:nth-child(3) { height: 36px; background: var(--color-action-default); }

.nav__links {
  display: flex;
  gap: var(--space-1);
  padding: var(--space-1);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, .1);
}
.nav__links a {
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: var(--type-small);
  line-height: 1.5;
  transition: background-color .2s ease;
}
.nav__links a:hover { background: rgba(255, 255, 255, .08); }
.nav__links a.is-active { background: rgba(255, 255, 255, .16); }
.nav__actions { display: flex; align-items: center; gap: var(--space-5); }
.nav__login { font-weight: 500; line-height: 1.5; }
.nav__login:hover { text-decoration: underline; }

/* Hero-Text */
.hero__text {
  position: relative;
  z-index: 1;
  width: 1200px;
  padding-top: var(--space-9);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-6);
  text-align: center;
}
.hero__heading { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.hero__heading .accent { color: var(--color-text-accent-on-dark); }
.tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid rgba(42, 90, 134, .9);
  background: rgba(255, 255, 255, .07);
  font-weight: 500;
  line-height: 1.5;
}
.tag__signet { position: relative; width: 13px; height: 14px; }
.tag__signet img { position: absolute; bottom: 0; width: 3.343px; }
.tag__signet img:nth-child(1) { left: 0; height: 5.444px; }
.tag__signet img:nth-child(2) { left: 37.14%; height: 9.333px; }
.tag__signet img:nth-child(3) { left: 74.29%; height: 14px; }
.hero__lead { font-size: var(--type-lead); line-height: 1.5; color: var(--color-text-on-dark-muted); }
.hero__cta { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.hero__buttons { display: flex; gap: var(--space-3); }
.checks { display: flex; gap: var(--space-5); }
.checks li {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-on-dark-muted);
}
.checks img { width: 16px; height: 16px; }
ul { list-style: none; margin: 0; padding: 0; }

/* Produktbühne */
.stage { position: relative; z-index: 1; padding-top: var(--space-8); }
.stage__window {
  width: 1280px;
  height: 560px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--color-bg-main);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -20px 80px rgba(0, 0, 0, .2);
}
.stage__bar {
  height: 48px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-left: var(--space-5);
  background: var(--color-bg-alt);
}
.stage__bar img { width: 11px; height: 11px; }
.stage__content { flex: 1; position: relative; overflow: hidden; background: var(--color-bg-alt); }
.stage__content img { position: absolute; left: 0; top: .07%; width: 100%; height: 174.05%; }

/* --------------------------------------------------------------------------
   Hero C – zweispaltig, KI-Assistent (.hero--split)
   Die Regeln oben (.hero__text, .tag, .stage …) gehören zu Hero A
   (alternativen/hero-a-zentriert.html) und bleiben für die Alternative erhalten.
   -------------------------------------------------------------------------- */
/* Immer volle Viewport-Höhe; wächst mit, wenn der Inhalt höher ist */
.hero--split {
  min-height: 100vh;
  min-height: 100svh;
}
.hero--split .hero__bars { bottom: -140px; }
.hero--split .hero__bars--left { left: calc(50% - 900px); }

.hero__split {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--layout-max);
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--layout-grid-gap);
  /* unten: Platz für den Scroll-Hinweis (24 px Abstand + 40 px Höhe + 24 px Luft) */
  padding: var(--space-7) 0 calc(var(--space-5) * 2 + 40px);
}

/* Scroll-Hinweis unten mittig: Text + Pfeil im Kreis */
.hero__scroll {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: var(--space-5);
  translate: -50% 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  white-space: nowrap;
  font-size: var(--type-small);
  line-height: 1.5;
  color: var(--color-text-on-dark-muted);
  opacity: .7;
  transition: opacity .25s ease;
}
.hero__scroll-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, .16);
  transition: border-color .25s ease;
}
.hero__scroll:hover,
.hero__scroll:focus-visible { opacity: 1; }
.hero__scroll:hover .hero__scroll-icon,
.hero__scroll:focus-visible .hero__scroll-icon { border-color: rgba(255, 255, 255, .4); }
.hero__copy {
  flex: 0 1 960px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-8);
}
.hero__intro { display: flex; flex-direction: column; gap: var(--space-6); }
/* Eyebrow: Schild-Icon (Absicherung) als Marke, Text heller und etwas kräftiger */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--type-small);
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: .01em;
  color: var(--color-text-on-dark);
}
.hero__eyebrow-icon {
  flex: none;
  width: 18px;
  height: 18px;
  color: rgba(255, 255, 255, .6); /* Schild dezent, Häkchen orange */
}
.hero__eyebrow-check { stroke-dasharray: 1; stroke-dashoffset: 0; }
.hero__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 64px;
  line-height: 1.08;
  letter-spacing: -0.96px;
}
.hero__title .accent {
  font-size: 72px;
  line-height: 1;
  letter-spacing: 0;
  color: var(--color-text-accent-on-dark);
}
.hero--split .hero__lead { max-width: 620px; }
.hero--split .hero__cta { align-items: flex-start; }
.hero--split .checks li { font-weight: 400; }
.hero--split .checks img { width: 18px; height: 18px; }

/* Bühne: Smartphone-Rahmen mit Loop-Video + schwebende Chips */
.hero__media {
  position: relative;
  flex: none;
  width: 351px;
  height: 540px;
  /* Platz für den rechts überstehenden Chip (195 + 311 − 351), damit nichts aus dem Container läuft */
  margin-right: 155px;
}
.hero__device {
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* Rahmen = Verlauf im border-box, Inhalt weiß im padding-box.
     --border-angle wird in animations.css gedreht; ohne Animation bleibt es ein orangener Rahmen mit Lichtkante. */
  border: 5px solid transparent;
  border-radius: var(--radius-lg);
  background:
    linear-gradient(var(--color-bg-main), var(--color-bg-main)) padding-box,
    conic-gradient(
      from var(--border-angle, 0deg),
      var(--color-action-default) 0deg,
      var(--color-action-default) 220deg,
      var(--color-text-accent-on-dark) 290deg,
      #ffffff 320deg,
      var(--color-action-default) 360deg
    ) border-box;
  box-shadow: -14px 18px 56px rgba(0, 8, 20, .4);
}
.hero__video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: var(--color-bg-main);
}
.hero__chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-full);
  background: var(--color-bg-main);
  box-shadow: 0 10px 28px rgba(0, 8, 20, .35);
  font-size: var(--type-small);
  line-height: 1.5;
  color: var(--color-text-primary);
  white-space: nowrap;
}
.hero__chip img { width: 18px; height: 18px; }

/* Chip-Innenleben: Icon-Box + Textbox. Die Textbox wird nur vom Label bemaßt,
   Wellenform/Upload liegen absolut darüber → Chipgröße bleibt konstant. */
.chip__icon {
  position: relative;
  flex: none;
  width: 18px;
  height: 18px;
}
.chip__icon img { position: relative; z-index: 1; }
.chip__text { position: relative; display: block; }
.chip__label { display: block; }

/* Sprache: Aufnahme-Kreis hinter dem Mikrofon */
.chip__rec {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  background: rgba(255, 159, 36, .2);
  opacity: 0;
}
.chip__rec::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1.5px solid var(--color-action-default);
  opacity: 0;
}

/* Sprache: Wellenform anstelle des Texts */
.chip__wave {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  /* Abstand zum pulsierenden Aufnahme-Kreis am Mikrofon */
  padding-left: 12px;
  opacity: 0;
}
.chip__wave i {
  width: 3px;
  height: 18px;
  border-radius: 2px;
  background: var(--color-text-accent);
  scale: 1 .2;
}

/* Dokumente: Upload (Dateiname + Fortschritt) anstelle des Texts */
.chip__upload {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  opacity: 0;
}
.chip__file { font-size: 14px; color: var(--color-text-muted); }
.chip__progress {
  flex: 1;
  height: 4px;
  border-radius: var(--radius-full);
  background: var(--color-border-default);
  overflow: hidden;
}
.chip__progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--color-action-default);
  transform-origin: left;
  scale: 0 1;
}

/* Dokumente: Scanlinie über dem Dokument-Icon */
.chip__scan {
  position: absolute;
  z-index: 2;
  left: 3px;
  right: 3px;
  top: 2px;
  height: 2px;
  border-radius: 1px;
  background: var(--color-action-default);
  box-shadow: 0 0 6px rgba(255, 159, 36, .8);
  opacity: 0;
}
.hero__chip--docs { left: 195px; top: 335px; }
.hero__chip--voice { left: -205px; top: 384px; }

/* ==========================================================================
   Vorteile
   ========================================================================== */
.benefits { display: flex; gap: var(--layout-grid-gap); width: 100%; }
.benefit {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
}
.benefit .h1, .benefit .h3 { color: var(--color-text-primary); }
.benefit--dark { background: var(--color-bg-dark); }
.benefit--dark .label,
.benefit--dark .body { color: var(--color-text-on-dark-muted); }
.benefit--dark .h1,
.benefit--dark .h3 { color: var(--color-text-on-dark); }
.signet-lg { display: flex; align-items: flex-end; gap: var(--space-2); }
.signet-lg span { width: 28px; border-radius: 8px; background: var(--color-brand-primary); }
.signet-lg span:nth-child(1) { height: 40px; }
.signet-lg span:nth-child(2) { height: 66px; }
.signet-lg span:nth-child(3) { height: 96px; background: var(--color-action-default); }

/* ==========================================================================
   Rechner
   ========================================================================== */
.calc { display: flex; align-items: center; gap: var(--layout-grid-gap); width: 100%; }
.calc__text { width: 626px; flex-shrink: 0; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-6); }
.calc__text .section-header { width: 100%; }
.calc__card {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-main);
}
.calc__inputs { display: flex; gap: var(--layout-grid-gap); }
.calc__input { flex: 1 0 0; display: flex; flex-direction: column; gap: var(--space-3); }
.calc__value { display: flex; align-items: flex-end; gap: var(--space-2); }
.calc__value .h2 { min-width: 0; }

.slider { position: relative; height: 8px; margin-top: 8px; border-radius: var(--radius-full); background: var(--color-border-default); }
.slider__fill { position: absolute; left: 0; top: 0; height: 8px; border-radius: 4px; background: var(--color-brand-primary); }
.slider__handle { position: absolute; top: -8px; width: 24px; height: 24px; pointer-events: none; border-radius: 50%; transition: box-shadow .2s ease; }
/* Unsichtbarer nativer Regler über der Leiste (js/calculator.js) – große Trefferfläche */
.slider__input {
  position: absolute;
  inset: -12px -12px;
  width: calc(100% + 24px);
  height: 32px;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
  touch-action: pan-y;
}
/* Daumen genau so groß wie der sichtbare Griff, damit Position und Klickpunkt übereinstimmen */
.slider__input { -webkit-appearance: none; appearance: none; background: transparent; }
.slider__input::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; }
.slider__input::-moz-range-thumb { width: 24px; height: 24px; border: 0; }
.slider__input:focus-visible ~ .slider__handle { box-shadow: 0 0 0 4px rgba(0, 0, 0, .12), 0 0 0 2px var(--color-brand-primary); }
.slider:hover .slider__handle { box-shadow: 0 0 0 6px rgba(0, 0, 0, .06); }
/* Nach der ersten Eingabe folgen Regler und Balken direkt den Werten */
.calc__card.is-live .slider__fill,
.calc__card.is-live .slider__handle,
.calc__card.is-live .compare__fill { animation: none; }

.divider { height: 1px; width: 100%; background: var(--color-border-default); }
.compare { display: flex; flex-direction: column; gap: var(--space-4); }
.compare__row { display: flex; align-items: center; gap: var(--space-4); }
.compare__row > .strong:first-child { width: 110px; }
.compare__row > .strong:last-child { width: 80px; text-align: right; }
.compare__track { flex: 1 0 0; height: 44px; border-radius: var(--radius-md); background: var(--color-bg-alt); overflow: hidden; }
.compare__fill { height: 100%; border-radius: var(--radius-md); background: var(--color-border-default); transition: width .3s ease; }
.compare__fill--brand { background: var(--color-brand-primary); }

.result {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: var(--color-bg-dark);
}
.result .label { color: var(--color-text-on-dark-muted); }
.result .h2 { color: var(--color-text-on-dark); }
.result__value { display: flex; flex-direction: column; gap: var(--space-2); }
.result .body { width: 300px; color: var(--color-text-on-dark-muted); }

/* ==========================================================================
   Produktablauf
   ========================================================================== */
.flow-header { width: 992px; display: flex; flex-direction: column; gap: var(--space-6); }
.flow-header > div { display: flex; flex-direction: column; gap: var(--space-3); }

.window {
  width: 100%;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-main);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.window__bar {
  height: 44px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding-left: var(--space-4);
  background: var(--color-bg-alt);
}
.window__bar img { width: 10px; height: 10px; }
/* ---------- Produktablauf: Scroll-Bühne ----------
   .flow-scroller ist (Schritte × 100svh) hoch (setzt js/flow.js), .flow-sticky bleibt
   währenddessen im Viewport stehen. Ohne JS: normale Höhe, erster Schritt sichtbar. */
.flow-scroller { width: 100%; position: relative; }
/* Scrollweg: --flow-units (aus js/flow.js) × --flow-step. Schritt 1 ist kürzer,
   damit der erste Wechsel schnell kommt und die Seite nicht „hängt“. */
.flow-scroller { --flow-step: 70svh; }
.flow-scroller.is-enhanced { height: calc(100svh + var(--flow-units, 0) * var(--flow-step)); }
.flow-sticky {
  position: sticky;
  top: 0;
  height: 100svh;
  display: flex;
  align-items: center;
}
.flow-scroller:not(.is-enhanced) .flow-sticky { position: static; height: auto; }
.flow-stage {
  width: 100%;
  display: flex;
  align-items: center;
  gap: var(--space-8);
}

/* Links: Browserfenster – bekommt den größeren Teil der Breite, Höhe passt in den Viewport */
.window--flow {
  flex: 0 0 62%;
  width: auto;
  height: min(calc(100svh - 2 * var(--space-7)), 760px);
}
.window--flow .window__content { flex: 1; position: relative; overflow: hidden; background: var(--color-bg-alt); }
.flow-shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top left;
  /* Wartend: unterhalb, schiebt sich beim Aktivieren von unten herein */
  translate: 0 100%;
  transition: translate .8s var(--ease-out, ease), scale .8s var(--ease-out, ease), opacity .8s var(--ease-out, ease), filter .8s ease;
}
.flow-shot.is-active { translate: 0 0; z-index: 2; }
/* Bereits gesehen: tritt leicht zurück und wird blasser */
.flow-shot.is-past { translate: 0 0; scale: .94; opacity: .35; filter: blur(2px); z-index: 1; }
.flow-shot--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    repeating-linear-gradient(-45deg, rgba(14, 56, 91, .04) 0 12px, transparent 12px 24px),
    var(--color-bg-alt);
  border: 2px dashed var(--color-border-default);
  text-align: center;
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-muted);
}

/* Rechts: Zähler, wechselnder Text, Punktnavigation */
.flow-info {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}
.flow-count { font-variant-numeric: tabular-nums; }
.flow-count__current { color: var(--color-action-default); }
.flow-texts { display: grid; }
.flow-text {
  grid-area: 1 / 1;          /* alle Texte liegen übereinander, Höhe = längster Text */
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  opacity: 0;
  translate: 0 24px;
  pointer-events: none;
  transition: opacity .5s var(--ease-soft, ease), translate .6s var(--ease-out, ease);
}
.flow-text.is-past { translate: 0 -24px; }
.flow-text.is-active { opacity: 1; translate: 0 0; pointer-events: auto; transition-delay: .15s; }

.flow-dots { display: flex; align-items: center; gap: var(--space-2); }
.flow-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: var(--radius-full);
  background: var(--color-border-default);
  cursor: pointer;
  transition: width .4s var(--ease-out, ease), background-color .3s ease;
}
.flow-dots button:hover { background: var(--color-text-muted); }
.flow-dots button[aria-selected="true"] { width: 32px; background: var(--color-brand-primary); }
.flow-dots button:focus-visible { outline: 2px solid var(--color-action-default); outline-offset: 3px; }

.bento { display: flex; flex-direction: column; gap: var(--layout-grid-gap); width: 100%; }
.bento__row { display: flex; gap: var(--layout-grid-gap); width: 100%; }
.card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-7);
  border-radius: var(--radius-lg);
  background: var(--color-bg-alt);
}
.card .h3 { color: var(--color-text-primary); }
/* Verhältnis 886 : 626 aus Figma (bei 1536 px), skaliert auf schmaleren Viewports mit */
.card--wide { flex: 886 1 0; min-width: 0; }
.card--narrow { flex: 626 1 0; min-width: 0; }
.card--fill { flex: 1 0 0; }
.card--dark { background: var(--color-bg-dark); }
.card--dark .label, .card--dark .body { color: var(--color-text-on-dark-muted); }
.card--dark .h3 { color: var(--color-text-on-dark); }
.card--outline { background: var(--color-bg-main); border: 1px solid var(--color-border-default); }
.card--step { height: 340px; }
.card--feature { height: 300px; }
.card__num {
  position: absolute;
  top: 48px;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 280px;
  line-height: normal;
  color: rgba(10, 34, 56, .05);
  pointer-events: none;
}
.card--dark .card__num { color: rgba(255, 255, 255, .08); }
.card__icon { position: absolute; right: 40px; bottom: 40px; width: 96px; height: 96px; }

/* ==========================================================================
   KI-Assistent
   ========================================================================== */
.ki-head { display: flex; align-items: flex-end; justify-content: space-between; width: 100%; }
.ki-head__text { width: 992px; display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-3); }
.ki-head__text > div { display: flex; flex-direction: column; gap: var(--space-6); }
.section--dark .h2 { color: var(--color-text-on-dark); }
.section--dark .accent { color: var(--color-text-accent-on-dark); }
.section--dark .lead { color: var(--color-text-on-dark-muted); }
.section--dark .label { color: var(--color-text-on-dark-muted); }

.badge {
  display: inline-flex;
  padding: var(--space-1) var(--space-3);
  border-radius: var(--radius-full);
  background: #e4ecf4;
  font-weight: 500;
  font-size: var(--type-label);
  line-height: 1.3;
  color: var(--color-text-primary);
}

.ki-grid { display: flex; gap: var(--layout-grid-gap); width: 100%; }
.window--chat { width: 626px; flex-shrink: 0; border: 0; }
.window--chat .window__bar { height: 48px; padding-left: var(--space-5); }
.window--chat .window__bar img { width: 11px; height: 11px; }
.window--chat .window__content { height: 1097px; position: relative; overflow: hidden; background: var(--color-bg-alt); }
.window--chat .window__content img { position: absolute; top: 0; left: .03%; width: 100%; height: 100.04%; }

.abilities { flex: 1 0 0; display: flex; flex-direction: column; gap: var(--layout-grid-gap); }
.abilities__row { flex: 1 0 0; display: flex; gap: var(--layout-grid-gap); }
.ability {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6) var(--space-6) var(--space-7);
  border: 1px solid var(--color-border-on-dark);
  border-radius: var(--radius-lg);
  transition: border-color .2s ease, background-color .2s ease;
}
.ability:hover { border-color: #4e82b3; background: rgba(255, 255, 255, .03); }
.ability .label { color: var(--color-action-default); }
.ability .h3 { color: var(--color-text-on-dark); }
.ability .body { color: var(--color-text-on-dark-muted); }

/* Themen-Illustrationen unten in den KI-Karten.
   Grundzustand = Endzustand der Animation (ohne JS / reduzierte Bewegung korrekt). */
.ability__visual {
  display: block;
  width: 200px;   /* viewBox 160×64, skaliert 1,25× */
  height: 80px;
  margin-top: auto;
  padding-top: var(--space-5);
  box-sizing: content-box;
  overflow: visible;
}
.ability__visual .ln  { stroke: rgba(255, 255, 255, .28); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.ability__visual .dim { fill: rgba(255, 255, 255, .2); }
.ability__visual .acc { stroke: var(--color-action-default); stroke-width: 1.5; stroke-linecap: round; fill: none; }

/* 01 Software bedienen */
.v1-btn { fill: var(--color-action-default); }
.v1-ripple { stroke: var(--color-action-default); stroke-width: 1.5; opacity: 0; transform-origin: 129px 48.5px; }
.v1-cursor { fill: #ffffff; stroke: var(--color-bg-dark); stroke-width: 1; stroke-linejoin: round; translate: 126px 46px; }
/* 02 Text oder Sprache */
.v2-caret { fill: var(--color-action-default); opacity: 0; }
.v2-type { transform-origin: 12px 24px; }
.v2-bar { fill: var(--color-text-accent); transform-box: fill-box; transform-origin: center; }
/* 03 Dokumente lesen */
.v3-scan { fill: var(--color-action-default); opacity: 0; filter: drop-shadow(0 0 3px rgba(255, 159, 36, .9)); }
.v3-field { fill: var(--color-text-accent); transform-box: fill-box; transform-origin: left; }
/* 04 Analysieren */
.v4-bar { transform-box: fill-box; transform-origin: bottom; }
.v4-bar--hi { fill: rgba(88, 155, 215, .55); }
.v4-trend { stroke: var(--color-action-default); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.v4-dot { fill: var(--color-action-default); transform-box: fill-box; transform-origin: center; }
/* 05 Aktiv arbeiten */
.v5-check { stroke: var(--color-action-default); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; }
.v5-task { transform-box: fill-box; transform-origin: left; }
/* 06 Expertenwissen */
.v6-link { stroke: rgba(255, 255, 255, .28); stroke-width: 1.25; stroke-dasharray: 1; }
.v6-node { fill: var(--color-bg-dark); stroke: var(--color-text-accent); stroke-width: 1.5; transform-box: fill-box; transform-origin: center; }
.v6-core { fill: var(--color-action-default); transform-box: fill-box; transform-origin: center; }
.v6-ring { stroke: var(--color-action-default); stroke-width: 1.5; opacity: 0; transform-box: fill-box; transform-origin: center; }

/* ==========================================================================
   Einsatzfälle
   ========================================================================== */
.usecases { gap: var(--space-8); }
.usecases__intro { width: 992px; display: flex; flex-direction: column; gap: var(--layout-heading-gap); }
.usecases__intro .section-header { width: 1069px; }
.usecases__intro .section-header > div { display: flex; flex-direction: column; gap: var(--space-6); }
.tabs { display: flex; gap: var(--space-2); }
.tabs a {
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-full);
  border: 1px solid var(--color-border-default);
  font-weight: 500;
  line-height: 1.5;
  color: var(--color-text-primary);
  transition: border-color .2s ease;
}
.tabs a:hover { border-color: var(--color-text-muted); }
.tabs a.is-active { background: var(--color-bg-dark); border-color: var(--color-bg-dark); color: var(--color-text-on-dark); }

.panel { display: flex; gap: var(--layout-grid-gap); width: 100%; }
/* Alle Panels liegen übereinander; die Höhe richtet sich nach dem höchsten,
   damit beim Wechsel nichts springt (Steuerung: js/usecases.js). */
.panels { display: grid; width: 100%; }
.panels.is-enhanced > .panel { grid-area: 1 / 1; }
.panels.is-enhanced > .panel:not(.is-active) { visibility: hidden; opacity: 0; pointer-events: none; }
.panel__text { flex: 1 0 0; display: flex; flex-direction: column; gap: var(--space-5); }
.panel__text > p.h3 { color: var(--color-text-accent); }   /* Kicker "Privatkunden" */
.panel__text > h3 + .lead { margin-top: calc(var(--space-6) - var(--space-5)); }
.steps { display: flex; flex-direction: column; gap: var(--space-3); }
.steps li { display: flex; align-items: center; gap: var(--space-3); }
.steps img { width: 16px; height: 16px; }
.panel__media { flex: 1 0 0; display: flex; flex-direction: column; gap: var(--space-4); }
.photo {
  height: 340px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-default);
  overflow: hidden;
}
.photo img { width: 100%; height: 100%; object-fit: cover; }
.outcome {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  background: #e4ecf4;
}
.outcome .h3, .outcome .lead { color: var(--color-text-primary); }
.outcome .lead strong { font-weight: 600; }
.benefit .body strong { font-weight: 600; }

.audiences { display: flex; gap: var(--layout-grid-gap); width: 100%; }
.audiences > button {
  font: inherit;
  text-align: left;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding-top: var(--space-5);
  border-top: 1px solid var(--color-text-primary);
}

/* ==========================================================================
   Vertrauen
   ========================================================================== */
.trust { display: flex; align-items: center; gap: var(--layout-grid-gap); width: 100%; }
.trust__photo {
  position: relative;
  width: 626px;
  height: 640px;
  flex-shrink: 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-default);
  overflow: hidden;
  background: var(--color-bg-alt);
}
.trust__photo img { position: absolute; left: -41.29%; top: -14.71%; width: 175.63%; height: 114.66%; }
.trust__text { flex: 1 0 0; display: flex; flex-direction: column; gap: var(--space-6); }
.trust__text .section-header { width: 100%; }
.points > li {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-5) 0;
  border-top: 1px solid var(--color-border-default);
}
.points .h3 { color: var(--color-text-primary); }

/* ==========================================================================
   Preise
   ========================================================================== */
.plans { display: flex; gap: var(--layout-grid-gap); width: 100%; height: 515px; }
.plan {
  flex: 1 0 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-6);
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border-default);
  background: var(--color-bg-main);
}
/* Hervorhebung: 1px Rahmen + 1px Schatten = 2px Optik ohne Layout-Sprung beim Wechsel */
.plan--featured,
.plan.is-selected {
  border-color: var(--color-brand-primary);
  box-shadow: 0 0 0 1px var(--color-brand-primary);
}
/* Während der Auswahl-Animation (js/plans.js) zählt nur .is-selected */
.plans.is-cycling .plan--featured:not(.is-selected) {
  border-color: var(--color-border-default);
  box-shadow: none;
}
/* Button der gewählten Karte wird primär, die anderen sekundär */
.plan.is-selected .btn--secondary {
  background: var(--color-brand-primary);
  border-color: var(--color-brand-primary);
  color: var(--color-text-on-dark);
}
.plans.is-cycling .plan--featured:not(.is-selected) .btn--primary {
  background: transparent;
  border-color: var(--color-border-default);
  color: var(--color-text-primary);
}
.plan .h3 { color: var(--color-text-primary); }
.plan__price { display: flex; align-items: flex-end; gap: var(--space-2); white-space: nowrap; }
.plan__features {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-default);
}
.plan__features li { display: flex; align-items: flex-start; gap: var(--space-3); color: var(--color-text-primary); line-height: 1.6; }
.plan__features img { width: 16px; height: 16px; flex-shrink: 0; }
.plan .btn { width: 100%; margin-top: auto; }
.plans-note { display: flex; flex-direction: column; gap: var(--space-2); width: 100%; }
.plans-note p:first-child { line-height: 1.6; color: var(--color-text-primary); }

/* ==========================================================================
   FAQ
   ========================================================================== */
.faq { display: flex; align-items: flex-start; gap: var(--layout-grid-gap); width: 100%; }
.faq__head { width: 626px; flex-shrink: 0; display: flex; flex-direction: column; gap: var(--space-3); }
.faq__list { flex: 1 0 0; }
.faq__item { border-top: 1px solid var(--color-border-default); padding: var(--space-5) 0; }
.faq__item summary {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--type-h3);
  line-height: 1.18;
  letter-spacing: -0.26px;
  color: var(--color-text-primary);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary span:first-child { flex: 1 0 0; }
.faq__item summary .faq__icon {
  position: relative;
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
  color: var(--color-text-muted);
}
/* Plus aus zwei Balken; geöffnet dreht sich der senkrechte Balken flach → Minus */
.faq__icon i {
  position: absolute;
  left: 0;
  top: 7px;
  width: 16px;
  height: 2px;
  border-radius: 1px;
  background: currentColor;
}
.faq__icon i + i { transform: rotate(90deg); }
.faq__item[open] .faq__icon i + i { transform: rotate(0deg); }
.faq__item summary:hover span:first-child { color: var(--color-brand-primary); }
.faq__item .body { padding-top: var(--space-3); padding-right: var(--space-4); }
/* Antwort-Höhe animierbar über grid-template-rows (0fr ↔ 1fr), Steuerung: js/faq.js */
.faq__answer { display: grid; grid-template-rows: 1fr; }
.faq__answer-inner { min-height: 0; overflow: hidden; }

/* ==========================================================================
   Abschluss-CTA
   ========================================================================== */
.final { align-items: center; }
.final__text { width: 840px; display: flex; flex-direction: column; align-items: center; gap: var(--space-6); text-align: center; }
/* Abstand Text → CTA wie im Hero (.hero__copy: --space-8) */
.final__text > .hero__cta { margin-top: calc(var(--space-8) - var(--space-6)); }
.final__heading { display: flex; flex-direction: column; align-items: center; gap: var(--space-5); }
.final .checks li { color: var(--color-text-on-dark); }

/* ==========================================================================
   Footer
   ========================================================================== */
.footer {
  display: flex;
  justify-content: center;
  padding: var(--space-7) var(--layout-gutter);
  background: var(--color-bg-dark);
  border-top: 1px solid var(--color-border-on-dark);
}
.footer__inner { width: 100%; max-width: var(--layout-max); display: flex; align-items: center; justify-content: space-between; }
.footer__links { display: flex; align-items: center; gap: var(--space-6); line-height: 1.5; white-space: nowrap; }
.footer__links span { color: var(--color-text-on-dark-muted); }
.footer__links a { font-weight: 500; color: var(--color-text-on-dark); }
.footer__links a:hover { text-decoration: underline; }
