/* ==========================================================================
   IVORA – Website
   Zwei Stimmungen aus der echten App: Dark (Standard) und Sanft (warm).
   Beide Modi laufen über dieselben Tokens – der Umschalter oben rechts
   re-skinnt die ganze Seite (genau wie der Modus in der App).

   Motion-Regeln (nach Emil Kowalski):
   - nur transform/opacity animieren, nie width/height/top/left
   - Eintritte mit starkem ease-out, Bewegung auf dem Screen mit ease-in-out
   - UI-Animationen unter 300 ms; Marketing-Reveals dürfen länger sein
   - Hover nur bei echtem Zeiger, Druck-Feedback per scale(0.97)
   - Reduced Motion: weniger und sanfter, nicht null
   ========================================================================== */

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("assets/fonts/Inter-var.woff2") format("woff2");
}

/* ---------- Tokens: DARK (Standard) ---------- */
:root {
  --bg: #000000;
  --surface: #0c0c0d;
  --surface-2: #131315;
  --surface-3: #1a1a1d;

  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);

  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #7c7c82;                /* WCAG AA: >= 4.5:1 auf dem dunklen Grund */

  --live: #14c97b;                 /* Akzent = echtes App-Grün */
  --live-dim: rgba(20, 201, 123, 0.14);
  --live-soft: rgba(20, 201, 123, 0.45);
  --live-ring-strong: rgba(20, 201, 123, 0.45);
  --live-ring-0: rgba(20, 201, 123, 0);
  --warm: #b58d79;
  --carb: #38a9ff;

  /* Semantische Tokens (wechseln im Sanft-Modus) */
  --btn-bg: #f5f5f7;
  --btn-ink: #000000;
  --btn-bg-hover: #ffffff;
  --cta-icon-bg: rgba(0, 0, 0, 0.08);
  --cta-kicker: rgba(0, 0, 0, 0.55);
  --header-bg: rgba(0, 0, 0, 0);
  --header-bg-2: rgba(0, 0, 0, 0.72);
  --float-bg: rgba(12, 12, 13, 0.82);
  --footer-bg: #000000;
  --device-rim: #1c1c1f;
  --device-shadow: rgba(0, 0, 0, 0.6);
  --sel-bg: var(--live);
  --sel-ink: #000;
  --glow-1: rgba(20, 201, 123, 0.10);
  --glow-2: rgba(255, 255, 255, 0.05);
  --stage-bg: #0a0a0b;
  --stage-fade: rgba(0, 0, 0, 0.55);

  --max: 1120px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Motion-Tokens */
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --ease: var(--ease-out);          /* Alt-Alias für Unterseiten */
  --dur-press: 160ms;
  --dur-ui: 200ms;
  --dur-reveal: 600ms;
}

/* ---------- Tokens: SANFT ---------- */
:root[data-theme="soft"] {
  --bg: #f2eade;
  --surface: #fbf6ec;
  --surface-2: #f6ecdd;
  --surface-3: #ece0cd;

  --line: rgba(33, 26, 18, 0.10);
  --line-2: rgba(33, 26, 18, 0.18);

  --ink: #211a12;
  --ink-2: #665a4c;
  --ink-3: #756654;                /* WCAG AA: >= 4.5:1 auf dem hellen Grund */

  --live: #a86b3c;                 /* Karamell */
  --live-dim: rgba(168, 107, 60, 0.14);
  --live-soft: rgba(168, 107, 60, 0.45);
  --live-ring-strong: rgba(168, 107, 60, 0.5);
  --live-ring-0: rgba(168, 107, 60, 0);
  --warm: #b23a2c;                 /* Terracotta */
  --carb: #076635;                 /* Salbeigrün */

  --btn-bg: #211a12;
  --btn-ink: #fbf6ec;
  --btn-bg-hover: #2e2418;
  --cta-icon-bg: rgba(255, 251, 243, 0.16);
  --cta-kicker: rgba(255, 251, 243, 0.6);
  --header-bg: rgba(242, 234, 222, 0);
  --header-bg-2: rgba(242, 234, 222, 0.8);
  --float-bg: rgba(255, 251, 243, 0.86);
  --footer-bg: #f2eade;
  --device-rim: #e3d4bd;
  --device-shadow: rgba(86, 60, 30, 0.25);
  --sel-bg: var(--live);
  --sel-ink: #fffbf3;
  --glow-1: rgba(168, 107, 60, 0.14);
  --glow-2: rgba(176, 58, 44, 0.06);
  --stage-bg: #ebe2d3;
  --stage-fade: rgba(242, 234, 222, 0.6);
}

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

html {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
  overflow-x: clip;
  /* Theme-Wechsel ist selten: sanft überblenden, kein harter Helligkeitssprung */
  transition: background-color 240ms ease, color 240ms ease;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
button { font: inherit; color: inherit; }
b, strong { font-weight: 600; }

::selection { background: var(--sel-bg); color: var(--sel-ink); }

/* ---------- Typografie ----------
   Tracking ist größenabhängig: große Headlines eng, Fließtext bei 0,
   Kleintext leicht positiv. */
h1 {
  font-size: clamp(40px, 6.4vw, 76px);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.035em;
  text-wrap: balance;
}
h1 .dot { color: inherit; }
h2 {
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.028em;
  text-wrap: balance;
}
h3 { font-size: 17px; font-weight: 600; line-height: 1.3; letter-spacing: -0.012em; }
.num { font-weight: 300; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.eyebrow {
  margin: 0 0 14px;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.live-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--live);
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  transform: translateY(-160%);
  transition: transform var(--dur-ui) var(--ease-out);
}
.skip-link:focus { transform: translateY(0); }

:focus-visible {
  outline: 2px solid var(--live);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ==========================================================================
   Header – transluzente Ebene, Inhalt scrollt darunter durch.
   Statt 1px-Linie: weicher Verlauf an der Unterkante, sobald gescrollt wird.
   ========================================================================== */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: var(--header-bg);
  transition: background-color var(--dur-ui) ease;
}
.site-header.is-open { background: var(--header-bg-2); }
.site-header.is-open::before { opacity: 1; }
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1; /* unter dem Header-Inhalt, über dem Seiteninhalt (Header ist eigener Stacking-Context) */
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  mask-image: linear-gradient(to bottom, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
  opacity: 0;
  transition: opacity var(--dur-ui) ease;
}
.site-header.is-scrolled { background: var(--header-bg-2); }
.site-header.is-scrolled::before { opacity: 1; }

.nav-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  width: min(100% - 40px, var(--max));
  min-height: 64px;
  margin: 0 auto;
}

/* Wortmarke: das gezeichnete Lockup aus der App, IV-Zeichen plus O, R und A
   als eine Kontur. Sie erbt die Textfarbe (fill: currentColor), also sitzt
   dieselbe Datei in Dark und in Sanft richtig. Seitenverhaeltnis 3,074:1. */
