/* =========================================================================
   PetiForm – Design-System (handgeschrieben, schlank, ohne Build/Runtime).
   Marke: Indigo #4f46e5 + Koralle #ff6b5e. Hell/Dunkel automatisch.
   Keine externen Inhalte. Reveal-Animationen sind JS-gated -> ohne JS ist
   alles sichtbar (gut fuer Suchmaschinen/Robots/KI). Voll responsive.
   ========================================================================= */

/* ---- Design-Tokens ------------------------------------------------------ */
:root {
  color-scheme: light;
  /* Sanftes Aufklappen nativer <details> (FAQ/TOC) – Progressive Enhancement,
     Browser ohne Support klappen einfach wie bisher hart auf. */
  interpolate-size: allow-keywords;
  --indigo: #4f46e5;
  --indigo-600: #4338ca;
  --indigo-soft: rgba(79, 70, 229, 0.1);
  /* Füllflächen-Indigo (Buttons, Bänder, Kacheln): im Light identisch zu
     --indigo; im Dark bleibt es satt (#4f46e5), damit Weiss darauf AA erreicht
     (6,29:1) – waehrend Text-/Icon-Indigo (--indigo) im Dark aufhellt. */
  --indigo-fill: var(--indigo);
  --indigo-fill-hover: var(--indigo-600);
  --koralle: #ff6b5e;
  --koralle-700: #ad3420; /* abgedunkelt: Koralle-Text auf hellen Flächen ≥5:1 */
  --koralle-soft: rgba(255, 107, 94, 0.13);

  --bg: #f6f6fb;
  --surface: #ffffff;
  --surface-2: #f0f0f7;
  --text: #19172a;
  --muted: #585572;
  --border: #e6e5f1;
  --visual-border: var(--indigo);
  --visual-caption-surface: #ffffff;

  --ring: rgba(79, 70, 229, 0.4);
  --shadow: 0 10px 30px rgba(79, 70, 229, 0.08);
  --shadow-lg: 0 24px 64px rgba(79, 70, 229, 0.14);

  --radius-sm: 12px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --container: 1120px;
  --nav-h: 68px;

  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

/* Dunkle Tokens gelten in zwei Faellen:
   (a) automatisch nach System – solange NICHT manuell auf „hell" gestellt;
   (b) wenn der Nutzer „dunkel" erzwingt (data-theme="dark").
   Der Umschalter im Header setzt data-theme; ohne Auswahl entscheidet das System. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme='dark']) {
    color-scheme: dark;
    --indigo: #8b83ff;
    --indigo-600: #a39cff;
    --indigo-soft: rgba(139, 131, 255, 0.14);
    /* Füllflächen bleiben satt (kein Pastell) – Weiss darauf 6,29:1 */
    --indigo-fill: #4f46e5;
    --indigo-fill-hover: #4338ca;
    --koralle: #ff8678;
    --koralle-700: #ff6b5e;
    --koralle-soft: rgba(255, 134, 120, 0.16);

    --bg: #0f0e17;
    --surface: #1a1826;
    --surface-2: #232031;
    --text: #f1f0f8;
    --muted: #a9a6bd;
    --border: #2d2a40;
    --visual-border: var(--border);

    --ring: rgba(139, 131, 255, 0.5);
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --indigo: #8b83ff;
  --indigo-600: #a39cff;
  --indigo-soft: rgba(139, 131, 255, 0.14);
  /* Füllflächen bleiben satt (kein Pastell) – Weiss darauf 6,29:1 */
  --indigo-fill: #4f46e5;
  --indigo-fill-hover: #4338ca;
  --koralle: #ff8678;
  --koralle-700: #ff6b5e;
  --koralle-soft: rgba(255, 134, 120, 0.16);

  --bg: #0f0e17;
  --surface: #1a1826;
  --surface-2: #232031;
  --text: #f1f0f8;
  --muted: #a9a6bd;
  --border: #2d2a40;
  --visual-border: var(--border);

  --ring: rgba(139, 131, 255, 0.5);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 24px 64px rgba(0, 0, 0, 0.55);
}

/* ---- Reset & Basis ------------------------------------------------------ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  /* Sticky-Header überdeckt sonst die angesprungene Überschrift.
     Gilt global für alle In-Page-Anker (ersetzt die früheren
     Inline-scroll-margin-top auf einzelnen Anker-Zielen). */
  scroll-padding-top: calc(var(--nav-h) + 1rem);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: var(--indigo);
  text-decoration: none;
  text-underline-offset: 0.15em;
  text-decoration-thickness: 1.5px;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
  font-weight: 800;
}

p {
  margin: 0 0 1rem;
}

:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: var(--indigo-soft);
  background: color-mix(in srgb, var(--indigo) 30%, transparent);
}

/* Fokus-Ring auf Indigo-Flächen: der globale --ring (Indigo) wäre dort
   unsichtbar -> Weiss-auf-Indigo wie beim On-Dark-Muster (.icon-badge-on-dark). */
.cta-band :focus-visible,
.card-indigo :focus-visible {
  outline-color: rgba(255, 255, 255, 0.85);
}

/* Skip-Link (Barrierefreiheit) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--indigo-fill);
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: 0 0 var(--radius-sm) 0;
}

.skip-link:focus {
  left: 0;
}

/* ---- Layout-Helfer ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}

/* Breite Variante fuer dichte Grids (z. B. die vier Preis-Stufen):
   mehr Kartenbreite, ohne den globalen Lesefluss zu veraendern */
.container--wide {
  max-width: 1300px;
}

.section {
  padding-block: clamp(56px, 7vw, 72px);
}

.section-sm {
  padding-block: clamp(40px, 5vw, 48px);
}

.center {
  text-align: center;
}

.muted {
  color: var(--muted);
}

.lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: var(--muted);
  max-width: 46ch;
  text-wrap: pretty;
}

.center .lead,
.lead.center {
  margin-inline: auto;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--koralle-700);
  background: var(--koralle-soft);
  padding: 0.4em 0.9em;
  border-radius: var(--radius-pill);
  margin-bottom: 0.7rem;
}

.h-display {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
}

.h-section {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

/* Ausgewogene Zeilenumbrüche in Überschriften (Progressive Enhancement) */
.h-display,
.h-section {
  text-wrap: balance;
}

/* Einheitlicher Abstand unter Sektions-Köpfen (ersetzt Inline-margin-bottom) */
.section-head {
  margin-bottom: 2.5rem;
}

.accent {
  color: var(--koralle-700);
}

.text-indigo {
  color: var(--indigo);
}

/* ---- Wortmarke ---------------------------------------------------------- */
.brand {
  font-weight: 800;
  font-size: 1.3rem;
  letter-spacing: -0.03em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.brand:hover {
  text-decoration: none;
}

.brand-icon {
  width: 1.55em;
  height: 1.55em;
  border-radius: 9px;
  flex: none;
}

.brand-name {
  display: inline-flex;
}

/* Wortmarke an Theme-Tokens gebunden -> hellt im Dark Mode automatisch auf */
.b-peti {
  color: var(--indigo);
}

.b-form {
  color: var(--koralle);
}

/* Dark Mode: dezenter Ring trennt die Indigo-Kachel vom dunklen Hintergrund */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme='dark']) .brand-icon {
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
  }
}

