/* =============================================================================
   Reiss & Rief – Landingpage
   Design-Richtung "Vertrauen zuerst": ruhig, seriös, premium, nahbar.
   Mobile-first. Bernstein bleibt strikt Akzent (CTAs/Stats/Eyebrows), nie flächig.
   ============================================================================= */

/* -----------------------------------------------------------------------------
   0. Schriften – selbst gehostet (DSGVO: keine Verbindung zu Google-Servern).
      Variable Fonts (Latin-Subset). Familiennamen identisch zu vorher → keine
      weiteren CSS-Änderungen nötig.
   ----------------------------------------------------------------------------- */
@font-face {
  font-family: "Space Grotesk";
  font-style: normal;
  font-weight: 300 700; /* variabel; deckt 500/600/700 ab */
  font-display: swap;
  src: url("assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2");
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/inter-latin-wght-normal.woff2") format("woff2");
}

/* -----------------------------------------------------------------------------
   1. Design-Tokens
   ----------------------------------------------------------------------------- */
:root {
  /* Farben – Fundament */
  --color-navy: #0F1E2E;
  --color-navy-900: #0A1622;
  --color-navy-800: #16293B;
  --color-navy-700: #22394E;

  /* Farben – Akzent (Signal-Bernstein; Logo-& bleibt #E0A458 und harmoniert daneben) */
  --color-amber: #E1861B;
  --color-amber-600: #B96A0E;
  --color-amber-100: #FBEBD7;
  --color-amber-text: #8F5200; /* Bernstein ALS TEXT auf hellem Grund (WCAG AA, ~5.4:1 auf Weiss) */

  /* Farben – kühl/hell (SaaS-hell wie zweitschicht: durchgehend heller Grund) */
  --color-cream: #F7F9FA;
  --color-cream-200: #F1F4F6;
  --color-white: #FFFFFF;

  /* Text */
  --text-strong: #0F1E2E;
  --text-body: #33475B;
  --text-muted: #56697C;
  --text-on-dark: #F2F4F3;
  --text-on-dark-muted: #A9B8C6;
  --text-on-amber: #1A1206;

  /* Rahmen & Fokus */
  --border-subtle: #E2E7EB;
  --border-strong: #B9C2BE;
  --border-on-dark: #2A3E52;
  --focus-ring: #E1861B;

  /* Zustände */
  --state-success: #2F7A55;
  --state-success-bg: #E6F1EA;
  --state-error: #B4432E;
  --state-error-bg: #F7E7E2;
  --state-info: #2C5A78;

  /* Flächen-Aliase */
  --surface-page: #FAFBFC;
  --surface-card: #FFFFFF;

  /* Schrift-Familien (Industrial-Clean: nur noch Grotesk + Inter, keine Serif) */
  --font-headline: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-accent: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  /* Type-Scale */
  --fs-display: clamp(2.75rem, 6vw, 4.5rem);
  --fs-h1: clamp(2rem, 3.6vw, 2.75rem);
  --fs-h2: clamp(1.5rem, 2.4vw, 2rem);
  --fs-h3: 1.25rem;
  --fs-eyebrow: 0.8125rem;
  --fs-lead: clamp(1.0625rem, 1.4vw, 1.25rem);
  --fs-body: 1rem;
  --fs-small: 0.875rem;
  --fs-overline: 0.75rem;
  --fs-stat: clamp(2.25rem, 4vw, 3.25rem);

  /* Spacing (4px-Basis) */
  --space-3xs: 2px;
  --space-2xs: 4px;
  --space-xs: 8px;
  --space-sm: 12px;
  --space-md: 16px;
  --space-lg: 24px;
  --space-xl: 32px;
  --space-2xl: 48px;
  --space-3xl: 64px;
  --space-4xl: 96px;
  --space-5xl: 128px;

  /* Container */
  --container-max: 1200px;
  --container-narrow: 760px;
  --gutter: var(--space-lg);

  /* Radius (weicher, ein Grundmaß wie zweitschicht) */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  /* Schatten (kühl getönt, zurückhaltend) */
  --shadow-xs: 0 1px 2px rgba(15, 30, 46, .06);
  --shadow-sm: 0 2px 8px rgba(15, 30, 46, .06), 0 1px 2px rgba(15, 30, 46, .04);
  --shadow-md: 0 8px 24px rgba(15, 30, 46, .08);
  --shadow-lg: 0 20px 48px rgba(15, 30, 46, .12);
  --shadow-amber-glow: 0 8px 20px rgba(225, 134, 27, .30);

  /* Header-Höhe */
  --header-h: 72px;
}

/* -----------------------------------------------------------------------------
   2. Reset / Base
   ----------------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

* { margin: 0; }

html {
  scroll-behavior: smooth;
  /* Anker-Sprünge unter dem Sticky-Header sichtbar halten */
  scroll-padding-top: calc(var(--header-h) + var(--space-md));
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

button { cursor: pointer; background: none; border: none; }

h1, h2, h3, h4 {
  font-family: var(--font-headline);
  color: var(--text-strong);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.015em;
}

:focus-visible {
  outline: 2px solid var(--color-navy);
  outline-offset: 2px;
  border-radius: var(--radius-xs);
}
/* Auf dunklem Grund Bernstein-Ring (Navy waere unsichtbar) */
.section--navy :focus-visible,
.section--navy-deep :focus-visible,
.mobile-nav :focus-visible { outline-color: var(--color-amber); }

/* Skip-Link: off-screen, bei Tastatur-Fokus sichtbar */
.skip-link {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 300;
  background: var(--color-navy);
  color: var(--text-on-dark);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  transition: top .2s ease;
}
.skip-link:focus { top: 8px; }

/* Utilities ---------------------------------------------------------------- */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

/* Klar markierter Platzhalter (nur noch auf den Rechtsseiten im Einsatz;
   dort per .legal .ph zusätzlich entschärft) */
.ph {
  font-style: italic;
  color: var(--color-amber-600);
}

/* -----------------------------------------------------------------------------
   3. Layout-Primitive
   ----------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--space-3xl); }
.section--cream { background: var(--color-cream-200); }
/* Band: wie die Logo-Laufleiste – getönte Fläche mit Hairlines oben/unten */
.section--band { background: var(--color-cream-200); border-block: 1px solid var(--border-subtle); }
.section--navy { background: var(--color-navy); color: var(--text-on-dark); }
.section--navy-deep { background: var(--color-navy-900); color: var(--text-on-dark); }
.section--navy .btn--primary { background: #fff; color: var(--color-navy); }
.section--navy .btn--primary:hover { background: var(--color-cream); }

/* Sektions-Kopf (zentriert) */
.section__head {
  max-width: var(--container-narrow);
  margin-inline: auto;
  margin-bottom: var(--space-2xl);
  text-align: center;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--fs-overline);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-amber-text);
  margin-bottom: var(--space-sm);
}
.section--navy .eyebrow,
.section--navy-deep .eyebrow { color: var(--color-amber); }

.section__title { font-size: var(--fs-h1); }
.section--navy .section__title { color: var(--text-on-dark); }

.section__lead {
  font-size: var(--fs-lead);
  color: var(--text-body);
  margin-top: var(--space-md);
}
.section--navy .section__lead { color: var(--text-on-dark-muted); }

/* Betontes Wort in Headlines: gleiche Grotesk, nur Bernstein */
.accent {
  color: var(--color-amber-text);
}
.section--navy .accent { color: var(--color-amber); }

.prose p { margin-top: var(--space-md); max-width: 68ch; }
.prose p:first-child { margin-top: 0; }

/* -----------------------------------------------------------------------------
   4. Buttons
   ----------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 48px;
  padding: 14px 28px;
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: var(--fs-body);
  letter-spacing: 0.005em;
  line-height: 1;
  text-align: center;
  transition: background-color .18s ease, transform .18s ease, box-shadow .18s ease, border-color .18s ease, color .18s ease;
  will-change: transform;
}
.btn__icon { width: 18px; height: 18px; flex: none; }

/* Primär = dunkler Navy-Button (zweitschicht-Look); Amber bleibt reiner Akzent */
.btn--primary {
  background: var(--color-navy);
  color: #FFFFFF;
  box-shadow: var(--shadow-xs);
}
.btn--primary:hover {
  background: var(--color-navy-700);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}
.btn--primary:active { transform: translateY(0); box-shadow: none; }

.btn--secondary {
  background: transparent;
  border: 1.5px solid var(--color-navy);
  color: var(--text-strong);
}
.btn--secondary:hover { background: var(--color-navy); color: var(--text-on-dark); }