.brand-lockup {
  display: inline-flex;
  align-items: center;
  color: var(--ink);
}
.brand-mark {
  display: block;
  height: 20px;
  width: auto;
  overflow: visible;
}
.footer-brand .brand-mark { height: 18px; }
@media (max-width: 760px) {
  .brand-mark { height: 18px; }
}

.nav-links {
  display: flex;
  gap: 4px;
  margin-left: 8px;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a {
  padding: 6px 10px;
  border-radius: 8px;
  transition: color 120ms ease, background-color 120ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .nav-links a:hover { color: var(--ink); background: var(--line); }
}

.nav-end { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }

.nav-menu {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 120ms ease, transform var(--dur-press) var(--ease-out);
}
.nav-menu:active { transform: scale(0.97); }
.nav-menu-ic { position: relative; width: 16px; height: 10px; }
.nav-menu-ic::before, .nav-menu-ic::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  transition: transform var(--dur-ui) var(--ease-out);
}
.nav-menu-ic::before { top: 0; }
.nav-menu-ic::after { bottom: 0; }
.nav-menu[aria-expanded="true"] .nav-menu-ic::before { transform: translateY(4.25px) rotate(45deg); }
.nav-menu[aria-expanded="true"] .nav-menu-ic::after { transform: translateY(-4.25px) rotate(-45deg); }

/* ---------- Theme toggle ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: color 120ms ease, border-color 120ms ease, transform var(--dur-press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .theme-toggle:hover { color: var(--ink); border-color: var(--ink-3); }
}
.theme-toggle:active { transform: scale(0.97); }
.tt-ic { display: inline-flex; }
.tt-dark { display: none; }
.tt-soft { display: inline-flex; }
:root[data-theme="soft"] .tt-soft { display: none; }
:root[data-theme="soft"] .tt-dark { display: inline-flex; }
.tt-label { line-height: 1; }

/* ==========================================================================
   Buttons – Druck-Feedback auf jedem drückbaren Element
   ========================================================================== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background-color 120ms ease, transform var(--dur-press) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cta-primary:hover { background: var(--btn-bg-hover); }
}
.cta-primary:active { transform: scale(0.97); }

.nav-cta { min-height: 36px; padding: 0 16px; font-size: 13.5px; }

.cta-icon { display: none; }
.cta-text { display: contents; }
.cta-kicker { display: none; }
.cta-text strong { font-weight: 600; }
.is-disabled-download { cursor: default; }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  padding: 0 6px;
  color: var(--ink-2);
  font-size: 15px;
  font-weight: 500;
  transition: color 120ms ease, transform var(--dur-press) var(--ease-out);
}
.cta-ghost::after {
  content: "→";
  transition: transform var(--dur-ui) var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .cta-ghost:hover { color: var(--ink); }
  .cta-ghost:hover::after { transform: translateX(3px); }
}
.cta-ghost:active { transform: scale(0.97); }

.link-btn {
  padding: 8px 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color 120ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .link-btn:hover { text-decoration-color: var(--ink); }
}

/* ==========================================================================
   Hero (Startseite: zentriert, Telefon darunter. Unterseiten: zweispaltig)
   ========================================================================== */
.hero-section {
  position: relative;
  display: grid;
  min-height: min(820px, 100svh);
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 5vw, 64px);
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 140px 0 72px;
}
.hero-glow { display: none; }
.hero-copy { display: grid; gap: 22px; justify-items: start; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-2);
  font-size: 13.5px;
  font-weight: 500;
}

.hero-body {
  max-width: 54ch;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
  text-wrap: pretty;
}
.hero-body a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color 120ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .hero-body a:hover { text-decoration-color: var(--ink); }
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-top: 4px; }
.hero-note { color: var(--ink-3); font-size: 13.5px; }

.hero-visual { min-width: 0; }
.phone-scene { position: relative; display: grid; place-items: center; padding: 24px 8px; }

.float-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border: 1px solid var(--line-2);
  border-radius: 14px;
  background: var(--float-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 18px 44px -12px var(--device-shadow);
  /* Marketing-Hero, wird selten gesehen: langsames, kleines Schweben ist erlaubt */
  animation: floatY 6s ease-in-out infinite;
  animation-delay: var(--fd, 0s);
}
.float-card strong { display: block; font-size: 13px; font-weight: 600; letter-spacing: -0.01em; }
.float-card small { display: block; margin-top: 1px; color: var(--ink-2); font-size: 12px; }
.float-ic {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  color: var(--ink);
}
.float-ic svg { width: 15px; height: 15px; }
.float-ic.live { color: var(--live); }
.float-card-a { top: 4%; right: max(-16px, calc(50% - 250px)); }
.float-card-b { top: 44%; left: max(-14px, calc(50% - 270px)); }
.float-card-c { bottom: 9%; right: max(-8px, calc(50% - 246px)); }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

/* --- Startseiten-Variante --- */
.hero-home h1 { max-width: 12ch; }

/* Erst-Eindruck: einmaliger, gestaffelter Eintritt. Läuft als CSS-Animation
   (off-main-thread), damit der Seitenstart ihn nicht ruckeln lässt. */
.hero-home .hero-copy > * {
  opacity: 0;
  transform: translateY(10px);
  animation: riseIn 700ms var(--ease-out) forwards;
}
.hero-home .hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-home .hero-copy > :nth-child(3) { animation-delay: 120ms; }
.hero-home .hero-copy > :nth-child(4) { animation-delay: 180ms; }
.hero-home .hero-copy > :nth-child(5) { animation-delay: 240ms; }
.hero-home .hero-visual {
  opacity: 0;
  transform: translateY(16px);
  animation: riseIn 900ms var(--ease-out) 200ms forwards;
}
@keyframes riseIn { to { opacity: 1; transform: translateY(0); } }


/* ==========================================================================
   Device (echte App-Screenshots im Rahmen)
   ========================================================================== */
.device {
  position: relative;
  width: min(78vw, 296px);
  aspect-ratio: 390 / 844;
  border-radius: 44px;
  border: 1px solid var(--line-2);
  background: var(--bg);
  overflow: hidden;
  box-shadow:
    0 0 0 8px var(--device-rim),
    0 0 0 9px var(--line),
    0 30px 80px -20px var(--device-shadow);
}
.device img { width: 100%; height: 100%; object-fit: cover; }
.device-lg { width: min(84vw, 330px); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: clamp(72px, 9vw, 128px) 0;
}
.section + .section { padding-top: 0; }
.hero-home + .section { padding-top: 8px; }