:root[data-theme='dark'] .brand-icon {
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16);
}

/* ---- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font: inherit;
  font-weight: 700;
  line-height: 1;
  padding: 0.9em 1.5em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.2s ease,
    background 0.2s ease;
}

.btn:hover {
  text-decoration: none;
}

/* Taktiles Feedback: kurzer „Druckpunkt" beim Klicken */
.btn:active {
  transform: translateY(0);
  transition-duration: 0.06s;
}

.btn[disabled],
.btn[aria-disabled='true'] {
  opacity: 0.55;
  pointer-events: none;
  box-shadow: none;
}

.btn-primary {
  background: var(--indigo-fill);
  color: #fff;
  /* rgba-Zeile = Fallback fuer Browser ohne color-mix() */
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.28);
  box-shadow: 0 8px 22px color-mix(in srgb, var(--indigo-fill) 28%, transparent);
}

.btn-primary:hover {
  background: var(--indigo-fill-hover);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 4px var(--indigo-soft),
    0 12px 30px rgba(79, 70, 229, 0.38);
  box-shadow:
    0 0 0 4px var(--indigo-soft),
    0 12px 30px color-mix(in srgb, var(--indigo-fill) 38%, transparent);
}

.btn-ghost {
  background: var(--surface);
  color: var(--indigo);
  border-color: var(--border);
}

.btn-ghost:hover {
  background: var(--surface-2);
  transform: translateY(-2px);
}

.btn-light {
  background: #fff;
  color: var(--indigo-fill);
}

.btn-light:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
}

.btn-lg {
  padding: 1.05em 1.9em;
  font-size: 1.05rem;
}

/* Kompakter Inline-Button (z. B. „Kopieren" auf der Kontaktseite) –
   min-height sichert das 44px-Touch-Ziel trotz kleiner Optik. */
.btn-sm {
  padding: 0.5em 0.95em;
  font-size: 0.85rem;
  min-height: 2.75rem;
  vertical-align: middle;
}

/* Kopier-Bestätigung: feste Mindestbreite verhindert Layout-Springen */
[data-copy-status] {
  display: inline-block;
  min-width: 9ch;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.center .btn-row {
  justify-content: center;
}

/* ---- Icons -------------------------------------------------------------- */
.icon {
  width: 1.4em;
  height: 1.4em;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon-lg {
  width: 2em;
  height: 2em;
}

.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 14px;
  background: var(--indigo-soft);
  color: var(--indigo);
  margin-bottom: 1rem;
}

/* ---- Navigation --------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  height: var(--nav-h);
}

.nav>.brand {
  margin-right: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  order: 1;
}

.nav-menu a:not(.btn) {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.97rem;
}

.nav-menu a:not(.btn):hover {
  color: var(--indigo);
  text-decoration: none;
}

.nav-menu a.active {
  color: var(--text);
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  background: none;
  border: 1px solid var(--border);
  border-radius: 14px; /* Squircle = Logo-Zitat */
  padding: 0;
  color: var(--text);
  cursor: pointer;
}

/* ---- Theme-Umschalter (auto / hell / dunkel) – klein, rund, dezent ----- */
.theme-toggle {
  display: none;
  /* nur mit JS sinnvoll -> unter .js eingeblendet */
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  flex: none;
  order: 2;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.js .theme-toggle {
  display: inline-flex;
}

.theme-toggle:hover {
  color: var(--indigo);
  border-color: var(--indigo);
  background: var(--surface-2);
}

.theme-toggle .ti {
  width: 1.15rem;
  height: 1.15rem;
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  display: none;
}

.theme-toggle .ti-auto {
  display: block;
}

.theme-toggle[data-state='light'] .ti-auto,
.theme-toggle[data-state='dark'] .ti-auto {
  display: none;
}

.theme-toggle[data-state='light'] .ti-light {
  display: block;
}

.theme-toggle[data-state='dark'] .ti-dark {
  display: block;
}

.theme-toggle .ti-auto .half {
  fill: currentColor;
  stroke: none;
}

.language-switch {
  position: relative;
  order: 2;
  flex: none;
}

.language-switch summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  list-style: none;
  transition:
    color 0.2s ease,
    border-color 0.2s ease,
    background 0.2s ease;
}

.language-switch summary::-webkit-details-marker {
  display: none;
}

.language-switch summary::marker {
  content: '';
}

.language-switch summary:hover,
.language-switch[open] summary {
  color: var(--indigo);
  border-color: var(--indigo);
  background: var(--surface-2);
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 9.5rem;
  padding: 0.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  box-shadow: var(--shadow);
  z-index: 120;
}

.language-menu a,
.language-menu__disabled {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.5rem 0.65rem;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 650;
  white-space: nowrap;
}

.language-menu a:hover {
  color: var(--indigo);
  background: var(--surface-2);
  text-decoration: none;
}

.language-menu__disabled {
  opacity: 0.58;
}

.language-menu small {
  font-size: 0.72rem;
  font-weight: 700;
}

.nav-toggle {
  order: 3;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
    order: 3;
  }

  .theme-toggle {
    order: 1;
  }

  .language-switch {
    order: 2;
  }

  .nav-menu {
    position: absolute;
    left: 0;
    right: 0;
    top: var(--nav-h);
    flex-direction: column;
    align-items: stretch;
    gap: 0.4rem;
    padding: 1rem clamp(20px, 5vw, 40px) 1.4rem;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition:
      opacity 0.2s ease,
      transform 0.2s ease,
      visibility 0.2s;
  }

  .site-header.open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-menu a:not(.btn) {
    padding: 0.75rem 0.2rem;
    border-bottom: 1px solid var(--border);
  }

  .nav-menu .btn {
    margin-top: 0.5rem;
  }
}

/* ---- Hero / Mesh-Hintergrund ------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}

/* Statischer Mesh-Verlauf (Basis – gilt auf allen Seiten mit Hero). */
.mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  background-color: var(--bg);
  background-image:
    radial-gradient(at 12% 8%, var(--indigo-soft) 0, transparent 45%),
    radial-gradient(at 88% 0%, var(--koralle-soft) 0, transparent 42%),
    radial-gradient(at 75% 90%, var(--indigo-soft) 0, transparent 45%),
    radial-gradient(at 5% 95%, var(--koralle-soft) 0, transparent 40%);
}

/* Dezente Mesh-Variante, z. B. als Overlay im CTA-Band
   (ersetzt die früheren Inline-opacity-Styles). */
.mesh--soft {
  opacity: 0.18;
}

/* === Animiertes Nordlicht – Test nur auf der Startseite (.page-home) =========
   Ersetzt den statischen Mesh-Verlauf des Hero durch zwei grosse, weiche
   Farbfelder (Indigo + Koralle), die langsam und gegenlaeufig driften/drehen;
   blur() macht den Glow, inset negativ -> nie eine Kante sichtbar. Theme-Farben
   -> hell/dunkel automatisch. Gefaellt es, den Scope „.page-home " entfernen,
   dann gilt das Nordlicht auf allen Seiten mit Hero.
   Intensitaet: --aurora-opacity (0..1) · Tempo: die beiden Animationsdauern. */