.btn--block { width: 100%; }

/* line-height > 1: in schmalen Karten (Steps 640-1023px) darf der Text
   zweizeilig umbrechen, ohne dass die Zeilen aneinanderkleben */
.btn--sm { min-height: 40px; padding: 10px 20px; font-size: var(--fs-small); line-height: 1.35; }

.btn:disabled { background: var(--border-subtle); color: var(--text-muted); box-shadow: none; cursor: not-allowed; transform: none; }

/* Dezenter Text-Link mit Pfeil */
.text-cta {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2xs);
  font-weight: 600;
  color: var(--color-amber-text);
}
.text-cta:hover { text-decoration: underline; }
.section--navy .text-cta { color: var(--color-amber); }

/* -----------------------------------------------------------------------------
   5. Header / Navigation
   ----------------------------------------------------------------------------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  transition: background-color .25s ease, box-shadow .25s ease, border-color .25s ease;
  /* zweitschicht-Stil: immer glasig-hell mit Trennlinie, nicht erst ab Scroll */
  background: rgba(250, 251, 252, .88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}
.site-header--scrolled {
  background: rgba(255, 255, 255, .85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--border-subtle);
}
.site-header__inner {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
}
.brand {
  display: inline-flex;
  flex-shrink: 0; /* Logo nie stauchen – lieber sichtbarer Overflow als verzerrte Marke */
  align-items: center;
  font-family: var(--font-headline);
  font-weight: 500;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--text-strong);
}
/* Logo als Bild (Lockup „wie von Geisterhand") */
.brand__img { height: 1.85rem; width: auto; display: block; }
.brand__img--footer { height: 2.1rem; }

.nav { display: none; align-items: center; gap: var(--space-md); }
.nav__link {
  font-weight: 500;
  color: var(--text-body);
  padding-block: 4px;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.nav__link:hover { color: var(--text-strong); border-bottom-color: var(--color-amber); }

.header__actions { display: flex; align-items: center; gap: var(--space-sm); }
/* Dachmarken-Badge (zweitschicht-Muster): nur auf breiten Viewports */
.parent-badge {
  display: none;
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--surface-card);
  padding: 4px 10px;
}
@media (min-width: 1200px) { .parent-badge { display: inline-flex; } }
.header__cta { display: none; white-space: nowrap; }
.header__call {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-pill);
  color: var(--text-strong);
  border: 1.5px solid var(--border-strong);
}
.header__call svg { width: 20px; height: 20px; }

.nav-toggle {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 44px; height: 44px;
  border-radius: var(--radius-sm);
  color: var(--text-strong);
}
.nav-toggle svg { width: 26px; height: 26px; }

/* Mobile-Overlay-Menü */
.mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: var(--color-navy);
  color: var(--text-on-dark);
  display: flex;
  flex-direction: column;
  padding: var(--space-lg) var(--gutter) var(--space-2xl);
  transform: translateY(-100%);
  visibility: hidden;
  transition: transform .3s ease, visibility .3s ease;
}
.mobile-nav.is-open { transform: translateY(0); visibility: visible; }
.mobile-nav__top { display: flex; justify-content: space-between; align-items: center; }
.mobile-nav__close { color: var(--text-on-dark); width: 44px; height: 44px; }
.mobile-nav__close svg { width: 26px; height: 26px; }
.mobile-nav__links { display: flex; flex-direction: column; gap: var(--space-xs); margin-top: var(--space-2xl); }
.mobile-nav__link { font-family: var(--font-headline); font-size: var(--fs-h3); font-weight: 600; color: var(--text-on-dark); padding-block: var(--space-sm); border-bottom: 1px solid var(--border-on-dark); }
.mobile-nav .btn { margin-top: var(--space-xl); }
.mobile-nav__parent { margin-top: var(--space-lg); text-align: center; font-size: 12.5px; color: var(--text-on-dark-muted); }

/* -----------------------------------------------------------------------------
   6. Hero
   ----------------------------------------------------------------------------- */
.hero { padding-top: calc(var(--header-h) + var(--space-2xl)); padding-bottom: var(--space-3xl); }
.hero__grid { display: grid; gap: var(--space-2xl); align-items: center; }
.hero__title { font-size: var(--fs-display); line-height: 1.04; letter-spacing: -0.03em; margin-top: var(--space-sm); }
.hero__lead { font-size: var(--fs-lead); color: var(--text-body); margin-top: var(--space-lg); max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-xl); }
.hero__call { display: inline-flex; align-items: center; gap: var(--space-2xs); font-weight: 600; color: var(--text-strong); padding: 14px 8px; }
.hero__call svg { width: 18px; height: 18px; color: var(--color-amber-600); }
/* Trust-Leiste: volle Breite unter dem Hero-Grid (statt links im Textblock) */
.hero__trustbar {
  list-style: none;
  margin: var(--space-2xl) 0 0;
  padding: var(--space-lg) 0 0;
  border-top: 1px solid var(--border-subtle);
  display: flex; flex-wrap: wrap;
  justify-content: center;
  column-gap: var(--space-xl); row-gap: var(--space-xs);
  font-size: var(--fs-small); color: var(--text-muted);
  animation: hero-in .55s ease .3s both;
}
.hero__trustbar li { display: inline-flex; align-items: center; gap: var(--space-xs); }
.hero__trustbar svg { width: 16px; height: 16px; color: var(--state-success); flex: none; }

/* Hero-Entry: dezenter Auftakt (CSS-only; bei reduced-motion greift die
   globale .01ms-Regel -> sofort sichtbar; ohne JS ebenfalls sichtbar) ------- */
@keyframes hero-in {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
.hero__content > * { animation: hero-in .55s ease both; }
.hero__content > *:nth-child(2) { animation-delay: .06s; }
.hero__content > *:nth-child(3) { animation-delay: .12s; }
.hero__content > *:nth-child(4) { animation-delay: .18s; }

/* Hero-Visual: Chat-Demo „Der Assistent bei der Arbeit" ---------------------
   Navy-Panel als Bühne, darauf die Chat-Karte. Alle Nachrichten stehen im
   HTML (ohne JS / bei reduced-motion: fertiger Verlauf). main.js chatDemo()
   setzt .chat-demo--armed und blendet die Nachrichten nacheinander ein. */
/* Stage: zentriert das Gerät, trägt Glow + 3D-Perspektive */
.hero__visual {
  position: relative;
  display: grid;
  justify-items: center;
  gap: var(--space-lg);
  perspective: 1400px;
}
.hero__visual::before {
  content: "";
  position: absolute;
  width: 460px; height: 460px;
  top: 50%; left: 50%;
  translate: -50% -54%;
  background: radial-gradient(circle, rgba(225, 134, 27, .16) 0%, rgba(15, 30, 46, .07) 45%, transparent 70%);
  pointer-events: none;
}

/* --- iPhone-Mockup: reiner CSS-Rahmen (Titan-Band, Bezel, Island, Tasten) --- */
.iphone {
  position: relative;
  z-index: 1;
  width: min(340px, 100%);
  display: grid;
  padding: 10px;
  border-radius: 54px;
  background: linear-gradient(145deg, #565b63 0%, #23272d 28%, #40454c 52%, #17191d 78%, #4a4f57 100%);
  box-shadow:
    0 48px 90px -30px rgba(10, 22, 34, .55),
    0 14px 30px rgba(10, 22, 34, .25);
  transform-style: preserve-3d;
  animation: iphone-float 7s ease-in-out infinite;
}
@keyframes iphone-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -9px; }
}
.iphone::before {
  /* schwarzer Bezel-Ring zwischen Band und Display */
  content: "";
  position: absolute; inset: 3px;
  border-radius: 51px;
  background: #0b0d10;
}
.iphone__btn {
  position: absolute;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, #43484f, #1a1d21);
}
.iphone__btn--action { left: -3px; top: 112px; height: 24px; }
.iphone__btn--volup  { left: -3px; top: 158px; height: 46px; }
.iphone__btn--voldn  { left: -3px; top: 212px; height: 46px; }
.iphone__btn--power  { right: -3px; top: 176px; height: 72px; background: linear-gradient(270deg, #43484f, #1a1d21); }
.iphone__screen {
  position: relative;
  border-radius: 44px;
  overflow: hidden;
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-800) 100%);
  color: var(--text-on-dark);
  padding: 42px var(--space-md) var(--space-sm);
  /* Mindesthöhe hält die Geräteproportion (~433:915 bei 340px Breite);
     längerer Inhalt darf das Gehäuse strecken -> nie abgeschnittene Bubbles.
     Beide Chat-Szenarien liegen in derselben Grid-Zelle: Panelhöhe = das
     höhere Szenario -> kein Layout-Sprung bei der Rotation. */
  min-height: 615px;
  display: grid;
  align-content: start;
}
.iphone__screen > .chat-demo { grid-area: 1 / 1; }
.iphone__screen::before {
  /* dezente Amber-Lichtkante oben im Display */
  content: "";
  position: absolute;
  width: 300px; height: 300px;
  top: -130px; right: -90px;
  background: radial-gradient(circle, rgba(225, 134, 27, .16) 0%, transparent 70%);
  pointer-events: none;
}
.iphone__screen::after {
  /* Glas-Reflex */
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(112deg, rgba(255, 255, 255, .09) 0%, rgba(255, 255, 255, .03) 16%, transparent 30%);
  pointer-events: none;
}
.iphone__island {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 30px;
  border-radius: 20px;
  background: #0b0d10;
  z-index: 2;
}
.iphone__island::after {
  content: "";
  position: absolute;
  right: 13px; top: 50%;
  transform: translateY(-50%);
  width: 11px; height: 11px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #273140, #04060a 72%);
}