.section-heading { display: grid; gap: 16px; max-width: 640px; }
.section-heading .eyebrow { margin: 0; }
.section-centered .section-heading { margin: 0 auto; text-align: center; justify-items: center; }
.section-heading p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
  text-wrap: pretty;
}

/* ---------- Bausteine-Übersicht ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.pillars li { display: grid; align-content: start; gap: 8px; padding: 28px 24px 0 0; border-top: 1px solid transparent; }
.pillars a { display: grid; gap: 8px; }
.pillars .pillar-n { color: var(--ink-3); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.pillars strong { font-size: 17px; font-weight: 600; letter-spacing: -0.012em; }
.pillars p { color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }

/* ---------- Feature-Sections ---------- */
.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 46%);
  align-items: center;
  gap: clamp(32px, 6vw, 88px);
}
.feature-section-flipped { grid-template-columns: minmax(300px, 46%) minmax(0, 1fr); }
.feature-section-flipped .feature-copy { grid-column: 2; }
.feature-section-flipped .feature-visual { grid-column: 1; grid-row: 1; }

.feature-copy { display: grid; gap: 18px; max-width: 520px; }
.feature-copy > p { color: var(--ink-2); font-size: 17px; line-height: 1.55; text-wrap: pretty; }
.feature-copy p a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line-2);
  transition: text-decoration-color 120ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .feature-copy p a:hover { text-decoration-color: var(--ink); }
}

.feature-list {
  display: grid;
  gap: 0;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.feature-list li {
  display: grid;
  grid-template-columns: minmax(120px, 0.38fr) 1fr;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.5;
}
.feature-list b { color: var(--ink); font-weight: 600; }
.li-dot { display: none; }

/* Bühne: Screenshot in ruhiger Fläche, unten angeschnitten */
.feature-visual { display: grid; place-items: center; min-width: 0; }
.stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  padding: 16px 0;
}
.stage .device { width: min(78vw, 300px); }

/* ---------- Mini-Steps (echte Sequenz) ---------- */
.mini-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  margin: 4px 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
}
.mini-steps li { display: inline-flex; align-items: center; gap: 8px; }
.mini-steps span { color: var(--ink-3); font-size: 12px; font-variant-numeric: tabular-nums; }

.sci-badge { display: none; }
.section-flagship h2 { font-size: clamp(30px, 4vw, 48px); }
.flagship-glow { display: none; }

/* ==========================================================================
   Verlauf – Lern-Chart (schematisch, so gekennzeichnet)
   ========================================================================== */