.page-home .mesh {
  overflow: hidden;
  background-image: none; /* statischen Verlauf ausblenden, Aurora uebernimmt */
  --aurora-opacity: 0.5; /* Hero-/Default-Intensitaet */
}

.page-home .mesh::before,
.page-home .mesh::after {
  content: '';
  position: absolute;
  inset: -35%;
  opacity: var(--aurora-opacity);
  background-repeat: no-repeat;
  filter: blur(48px);
  will-change: transform;
  pointer-events: none;
}

.page-home .mesh::before {
  background-image:
    radial-gradient(38% 60% at 28% 32%, color-mix(in srgb, var(--indigo) 60%, transparent), transparent 62%),
    radial-gradient(42% 45% at 72% 18%, color-mix(in srgb, var(--koralle) 48%, transparent), transparent 60%),
    radial-gradient(46% 52% at 60% 82%, color-mix(in srgb, var(--indigo) 48%, transparent), transparent 64%);
  animation: aurora-drift-a 34s ease-in-out infinite alternate;
}

.page-home .mesh::after {
  background-image:
    radial-gradient(44% 50% at 82% 45%, color-mix(in srgb, var(--koralle) 42%, transparent), transparent 60%),
    radial-gradient(40% 48% at 14% 72%, color-mix(in srgb, var(--indigo) 52%, transparent), transparent 62%),
    radial-gradient(36% 40% at 45% 10%, color-mix(in srgb, var(--koralle) 38%, transparent), transparent 58%);
  animation: aurora-drift-b 44s ease-in-out infinite alternate;
}

@keyframes aurora-drift-a {
  0% {
    transform: translate3d(-3%, -2%, 0) rotate(-6deg) scale(1.05);
  }
  100% {
    transform: translate3d(4%, 3%, 0) rotate(7deg) scale(1.18);
  }
}

@keyframes aurora-drift-b {
  0% {
    transform: translate3d(3%, 1%, 0) rotate(5deg) scale(1.12);
  }
  100% {
    transform: translate3d(-4%, -3%, 0) rotate(-8deg) scale(1);
  }
}

/* Barrierefreiheit: keine Bewegung bei „reduzierte Bewegung" – die Felder
   bleiben als statisches Nordlicht stehen. */
@media (prefers-reduced-motion: reduce) {
  .page-home .mesh::before,
  .page-home .mesh::after {
    animation: none;
  }
}

/* Aurora auch im Vergleichs-Band testen: Nordlicht ueber dem (undurchsichtigen)
   Band-Hintergrund, Inhalt darueber. Nutzt denselben .mesh-Mechanismus wie der
   Hero – nur der z-Index liegt hier UEBER dem Band-Surface (statt -1), und die
   Mesh-Grundfarbe ist transparent, damit das Band-Surface sichtbar bleibt. */
.page-home .aurora-band {
  position: relative;
  overflow: hidden;
}

.page-home .aurora-band > .container {
  position: relative;
  z-index: 1; /* Inhalt ueber der Aurora */
}

.page-home .aurora-band .mesh {
  z-index: 0; /* ueber dem Band-Surface, unter dem Inhalt */
  background-color: transparent; /* Band-Surface bleibt sichtbar */
  --aurora-opacity: 0.4; /* Baender etwas dezenter als der Hero (0.5) */
}

.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

/* Etwas Luft zwischen Lead/Trust-Zeile und der Button-Reihe im Hero */
.hero .btn-row {
  margin-top: 1.6rem;
}

@media (min-width: 900px) {
  .hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
  }
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.2rem;
  margin-top: 1.4rem;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.center .trust-row {
  justify-content: center;
}

.trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.trust-row .icon {
  width: 1.1em;
  height: 1.1em;
  color: var(--indigo);
}

/* ---- Karten / Grids ----------------------------------------------------- */
.grid {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
}

.cols-2 {
  grid-template-columns: repeat(2, 1fr);
}

.cols-3 {
  grid-template-columns: repeat(3, 1fr);
}

.cols-4 {
  grid-template-columns: repeat(4, 1fr);
}

@media (max-width: 880px) {

  .cols-3,
  .cols-4 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 560px) {

  .cols-2,
  .cols-3,
  .cols-4 {
    grid-template-columns: 1fr;
  }
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: clamp(1.4rem, 3vw, 2rem);
  box-shadow: var(--shadow);
}

.card h3 {
  font-size: 1.2rem;
}