/* Variante B: geneigtes Gerät + Maus-Parallax (main.js iphoneTilt) */
.hero__visual--tilt .iphone {
  transform: rotateY(-13deg) rotateX(3deg) rotateZ(1.25deg);
  transition: transform .45s ease;
}
@media (prefers-reduced-motion: reduce) {
  .iphone { animation: none; }
  .hero__visual--tilt .iphone { transform: none; transition: none; }
}

/* „Selbst ausprobieren": Chip-Leiste unter den Chat-Szenarien (Grid-Zeile 2).
   Ohne JS versteckt (hidden); main.js tryDemo() blendet ein + befüllt. */
/* Chip-Leiste unter dem Gerät (heller Hero-Grund) */
.chat-try { position: relative; z-index: 1; width: min(340px, 100%); }
.chat-try[hidden] { display: none; }
.chat-try__label { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: var(--space-sm); }
/* Eine Zeile pro Chip: Höhe bleibt bei jedem Neu-Befüllen identisch
   (flex-wrap würde je nach Label-Längen mal 1, mal 2 Zeilen ergeben) */
.chat-try__chips { display: grid; gap: var(--space-xs); justify-items: start; }
.chat-try__chip {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  background: var(--color-white);
  color: var(--text-strong);
  box-shadow: var(--shadow-xs);
  font-size: var(--fs-small); font-weight: 500;
  text-align: left;
  transition: border-color .18s ease, color .18s ease, transform .18s ease, box-shadow .18s ease;
}
.chat-try__chip:hover:not(:disabled) { border-color: var(--color-amber); transform: translateY(-1px); box-shadow: 0 4px 14px rgba(225, 134, 27, .22); }
.chat-try__chip:disabled { opacity: .5; cursor: default; }
/* CTA ab Init im Layout (unsichtbar) -> kein Höhensprung beim Einblenden */
.chat-try__cta { display: inline-flex; margin-top: var(--space-md); color: var(--color-amber-text); visibility: hidden; opacity: 0; transition: opacity .3s ease; }
.chat-try__cta.is-in { visibility: visible; opacity: 1; }
/* Navy-Fokusring wäre auf dem dunklen Display unsichtbar */
.iphone__screen :focus-visible { outline-color: var(--color-amber); }

.chat-demo { position: relative; z-index: 1; margin: 0; transition: opacity .4s ease, visibility .4s ease; }
/* Szenario-Rotation (main.js): Crossfade WhatsApp <-> Telefonanruf.
   visibility ist mit in der Transition -> schaltet erst nach dem Fade um. */
.chat-demo.is-offstage { opacity: 0; visibility: hidden; }
.chat-demo__channel svg { width: 12px; height: 12px; flex: none; }
.chat-demo__head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  margin-bottom: var(--space-sm);
  font-size: var(--fs-overline); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.chat-demo__channel {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  padding: 4px 10px; border-radius: var(--radius-pill);
  border: 1px solid var(--border-on-dark);
  letter-spacing: .08em;
}

.chat-demo__log { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-xs); }
.chat-msg { display: grid; max-width: 88%; }
.chat-msg--in { justify-self: start; }
.chat-msg--out { justify-self: end; text-align: left; }
.chat-msg__sender {
  font-size: 0.6875rem; color: var(--text-on-dark-muted);
  margin-bottom: var(--space-3xs); padding-inline: var(--space-2xs);
}
.chat-msg__bubble {
  padding: 10px 14px;
  font-size: var(--fs-small); line-height: 1.5;
  border-radius: 14px;
  box-shadow: var(--shadow-xs);
}
.chat-msg--in .chat-msg__bubble {
  background: #DCEFE2; color: #14261B;
  border-bottom-left-radius: 4px;
}
.chat-msg--out .chat-msg__bubble {
  background: var(--color-white); color: var(--text-strong);
  border-bottom-right-radius: 4px;
}

.chat-demo__result {
  display: flex; align-items: center; gap: var(--space-sm);
  margin-top: var(--space-sm);
  padding: var(--space-xs) var(--space-md);
  background: color-mix(in oklab, var(--color-navy-800) 72%, transparent);
  border: 1px solid var(--border-on-dark);
  border-radius: var(--radius-md);
}
.chat-demo__result-icon {
  flex: none; width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(225, 134, 27, .16); color: var(--color-amber);
}
.chat-demo__result-icon svg { width: 22px; height: 22px; }
.chat-demo__result-text { display: grid; font-size: var(--fs-small); }
.chat-demo__result-text b { font-family: var(--font-headline); font-weight: 600; }
.chat-demo__result-text span { color: var(--text-on-dark-muted); font-size: 0.8125rem; }

.chat-demo__badge {
  display: inline-block;
  margin-top: var(--space-sm);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-amber); color: var(--text-on-amber);
  font-family: var(--font-headline); font-weight: 600; font-size: 0.8125rem;
}

/* Integrationen – Logo-Laufleiste ----------------------------------------- */
.integrations {
  padding-block: var(--space-2xl);
  background: var(--color-cream-200);
  border-block: 1px solid var(--border-subtle);
}
.integrations__eyebrow {
  text-align: center; margin: 0 0 var(--space-lg);
  font-size: var(--fs-eyebrow); letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-muted); font-weight: 600;
}
.logo-marquee {
  --marquee-gap: var(--space-3xl);
  --marquee-duration: 44s;
  --marquee-fade: 6rem;
  --logo-h: 30px;
}
.logo-marquee__viewport {
  display: flex; gap: var(--marquee-gap); overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent 100%);
          mask-image: linear-gradient(to right, transparent 0, #000 var(--marquee-fade), #000 calc(100% - var(--marquee-fade)), transparent 100%);
}
.logo-marquee__track {
  flex: 0 0 auto; display: flex; align-items: center; gap: var(--marquee-gap);
  min-width: max-content; margin: 0; padding: 0; list-style: none;
  animation: logo-marquee var(--marquee-duration) linear infinite;
  will-change: transform;
}
.logo-marquee__track li { flex: 0 0 auto; }
.logo-marquee__track img { display: block; height: var(--logo-h); width: auto; }
.logo-marquee__track img.is-wordmark { height: calc(var(--logo-h) * .82); }
@keyframes logo-marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(calc(-100% - var(--marquee-gap))); }
}
.logo-marquee__viewport:hover .logo-marquee__track,
.logo-marquee__viewport:focus-within .logo-marquee__track { animation-play-state: paused; }

/* Marken-Disclaimer im Footer --------------------------------------------- */
.footer__trademarks {
  margin-top: var(--space-2xl); padding-top: var(--space-lg);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-small); color: var(--text-muted); max-width: 92ch;
}

/* Reduced Motion: Laufleiste statisch (übersteuert die globale
   .01ms-Regel klassenspezifisch mit !important) ---------------------------- */
@media (prefers-reduced-motion: reduce) {
  .logo-marquee__viewport { overflow: visible; -webkit-mask-image: none; mask-image: none; }
  .logo-marquee__track {
    animation: none !important;
    flex-wrap: wrap; justify-content: center; row-gap: var(--space-lg); min-width: 0;
  }
  .logo-marquee__track[aria-hidden="true"] { display: none; }
  .logo-marquee__track .is-dup { display: none; } /* im statischen Grid jede Marke nur 1× */
}

/* -----------------------------------------------------------------------------
   7. Stats-Leiste
   ----------------------------------------------------------------------------- */