.learn-card {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 8px 0 0;
  padding: 20px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.learn-head { display: grid; gap: 2px; }
.learn-head > span:first-child { color: var(--ink-3); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.learn-head strong { font-size: 34px; line-height: 1.05; }
.learn-head strong small { font-size: 15px; color: var(--ink-2); font-weight: 400; }
.learn-band-note { color: var(--ink-3); font-size: 12.5px; }

.learn-chart { width: 100%; height: auto; margin-top: 4px; display: block; }
.lc-grid line { stroke: var(--line); stroke-width: 1; }
.lc-band { fill: var(--live-dim); stroke: none; }
.lc-est { fill: none; stroke: var(--live); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.lc-dot { fill: var(--live); }

.js .reveal .lc-est { stroke-dasharray: 560; stroke-dashoffset: 560; }
.js .reveal.is-visible .lc-est { animation: drawLine 1100ms var(--ease-in-out) 200ms forwards; }
.js .reveal .lc-dot { opacity: 0; }
.js .reveal.is-visible .lc-dot { animation: fadeOnly 240ms ease 1250ms forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes fadeOnly { to { opacity: 1; } }

.learn-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.lg { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--ink-2); font-weight: 500; }
.lg::before { content: ""; width: 14px; height: 2px; border-radius: 2px; }
.lg-est::before { background: var(--live); }
.lg-band::before { background: var(--live-dim); height: 10px; border-radius: 3px; }

.learn-x { display: flex; justify-content: space-between; color: var(--ink-3); font-size: 12px; }
.learn-note { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }

/* ==========================================================================
   Coach-Vorschlag zum Anfassen (Signatur): du bestätigst, sonst passiert nichts
   ========================================================================== */
.proposal {
  display: grid;
  gap: 14px;
  margin-top: 8px;
  padding: 18px 20px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.proposal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-3);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.proposal-tag { padding: 3px 8px; border: 1px solid var(--line); border-radius: 999px; font-size: 11px; letter-spacing: 0.06em; }
.proposal-body, .proposal-result { display: grid; gap: 14px; transition: opacity var(--dur-ui) var(--ease-out), filter var(--dur-ui) var(--ease-out); }
.proposal-body.is-leaving { opacity: 0; filter: blur(2px); }
.proposal-body[hidden], .proposal-result[hidden] { display: none; }
.proposal-result { opacity: 1; }
.proposal-result.is-entering { opacity: 0; filter: blur(2px); }
.proposal-text { color: var(--ink-2); font-size: 15px; line-height: 1.55; text-wrap: pretty; }
.proposal-change { display: grid; gap: 4px; }
.proposal-label { color: var(--ink-3); font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; }
.proposal-nums { display: inline-flex; align-items: baseline; gap: 10px; font-size: 30px; line-height: 1; }
.proposal-nums .num { font-weight: 300; }
.proposal-nums .num:last-of-type { font-weight: 500; color: var(--ink); }
.proposal-nums .num:first-of-type { color: var(--ink-3); }
.proposal-arrow { color: var(--ink-3); font-size: 20px; }
.proposal-nums small { color: var(--ink-2); font-size: 13px; margin-left: 2px; }
.proposal-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.proposal-btn {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease, transform var(--dur-press) var(--ease-out);
}
.proposal-btn-primary { border-color: transparent; background: var(--btn-bg); color: var(--btn-ink); }
@media (hover: hover) and (pointer: fine) {
  .proposal-btn:hover { border-color: var(--ink-3); }
  .proposal-btn-primary:hover { background: var(--btn-bg-hover); border-color: transparent; }
}
.proposal-btn:active { transform: scale(0.97); }
.proposal-result p { font-size: 15px; line-height: 1.55; }
.proposal-result p b { color: var(--live); }
.proposal-result .link-btn { justify-self: start; font-size: 13.5px; color: var(--ink-2); }
.proposal-note { color: var(--ink-3); font-size: 12.5px; line-height: 1.5; }

/* ==========================================================================
   Modi (Dark / Sanft)
   ========================================================================== */
.modes-stage {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 56px);
}
.modes-phone {
  display: grid;
  gap: 18px;
  justify-items: center;
  margin: 0;
  padding: 32px 20px 36px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--stage-bg);
  overflow: hidden;
}
.modes-phone.is-soft { background: #f2eade; border-color: rgba(33, 26, 18, 0.1); }
.modes-phone.is-dark { background: #050506; border-color: rgba(255, 255, 255, 0.08); }
.modes-phone .device {
  width: min(56vw, 240px);
  box-shadow: 0 0 0 8px var(--device-rim), 0 0 0 9px var(--line);
}
.modes-phone.is-soft .device { --device-rim: #e3d4bd; --line: rgba(33, 26, 18, 0.1); --line-2: rgba(33, 26, 18, 0.18); }
.modes-phone.is-dark .device { --device-rim: #1c1c1f; --line: rgba(255, 255, 255, 0.08); --line-2: rgba(255, 255, 255, 0.14); }
.modes-phone figcaption { order: -1; font-size: 13.5px; font-weight: 600; }
.modes-phone.is-soft figcaption { color: #211a12; }
.modes-phone.is-dark figcaption { color: #f5f5f7; }
.modes-hint { margin-top: 20px; color: var(--ink-2); font-size: 14.5px; text-align: center; }

/* ==========================================================================
   Grundsätze
   ========================================================================== */
.principles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: clamp(36px, 5vw, 56px) 0 0;
  padding: 28px 0 0;
  list-style: none;
  border-top: 1px solid var(--line);
}
.principles li { display: grid; gap: 8px; max-width: 34ch; }
.principles p { color: var(--ink-2); font-size: 15px; line-height: 1.55; }

/* ==========================================================================
   FAQ – nur Haarlinien, kein Kartenstapel
   ========================================================================== */
.section-faq { max-width: 760px; }
.faq-list { display: grid; margin-top: clamp(28px, 4vw, 44px); border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  cursor: pointer;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-marker { position: relative; flex: 0 0 20px; width: 20px; height: 20px; color: var(--ink-3); }
.faq-marker::before, .faq-marker::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1.5px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform var(--dur-ui) var(--ease-out);
}
.faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-marker::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 40px 22px 0; }
.faq-item[open] .faq-body { animation: fadeOnly 200ms var(--ease-out) both; }
.faq-body p { color: var(--ink-2); font-size: 15.5px; line-height: 1.6; max-width: 64ch; }
.faq-body a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta-section { width: min(100% - 40px, var(--max)); margin: 0 auto; padding: 0 0 clamp(72px, 9vw, 128px); }
.final-cta {
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: clamp(48px, 7vw, 88px) 24px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.final-glow { display: none; }
.final-cta img { display: none; }
.final-cta h2 { max-width: 16ch; }
.final-cta > p { max-width: 44ch; color: var(--ink-2); font-size: 17px; line-height: 1.55; }
.final-cta .cta-primary { margin-top: 6px; }
.availability-note { color: var(--ink-3); font-size: 13.5px !important; }
.availability-note a { color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
  padding: 40px 0 36px;
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
}
.footer-brand { margin-bottom: 14px; }
.footer-about p { max-width: 400px; color: var(--ink-3); font-size: 13.5px; line-height: 1.6; }
.footer-col { display: grid; gap: 8px; align-content: start; color: var(--ink-2); font-size: 14px; }
.footer-col strong { margin-bottom: 4px; color: var(--ink); font-size: 13px; font-weight: 600; }
.footer-col a { width: fit-content; transition: color 120ms ease; }
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover { color: var(--ink); }
}
.footer-meta { margin-top: 36px; color: var(--ink-3); font-size: 13px; }

/* ==========================================================================
   Mobile Sticky CTA
   ========================================================================== */
.mobile-sticky-cta {
  position: fixed;
  inset: auto 16px calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 40;
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity var(--dur-ui) var(--ease-out), transform var(--dur-ui) var(--ease-out);
}
.mobile-sticky-cta.is-visible { opacity: 1; pointer-events: auto; transform: translateY(0); }
.mobile-sticky-cta a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-weight: 600;
  box-shadow: 0 12px 32px -8px var(--device-shadow);
  transition: transform var(--dur-press) var(--ease-out);
}
.mobile-sticky-cta a:active { transform: scale(0.97); }

/* ==========================================================================
   Reveals – einmalig, kurz, nur transform/opacity. Gruppen leicht gestaffelt.
   ========================================================================== */
.reveal { transition: opacity var(--dur-reveal) var(--ease-out), transform var(--dur-reveal) var(--ease-out); }
.js .reveal { opacity: 0; transform: translateY(14px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.js .reveal-group > * { opacity: 0; transform: translateY(12px); transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out); }
.js .reveal-group.is-visible > * { opacity: 1; transform: translateY(0); }
.js .reveal-group.is-visible > :nth-child(2) { transition-delay: 50ms; }
.js .reveal-group.is-visible > :nth-child(3) { transition-delay: 100ms; }
.js .reveal-group.is-visible > :nth-child(4) { transition-delay: 150ms; }

/* ==========================================================================
   Legal-/Support-Seiten
   ========================================================================== */
.legal-body { background: var(--bg); }
.legal-main { width: min(100%, 860px); margin: 0 auto; padding: 150px clamp(18px, 4vw, 32px) 100px; }
.legal-hero { display: grid; gap: 16px; margin-bottom: 38px; }
.legal-hero h1 { font-size: clamp(36px, 6vw, 56px); line-height: 1.03; letter-spacing: -0.03em; }
.legal-hero > p { color: var(--ink-2); font-size: 16.5px; line-height: 1.6; max-width: 62ch; }
.legal-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.legal-button {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 46px; padding: 0 20px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 650; font-size: 14px;
  transition: transform 160ms ease, opacity 160ms ease;
}
.legal-button:hover { transform: translateY(-1px); opacity: 0.92; }
.legal-button-secondary { border: 1px solid var(--line-2); background: transparent; color: var(--ink); }
.legal-content { display: grid; gap: 14px; }
.legal-section {
  display: grid; gap: 13px;
  padding: 26px 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
}
.legal-section h2 { font-size: 20px; line-height: 1.25; font-weight: 720; letter-spacing: -0.01em; }
.legal-section h3 { margin-top: 6px; font-size: 15.5px; font-weight: 650; }
.legal-section p, .legal-section li { color: var(--ink-2); font-size: 15px; line-height: 1.65; }
.legal-section ul { margin: 0; padding-left: 20px; display: grid; gap: 7px; }
.legal-section a { color: var(--live); font-weight: 600; }
.legal-section a:hover { text-decoration: underline; }
.legal-placeholder {
  border: 1px dashed var(--line-2); border-radius: 12px;
  background: var(--surface-2);
  padding: 14px 16px; color: var(--ink) !important;
  font-weight: 550; font-size: 14px !important;
}
.support-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.support-card {
  display: grid; gap: 12px; align-content: start;
  padding: 26px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); transition: border-color 200ms ease;
}
.support-card:hover { border-color: var(--line-2); }
.support-card h2 { font-size: 20px; line-height: 1.2; }
.support-card p { color: var(--ink-2); font-size: 15px; line-height: 1.6; }
.support-card a:not(.legal-button) { color: var(--live); font-weight: 600; }
.support-card-wide { grid-column: 1 / -1; }
.support-meta {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
}
.support-meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.support-form-card {
  display: grid; grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 30px;
  margin-bottom: 28px; padding: 28px;
  border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface);
}
.support-form-intro { display: grid; align-content: start; gap: 12px; }
.support-form-intro h2 { font-size: 26px; line-height: 1.15; letter-spacing: -0.02em; }
.support-form-intro > p:last-child { color: var(--ink-2); font-size: 14.5px; line-height: 1.6; }
.support-form, .support-form-view { display: grid; gap: 16px; min-width: 0; }
.support-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.support-field { display: grid; gap: 7px; min-width: 0; }
.support-field label { color: var(--ink); font-size: 13px; font-weight: 650; }
.support-field label span { color: var(--ink-3); font-weight: 500; }
.support-field :is(input, select, textarea) {
  width: 100%; min-width: 0;
  border: 1px solid var(--line-2); border-radius: 12px;
  background: var(--surface-2); color: var(--ink);
  font: inherit; font-size: 15px;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}
.support-field input, .support-field select { min-height: 48px; padding: 0 14px; }
.support-field textarea { resize: vertical; min-height: 150px; padding: 13px 14px; line-height: 1.55; }
.support-field textarea::placeholder { color: var(--ink-3); }
.support-field :is(input, select, textarea):focus-visible {
  outline: none; border-color: var(--live); background: var(--surface);
  box-shadow: 0 0 0 3px var(--live-dim);
}
.support-consent {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink-2); font-size: 12.5px; line-height: 1.5; cursor: pointer;
}
.support-consent input {
  width: 16px; height: 16px; flex: 0 0 16px; margin: 1px 0 0;
  accent-color: var(--live); cursor: pointer;
}
.support-consent a { color: var(--live); font-weight: 600; }
.support-consent a:hover { text-decoration: underline; }
.support-submit { justify-self: start; border: 0; cursor: pointer; }
.support-submit:disabled { opacity: 0.55; cursor: default; transform: none; }
.support-turnstile { min-height: 65px; }
.support-status { color: var(--ink-2); font-size: 13.5px; font-weight: 600; line-height: 1.5; }
.support-status.is-error { color: var(--wl-danger); }
.support-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.support-success { align-content: center; justify-items: start; gap: 10px; min-height: 260px; }
.support-success-mark {
  display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  border: 1px solid var(--live-soft); background: var(--live-dim); color: var(--live);
  font-size: 24px; font-weight: 750;
}
.support-success h3 { font-size: 22px; letter-spacing: -0.02em; }
.support-success p { color: var(--ink-2); font-size: 14.5px; line-height: 1.55; }
.support-again {
  padding: 0; border: 0; border-bottom: 1px solid var(--live-soft);
  background: transparent; color: var(--live); font: inherit; font-size: 13px; font-weight: 650;
  cursor: pointer;
}


/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 980px) {
  .nav-menu { display: inline-flex; }
  .nav-links { display: none; }
  .site-header.is-open .nav-shell { position: static; } /* Panel bezieht sich auf den Header, volle Breite */
  .site-header.is-open .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 6px 16px 14px;
    border-bottom: 1px solid var(--line);
    background: var(--bg);
    font-size: 17px;
    /* Menü wird oft benutzt: kein Eintritts-Effekt, sofort da */
  }
  .site-header.is-open .nav-links a { min-height: 48px; display: flex; align-items: center; padding: 0 12px; border-radius: 10px; color: var(--ink); }
  .site-header.is-open .nav-links a:active { background: var(--line); }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    padding-top: 120px;
    padding-bottom: 48px;
  }
  .hero-copy { max-width: 680px; }

  .pillars { grid-template-columns: 1fr 1fr; }
  .pillars li { padding-right: 16px; }

  .feature-section, .feature-section-flipped { grid-template-columns: 1fr; gap: 36px; }
  .feature-section-flipped .feature-copy,
  .feature-section-flipped .feature-visual { grid-column: auto; grid-row: auto; }
  .feature-copy { max-width: 640px; }

  .principles { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { padding-bottom: 76px; }
  .nav-shell { width: min(100% - 32px, var(--max)); min-height: 60px; }
  .theme-toggle { min-height: 44px; }
  .link-btn { display: inline-block; padding: 12px 0; }
  .hero-section { width: min(100% - 32px, var(--max)); padding: 108px 0 40px; gap: 32px; }
  .hero-home { padding-top: 108px; padding-bottom: 40px; }
  h1 { font-size: clamp(38px, 11vw, 56px); }
  .hero-body { font-size: 16.5px; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 6px; }
  .cta-primary { justify-content: center; }
  .hero-actions .cta-primary { width: 100%; max-width: 360px; }
  .cta-ghost { min-height: 44px; }
  .float-card { display: none; } /* kleine Screens: ruhiger ohne Karten */

  .section, .final-cta-section, .site-footer { width: min(100% - 32px, var(--max)); }
  .section { padding: 64px 0; }
  .section + .section { padding-top: 0; }
  .pillars { grid-template-columns: 1fr; }
  .pillars li { padding: 20px 0 0; }
  .feature-list li { grid-template-columns: 1fr; gap: 2px; }
  .stage { padding: 8px 0; }
  .stage .device { width: min(72vw, 270px); }

  .modes-stage { gap: 12px; }
  .modes-phone { padding: 20px 10px 22px; gap: 12px; }
  .modes-phone .device { width: min(38vw, 170px); }
  .modes-phone figcaption { font-size: 12.5px; }

  .faq-item summary { padding: 16px 0; font-size: 15.5px; }
  .faq-body { padding: 0 28px 18px 0; }
  .final-cta { padding: 48px 8px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .mobile-sticky-cta { display: block; }
  .legal-main { padding-top: 112px; }
  .support-grid { grid-template-columns: 1fr; }
  .support-form-card { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .nav-cta { display: none; }
  .theme-toggle .tt-label { display: none; }
  .theme-toggle { min-height: 44px; min-width: 44px; padding: 0 12px; }
  .support-form-card { padding: 22px 18px; }
  .support-form-grid { grid-template-columns: 1fr; }
  .support-submit { width: 100%; }
}

/* ==========================================================================
   Reduced Motion – weniger und sanfter, nicht null: Deckkraft bleibt,
   Bewegung fällt weg.
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .js .reveal, .js .reveal-group > * { transform: none !important; transition: opacity 200ms ease !important; }
  .hero-home .hero-copy > *, .hero-home .hero-visual { transform: none; animation: fadeOnly 200ms ease forwards; }
  .js .reveal .lc-est { stroke-dashoffset: 0 !important; animation: none !important; }
  .js .reveal .lc-dot { opacity: 1 !important; animation: none !important; }
  .mobile-sticky-cta { transform: none; transition: opacity 200ms ease; }
  .cta-primary:active, .cta-ghost:active, .theme-toggle:active, .mobile-sticky-cta a:active { transform: none; }
  .cta-ghost::after { transition: none; }
  .nav-menu:active { transform: none; }
  .nav-menu-ic::before, .nav-menu-ic::after { transition: none; }
  .proposal-btn:active { transform: none; }
  .proposal-body, .proposal-result { transition: opacity 200ms ease; filter: none !important; }
  .float-card { animation: none; }
  .faq-marker::before, .faq-marker::after { transition: none; }
}

/* ==========================================================================
   WARTELISTE (.wl-*) — portiert von website-apple-level
   ========================================================================== */
:root {
  --wl-danger: #f2555a;
}
:root[data-theme="soft"] {
  --wl-danger: #b23a2c;
  --live-ink: #7e4f30; /* AA-sicheres, dunkles Karamell für Kleintext auf Creme */
}

.wl-card {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-top: 4px;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  box-shadow: 0 30px 80px var(--device-shadow);
}
.wl-form { display: grid; gap: 18px; }
/* `display: grid` darf das native hidden-Attribut nicht überstimmen. Nach
   erfolgreicher Eintragung soll ausschließlich die Erfolgsmeldung sichtbar
   bleiben – ohne Eingabefelder, Submit-Button oder Turnstile-Widget. */
.wl-form[hidden],
.wl-success[hidden] { display: none; }
.wl-card.is-complete .wl-form { display: none !important; }
.wl-card.is-complete { min-height: 280px; align-content: center; }
.wl-legacy-note {
  margin: 0 0 20px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  border-radius: 14px;
  background: color-mix(in srgb, var(--accent) 10%, var(--surface));
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
}
.wl-legacy-note[hidden] { display: none; }

.wl-plat-label {
  display: block;
  font-size: 12px; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--ink-2);
}

/* Plattform-Wahl */
.wl-platforms { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 9px; }
.wl-plat {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  background: var(--surface-2);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: border-color 160ms ease, background 160ms ease, transform 140ms ease;
}
.wl-plat:hover { border-color: var(--live-soft); }
.wl-plat:active { transform: scale(0.98); }
.wl-plat[aria-pressed="true"] { border-color: var(--live); background: var(--live-dim); }
.wl-plat-ic {
  display: grid; place-items: center;
  width: 34px; height: 34px; flex: 0 0 34px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  transition: color 160ms ease, border-color 160ms ease;
}
.wl-plat[aria-pressed="true"] .wl-plat-ic { color: var(--live); border-color: var(--live-soft); }
.wl-plat-txt { display: flex; flex-direction: column; line-height: 1.15; }
.wl-plat-txt strong { font-size: 15px; font-weight: 650; letter-spacing: -0.01em; }
.wl-plat-txt small { color: var(--ink-2); font-size: 11.5px; margin-top: 1px; }
.wl-plat-check {
  position: absolute; top: 9px; right: 9px;
  display: grid; place-items: center;
  width: 18px; height: 18px; border-radius: 50%;
  border: 1px solid var(--line-2);
  color: var(--sel-ink); background: transparent;
  opacity: 0; transform: scale(0.6);
  transition: opacity 150ms ease, transform 150ms ease, background 150ms ease, border-color 150ms ease;
}
.wl-plat[aria-pressed="true"] .wl-plat-check {
  opacity: 1; transform: scale(1);
  background: var(--live); border-color: var(--live);
}

/* Eingabe */
.wl-field { display: grid; gap: 9px; }
.wl-input-row { display: flex; gap: 10px; }
.wl-input {
  flex: 1 1 auto; min-width: 0;
  min-height: 54px;
  padding: 0 18px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--ink);
  font-family: inherit;
  font-size: 15.5px;
  transition: border-color 160ms ease, background 160ms ease;
}
.wl-input::placeholder { color: var(--ink-3); }
/* Fokus nicht nur über Farbwechsel signalisieren (WCAG 2.4.7/1.4.11): der
   unterdrückte Outline wird durch einen sichtbaren Ring (box-shadow) ersetzt. */