.card-hover {
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.card-hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Indigo-Karte: statt flaecher Fuellung ein Marken-Verlauf (oben-links leicht
   aufgehellt -> unten-rechts vertieft) plus zwei weiche Eck-Glows in der
   Mesh-Sprache der Marke (Weiss oben, Koralle unten). Die background-color-
   Zeile ist der Fallback ohne color-mix(); Weiss bleibt auf allen Verlaufs-
   Stationen >= 4,5:1 (AA), da nur 10-12 % gemischt werden. */
.card-indigo {
  background-color: var(--indigo-fill);
  background-image:
    radial-gradient(120% 90% at 88% -12%, rgba(255, 255, 255, 0.14), transparent 55%),
    radial-gradient(95% 85% at -12% 112%, color-mix(in srgb, var(--koralle) 22%, transparent), transparent 58%),
    linear-gradient(
      160deg,
      color-mix(in srgb, var(--indigo-fill) 90%, #fff) 0%,
      var(--indigo-fill) 48%,
      color-mix(in srgb, var(--indigo-fill) 86%, #0f0e17) 100%
    );
  color: #fff;
  border-color: transparent;
  border-color: color-mix(in srgb, #fff 18%, transparent);
  /* rgba-Zeile = Fallback fuer Browser ohne color-mix() */
  box-shadow: 0 16px 40px rgba(79, 70, 229, 0.28);
  box-shadow: 0 16px 40px color-mix(in srgb, var(--indigo-fill) 28%, transparent);
}

.card-indigo .muted,
.card-indigo p {
  color: rgba(255, 255, 255, 0.85);
}

/* === Box-Stil – Test nur auf der Startseite (.page-home) =====================
   Border-Radius bleibt unveraendert. Neu: Hintergrund = Indigo @ 30 % und eine
   Verlauf-Border (oben-links heller Glow -> rechts-unten zur Grundfarbe), wie in
   der Referenz. Technik: Fuellung = echtes Indigo @ 30 % (halbtransparent); den
   Border-Verlauf zeichnet ein ::before als 1px-Ring (Masken-Trick: Verlauf nur am
   Rand, Mitte ausgespart) – so scheint der Verlauf NICHT durch die transparente
   Fuellung. Alles aus --indigo abgeleitet -> hell/dunkel automatisch. Gefaellt es,
   .page-home an die anderen <body> setzen (oder Regel auf .card heben). Solides
   .card-indigo bleibt unveraendert. */
.page-home .card:not(.card-indigo) {
  position: relative;
  background: color-mix(in srgb, var(--indigo) 10%, transparent);
  /* Degradation ohne light-dark()-Support: normale Token-Kante statt
     Verlaufs-Ring; mit Support macht der @supports-Block darunter die
     Kante transparent (haelt Radius + Platz fuer den Ring). */
  border: 1px solid var(--border);

  /* Border-Verlauf – hier einstellbar:
     --edge-white      = Glow oben (Weiss-Anteil + Deckkraft, Standard 80 %)
     --edge-indigo     = Grundfarbe ab der Haelfte (Indigo + Deckkraft, Standard 30 %)
     --edge-visibility = globaler Sichtbarkeits-Regler der ganzen Border (0..1) */
  /* Eck-Highlight folgt dem Theme (light-dark() richtet sich nach color-scheme):
     Dark = heller Weiss-Glow (wie gehabt); Light = luminoeser Indigo-Schimmer,
     da Weiss auf hellem Grund unsichtbar waere. Basis-Kante im Light zarter.
     Die einfachen color-mix-Zeilen davor sind Fallbacks fuer Browser
     ohne light-dark(). */
  --edge-white: color-mix(in srgb, var(--indigo) 50%, white);
  --edge-indigo: color-mix(in srgb, var(--indigo) 25%, transparent);
  --edge-white: light-dark(
    color-mix(in srgb, var(--indigo) 50%, white),
    rgba(255, 255, 255, 0.8)
  );
  --edge-indigo: light-dark(
    color-mix(in srgb, var(--indigo) 22%, transparent),
    color-mix(in srgb, var(--indigo) 30%, transparent)
  );
  --edge-visibility: 1;
}

@supports (border-color: light-dark(red, blue)) {
  .page-home .card:not(.card-indigo) {
    border-color: transparent;
  }
}

.page-home .card:not(.card-indigo)::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  /* Ringdicke */
  opacity: var(--edge-visibility);
  /* oben Weiss 80 % -> bei 50 % Indigo 30 % -> bleibt bis zur Unterkante Indigo 30 % */
  background: linear-gradient(145deg,
      var(--edge-white) 0%,
      var(--edge-indigo) 35%);
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Bento */
.bento {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(3, 1fr);
}

.bento .span-2 {
  grid-column: span 2;
}

@media (max-width: 880px) {
  .bento {
    grid-template-columns: 1fr;
  }

  .bento .span-2 {
    grid-column: auto;
  }
}

/* ---- Schritte (How it works) ------------------------------------------- */
.steps {
  counter-reset: step;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: var(--radius-pill);
  background: var(--indigo-fill);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 1rem;
}

/* ---- Chips / Badges ----------------------------------------------------- */
.chip {
  display: inline-block;
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35em 0.8em;
  border-radius: var(--radius-pill);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

/* Navigations-Chips (Anker-Leisten als <nav class="chip-row">): groessere
   Touch-Ziele – Meta-Chips in Karten bleiben bewusst kompakt. */
nav.chip-row {
  gap: 0.6rem;
}

nav.chip-row .chip {
  font-size: 0.85rem;
  padding: 0.55em 1em;
  display: inline-flex;
  align-items: center;
}

/* ---- Preise ------------------------------------------------------------- */
.tiers {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  /* Vier Spalten erst, wenn wirklich Platz ist (Section nutzt .container--wide);
     darunter 2x2 statt gequetschter Schmalspalten – Tablet-Portraet inklusive. */
  grid-template-columns: repeat(4, 1fr);
  /* stretch statt start: CTAs landen dank .tier { height: 100% } +
     .tier .btn { margin-top: auto } buendig an der Unterkante */
  align-items: stretch;
}

@media (max-width: 1199px) {
  .tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .tiers {
    grid-template-columns: 1fr;
  }
}

.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.tier-featured {
  border-color: var(--indigo);
  box-shadow:
    0 0 0 2px var(--indigo),
    var(--shadow-lg);
}

.tier .price {
  font-size: 2.2rem;
  font-weight: 800;
  margin: 0.3rem 0 0.2rem;
  /* Preiszeilen ueber alle Karten hinweg auf gleicher Hoehe ausrichten */
  min-height: 3rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.tier .price small {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
}

.tier ul {
  list-style: none;
  padding: 0;
  margin: 1.2rem 0;
  display: grid;
  gap: 0.6rem;
}

.tier li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.tier li .icon {
  width: 1.2em;
  height: 1.2em;
  color: var(--indigo);
  margin-top: 0.15em;
}

.badge-featured {
  position: absolute;
  top: -0.8rem;
  left: 50%;
  transform: translateX(-50%);
  background: var(--koralle-700); /* Weiss darauf 6,39:1 im Light */
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3em 0.9em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

/* Dark: helle Koralle als Flaeche, dunkler Grund als Text (6,86:1) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']):not([data-theme='dark']) .badge-featured {
    background: var(--koralle);
    color: var(--bg);
  }
}

:root[data-theme='dark'] .badge-featured {
  background: var(--koralle);
  color: var(--bg);
}

.tier .btn {
  margin-top: auto;
}

/* ---- Abrechnungs-Umschalter (Monat/Jahr) ------------------------------- */
.seg {
  display: inline-flex;
  align-self: flex-start;
  gap: 0.25rem;
  margin: 0.9rem 0 0.4rem;
  padding: 0.3rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
}

.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.55em 1.05em;
  min-height: 2.25rem;
  cursor: pointer;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.seg-btn:hover {
  color: var(--text);
}

.seg-btn.is-active,
.seg-btn.is-active:hover {
  color: #fff;
  background: var(--indigo-fill);
  /* rgba-Zeile = Fallback fuer Browser ohne color-mix() */
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
  box-shadow: 0 6px 16px color-mix(in srgb, var(--indigo-fill) 30%, transparent);
}

.seg-tag {
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.22em 0.5em;
  border-radius: var(--radius-pill);
  background: var(--koralle-soft);
  color: var(--koralle-700);
  white-space: nowrap; /* „−20 %" darf in der Pille nicht umbrechen */
}

.seg-btn.is-active .seg-tag {
  background: rgba(255, 255, 255, 0.24);
  color: #fff;
}

/* ---- Paket-Auswahl (Select) -------------------------------------------- */
.field-label {
  display: block;
  margin: 0.9rem 0 0.4rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--muted);
}

.select-wrap {
  position: relative;
}

.select {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.72em 2.6em 0.72em 0.95em;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.select:hover {
  border-color: var(--indigo);
}

.select:focus-visible {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--ring);
}

.select-chevron {
  position: absolute;
  top: 50%;
  right: 0.85em;
  width: 1.2em;
  height: 1.2em;
  transform: translateY(-50%);
  color: var(--muted);
  stroke: currentColor;
  stroke-width: 2;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* ---- FAQ (nativ, ohne JS) ---------------------------------------------- */
.faq {
  display: grid;
  gap: 0.8rem;
  max-width: 760px;
  margin-inline: auto;
}

.faq details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0 1.2rem;
  box-shadow: var(--shadow);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 700;
  padding: 1.1rem 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--indigo);
  transition: transform 0.2s ease;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq details>p {
  margin-top: -0.2rem;
  padding-bottom: 1.2rem;
  color: var(--muted);
}

/* Sanftes Auf-/Zuklappen (nur Browser mit ::details-content +
   interpolate-size; alle anderen klappen wie bisher hart). */
.faq details::details-content {
  block-size: 0;
  opacity: 0;
  overflow: clip;
  transition:
    block-size 0.25s ease,
    opacity 0.25s ease,
    content-visibility 0.25s allow-discrete;
}

.faq details[open]::details-content {
  block-size: auto;
  opacity: 1;
}

/* FAQ-Suchfeld – gleiches Formfeld-Muster wie .select (ersetzt Inline-Styles) */
.faq-search {
  width: 100%;
  max-width: 420px;
  font: inherit;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 0.65em 1.1em;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.faq-search:hover {
  border-color: var(--indigo);
}

.faq-search:focus-visible {
  outline: none;
  border-color: var(--indigo);
  box-shadow: 0 0 0 3px var(--ring);
}

/* ---- CTA-Band ----------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  /* Eigener Stacking Context: das .mesh-Kind (z-index -1) liegt damit
     UEBER dem Indigo-Grund, aber unter dem Inhalt – vorher fiel es
     hinter das Band und war nie sichtbar. */
  isolation: isolate;
  background: var(--indigo-fill);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
}

/* Kein --bg-Schleier ueber dem Indigo: die Mesh-Grundfarbe (vom Basis-.mesh
   bzw. von .page-home .mesh geerbt) im CTA-Band transparent halten. */
.cta-band .mesh {
  background-color: transparent;
}

.cta-band h2 {
  color: #fff;
}

.cta-band p {
  color: rgba(255, 255, 255, 0.88);
}

/* Button-Reihe folgt dem zentrierten Band (text-align greift bei Flex nicht). */
.cta-band .btn-row {
  justify-content: center;
}

/* ---- Notiz / Hinweis-Box ------------------------------------------------ */
.note {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-left: 4px solid var(--indigo);
  border-radius: var(--radius-sm);
  padding: 1rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Prosa / Rechtstexte ------------------------------------------------ */
.prose {
  /* Lesebreite in Zeichen statt Pixel – skaliert mit der Schrift */
  max-width: 70ch;
  margin-inline: auto;
}

.prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

.prose h2 {
  font-size: 1.5rem;
  margin-top: 2.2rem;
}

.prose h3 {
  font-size: 1.2rem;
  margin-top: 1.6rem;
}

.prose ul,
.prose ol {
  padding-left: 1.3rem;
}

.prose li {
  margin: 0.35rem 0;
}

/* Tabellen-Grundstil – gilt in Prosa UND in .table-scroll-Karten (auch ohne
   .prose-Wrapper, damit Vergleichstabellen die volle Inhaltsbreite nutzen).
   Look: Zeilentrenner statt Vollraster, Kopfzeile als Kapitälchen-Band. */
.prose table,
.table-scroll table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.prose table {
  margin: 1rem 0;
}

.prose th,
.prose td,
.table-scroll th,
.table-scroll td {
  border: 0;
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0.9rem;
  text-align: left;
  vertical-align: top;
}

/* Erste/letzte Spalte mit etwas Luft zur gerundeten Kartenkante */
.prose th:first-child,
.prose td:first-child,
.table-scroll th:first-child,
.table-scroll td:first-child {
  padding-left: 1.1rem;
}

.prose th:last-child,
.prose td:last-child,
.table-scroll th:last-child,
.table-scroll td:last-child {
  padding-right: 1.1rem;
}

/* Kopfzeile: ruhiges Band im Eyebrow-Stil statt fetter Rasterzellen */
.prose thead th,
.table-scroll thead th {
  background: var(--surface-2);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em; /* Kapitälchen-Tracking einheitlich 0.06em */
  color: var(--muted);
  white-space: nowrap;
}

/* Zeilenköpfe (scope="row", z. B. Preis-Vergleich) bleiben normal gesetzt */
.prose tbody th,
.table-scroll tbody th {
  font-weight: 700;
}

/* Letzte Zeile ohne Trenner – schließt sauber mit der Kartenkante ab */
.prose tbody tr:last-child > th,
.prose tbody tr:last-child > td,
.table-scroll tbody tr:last-child > th,
.table-scroll tbody tr:last-child > td {
  border-bottom: 0;
}

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-block: clamp(2.5rem, 6vw, 4rem) 1.5rem;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 1.6fr repeat(3, 1fr);
}

@media (max-width: 760px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 460px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}

.footer-grid h4 {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.06em; /* Kapitälchen-Tracking einheitlich 0.06em */
  color: var(--indigo);
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.5rem;
}

.footer-grid a {
  color: var(--muted);
  font-size: 0.95rem;
}

.footer-grid a:hover {
  color: var(--indigo);
}

.footer-bottom {
  margin-top: 2.5rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  justify-content: space-between;
}

/* ---- Reveal-Animation (JS-gated => ohne JS sichtbar) ------------------- */
.js .reveal {
  opacity: 0;
  transform: translateY(18px);
  /* Marken-Kurve: schneller Start, weiches Ausrollen */
  transition:
    opacity 0.55s ease,
    transform 0.65s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.js .reveal.in {
  opacity: 1;
  transform: none;
}

.js .reveal[data-delay='1'] {
  transition-delay: 0.1s;
}

.js .reveal[data-delay='2'] {
  transition-delay: 0.2s;
}

.js .reveal[data-delay='3'] {
  transition-delay: 0.3s;
}

/* Mesh-/Hover-Bewegung respektiert Nutzerwunsch */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .js .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .card-hover:hover {
    transform: none;
  }

  .btn:active {
    transform: none;
  }

  .faq details::details-content {
    transition: none;
  }

  .faq summary::after,
  .toc summary::after {
    transition: none;
  }

  .to-top.show:hover,
  .to-top.show:active {
    transform: none;
  }
}

/* ---- Utilities ---------------------------------------------------------- */
.mt-0 {
  margin-top: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.stack>*+* {
  margin-top: 1rem;
}

.hide {
  display: none !important;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

/* Harte Zeilenumbrüche, die nur auf breiten Viewports gelten
   (z. B. der Hero-H1 auf der Preisseite) */
@media (max-width: 560px) {
  .br-wide {
    display: none;
  }
}

/* =========================================================================
   ---- Upgrade-Kit (additiv) ----
   Bausteine K1–K11 des Website-Upgrades. Alles ab hier ist strikt additiv:
   keine Regel oberhalb wird verändert. Farben NUR über Tokens -> Hell und
   Dunkel funktionieren automatisch. Animationen werden ausschließlich per
   JS angestoßen (zweite IIFE in site.js); ohne JS und unter
   prefers-reduced-motion steht sofort der Endzustand aus dem Markup.
   ========================================================================= */

/* ---- K1: Illu-Fundament – SVG-Flächen an Tokens binden ------------------ */
/* Eine Klasse je Material: Papier/Fläche/Linie/Chip/Badge/Markenfarben.
   Dadurch wechseln alle Illustrationen automatisch in den Dark-Mode. */
.illu {
  width: 100%;
  height: auto;
  /* SVGs clippen standardmäßig an der viewBox – würde die
     drop-shadows der .illu-float-Elemente hart abschneiden. */
  overflow: visible;
}

.illu .i-paper {
  fill: var(--surface);
  stroke: var(--border);
  stroke-width: 2;
}

.illu .i-soft {
  fill: var(--surface-2);
}

.illu .i-line {
  fill: var(--border);
}

.illu .i-chip {
  fill: var(--indigo-soft);
}

.illu .i-badge {
  fill: var(--koralle-soft);
}

.illu .i-indigo {
  fill: var(--indigo);
}

.illu .i-kor {
  fill: var(--koralle);
}

.illu-float {
  /* rgba-Zeile = Fallback fuer Browser ohne color-mix() */
  filter: drop-shadow(0 18px 26px rgba(79, 70, 229, 0.16));
  filter: drop-shadow(0 18px 26px color-mix(in srgb, var(--indigo-fill) 16%, transparent));
}

/* Linien-Zeichner [data-draw]: Dash-Werte werden NUR per JS gesetzt ->
   ohne JS und unter reduced-motion ist jede Linie sofort fertig gezeichnet. */

/* ---- K2: Zahlen-Zähler [data-count] + Preis-Bump .bump ------------------ */
[data-count] {
  font-variant-numeric: tabular-nums;
}

@keyframes pf-bump {
  50% {
    transform: scale(1.06);
  }
}

.js .bump {
  display: inline-block;
  animation: pf-bump 0.35s ease;
}

@media (prefers-reduced-motion: reduce) {
  .js .bump {
    animation: none;
  }
}

/* ---- K3: Stat-Band – große Ziffern mit Kapitälchen-Label ---------------- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  padding-block: clamp(1.4rem, 3vw, 2rem);
  border-block: 1px solid var(--border);
  border-block-color: color-mix(in srgb, var(--indigo) 22%, transparent);
}

.stat-band.stats-3 {
  grid-template-columns: repeat(3, 1fr);
}

.stat-num {
  display: block;
  font-size: clamp(2.1rem, 5.5vw, 3.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--indigo);
}

.stat-label {
  display: block;
  margin-top: 0.45rem;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

/* Erlaeuterungszeile unter dem Stat-Label (z. B. Sicherheitsseite) */
.stat small {
  display: block;
  margin-top: 0.4rem;
  font-size: 0.85rem;
  line-height: 1.45;
  max-width: 26ch;
}

@media (min-width: 721px) {
  .stat+.stat {
    border-left: 1px solid var(--border);
    border-left-color: color-mix(in srgb, var(--indigo) 22%, transparent);
    padding-left: 1.5rem;
  }
}

@media (max-width: 720px) {

  .stat-band,
  .stat-band.stats-3 {
    grid-template-columns: 1fr 1fr;
    gap: 1.2rem;
  }
}

@media (max-width: 400px) {

  .stat-band,
  .stat-band.stats-3 {
    grid-template-columns: 1fr;
  }
}

/* ---- K4: Statement-Band – ein großer Manifest-Satz ---------------------- */
.statement-band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.statement {
  font-size: clamp(1.7rem, 4.5vw, 2.7rem);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -0.02em;
  max-width: 24ch;
  margin: 0 0 0.7rem;
  text-wrap: balance;
}

.statement::before {
  content: '';
  display: block;
  width: 3.5rem;
  height: 4px;
  border-radius: 2px;
  background: var(--koralle);
  margin-bottom: 1.2rem;
}

.statement em {
  font-style: normal;
}

.statement-sub {
  max-width: 52ch;
  margin: 0;
}

/* ---- K5: Sektions-Rhythmus .band + Header-/Utility-Set ------------------ */
/* Streifen auf --surface; Karten/Notizen invertieren darin auf --bg.
   Regel: nie zwei .band direkt hintereinander (Muster bg -> band -> bg). */
.band {
  background: var(--surface);
  border-block: 1px solid var(--border);
}

.band .card {
  background: var(--bg);
  box-shadow: none;
}

.band .note {
  background: var(--bg);
}

/* Eyebrow-Variante + Ghost-Kapitelnummer */
.eyebrow-indigo {
  color: var(--indigo);
  background: var(--indigo-soft);
}

.kicker-num {
  display: block;
  font-size: clamp(3.2rem, 8vw, 5.5rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  color: var(--indigo-soft);
  margin-bottom: 0.3rem;
}

/* Status-Chips */
.chip-preview {
  background: var(--koralle-soft);
  border-color: transparent;
  color: var(--koralle-700);
}

.chip.is-active {
  background: var(--indigo-soft);
  border-color: transparent;
  color: var(--indigo-600); /* 6,32:1 Light / 5,35:1 Dark auf --indigo-soft */
}

/* Verlinkte Chips überall gleich interaktiv (ersetzt die frühere,
   auf .chip-row gescopte Hover-Regel) */
a.chip {
  position: relative;
  transition:
    color 0.15s ease,
    border-color 0.15s ease;
}

a.chip:hover {
  text-decoration: none;
  border-color: var(--indigo);
  color: var(--indigo);
}

/* Utilities (ersetzen Inline-Styles) */
.mt-1 {
  margin-top: 1rem;
}

.mt-2 {
  margin-top: 1.5rem;
}

.mt-3 {
  margin-top: 2.5rem;
}

.h-card {
  font-size: 1.5rem;
}

/* Kompakte Karten-Überschrift (ersetzt Inline-font-size 1.1rem) */
.h-card-sm {
  font-size: 1.1rem;
}

/* Breiter Lead für Sektions-Köpfe mit langen Sätzen */
.lead-wide {
  max-width: 48rem;
}

/* Ganze Karte als Link: Textfarbe neutral, Hover hebt die Überschrift hervor */
a.card-link {
  color: var(--text);
}

a.card-link:hover {
  text-decoration: none;
}

a.card-link:hover h3 {
  color: var(--indigo);
}

/* Zentrierte Chip-Reihe (ersetzt Inline-justify-content) */
.chip-row--center {
  justify-content: center;
}

/* Chip auf Indigo-Flächen (On-Dark-Helfer neben .icon-badge-on-dark) */
.chip-on-dark {
  background: rgba(255, 255, 255, 0.16);
  border-color: transparent;
  color: #fff;
}

/* Links auf Indigo-Karten: Weiß mit halbtransparenter Unterstreichung.
   Buttons ausgenommen – sonst schlägt die Regel .btn-light (weiße Fläche)
   und der Button-Text würde weiß auf weiß unsichtbar. */
.card-indigo a:not(.btn) {
  color: #fff;
  text-decoration-color: rgba(255, 255, 255, 0.5);
}

/* Kleine Illustration (z. B. Schritt-Illus der Startseite) */
.illu--sm {
  max-width: 140px;
}

/* Kompakt-Chip, z. B. „Vorschau" neben dem Preis */
.chip-sm {
  font-size: 0.7rem;
  vertical-align: middle;
}

/* Schwebender Hero-Badge („Eintrag gespeichert" auf der Startseite) */
.float-chip {
  position: absolute;
  left: 0;
  bottom: 14%;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: var(--surface);
  color: var(--text);
  transform: rotate(-2deg);
  box-shadow: var(--shadow);
}

.float-chip .icon {
  width: 1.05em;
  height: 1.05em;
  color: var(--indigo);
}

/* Fortschrittsbalken (Verlaufs-Signatur wie .scroll-progress-bar);
   die Füllbreite bleibt als Inline-width am Fill-Element ([data-grow]-Hook). */
.progress {
  height: 10px;
  background: var(--surface-2);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--indigo), var(--koralle));
}

/* Karten-Kopf: Icon-Badge links, dekorative Illu rechts */
.card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

/* Eyebrow + Status-Chip nebeneinander (z. B. Organisation-Hero) */
.pill-row {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pill-row > * {
  margin-bottom: 0;
}

/* Koralle-Schlusspunkt hinter dem letzten Wort (ersetzt die Inline-SVG-Punkte) */
.dot-accent {
  white-space: nowrap;
}

.dot-accent::after {
  content: '';
  display: inline-block;
  width: 0.18em;
  height: 0.18em;
  margin-left: 0.08em;
  border-radius: 50%;
  background: var(--koralle);
}

/* Hero-Visual-Spalte: Anker für schwebende Chips + mobile Deckelung */
.hero-visual {
  position: relative;
}

.hero-visual--legacy {
  display: none !important;
}

.ai-visual {
  position: relative;
  margin: 0;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--visual-border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  isolation: isolate;
}

.ai-visual::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--surface) 20%, transparent), transparent 36%),
    radial-gradient(circle at 82% 18%, var(--koralle-soft), transparent 32%),
    radial-gradient(circle at 18% 82%, var(--indigo-soft), transparent 34%);
  mix-blend-mode: soft-light;
}

.ai-visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-visual--hero {
  transform: none;
}

.ai-visual--hero img {
  object-position: 68% center;
}

.ai-visual--split {
  aspect-ratio: 3 / 2;
  max-width: 540px;
  margin-inline: auto;
}

.ai-visual--wide {
  max-width: 920px;
  margin-inline: auto;
}

.card-visual {
  margin-top: 1.2rem;
  box-shadow: var(--shadow);
}

.feature-split-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(1.2rem, 3vw, 2rem);
  align-items: center;
}

.feature-split-card .feature-split-visual {
  margin: 0;
}

@media (max-width: 720px) {
  .feature-split-card {
    grid-template-columns: 1fr;
  }
}

.ai-visual--dark {
  box-shadow: 0 30px 80px color-mix(in srgb, var(--text) 18%, transparent);
}

.ai-visual--captioned::before {
  content: '';
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  height: 40%;
  pointer-events: none;
  background: linear-gradient(
    to top,
    color-mix(in srgb, var(--visual-caption-surface) 92%, transparent),
    color-mix(in srgb, var(--visual-caption-surface) 58%, transparent) 50%,
    transparent
  );
}

.ai-visual__caption {
  position: absolute;
  inset-inline: clamp(0.9rem, 3vw, 1.35rem);
  bottom: clamp(0.8rem, 2.2vw, 1.1rem);
  z-index: 2;
  margin: 0;
  color: var(--indigo-fill);
  font-size: clamp(0.95rem, 1.8vw, 1.05rem);
  font-weight: 700;
  line-height: 1.35;
  text-align: center;
  text-wrap: balance;
}

.ai-visual__caption strong {
  color: inherit;
}

.ai-caption {
  margin-top: 0.9rem;
  text-align: center;
}

.page-visual {
  margin-top: 2rem;
}

.page-visual--compact {
  max-width: 680px;
}

.prose-visual {
  margin: 1.6rem 0 2.2rem;
}

.summary-visual {
  max-width: 720px;
}

.security-care-grid {
  align-items: stretch;
}

.security-share-visual {
  width: 100%;
  height: 100%;
  min-height: 100%;
  margin: 0;
  aspect-ratio: auto;
}

.security-share-visual img {
  object-fit: cover;
  object-position: center;
  transform: scale(1.035);
}

@media (max-width: 899px) {
  .hero-visual {
    max-width: 440px;
    margin-inline: auto;
  }

  .ai-visual--hero {
    transform: none;
  }
}

@media (min-width: 900px) {
  .ai-visual--hero {
    width: 100%;
    aspect-ratio: auto;
    height: clamp(340px, 30vw, 410px);
    align-self: center;
  }
}

@media (max-width: 560px) {
  .page-home .hero.section {
    padding-block: 34px 24px;
  }

  .page-home .hero-grid {
    gap: 1.35rem;
  }

  .page-home .hero .btn-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin-top: 1.15rem;
  }

  .page-home .hero .btn-lg {
    min-height: 3.25rem;
    padding: 0.85em 0.55em;
    font-size: 0.9rem;
    line-height: 1.12;
    text-align: center;
  }

  .page-home .trust-row {
    margin-top: 1rem;
    gap: 0.45rem 0.9rem;
    font-size: 0.88rem;
  }

  .page-visual {
    margin-top: 1.4rem;
  }
}

.icon-badge-on-dark {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.btn-ghost-inverse {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}

.btn-ghost-inverse:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-2px);
}

/* ---- K6: Editorial-Split mit Sticky-Kapitelkopf -------------------------- */
.split {
  display: grid;
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: start;
}

@media (min-width: 900px) {
  .split {
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  }

  .split-head {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }

  .split-rev .split-head {
    order: 2;
  }
}

/* ---- K7: Vergleichs-Layout .compare + Tabellen-Schutz -------------------- */
.compare {
  display: grid;
  gap: clamp(1rem, 2.5vw, 1.5rem);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
  align-items: stretch;
}

.compare-win {
  border-color: var(--indigo);
  box-shadow:
    0 0 0 2px var(--indigo),
    var(--shadow-lg);
}

/* Startseiten-Vergleich: gleiche Flaeche wie die Nachbarkarten, aber mit
   klarer Indigo-Kante als Gewinner-Markierung. */
.page-home .card.compare-win {
  border-color: var(--indigo);
  box-shadow:
    0 0 0 1px var(--indigo),
    var(--shadow);
}

.cmp-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
  display: grid;
  gap: 0.6rem;
}