.stats__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-xl) var(--space-md); }
.stat { text-align: center; }
.stat__num { font-family: var(--font-headline); font-weight: 700; font-size: var(--fs-stat); line-height: 1; color: var(--color-amber-text); }
.stat__label { display: block; margin-top: var(--space-xs); font-size: var(--fs-small); color: var(--text-muted); }
.section--navy .stat__num { color: var(--color-amber); }
.section--navy .stat__label { color: var(--text-on-dark-muted); }
.stats__foot {
  margin-top: var(--space-2xl);
  text-align: center;
  font-size: var(--fs-lead);
  color: var(--text-strong);
  max-width: var(--container-narrow); margin-inline: auto;
}
.stats__source {
  margin-top: var(--space-md);
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
  max-width: var(--container-narrow); margin-inline: auto;
}

/* -----------------------------------------------------------------------------
   9. Segment-Bento (Use-Cases Vorher/Nachher)
   ----------------------------------------------------------------------------- */
.bento { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); }
.bento-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bento-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--border-strong); }
.bento-card__title { font-size: var(--fs-h3); margin-bottom: var(--space-md); }
.bento-card__before, .bento-card__after { font-size: var(--fs-small); line-height: 1.6; margin-top: var(--space-sm); }
.bento-card__before { color: var(--text-muted); }
.bento-card__after { color: var(--text-body); }
.bento-card__tag {
  display: inline-block;
  margin-right: var(--space-xs);
  padding: 1px 8px;
  border-radius: var(--radius-pill);
  font-family: var(--font-headline); font-weight: 600; font-size: 0.6875rem;
  letter-spacing: .06em; text-transform: uppercase;
  background: var(--color-cream-200); color: var(--text-muted);
}
.bento-card__tag--after { background: var(--state-success-bg); color: var(--state-success); }

.bento-card__channels { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-bottom: var(--space-md); }
.channel-chip {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--color-cream);
  font-size: 0.75rem; font-weight: 600; color: var(--text-body);
}
.channel-chip svg, .channel-chip img { width: 14px; height: 14px; color: var(--color-amber-600); }

/* Pipeline-Visual „E-Mail → Assistent → System" (in Featured-Bento-Kachel).
   Statisch vollständig sichtbar; .pipeline--drawn (Reveal) startet die
   Draw-Animation der Verbindungslinie. */
.pipeline {
  display: grid; grid-template-columns: 1fr; gap: var(--space-sm);
  align-items: stretch;
  margin-block: var(--space-md);
  position: relative;
}
.pipeline__stage {
  display: grid; gap: 2px; align-content: start;
  background: var(--color-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: var(--space-md);
  min-width: 0;
}
.pipeline__stage--done { background: var(--state-success-bg); border-color: color-mix(in oklab, var(--state-success) 30%, transparent); }
.pipeline__label {
  font-size: 0.6875rem; letter-spacing: .08em; text-transform: uppercase;
  font-family: var(--font-headline); font-weight: 600; color: var(--text-muted);
}
.pipeline__title { font-family: var(--font-headline); font-weight: 600; font-size: var(--fs-small); color: var(--text-strong); }
.pipeline__meta { display: inline-flex; align-items: center; gap: var(--space-2xs); font-size: 0.8125rem; color: var(--text-muted); }
.pipeline__check { width: 14px; height: 14px; color: var(--state-success); flex: none; }
.pipeline__agent {
  display: flex; align-items: center; justify-content: center; gap: var(--space-xs);
  font-size: 0.8125rem; color: var(--text-muted);
}
.pipeline__agent img { width: 28px; height: 28px; }

/* Verbindungslinie: ohne JS voll sichtbar; scrollFx setzt --pending (0) und
   beim Reveal --drawn (zeichnet von links nach rechts durch). Stationen und
   Agent liegen als "Knoten" über der Linie. */
.pipeline::before {
  content: "";
  position: absolute;
  left: 6%; right: 6%; top: 50%;
  height: 2px;
  background: var(--border-strong);
  display: none;
}
.pipeline__stage, .pipeline__agent { position: relative; }
.pipeline__agent { background: var(--color-white); padding-block: var(--space-2xs); }
.pipeline--pending::before { transform: scaleX(0); transform-origin: left; }
.pipeline--drawn::before { transform: scaleX(1); transition: transform .9s ease .2s; }
.pipeline--pending .pipeline__check { opacity: 0; }
@keyframes check-pop {
  from { opacity: 0; transform: scale(.4); }
  to   { opacity: 1; transform: none; }
}
.pipeline--drawn .pipeline__check { animation: check-pop .35s cubic-bezier(.34, 1.56, .64, 1) 1.05s both; }

.usp__cta { margin-top: var(--space-xl); text-align: center; }

/* -----------------------------------------------------------------------------
   10. Einwände (FAQ / Accordion)
   ----------------------------------------------------------------------------- */
.faq { display: grid; gap: var(--space-md); max-width: 820px; margin-inline: auto; }
.faq__item {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  padding: var(--space-lg);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: 1.0625rem;
  color: var(--text-strong);
  cursor: pointer;
  list-style: none;
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q-icon { flex: none; width: 24px; height: 24px; color: var(--color-amber-600); transition: transform .2s ease; }
.faq__item[open] .faq__q-icon { transform: rotate(45deg); }
.faq__a { padding: 0 var(--space-lg) var(--space-lg); color: var(--text-body); }

/* -----------------------------------------------------------------------------
   12. Ablauf-Schritte (nummerierte Cards)
   ----------------------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); margin-top: var(--space-xl); }
.step-card {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  box-shadow: var(--shadow-sm);
}
.step-card__num { font-family: var(--font-headline); font-weight: 700; font-size: 2.5rem; color: var(--color-amber-text); line-height: 1; }
.step-card__title { font-size: var(--fs-h3); margin: var(--space-sm) 0 var(--space-xs); }
.step-card__text { color: var(--text-body); font-size: var(--fs-small); }
.step-card__cta { margin-top: var(--space-md); width: 100%; }
.ablauf__note { margin-top: var(--space-lg); text-align: center; }
.ablauf__conditions {
  margin-inline: auto;
  border-left: 3px solid var(--border-strong);
  padding: var(--space-md) var(--space-lg);
  background: var(--color-white);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  color: var(--text-body);
  text-align: left;
}
.ablauf__conditions strong { color: var(--text-strong); }

/* -----------------------------------------------------------------------------
   13. Team
   ----------------------------------------------------------------------------- */
.team__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-lg); max-width: 820px; margin-inline: auto; }
.member { background: var(--color-white); border: 1px solid var(--border-subtle); border-radius: var(--radius-md); padding: var(--space-xl); box-shadow: var(--shadow-sm); }
.member__photo {
  width: 128px; height: 128px; margin: 0 0 var(--space-md);
  border-radius: var(--radius-pill);
  overflow: hidden;
}
.member__photo img { width: 100%; height: 100%; object-fit: cover; border-radius: var(--radius-pill); display: block; }
.member__name { font-size: var(--fs-h3); }
.member__role { color: var(--color-amber-text); font-size: var(--fs-small); font-weight: 600; margin-bottom: var(--space-sm); }
.member__core { font-family: var(--font-headline); font-weight: 600; color: var(--text-strong); margin-bottom: var(--space-xs); }
.member__bio { color: var(--text-body); font-size: var(--fs-small); }
.member__more { margin-top: var(--space-sm); }
.member__more-q {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  cursor: pointer; list-style: none;
  font-weight: 600; font-size: var(--fs-small); color: var(--color-amber-text);
}
.member__more-q::-webkit-details-marker { display: none; }
.member__more-icon { width: 16px; height: 16px; transition: transform .2s ease; }
.member__more[open] .member__more-icon { transform: rotate(45deg); }
.member__more-a { margin-top: var(--space-xs); color: var(--text-body); font-size: var(--fs-small); }
.team__values { max-width: 680px; margin: var(--space-2xl) auto 0; text-align: center; color: var(--text-body); }
.team__phone { margin-top: var(--space-sm); text-align: center; }

/* -----------------------------------------------------------------------------
   14. Referenz (Fairfinanz)
   ----------------------------------------------------------------------------- */
.referenz__card { max-width: 560px; margin-inline: auto; text-align: center; }
.referenz__quote p { font-family: var(--font-headline); font-size: var(--fs-lead); color: var(--text-on-dark); }
.referenz__meta b { display: block; color: var(--text-on-dark); }
.referenz__meta span { display: block; margin-top: var(--space-2xs); font-size: var(--fs-small); color: var(--text-on-dark-muted); }
.referenz__cta { margin-top: var(--space-xl); text-align: center; }