.wl-input:focus-visible {
  outline: none;
  border-color: var(--live);
  background: var(--surface);
  box-shadow: 0 0 0 3px var(--live-dim);
}
.wl-submit {
  flex: 0 0 auto;
  min-height: 54px;
  padding: 0 24px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 700; font-size: 15px;
  cursor: pointer; white-space: nowrap;
  transition: transform 180ms var(--ease), box-shadow 180ms ease, opacity 160ms ease;
}
.wl-submit:hover { transform: translateY(-2px); box-shadow: 0 18px 44px var(--live-dim); }
.wl-submit:disabled { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }
/* Als eigenstaendige Zeile unterhalb von Einwilligung + Sicherheitspruefung. */
.wl-form > .wl-submit { width: 100%; }

/* Consent */
.wl-consent {
  display: flex; align-items: flex-start; gap: 10px;
  color: var(--ink-2); font-size: 12.5px; line-height: 1.5;
  cursor: pointer;
}
.wl-consent input {
  margin: 1px 0 0; flex: 0 0 16px;
  width: 16px; height: 16px; accent-color: var(--live); cursor: pointer;
}
.wl-consent a { color: var(--live); font-weight: 600; }
.wl-consent a:hover { text-decoration: underline; }

/* Hinweis-Zeile */
.wl-note {
  display: flex; flex-wrap: wrap; gap: 7px 16px;
  color: var(--ink-2); font-size: 12.5px; font-weight: 550;
}
.wl-note span { display: inline-flex; align-items: center; gap: 7px; }
.wl-note span::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--live); }