.cmp-list li {
  display: flex;
  gap: 0.6rem;
  align-items: flex-start;
  font-size: 0.95rem;
}

.cmp-list .icon {
  width: 1.2em;
  height: 1.2em;
  margin-top: 0.15em;
}

.cmp-no .icon {
  color: var(--koralle-700); /* Kontrast: Light #ad3420, Dark #ff6b5e */
}

.cmp-yes .icon {
  color: var(--indigo);
}

/* Tabellen-Karte: nimmt die volle Inhaltsbreite ein und scrollt auf schmalen
   Screens horizontal statt zu quetschen. Runde Kanten clippen den Inhalt
   (overflow != visible), der Zellen-Look kommt vom Tabellen-Grundstil oben. */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.table-scroll table {
  min-width: 560px;
  margin: 0;
}

/* Im Prosa-Fluss (Rechtstexte) uebernimmt die Tabellen-Karte den Abstand,
   den vorher die Tabelle selbst hatte */
.prose .table-scroll {
  margin: 1rem 0;
}

/* Eigene Grundflaeche: haelt die Sticky-Erstspalte auch ausserhalb
   von .band konsistent (z. B. Anwendungsfaelle) */
.compare-table {
  background: var(--surface);
}

.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
}

/* Kopfzelle der Erstspalte im gleichen Ton wie die uebrigen Kopfzellen */
.compare-table thead th:first-child {
  background: var(--surface-2);
}