/* -----------------------------------------------------------------------------
   15. Kontakt-/Buchungsformular
   ----------------------------------------------------------------------------- */
.contact__card {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-xl);
}
.form__group { border: none; padding: 0; margin: 0 0 var(--space-lg); }
.form__legend { font-family: var(--font-headline); font-weight: 600; font-size: var(--fs-h3); color: var(--text-strong); padding: 0; margin-bottom: var(--space-md); }
.form__legend small { display: block; font-family: var(--font-body); font-weight: 400; font-size: var(--fs-small); color: var(--text-muted); margin-top: 2px; }

.field { margin-bottom: var(--space-md); }
.field__label { display: block; font-size: var(--fs-small); font-weight: 600; color: var(--text-strong); margin-bottom: 6px; }
.field__label .req { color: var(--state-error); }
.field__label .opt { color: var(--text-muted); font-weight: 400; }
.field__input {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  background: var(--color-white);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius-xs);
  color: var(--text-strong);
  transition: border-color .15s ease, box-shadow .15s ease;
}
textarea.field__input { min-height: 110px; resize: vertical; }
.field__input::placeholder { color: var(--text-muted); }
.field__input:focus { border-color: var(--color-amber-600); box-shadow: 0 0 0 3px rgba(224, 164, 88, .30); }
.field__input[aria-invalid="true"] { border-color: var(--state-error); background: var(--state-error-bg); }
.field__hint { font-size: var(--fs-small); color: var(--text-muted); margin-top: 4px; }
.field__error { font-size: var(--fs-small); color: var(--state-error); margin-top: 4px; display: none; }
.field__error.is-visible { display: block; }

/* Consent */
.consent { display: flex; gap: var(--space-sm); align-items: flex-start; margin-bottom: var(--space-md); }
.consent input[type="checkbox"] { width: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--color-amber); }
.consent label { font-size: var(--fs-small); color: var(--text-muted); }
.consent a { color: var(--color-amber-text); text-decoration: underline; }

/* Honeypot – für Menschen unsichtbar, für Screenreader ausgeblendet */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px; height: 1px;
  overflow: hidden;
}

.form__noscript { padding: var(--space-md); background: var(--color-cream); border-radius: var(--radius-sm); color: var(--text-body); }
.form__reassure { margin-top: var(--space-sm); font-size: var(--fs-small); color: var(--text-muted); text-align: center; }
.form__reassure svg { width: 14px; height: 14px; vertical-align: -2px; color: var(--state-success); }

/* Status-Meldungen */
.form-status { margin-top: var(--space-md); border-radius: var(--radius-sm); padding: var(--space-md); font-size: var(--fs-small); display: none; }
.form-status.is-visible { display: block; }
.form-status--error { background: var(--state-error-bg); color: var(--state-error); border-left: 3px solid var(--state-error); }

.form-success {
  display: none;
  text-align: center;
  padding: var(--space-xl) var(--space-md);
}
.form-success.is-visible { display: block; }
.form-success__icon { width: 56px; height: 56px; margin: 0 auto var(--space-md); border-radius: var(--radius-pill); background: var(--state-success-bg); color: var(--state-success); display: grid; place-items: center; }
.form-success__icon svg { width: 30px; height: 30px; }
/* Haken poppt einmal beim Einblenden (Keyframes check-pop, s. Pipeline) */
.form-success.is-visible .form-success__icon { animation: check-pop .4s cubic-bezier(.34, 1.56, .64, 1) .1s both; }
.form-success__status {
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  margin-bottom: var(--space-sm);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--state-success-bg); color: var(--state-success);
  font-family: var(--font-headline); font-weight: 600; font-size: 0.8125rem;
  letter-spacing: .04em; text-transform: uppercase;
}
.form-success__status svg { width: 14px; height: 14px; flex: none; }
.form-success h3 { margin-bottom: var(--space-xs); }
.form-success p { color: var(--text-body); }
.form-success a { color: var(--color-amber-text); font-weight: 600; }

/* -----------------------------------------------------------------------------
   16. Footer
   ----------------------------------------------------------------------------- */
.site-footer { padding-block: var(--space-4xl) var(--space-xl); border-top: 1px solid var(--border-subtle); }
.site-footer__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-2xl); }
.footer-brand .brand { color: var(--text-strong); }
.footer-brand p { color: var(--text-muted); font-size: var(--fs-small); margin-top: var(--space-sm); max-width: 34ch; }
.footer-contact { margin-top: var(--space-md); display: grid; gap: var(--space-2xs); font-size: var(--fs-small); }
.footer-contact a { display: inline-block; padding-block: 2px; color: var(--text-body); }
.footer-contact a:hover { color: var(--color-amber-text); }
.footer-col__title { font-size: var(--fs-overline); letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-amber-text); margin-bottom: var(--space-md); }
.footer-col ul { list-style: none; padding: 0; display: grid; gap: var(--space-xs); }
.footer-col a { display: inline-block; padding-block: 4px; color: var(--text-muted); font-size: var(--fs-small); }
.footer-col a:hover { color: var(--text-strong); }
.footer__bottom { margin-top: var(--space-2xl); padding-top: var(--space-lg); border-top: 1px solid var(--border-subtle); display: flex; flex-wrap: wrap; gap: var(--space-xs); justify-content: space-between; color: var(--text-muted); font-size: var(--fs-small); }

/* -----------------------------------------------------------------------------
   17. Mobile Sticky-CTA-Bar
   ----------------------------------------------------------------------------- */
.mobile-cta {
  position: fixed;
  inset: auto 0 0 0;
  z-index: 90;
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--gutter);
  padding-bottom: calc(var(--space-sm) + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid var(--border-subtle);
  box-shadow: 0 -4px 16px rgba(15, 30, 46, .08);
  transform: translateY(120%);
  transition: transform .3s ease;
}
.mobile-cta.is-visible { transform: translateY(0); }
.mobile-cta .btn--primary { flex: 1; }
.mobile-cta__call {
  flex: none;
  width: 48px;
  display: grid; place-items: center;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-strong);
  color: var(--text-strong);
}
.mobile-cta__call svg { width: 20px; height: 20px; }