/* Meldung */
.wl-msg { margin: -4px 0 0; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.wl-msg.is-error { color: var(--wl-danger); }

/* Zweiter Anlauf, wenn die Sicherheitspruefung nicht laden konnte */
.wl-retry {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 10px 16px; border: 1px solid var(--line); border-radius: var(--r-md);
  background: transparent; color: var(--ink); font: inherit;
  font-size: 13.5px; font-weight: 600; cursor: pointer;
}
.wl-retry:hover { border-color: var(--live); color: var(--live); }

/* Honeypot (unsichtbar für Menschen, Falle für Bots) */
.wl-hp { position: absolute; left: -9999px; top: auto; width: 1px; height: 1px; overflow: hidden; opacity: 0; }

/* Erfolg */
.wl-success { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 12px 6px 8px; }
.wl-success-kicker {
  color: var(--live);
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.wl-success-badge {
  display: grid; place-items: center;
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--live-dim); color: var(--live);
  border: 1px solid var(--live-soft);
  animation: wlPop 440ms var(--ease) both;
}
@keyframes wlPop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: scale(1); } }
.wl-success h2 { font-size: 25px; letter-spacing: -0.02em; }
.wl-success p { color: var(--ink-2); font-size: 15px; line-height: 1.55; max-width: 42ch; }
.wl-again {
  margin-top: 2px; padding: 0; border: 0; background: none;
  color: var(--live); font-weight: 600; cursor: pointer;
  border-bottom: 1px solid var(--live-soft);
}
.wl-again:hover { opacity: 0.85; }