.compare-table .col-win {
  background: var(--indigo-soft);
}

/* ---- K8: Quorum-Ring .ring + Balkenfüllung [data-grow] ------------------- */
.ring-track {
  fill: none;
  stroke: var(--surface-2);
  stroke-width: 12;
}

.ring-arc {
  fill: none;
  stroke-width: 12;
  stroke-linecap: round;
}

.ring-num {
  fill: var(--text);
  font-weight: 800;
}

/* ---- K9: Prozess-Flow .steps-flow + Lizenz-Timeline .tl ------------------ */
/* (a) Verbinder zwischen den Schritt-Nummern (nur Desktop) */
.steps-flow {
  --flow-gap: clamp(1rem, 2.5vw, 1.5rem);
  gap: var(--flow-gap);
}

@media (min-width: 880px) {
  .steps-flow>* {
    position: relative;
  }

  .steps-flow>*:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 1.45rem;
    left: 3.8rem;
    right: calc(-1 * var(--flow-gap));
    border-top: 2px dashed var(--border);
  }

  .steps-flow .step-num {
    position: relative;
    z-index: 1;
  }
}

/* (b) Lizenz-Lebenszyklus (schematisch, NICHT maßstäblich –
   das aria-label am Wrapper trägt die Fristen) */
.tl-track {
  display: flex;
  height: 2.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.tl-seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.82rem;
  font-weight: 700;
  padding-inline: 0.6rem;
  white-space: nowrap;
}