/* Damit die Sticky-Bar den Footer nicht überdeckt */
@media (max-width: 767px) {
  body.has-mobile-cta { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

/* -----------------------------------------------------------------------------
   18. Responsive
   ----------------------------------------------------------------------------- */
@media (min-width: 640px) {
  .stats__grid { grid-template-columns: repeat(2, 1fr); max-width: 720px; margin-inline: auto; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento-card--featured { grid-column: span 2; }
  .pipeline { grid-template-columns: 1fr auto 1fr; align-items: center; }
  .pipeline__agent { flex-direction: column; gap: var(--space-2xs); padding-inline: var(--space-sm); }
  .pipeline::before { display: block; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .team__grid { grid-template-columns: repeat(2, 1fr); }
  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
}

@media (min-width: 768px) {
  :root { --gutter: var(--space-2xl); }
  .section { padding-block: var(--space-4xl); }

  .hero__grid { grid-template-columns: 1.05fr 0.95fr; }
}

/* Desktop-Nav erst, wenn sie wirklich passt (darunter Hamburger + Sticky-CTA) */
@media (min-width: 1024px) {
  .nav { display: flex; }
  .header__cta { display: inline-flex; }
  .header__call { display: none; }
  .nav-toggle { display: none; }
  .mobile-cta { display: none; }
  .bento { max-width: 1000px; margin-inline: auto; }
}

/* -----------------------------------------------------------------------------
   19. Legal-Seiten (Impressum / Datenschutz)
   ----------------------------------------------------------------------------- */
.legal { padding-top: calc(var(--header-h) + var(--space-2xl)); padding-bottom: var(--space-4xl); }
.legal h1 { font-size: var(--fs-h1); margin-bottom: var(--space-lg); }
.legal h2 { font-size: var(--fs-h2); margin-top: var(--space-2xl); margin-bottom: var(--space-sm); }
.legal p, .legal li { color: var(--text-body); margin-top: var(--space-sm); }
.legal ul { padding-left: var(--space-lg); }
.legal .back-link { display: inline-flex; align-items: center; gap: var(--space-2xs); margin-bottom: var(--space-lg); color: var(--color-amber-600); font-weight: 600; }
.legal__meta { margin-top: var(--space-2xl); }
.legal__note { font-size: var(--fs-small); font-style: italic; color: var(--text-muted); }
/* Platzhalter auf den Rechtsseiten dezent statt Bernstein-Warnfarbe */
.legal .ph { color: var(--text-muted); }

/* -----------------------------------------------------------------------------
   20. Reduced Motion
   ----------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-delay: .01ms !important; /* sonst hält fill-mode:both Elemente für die Delay-Dauer unsichtbar */
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* -----------------------------------------------------------------------------
   21. Scroll-Animationen & Micro-Interactions
   .reveal wird AUSSCHLIESSLICH per JS gesetzt (main.js) – ohne JS ist nichts
   versteckt. Bei prefers-reduced-motion startet das JS-Modul gar nicht; die
   Overrides unten sind doppelte Absicherung. Kurve/Dauer = hero-in.
   ----------------------------------------------------------------------------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity .55s ease, transform .55s ease;
  transition-delay: var(--reveal-delay, 0s);
}
.reveal.is-in { opacity: 1; transform: none; }

/* Stats: feste Ziffernbreiten gegen Zittern beim Hochzählen */
.stat__num { font-variant-numeric: tabular-nums; }

/* FAQ: Antwort blendet beim Öffnen weich ein (rein CSS, wirkt auch ohne JS) */
@keyframes faq-a-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}
.faq__item[open] .faq__a { animation: faq-a-in .3s ease both; }

/* Hover-Feedback vereinheitlichen */
.step-card, .member {
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.step-card:hover, .member:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong);
}

/* CTA: Pfeil rückt beim Hover nach */
.btn__icon { transition: transform .18s ease; }
.btn:hover .btn__icon, .text-cta:hover .btn__icon { transform: translateX(3px); }

.btn { position: relative; }

/* Hero-Visual: Eintritt synchron zur Textspalte (CSS-only, endet sichtbar) */
@keyframes hero-visual-in {
  from { opacity: 0; transform: translateY(16px) scale(.98); }
  to   { opacity: 1; transform: none; }
}
.hero__visual { animation: hero-visual-in .6s ease .2s both; }

/* Chat-Demo-Animation: Zustände greifen NUR, wenn JS .chat-demo--armed setzt
   (main.js chatDemo). Ohne JS / bei reduced-motion: fertiger Verlauf. Die
   Bubbles behalten ihren Platz (nur opacity/transform) -> kein Layout-Shift
   außerhalb des Panels. */
.chat-demo--armed .chat-msg,
.chat-demo--armed .chat-demo__result {
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .4s ease, transform .4s ease;
}
.chat-demo--armed .chat-msg.is-in,
.chat-demo--armed .chat-demo__result.is-in { opacity: 1; transform: none; }

.chat-demo--armed .chat-demo__badge { opacity: 0; }
@keyframes badge-pop {
  from { opacity: 0; transform: translateY(8px) scale(.9); }
  to   { opacity: 1; transform: none; }
}
.chat-demo--armed .chat-demo__badge.is-in { animation: badge-pop .45s cubic-bezier(.34, 1.56, .64, 1) both; }

/* Tipp-Indikator (drei pulsierende Punkte), wird von JS ein-/ausgehängt.
   Liegt absolut ÜBER dem reservierten (unsichtbaren) Bubble-Platz der
   nächsten Nachricht (top setzt JS per CSSOM) -> verändert die Panelhöhe
   nicht (kein Höhen-Pulsieren mehr). */
.chat-demo__log { position: relative; }
.chat-demo__typing {
  position: absolute; left: 0;
  display: inline-flex; gap: 4px; align-items: center;
  width: max-content;
  padding: 12px 14px;
  background: #DCEFE2;
  border-radius: 14px; border-bottom-left-radius: 4px;
}
.chat-demo__typing--out {
  left: auto; right: 0;
  background: var(--color-white);
  border-bottom-left-radius: 14px; border-bottom-right-radius: 4px;
}
.chat-demo__typing span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(20, 38, 27, .45);
  animation: typing-dot 1s ease-in-out infinite;
}
.chat-demo__typing--out span { background: rgba(15, 30, 46, .35); }
.chat-demo__typing span:nth-child(2) { animation-delay: .15s; }
.chat-demo__typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing-dot {
  0%, 100% { opacity: .35; transform: none; }
  50% { opacity: 1; transform: translateY(-2px); }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* -----------------------------------------------------------------------------
   22. Umsatz-Rechner (Navy-Panel, live per main.js roiCalc) & Kontakt-Intro
   ----------------------------------------------------------------------------- */
.roi-calc {
  position: relative; overflow: hidden;
  display: grid; gap: var(--space-xl);
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-800) 100%);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  color: var(--text-on-dark);
  padding: var(--space-xl);
}
.roi-calc::before {
  /* Amber-Licht wie im Hero-Visual – gleiche Markenbühne */
  content: "";
  position: absolute;
  width: 320px; height: 320px;
  top: -120px; right: -80px;
  background: radial-gradient(circle, rgba(225, 134, 27, .18) 0%, transparent 70%);
  pointer-events: none;
}
.roi-calc__inputs, .roi-calc__result { position: relative; }
/* Navy-Fokusring wäre auf dem Panel unsichtbar */
.roi-calc :focus-visible { outline-color: var(--color-amber); }

.roi-field { margin-bottom: var(--space-lg); }
.roi-field__head {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-md);
  margin-bottom: var(--space-sm);
}
.roi-field__label {
  font-family: var(--font-headline); font-weight: 600; font-size: var(--fs-small);
  color: var(--text-on-dark);
}
.roi-field__value {
  font-variant-numeric: tabular-nums;
  color: var(--color-amber);
  font-size: 1.125rem;
  white-space: nowrap;
}

.roi-calc input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-navy-700);
  cursor: pointer;
}
.roi-calc input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--color-amber);
  border: 3px solid var(--color-navy-900);
  box-shadow: var(--shadow-sm);
}
.roi-calc input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-amber);
  border: 3px solid var(--color-navy-900);
}
.roi-calc input[type="range"]::-moz-range-track {
  height: 6px; border-radius: var(--radius-pill); background: var(--color-navy-700);
}

.roi-calc__assumption {
  margin-top: var(--space-md);
  font-size: var(--fs-small); color: var(--text-on-dark-muted);
  border-left: 3px solid var(--color-amber);
  padding-left: var(--space-sm);
}
.roi-calc__assumption strong { color: var(--text-on-dark); }

.roi-calc__result {
  display: grid; align-content: center; justify-items: start; gap: var(--space-2xs);
  border-top: 1px solid var(--border-on-dark);
  padding-top: var(--space-lg);
}
.roi-calc__result-label {
  font-family: var(--font-headline); font-weight: 600;
  font-size: var(--fs-overline); letter-spacing: .12em; text-transform: uppercase;
  color: var(--text-on-dark-muted);
}
.roi-calc__week { font-size: var(--fs-small); color: var(--text-on-dark-muted); margin-top: var(--space-sm); }
.roi-calc__week b { font-family: var(--font-headline); font-size: 1.125rem; color: var(--text-on-dark); font-variant-numeric: tabular-nums; }
.roi-calc__year {
  font-family: var(--font-headline); font-weight: 700;
  font-size: var(--fs-stat); line-height: 1.05;
  color: var(--color-amber);
  font-variant-numeric: tabular-nums;
}
.roi-calc__year-label { font-size: var(--fs-small); color: var(--text-on-dark-muted); }
.roi-calc__cta { margin-top: var(--space-lg); color: var(--color-amber); }

@media (min-width: 768px) {
  .roi-calc { grid-template-columns: 1.1fr 0.9fr; padding: var(--space-2xl); column-gap: var(--space-2xl); }
  .roi-calc__result { border-top: none; padding-top: 0; border-left: 1px solid var(--border-on-dark); padding-left: var(--space-2xl); }
}

.contact__intro {
  display: flex; align-items: center; justify-content: center; gap: var(--space-sm);
  margin-bottom: var(--space-lg);
  font-size: var(--fs-small); color: var(--text-body);
}
.contact__faces { display: inline-flex; }
.contact__faces img {
  width: 40px; height: 40px; border-radius: var(--radius-pill);
  object-fit: cover; display: block;
  border: 2px solid var(--color-white);
}
.contact__faces img + img { margin-left: -10px; }

/* -----------------------------------------------------------------------------
   17. Live-Demo: Drei Agenten, ein Gehirn (#demo, agents-demo.js)
   ----------------------------------------------------------------------------- */
.agents__frame {
  max-width: 860px;
  margin-inline: auto;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Tabs */
.agents__tabs {
  display: flex;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--color-cream);
  overflow-x: auto;
}
/* Schmale Viewports: Leiste ist scrollbar – Fade-Kante rechts deutet das an;
   das Padding lässt den letzten Tab beim Scrollen unter der Kante hervorkommen */