/* Drei Schritte */
.wl-steps-section { max-width: 940px; padding-top: 0; }
.wl-steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  margin: 0; padding: 0; list-style: none; width: 100%;
}
.wl-steps li {
  display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start;
  padding: 22px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
.wl-step-n {
  font-variant-numeric: tabular-nums;
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--live);
  padding-top: 2px;
}
.wl-steps strong { display: block; font-size: 15.5px; font-weight: 650; margin-bottom: 4px; }
.wl-steps p { color: var(--ink-2); font-size: 13.5px; line-height: 1.5; }

/* Sanft: Kleintext-/Inline-Link-Akzente auf AA-sicheres --live-ink (reines
   --live erreicht auf Creme nur ~3.6–4.2:1 → unter AA 4.5:1). */
:root[data-theme="soft"] :is(
  .wl-step-n,
  .wl-again,
  .wl-consent a,
  .legal-section a,
  .support-card a:not(.legal-button),
  .support-consent a,
  .support-again
) { color: var(--live-ink); }

@media (max-width: 760px) {
  .wl-steps { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .wl-input-row { flex-direction: column; }
  .wl-submit { width: 100%; }
}

/* ==========================================================================
   RATGEBER (.rg-*) — Artikel, Hub, Rechner
   ========================================================================== */
.rg-main { max-width: 764px; margin: 0 auto; padding: 138px 22px 84px; }
.rg-main.rg-wide { max-width: 1080px; }

.rg-crumb { font-size: 12.5px; color: var(--ink-3); margin-bottom: 20px; }
.rg-crumb a { color: var(--ink-2); }
.rg-crumb a:hover { color: var(--ink); }

.rg-main h1 { font-size: clamp(32px, 5.4vw, 50px); letter-spacing: -0.03em; line-height: 1.06; margin: 10px 0 18px; }

.rg-meta {
  display: flex; flex-wrap: wrap; gap: 6px 18px;
  color: var(--ink-2); font-size: 13.5px;
  padding-bottom: 24px; border-bottom: 1px solid var(--line); margin-bottom: 30px;
}
.rg-meta a { color: var(--live); font-weight: 600; }

.rg-article { font-size: 16.5px; line-height: 1.75; color: var(--ink-2); }
.rg-article .rg-lead { font-size: 19px; line-height: 1.6; color: var(--ink); }
.rg-review-status {
  border: 1px solid color-mix(in srgb, var(--warm) 42%, var(--line));
  border-radius: var(--r-md); background: color-mix(in srgb, var(--warm) 8%, var(--surface));
  color: var(--ink-2); font-size: 13.5px; line-height: 1.55;
  padding: 13px 15px; margin: 0 0 26px;
}
.rg-review-status b { color: var(--ink); }
.rg-article h2 { color: var(--ink); font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; margin: 46px 0 14px; }
.rg-article h3 { color: var(--ink); font-size: 19px; letter-spacing: -0.01em; margin: 32px 0 10px; }
.rg-article p { margin: 0 0 16px; }
.rg-article b, .rg-article strong { color: var(--ink); }
.rg-article a { color: var(--live); font-weight: 600; }
.rg-article a:hover { text-decoration: underline; }
.rg-article ul, .rg-article ol { margin: 0 0 18px; padding-left: 22px; }
.rg-article li { margin: 7px 0; }
.rg-article li::marker { color: var(--live); font-weight: 700; }

/* Kernaussagen-Box */
.rg-key {
  border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 20px 22px; margin: 28px 0;
}
.rg-key > b {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.rg-key > b::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }
.rg-key ul { margin: 12px 0 0; }
.rg-key li { font-size: 15px; }

/* Tabellen */
.rg-tablewrap { overflow-x: auto; margin: 20px 0; border: 1px solid var(--line); border-radius: var(--r-md); }
.rg-article table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 460px; }
.rg-article th {
  text-align: left; font-size: 11.5px; letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-2); padding: 12px 14px; border-bottom: 1px solid var(--line-2); background: var(--surface);
}
.rg-article td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rg-article tr:last-child td { border-bottom: 0; }

/* CTA zur Warteliste */
.rg-cta {
  text-align: center; border: 1px solid var(--line); border-radius: var(--r-xl);
  background: var(--surface); padding: 30px 24px; margin: 44px 0 8px;
}
.rg-cta p { color: var(--ink-2); margin: 8px auto 18px; max-width: 46ch; font-size: 15px; }
.rg-cta b { color: var(--ink); font-size: 19px; letter-spacing: -0.01em; }
/* Der Button behaelt sein eigenes Ink – sonst faerbt die Artikel-Typografie
   (.rg-article a / .rg-article strong) die Beschriftung weiss auf weiss. */
.rg-article .cta-primary { color: var(--btn-ink); }
.rg-article .cta-primary :is(b, strong) { color: inherit; }
.rg-article .cta-primary:hover { text-decoration: none; }

/* Quellen & Hinweise */
.rg-src-hint { font-size: 12.5px; color: var(--ink-3); margin: -10px 0 20px; line-height: 1.55; }
.rg-src-note { color: var(--ink-3); font-size: 12px; }
.rg-src { font-size: 13px; color: var(--ink-3); }
.rg-src li { margin: 8px 0; }
.rg-src a { color: var(--ink-2); font-weight: 600; }
.rg-note {
  font-size: 12.5px; color: var(--ink-3); line-height: 1.6;
  border-left: 2px solid var(--line-2); padding-left: 14px; margin-top: 34px;
}
.rg-author {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2);
  padding: 14px 16px; margin-top: 34px; font-size: 13.5px; color: var(--ink-2);
}
.rg-author img { border-radius: 9px; }
.rg-author b { color: var(--ink); display: block; font-size: 14px; }