.tl-main {
  flex: 4;
  background: var(--indigo-soft);
  color: var(--indigo);
}

.tl-grace {
  flex: 1.4;
  background: var(--koralle-soft);
  color: var(--koralle-700);
  border-left: 1px dashed var(--border);
}

.tl-end {
  flex: 0.9;
  background: var(--surface-2);
  color: var(--muted);
}

.tl-marks {
  display: flex;
  justify-content: space-between;
  margin-top: 0.45rem;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em; /* Kapitälchen-Tracking einheitlich 0.06em */
  color: var(--muted);
}

@media (max-width: 480px) {
  .tl-seg {
    font-size: 0.72rem;
  }
}

/* ---- K10: Lesefortschritt + Back-to-top (JS-gated) ------------------------ */
.scroll-progress {
  display: none;
}

.js .scroll-progress {
  display: block;
  position: fixed;
  top: var(--nav-h);
  left: 0;
  right: 0;
  height: 3px;
  z-index: 99;
  pointer-events: none;
}

.scroll-progress-bar {
  display: block;
  height: 100%;
  transform-origin: 0 50%;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--indigo), var(--koralle));
}

.to-top {
  display: none;
  position: fixed;
  right: clamp(16px, 4vw, 28px);
  bottom: clamp(16px, 4vw, 28px);
  width: 2.9rem;
  height: 2.9rem;
  border-radius: 14px;
  /* Squircle = Logo-Zitat */
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--indigo);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition:
    opacity 0.2s ease,
    transform 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 90;
}