@media (max-width: 639px) {
  .agents__tabs {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
            mask-image: linear-gradient(to right, #000 calc(100% - 32px), transparent);
    padding-right: 32px;
  }
}
.agents__tab {
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  min-height: 56px;
  padding: 12px 18px;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--fs-small);
  color: var(--text-muted);
  border-bottom: 3px solid transparent;
  white-space: nowrap;
  transition: color .18s ease, border-color .18s ease, background-color .18s ease;
}
.agents__tab svg { width: 18px; height: 18px; flex: none; }
.agents__tab:hover { color: var(--text-strong); }
.agents__tab.is-active {
  color: var(--text-strong);
  background: var(--surface-card);
  border-bottom-color: var(--color-amber);
}
.agents__soon {
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-amber-100);
  color: var(--color-amber-text);
  font-size: var(--fs-overline);
  font-weight: 600;
  letter-spacing: .04em;
}

.agents__panel { padding: var(--space-lg); }
.agents__panel:focus-visible { outline-offset: -2px; }

.agents__onboard {
  font-size: var(--fs-small);
  color: var(--text-body);
  margin-bottom: var(--space-sm);
}
.agents__ki-hinweis {
  font-size: var(--fs-overline);
  color: var(--color-amber-text);
  background: var(--color-amber-100);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: var(--space-md);
}
.agents__foot {
  max-width: var(--container-narrow);
  margin: var(--space-lg) auto 0;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-muted);
}

/* Chat-Fenster (hell – Gegenstück zur dunklen Hero-Demo) */
.agent-chat__log {
  list-style: none;
  margin: 0;
  padding: var(--space-md);
  display: grid;
  gap: var(--space-sm);
  min-height: 260px;
  max-height: 380px;
  overflow-y: auto;
  background: var(--color-cream);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
}
.agent-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: var(--fs-small);
  line-height: 1.55;
  white-space: pre-wrap;
  box-shadow: var(--shadow-xs);
}
.agent-msg--bot {
  justify-self: start;
  background: var(--color-white);
  color: var(--text-strong);
  border: 1px solid var(--border-subtle);
  border-bottom-left-radius: 4px;
}
.agent-msg--ich {
  justify-self: end;
  background: var(--color-navy);
  color: var(--text-on-dark);
  border-bottom-right-radius: 4px;
}
.agent-msg--arbeit {
  justify-self: start;
  background: transparent;
  border: 1px dashed var(--border-strong);
  color: var(--color-amber-text);
  font-size: var(--fs-overline);
  letter-spacing: .04em;
  box-shadow: none;
}
.agent-msg--fehler {
  justify-self: stretch;
  max-width: none;
  background: var(--state-error-bg);
  color: var(--state-error);
  box-shadow: none;
}
.agent-msg--hinweis {
  justify-self: stretch;
  max-width: none;
  background: transparent;
  color: var(--text-muted);
  font-size: var(--fs-overline);
  text-align: center;
  box-shadow: none;
}

.agent-chat__controls { margin-top: var(--space-md); }
.agent-chat__chips {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-sm);
}
.agent-chip {
  padding: 7px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-pill);
  font-size: var(--fs-overline);
  font-weight: 600;
  color: var(--text-body);
  background: var(--color-white);
  transition: border-color .18s ease, color .18s ease, transform .18s ease;
}
.agent-chip:hover { border-color: var(--color-amber-600); color: var(--color-amber-text); transform: translateY(-1px); }
.agent-chip--szenario.is-active,
.agent-chip--szenario[aria-pressed="true"] {
  border-color: var(--color-amber-600);
  color: var(--color-amber-text);
  box-shadow: inset 0 0 0 1px var(--color-amber-600);
}

/* Mail: Szenario-Picker + Bestandsangebot neben dem Formular */
.agent-mail__szenarien { border: 0; padding: 0; margin: 0 0 var(--space-md); }
.agent-mail__szenarien legend { margin-bottom: var(--space-xs); padding: 0; }
.agent-mail__szenario-chips { display: flex; flex-wrap: wrap; gap: var(--space-xs); }
.agent-mail__grid { display: grid; gap: var(--space-lg); }
@media (min-width: 900px) {
  .agent-mail__grid.is-offen {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    align-items: start;
  }
}
.agent-mail__bestand .agent-angebot {
  max-width: none;
  margin: 0;
  box-shadow: none;
  padding: var(--space-md);
}
.agent-angebot__projekt { font-size: var(--fs-small); color: var(--text-muted); margin: var(--space-2xs) 0 var(--space-xs); }
.agent-mail__kontakt { display: grid; gap: var(--space-sm); }
@media (min-width: 640px) { .agent-mail__kontakt { grid-template-columns: 1fr 1fr; } }
.agent-mail__pflicht-hinweis { font-size: var(--fs-overline); color: var(--text-muted); margin: var(--space-2xs) 0 var(--space-sm); }
.agent-chat__form { display: flex; gap: var(--space-xs); }
.agent-chat__form input { flex: 1; min-width: 0; }

/* Mail: Inbox-Mock */
.mail-inbox {
  display: grid;
  gap: var(--space-sm);
  margin-bottom: var(--space-md);
}
.mail-card {
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-sm) var(--space-md);
}
.mail-card__top {
  display: flex;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--fs-small);
}
.mail-card__top b { font-family: var(--font-headline); font-weight: 600; color: var(--text-strong); }
.mail-card__top span { color: var(--text-muted); font-size: var(--fs-overline); flex: none; }
.mail-card__from { font-size: var(--fs-overline); color: var(--text-muted); margin-top: 2px; }
.mail-status {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2xs) var(--space-md);
  margin: var(--space-xs) 0 0;
  padding: 0;
}
.mail-status li {
  position: relative;
  padding-left: 16px;
  font-size: var(--fs-overline);
  color: var(--text-muted);
  transition: color .3s ease;
}
.mail-status li::before {
  content: "";
  position: absolute;
  left: 0; top: 50%;
  transform: translateY(-50%);
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background-color .3s ease;
}
.mail-status li.is-doing { color: var(--color-amber-text); }
.mail-status li.is-doing::before { background: var(--color-amber); animation: mail-puls 1s ease-in-out infinite; }
.mail-status li.is-done { color: var(--state-success); }
.mail-status li.is-done::before { background: var(--state-success); }
@keyframes mail-puls {
  0%, 100% { box-shadow: 0 0 0 0 rgba(225, 134, 27, .45); }
  50% { box-shadow: 0 0 0 5px rgba(225, 134, 27, 0); }
}

/* Mail: Verarbeitungs-Schritte + Antwortentwurf */
.agent-mail .consent label .opt { color: var(--text-muted); font-weight: 400; }
.mail-schritte {
  list-style: none;
  margin: var(--space-lg) 0 0;
  border-left: 2px solid var(--border-subtle);
  padding-left: var(--space-lg);
}
.mail-schritte li {
  position: relative;
  padding: 8px 0;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.mail-schritte li b { color: var(--text-strong); font-weight: 600; }
.mail-schritte li::before {
  content: "";
  position: absolute;
  left: calc(-1 * var(--space-lg) - 6px);
  top: 16px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--color-amber);
}
.mail-schritte li.laeuft::before { animation: mail-puls 1s ease-in-out infinite; }
.mail-schritte li.agent-mail__hint { font-size: var(--fs-overline); }
.mail-schritte li.agent-mail__hint::before { background: var(--border-strong); }

.mail-antwort {
  margin-top: var(--space-md);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.mail-antwort__kopf {
  padding: 10px var(--space-md);
  background: var(--color-cream);
  border-bottom: 1px solid var(--border-subtle);
  font-size: var(--fs-overline);
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--color-amber-text);
}
.mail-antwort pre {
  margin: 0;
  padding: var(--space-md);
  background: var(--color-white);
  font-family: var(--font-body);
  font-size: var(--fs-small);
  line-height: 1.7;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text-body);
}

/* Telefon-Hülle: dunkle Bühne, damit die bestehenden .chat-demo-Styles greifen */
.agents__tel-stage {
  background: linear-gradient(160deg, var(--color-navy) 0%, var(--color-navy-800) 100%);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  color: var(--text-on-dark);
}
.agents__tel-stage .chat-demo { min-height: 0; }
.agents__tel-cta {
  margin-top: var(--space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-sm);
  font-size: var(--fs-small);
  color: var(--text-body);
}
.agents__tel-cta b { color: var(--text-strong); }

