/* =========================================================================
   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;
  --indigo: #4f46e5;
  --indigo-600: #4338ca;
  --indigo-soft: rgba(79, 70, 229, 0.1);
  --koralle: #ff6b5e;
  --koralle-700: #e1543f;
  --koralle-soft: rgba(255, 107, 94, 0.13);

  --bg: #f6f6fb;
  --surface: #ffffff;
  --surface-2: #f0f0f7;
  --text: #19172a;
  --muted: #585572;
  --border: #e6e5f1;

  --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: 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);
    --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;

    --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);
  --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;

  --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;
}
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);
}

/* Skip-Link (Barrierefreiheit) */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 200;
  background: var(--indigo);
  color: #fff;
  padding: 0.7em 1.2em;
  border-radius: 0 0 12px 0;
}
.skip-link:focus {
  left: 0;
}

/* ---- Layout-Helfer ------------------------------------------------------ */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 5vw, 40px);
}
.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;
}
.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: 1rem;
}
.h-display {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  font-weight: 800;
}
.h-section {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
}
.accent {
  color: var(--koralle);
}
.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: 12px;
  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;
}
.btn-primary {
  background: var(--indigo);
  color: #fff;
  box-shadow: 0 8px 22px rgba(79, 70, 229, 0.28);
}
.btn-primary:hover {
  background: var(--indigo-600);
  transform: translateY(-2px);
  box-shadow:
    0 0 0 4px var(--indigo-soft),
    0 12px 30px rgba(79, 70, 229, 0.38);
}
.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-600);
}
.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;
}
.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;
}
.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;
  background: none;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  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.4rem;
  height: 2.4rem;
  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;
}
.nav-menu {
  order: 1;
}
.nav-toggle {
  order: 3;
}

@media (max-width: 880px) {
  .nav-toggle {
    display: inline-flex;
    order: 2;
  }
  .theme-toggle {
    order: 1;
  }
  .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.6rem 0.2rem;
    border-bottom: 1px solid var(--border);
  }
  .nav-menu .btn {
    margin-top: 0.5rem;
  }
}

/* ---- Hero / Mesh-Hintergrund ------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
}
.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%);
}
.hero-grid {
  display: grid;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
@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;
}
.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);
}
.card-indigo {
  background: var(--indigo);
  color: #fff;
  border-color: transparent;
}
.card-indigo .muted,
.card-indigo p {
  color: rgba(255, 255, 255, 0.85);
}

/* 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);
  color: #fff;
  font-weight: 800;
  font-size: 1.2rem;
  margin-bottom: 0.9rem;
}

/* ---- 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;
}

/* ---- Preise ------------------------------------------------------------- */
.tiers {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(4, 1fr);
  align-items: start;
}
@media (max-width: 1000px) {
  .tiers {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 560px) {
  .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;
}
.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);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.3em 0.9em;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.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.25rem;
  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.45em 1.05em;
  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);
  box-shadow: 0 6px 16px rgba(79, 70, 229, 0.3);
}
.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);
}
.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: 12px;
  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);
}

/* ---- CTA-Band ----------------------------------------------------------- */
.cta-band {
  position: relative;
  overflow: hidden;
  background: var(--indigo);
  color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
}
.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: 12px;
  padding: 1rem 1.2rem;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ---- Prosa / Rechtstexte ------------------------------------------------ */
.prose {
  max-width: 760px;
  margin-inline: auto;
}
.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;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.95rem;
}
.prose th,
.prose td {
  border: 1px solid var(--border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  vertical-align: top;
}
.prose th {
  background: var(--surface-2);
}

/* ---- 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.05em;
  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);
  transition:
    opacity 0.7s ease,
    transform 0.7s ease;
}
.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;
  }
}

/* ---- 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;
}

/* =========================================================================
   ---- 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 {
  filter: drop-shadow(0 18px 26px rgba(79, 70, 229, 0.16));
}
/* 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);
}
.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);
}
@media (min-width: 721px) {
  .stat + .stat {
    border-left: 1px solid var(--border);
    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);
}
.chip-row 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;
}
.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);
}
.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);
}
.cmp-yes .icon {
  color: var(--indigo);
}
/* Tabellen ab 375 px: horizontal scrollen statt quetschen */
.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-scroll table {
  min-width: 560px;
}
.compare-table th:first-child,
.compare-table td:first-child {
  position: sticky;
  left: 0;
  background: var(--surface);
  z-index: 1;
}
.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.05em;
  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;
  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;
}
@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;
  margin-bottom: 1.5rem;
}
/* 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;
}
.toc summary::-webkit-details-marker {
  display: none;
}
.toc summary::after {
  content: '+';
  float: right;
  color: var(--indigo);
  font-size: 1.2rem;
}
.toc details[open] summary::after {
  content: '–';
}
.toc ol {
  list-style: none;
  margin: 0 0 0.8rem;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}
@media (min-width: 640px) {
  .toc ol {
    grid-template-columns: 1fr 1fr;
  }
}
/* 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);
}