.js .to-top {
  display: inline-flex;
}

.to-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}

/* Hover nur im eingeblendeten Zustand (sonst Kollision mit dem
   Einblend-Transform translateY(8px)) */
.to-top.show:hover {
  color: var(--indigo);
  border-color: var(--indigo);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.to-top.show:active {
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .to-top {
    transition: none;
  }
}

/* ---- K11: Rechtsseiten-Kit (Doc-Hub, TOC, Vorschau-Note, Platzhalter) ---- */
/* Doc-Hub: Pill-Leiste über dem h1 jeder Rechtsseite */
.doc-hub {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  row-gap: 0.65rem;
  margin-bottom: 1.5rem;
}

/* Unsichtbar vergroesserte Trefferflaeche der Doc-Hub-Chips (Touch-Ziel) */
.doc-hub a.chip::after {
  content: '';
  position: absolute;
  inset: -10px 0;
}

/* Stand-Chip (kein Link) optisch von den klickbaren Chips absetzen */
.doc-hub > span.chip {
  background: transparent;
  border-style: dashed;
}

/* Inhaltsverzeichnis (natives <details>, kein JS nötig) */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 1.2rem;
  margin: 1.5rem 0;
  font-size: 0.92rem;
}

.toc summary {
  cursor: pointer;
  font-weight: 700;
  padding: 0.7rem 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.toc summary::-webkit-details-marker {
  display: none;
}

/* Rotations-Marker wie im FAQ: + dreht sich zum × */
.toc summary::after {
  content: '+';
  float: none;
  color: var(--indigo);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
}

.toc details[open] summary::after {
  content: '+';
  transform: rotate(45deg);
}

.toc ol {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

/* Zweispalter als Spaltenfluss: die Nummerierung laeuft erst die linke,
   dann die rechte Spalte hinunter (statt zeilenweise zu springen) */
@media (min-width: 640px) {
  .toc ol {
    display: block;
    columns: 2;
    column-gap: 2rem;
  }

  .toc ol li {
    break-inside: avoid;
    margin-bottom: 0.35rem;
  }
}

/* Vorschau-Note: „noch nicht aktiv" optisch von geltendem Text trennen */
.note--preview {
  border-left-color: var(--koralle);
}

.note--preview::before {
  content: 'Vorschau – noch nicht aktiv';
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--koralle-700);
  background: var(--koralle-soft);
  padding: 0.25em 0.7em;
  border-radius: var(--radius-pill);
  margin-bottom: 0.5rem;
}

/* Bewusst offene Platzhalter ([Hosting-Anbieter …]) als „wird ergänzt" stylen */
.placeholder {
  display: inline-block;
  border: 1px dashed var(--border);
  background: var(--surface-2);
  color: var(--muted);
  border-radius: 6px;
  padding: 0 0.35em;
}

/* H1-Skala im Rechts-Cluster vereinheitlichen */
.prose>h1 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}

/* ---- Oeffentliche Ergebnis-Seite ---------------------------------------- */
.summary-hero {
  min-height: calc(100vh - var(--nav-h));
}

.summary-shell {
  display: grid;
  gap: 1.5rem;
}

.summary-panel {
  max-width: 48rem;
}

.summary-panel--warning {
  border-color: var(--koralle);
}

.summary-result {
  display: grid;
  gap: 1.5rem;
}

.summary-period {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--indigo);
  margin-bottom: 0.75rem;
}

.summary-status-dot {
  display: inline-block;
  width: 0.85rem;
  height: 0.85rem;
  border-radius: var(--radius-pill);
  background: var(--koralle);
  margin-bottom: 0.75rem;
  box-shadow: 0 0 0 6px var(--koralle-soft);
}

@media (min-width: 900px) {
  .summary-shell {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    align-items: start;
  }

  .summary-shell > :first-child {
    position: sticky;
    top: calc(var(--nav-h) + 2rem);
  }

  .summary-shell > :not(:first-child) {
    grid-column: 2;
  }
}