/* Angebots-Ausgabe (Zahlen kommen ausschließlich vom Server) */
.agent-angebot {
  max-width: 860px;
  margin: var(--space-lg) auto 0;
  background: var(--color-white);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: var(--space-lg);
}
.agent-angebot__disclaimer {
  font-size: var(--fs-overline);
  color: var(--color-amber-text);
  background: var(--color-amber-100);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  margin-bottom: var(--space-md);
}
.agent-angebot__kopf {
  display: flex;
  justify-content: space-between;
  gap: var(--space-md);
  align-items: flex-start;
  margin-bottom: var(--space-md);
}
.agent-angebot__kopf h4 { font-size: var(--fs-h3); }
.agent-angebot__kopf > div > span { font-size: var(--fs-overline); color: var(--text-muted); }
.agent-angebot__meta { text-align: right; font-size: var(--fs-overline); color: var(--text-muted); }
.agent-angebot__tabelle {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-small);
}
.agent-angebot__tabelle th {
  text-align: left;
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--fs-overline);
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border-strong);
}
.agent-angebot__tabelle td {
  padding: 10px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
  color: var(--text-body);
}
.agent-angebot__tabelle .r { text-align: right; white-space: nowrap; }
.agent-angebot__posid { display: block; font-size: var(--fs-overline); color: var(--text-muted); }
.agent-angebot__summen {
  margin-top: var(--space-md);
  margin-left: auto;
  max-width: 340px;
  display: grid;
  gap: var(--space-2xs);
  font-size: var(--fs-small);
}
.agent-angebot__summen > div { display: flex; justify-content: space-between; gap: var(--space-md); }
.agent-angebot__summen .gesamt {
  border-top: 1px solid var(--border-strong);
  padding-top: var(--space-xs);
  font-family: var(--font-headline);
  font-weight: 700;
  color: var(--text-strong);
}
.agent-angebot__warnung {
  margin-top: var(--space-md);
  background: var(--state-error-bg);
  border-radius: var(--radius-sm);
  padding: var(--space-sm) var(--space-md);
  font-size: var(--fs-small);
  color: var(--text-body);
}
.agent-angebot__warnung b { color: var(--state-error); }
.agent-angebot__warnung ul { margin: var(--space-xs) 0 0; padding-left: var(--space-lg); }
.agent-angebot__fuss {
  margin-top: var(--space-md);
  font-size: var(--fs-overline);
  color: var(--text-muted);
}

/* Hero: Link zur Live-Demo (liegt auf dunklem Panel) */
.hero__demo-link { margin-top: var(--space-md); position: relative; z-index: 1; }
.hero__demo-link .text-cta { color: var(--color-amber); font-size: var(--fs-small); }
.hero__demo-cta {
  margin-top: var(--space-md);
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-sm);
}
.hero__demo-cta-sub { font-size: var(--fs-overline); color: var(--text-muted); }
/* Der CTA steht unter dem Geraet auf hellem Grund — Ghost mit Amber-Rahmen */
.hero__demo-cta .btn--secondary { border-color: var(--color-amber); color: var(--text-strong); }
.hero__demo-cta .btn--secondary:hover { background: var(--color-amber); border-color: var(--color-amber); color: var(--text-on-amber); }

/* -----------------------------------------------------------------------------
   18. Pakete (#pakete)
   ----------------------------------------------------------------------------- */
.pakete__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-md);
}
.paket {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  box-shadow: var(--shadow-sm);
}
.paket__title { font-size: var(--fs-h3); margin-bottom: var(--space-xs); }
.paket__desc { font-size: var(--fs-small); color: var(--text-muted); margin-bottom: var(--space-md); }
.paket__bullets {
  list-style: none;
  margin: 0 0 var(--space-md);
  padding: 0;
  display: grid;
  gap: var(--space-xs);
  font-size: var(--fs-small);
  color: var(--text-body);
}
.paket__bullets li {
  position: relative;
  padding-left: 24px;
}
.paket__bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--color-amber-100);
}
.paket__bullets li::after {
  content: "";
  position: absolute;
  left: 3.5px; top: 8px;
  width: 7px; height: 4px;
  border-left: 2px solid var(--color-amber-text);
  border-bottom: 2px solid var(--color-amber-text);
  transform: rotate(-45deg);
}
.paket__preis {
  margin-top: auto;
  padding-top: var(--space-sm);
  border-top: 1px solid var(--border-subtle);
  font-size: var(--fs-small);
  color: var(--text-body);
}
.paket__preis b {
  font-family: var(--font-headline);
  font-weight: 700;
  font-size: 1.375rem;
  color: var(--text-strong);
  margin-right: var(--space-2xs);
}
.paket__preis span { display: block; margin-top: 2px; color: var(--text-muted); font-size: var(--fs-overline); }
.paket__cta { margin-top: var(--space-md); width: 100%; }

/* Werkzeug-/Integrationszeile in den Paket-Karten: fließt direkt unter den
   Bullets (Restfläche der Karte bleibt VOR dem Preisblock, der sich weiter
   per margin-top:auto am Kartenboden verankert). */
.paket__tools {
  --tool-logo-h: 20px;
  margin-bottom: var(--space-sm);
}
.paket__tools-label {
  display: block;
  margin-bottom: var(--space-xs);
  font-size: var(--fs-overline);
  color: var(--text-muted);
}
.paket__tools-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-xs) var(--space-sm);
  margin: 0;
  padding: 0;
  list-style: none;
}
.paket__tools-list li { flex: 0 0 auto; }
.paket__tools-list img {
  display: block;
  height: var(--tool-logo-h);
  width: auto;
  filter: grayscale(1);
  opacity: .55;
}
.paket__tools-list img.is-wordmark { height: calc(var(--tool-logo-h) * .8); }
/* DATEV-SVG trägt die Wortmarke UNTER dem Quadrat: bei 20px unleserlich.
   26px gesamt ≈ 19px Quadrat + lesbare Unterzeile — optisch gleich groß. */
.paket__tools-list img.is-stacked { height: calc(var(--tool-logo-h) * 1.3); }

/* Kombi-Karte: hervorgehoben per Amber-Rahmen, nicht als zweiter Navy-Höhepunkt */
.paket--kombi {
  border: 2px solid var(--color-amber);
}
.paket__badge {
  position: absolute;
  top: calc(-1 * var(--space-sm));
  right: var(--space-lg);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--color-amber);
  color: var(--text-on-amber);
  font-family: var(--font-headline);
  font-weight: 600;
  font-size: var(--fs-overline);
}
/* Individuell-Karte: volle Grid-Breite unterm Raster, gestrichelter Rahmen als
   leises "alles ist verhandelbar"-Signal — Kombi bleibt der einzige Höhepunkt. */
.paket--individuell {
  grid-column: 1 / -1;
  border-style: dashed;
}
.paket--individuell .paket__preis b { font-size: 1.125rem; }

.pakete__note {
  margin: var(--space-lg) auto 0;
  text-align: center;
  font-size: var(--fs-small);
  color: var(--text-muted);
}
.pakete__note a { color: var(--color-amber-text); text-decoration: underline; }

/* Responsive */
@media (min-width: 640px) {
  .mail-inbox { grid-template-columns: repeat(3, 1fr); }
  .mail-status { display: grid; gap: var(--space-2xs); }
  .pakete__grid { grid-template-columns: repeat(2, 1fr); }
  /* Bei 2 Spalten und 4 Karten: Kombi volle Breite statt Leerzelle daneben */
  .paket--kombi { grid-column: 1 / -1; }
}
@media (min-width: 1024px) {
  .agents__panel { padding: var(--space-xl); }
  .pakete__grid { grid-template-columns: repeat(3, 1fr); gap: var(--space-md); }
  .paket--kombi { grid-column: auto; }
  .paket--individuell {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-xl);
  }
  .paket--individuell .paket__individuell-copy { max-width: 62ch; }
  .paket--individuell .paket__desc { margin-bottom: 0; }
  .paket--individuell .paket__individuell-aktion { flex: 0 0 auto; }
  .paket--individuell .paket__preis { margin-top: 0; padding-top: 0; border-top: none; }
  .paket--individuell .paket__cta { width: auto; }
}

/* Reduced Motion: keine Puls-/Loop-Animationen; agents-demo.js startet die
   Schleifen ohnehin nicht, alle Inhalte stehen statisch vollständig. */
@media (prefers-reduced-motion: reduce) {
  .mail-status li.is-doing::before,
  .mail-schritte li.laeuft::before { animation: none !important; }
}