/* Hub-Karten */
.rg-hub-intro { color: var(--ink-2); font-size: 17px; line-height: 1.65; max-width: 62ch; margin-bottom: 8px; }
.rg-hub-h2 { font-size: 24px; letter-spacing: -0.02em; margin: 44px 0 16px; }
.rg-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rg-card {
  display: block; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--surface); padding: 20px; color: var(--ink);
  transition: border-color 160ms ease, transform 180ms var(--ease);
}
.rg-card:hover { border-color: var(--live-soft); transform: translateY(-2px); }
.rg-card .tag {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--live);
}
.rg-card h3 { font-size: 17px; letter-spacing: -0.01em; line-height: 1.3; margin: 9px 0 7px; }
.rg-card p { color: var(--ink-2); font-size: 13.5px; line-height: 1.55; margin: 0; }
.rg-card .rg-card-meta { display: block; color: var(--ink-3); font-size: 12px; margin-top: 12px; }

/* Rechner */
.calc { border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--surface); padding: 22px; margin: 28px 0; }
.calc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.calc-field { display: grid; gap: 8px; }
.calc-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-seg button {
  border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface-2);
  color: var(--ink); font-family: inherit; font-size: 13.5px; font-weight: 600;
  padding: 9px 14px; cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease;
}
.calc-seg button:hover { border-color: var(--live-soft); }
.calc-seg button[aria-pressed="true"] { border-color: var(--live); background: var(--live-dim); }
.calc-res { border-top: 1px solid var(--line); margin-top: 20px; padding-top: 20px; text-align: center; }
.calc-res .num { display: block; font-size: 44px; line-height: 1.1; }
.calc-res .calc-unit { color: var(--ink-2); font-size: 13px; }
.calc-band { color: var(--ink-2); font-size: 13px; margin-top: 6px; }
.calc-note { color: var(--ink-3); font-size: 12.5px; margin-top: 12px; }
/* Feldbezogener Plausibilitaets-Hinweis (min/max). Sitzt im .calc-field-Grid, deshalb
   kein eigener Abstand noetig; die Farbe kommt aus dem bestehenden Fehler-Token. */
.calc-msg { margin: 0; color: var(--wl-danger); font-size: 12.5px; line-height: 1.45; font-weight: 600; }
.wl-input[aria-invalid="true"] { border-color: var(--wl-danger); }
/* Kontext-CTA unter dem Rechner-Ergebnis (erscheint erst mit gueltigem Ergebnis) */
.calc-cta { text-align: center; margin: 16px 0 2px; }
.calc-cta p { color: var(--ink-2); font-size: 14.5px; margin: 0 0 12px; }
.calc-cta p b { color: var(--ink); }
/* Makro-Rechner: drei Ergebniszeilen statt einer grossen Zahl */
.mk-macros { display: grid; gap: 8px; margin-bottom: 12px; }
.mk-macros p { display: flex; align-items: baseline; gap: 10px; margin: 0; }
.mk-macros span { color: var(--ink-2); font-size: 13.5px; min-width: 122px; text-align: left; }
.mk-macros b { font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.mk-macros i { font-style: normal; color: var(--ink-3); font-size: 12.5px; }

/* Sanft: Kleintext-Akzente AA-sicher (gleiche Logik wie .wl-*) */
:root[data-theme="soft"] :is(.rg-article a:not(.cta-primary), .rg-meta a, .rg-card .tag) { color: var(--live-ink); }

@media (max-width: 860px) {
  .rg-grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .rg-main { padding-top: 118px; }
  .calc-grid { grid-template-columns: 1fr; }
}

/* ==========================================================================
   RATGEBER-DIAGRAMME (.rg-fig*)
   Inline-SVG statt Rasterbild: gewichtslos, scharf, kein Extra-Request und
   kein CLS (viewBox + width:100% + height:auto). Saemtliche Farben kommen
   aus den bestehenden Tokens – dadurch adaptieren die Diagramme automatisch
   an Dark und Sanft, ohne zweite Asset-Variante. Hier steht bewusst KEIN
   fester Hexwert und keine Konstante wie fill="white".

   Groessenlogik: viewBox-Breite 300 User-Units, Figur auf max-width 430px
   begrenzt. Bei 375px Viewport betraegt der Innenraum ~305px (Skalierung
   ~1,02), auf Desktop ~396px (Skalierung ~1,32). Die kleinste SVG-Schrift
   liegt bei 12 User-Units und damit nie unter ~12px effektiv.
   ========================================================================== */

/* Kleintext-Akzent im Sanft-Modus AA-sicher halten (gleiche Logik wie .wl-*) */
:root { --rg-fig-accent: var(--live); }
:root[data-theme="soft"] { --rg-fig-accent: var(--live-ink); }

.rg-fig {
  max-width: 430px;
  margin: 28px auto 26px;
  padding: 18px 16px 14px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
}
/* Unterhalb von ca. 370px Viewport wuerde das SVG unter Skalierung 1 rutschen und
   die Beschriftung unter 12px fallen. Statt zu schrumpfen bleibt es bei seiner
   natuerlichen Breite und scrollt im Container – dieselbe Loesung, die `.rg-tablewrap`
   fuer die Tabellen benutzt. Ueber 370px ist der Container breiter als das SVG,
   es entsteht also kein Scrollbalken. */
.rg-fig-scroll { overflow-x: auto; }
.rg-fig svg {
  display: block;
  width: 100%;
  min-width: 300px;
  height: auto;
  font-family: var(--sans);
}
.rg-fig figcaption {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink-3);
  margin-top: 14px;
}
.rg-fig figcaption b { color: var(--ink-2); }

/* Flaechen und Linien */
.rg-fig-band { fill: var(--live-dim); stroke: var(--live-soft); stroke-width: 1; }
.rg-fig-badge { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1; }
.rg-fig-axis { stroke: var(--line-2); stroke-width: 1; fill: none; }
.rg-fig-grid { stroke: var(--line); stroke-width: 1; fill: none; }
.rg-fig-track { fill: var(--surface-2); stroke: var(--line-2); stroke-width: 1; }
.rg-fig-bar { fill: var(--live); }
.rg-fig-bar-soft { fill: var(--live-soft); }
/* Makro-Segmente: dieselbe Semantik wie .li-dot / .li-dot.warm / .li-dot.carb */
.rg-fig-seg-p { fill: var(--live); }
.rg-fig-seg-f { fill: var(--warm); }
.rg-fig-seg-c { fill: var(--carb); }

/* Typografie im SVG – px entspricht hier den User-Units der viewBox */
.rg-fig-num { fill: var(--ink); font-size: 17px; font-weight: 700; }
.rg-fig-lbl { fill: var(--ink); font-size: 12.5px; font-weight: 600; }
.rg-fig-sub { fill: var(--ink-2); font-size: 12px; }
.rg-fig-legend { fill: var(--ink-2); font-size: 12px; }
.rg-fig-accent-txt { fill: var(--rg-fig-accent); font-size: 12px; font-weight: 700; }

@media (max-width: 560px) {
  .rg-fig { padding: 16px 12px 12px; }
}
