/* ==========================================================================
   AURA – Landingpage
   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).
   ========================================================================== */

@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: #0d0d0f;
  --surface-2: #141416;
  --surface-3: #1c1c1f;

  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.12);

  --ink: #ffffff;
  --ink-2: #8a8a8e;
  --ink-3: #7a7a80;                /* WCAG AA: >= 4.5:1 auf dem dunklen Grund */

  --live: #14c97b;                 /* Akzent = echtes App-Grün */
  --live-dim: rgba(20, 201, 123, 0.15);
  --live-soft: rgba(20, 201, 123, 0.5);
  --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: #ffffff;
  --btn-ink: #000000;
  --cta-icon-bg: rgba(0, 0, 0, 0.08);
  --cta-kicker: rgba(0, 0, 0, 0.55);
  --header-bg: rgba(13, 13, 15, 0.6);
  --header-bg-2: rgba(13, 13, 15, 0.86);
  --float-bg: rgba(13, 13, 15, 0.82);
  --footer-bg: #040405;
  --device-rim: #0c0c0d;
  --device-shadow: rgba(0, 0, 0, 0.66);
  --sel-bg: var(--live);
  --sel-ink: #000;
  --glow-1: rgba(20, 201, 123, 0.10);
  --glow-2: rgba(255, 255, 255, 0.05);

  --max: 1160px;
  --r-sm: 14px;
  --r-md: 20px;
  --r-lg: 26px;
  --r-xl: 32px;

  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

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

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

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

  --live: #a86b3c;                 /* Karamell */
  --live-dim: rgba(168, 107, 60, 0.15);
  --live-soft: rgba(168, 107, 60, 0.5);
  --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: #fffbf3;
  --cta-icon-bg: rgba(255, 251, 243, 0.16);
  --cta-kicker: rgba(255, 251, 243, 0.6);
  --header-bg: rgba(255, 251, 243, 0.62);
  --header-bg-2: rgba(255, 251, 243, 0.9);
  --float-bg: rgba(255, 251, 243, 0.86);
  --footer-bg: #ece0cd;
  --device-rim: #e3d4bd;
  --device-shadow: rgba(86, 60, 30, 0.28);
  --sel-bg: var(--live);
  --sel-ink: #fffbf3;
  --glow-1: rgba(168, 107, 60, 0.14);
  --glow-2: rgba(176, 58, 44, 0.06);
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background 360ms var(--ease), color 360ms var(--ease);
}

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

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

/* ---------- Type helpers ---------- */
.num { font-weight: 250; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }

.live-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 0 0 var(--live-soft);
}

.live-dot.is-pulsing { animation: pulse 2.6s var(--ease) infinite; }

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 var(--live-ring-strong); }
  70% { box-shadow: 0 0 0 9px var(--live-ring-0); }
  100% { box-shadow: 0 0 0 0 var(--live-ring-0); }
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 40;
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--ink);
  color: var(--bg);
  font-weight: 700;
  transform: translateY(-180%);
  transition: transform 160ms ease;
}
.skip-link:focus { transform: translateY(0); }

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

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 30;
  padding: 14px clamp(16px, 4vw, 32px);
}

.nav-shell {
  display: flex;
  width: min(100%, var(--max));
  min-height: 56px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding: 9px 9px 9px 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: background 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled .nav-shell {
  background: var(--header-bg-2);
  border-color: var(--line-2);
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
  font-size: 17px;
  letter-spacing: 0.06em;
}
.brand-lockup img { border-radius: 9px; }

.nav-links {
  display: flex;
  align-items: center;
  gap: clamp(10px, 2.2vw, 26px);
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 500;
  margin-left: auto;
}
.nav-links a { position: relative; padding: 6px 2px; transition: color 160ms ease; }
.nav-links a::after {
  position: absolute; left: 0; right: 100%; bottom: 0;
  height: 1.5px; content: ""; background: var(--live);
  transition: right 240ms var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { right: 0; }

.nav-end { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- Theme toggle (Signature) ---------- */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}
.theme-toggle:hover { border-color: var(--live); background: var(--live-dim); }
.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
   ========================================================================== */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 0 24px 0 20px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--btn-bg);
  color: var(--btn-ink);
  transition: transform 180ms var(--ease), box-shadow 180ms ease, opacity 160ms ease;
}
.cta-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px var(--live-dim);
}

.nav-cta { min-height: 40px; padding: 0 20px; font-size: 13.5px; font-weight: 700; gap: 0; }

.cta-icon {
  display: grid; place-items: center;
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--cta-icon-bg);
}
.cta-text { display: flex; flex-direction: column; align-items: flex-start; line-height: 1.1; }
.cta-kicker {
  color: var(--cta-kicker);
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.cta-text strong { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.is-disabled-download { cursor: default; }

.cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 58px;
  padding: 0 26px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: transparent;
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  transition: transform 180ms var(--ease), border-color 180ms ease, background 180ms ease;
}
.cta-ghost:hover {
  transform: translateY(-2px);
  border-color: var(--live);
  background: var(--live-dim);
}

/* ==========================================================================
   Hero
   ========================================================================== */
.hero-section {
  position: relative;
  display: grid;
  min-height: min(880px, 100svh);
  grid-template-columns: minmax(0, 1.04fr) minmax(330px, 0.86fr);
  align-items: center;
  gap: clamp(28px, 5vw, 60px);
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: 150px clamp(18px, 4vw, 32px) 90px;
}

.hero-glow {
  position: absolute;
  inset: -10% auto auto -10%;
  width: 70%; height: 90%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 44% at 62% 38%, var(--glow-1), transparent 70%),
    radial-gradient(34% 38% at 30% 26%, var(--glow-2), transparent 72%);
  filter: blur(30px);
  animation: drift 16s ease-in-out infinite alternate;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0); opacity: 0.85; }
  to { transform: translate3d(3%, 2%, 0); opacity: 1; }
}

.hero-copy { display: grid; gap: 22px; justify-items: start; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

h1 {
  font-size: clamp(48px, 7.6vw, 96px);
  line-height: 0.98;
  font-weight: 820;
  letter-spacing: -0.035em;
}
h1 .dot { color: var(--live); }

.hero-body {
  max-width: 540px;
  color: var(--ink-2);
  font-size: clamp(17px, 1.9vw, 20px);
  line-height: 1.55;
}

.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 6px; }

.hero-trust {
  display: flex; flex-wrap: wrap; gap: 8px 22px;
  margin: 2px 0 0; padding: 0; list-style: none;
  color: var(--ink-2); font-size: 13.5px; font-weight: 550;
}
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust li::before {
  content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--live);
}

/* ---------- Hero Visual ---------- */
.hero-visual { min-width: 0; }

.phone-scene {
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 8px;
  transform-style: preserve-3d;
}

.float-card {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--float-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 22px 54px var(--device-shadow);
  animation: floatY 5.6s ease-in-out infinite;
  animation-delay: var(--fd, 0s);
}
.float-card strong { display: block; font-size: 13px; font-weight: 650; letter-spacing: -0.01em; }
.float-card small { display: block; margin-top: 1px; color: var(--ink-2); font-size: 11.5px; }

.float-ic {
  display: grid; place-items: center;
  width: 32px; height: 32px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-2);
  font-size: 14px;
}
.float-ic.live { color: var(--live); border-color: var(--live-soft); background: var(--live-dim); }
.float-ic.warm { color: var(--warm); }

.float-card-a { top: 2%; right: max(-16px, calc(50% - 250px)); }
.float-card-b { top: 42%; 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(-9px); }
}

/* ==========================================================================
   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 9px var(--device-rim),
    0 0 0 10px var(--line),
    0 44px 110px var(--device-shadow);
}
.device img { width: 100%; height: 100%; object-fit: cover; }

.device-hero { animation: phoneRise 900ms var(--ease) both; }
@keyframes phoneRise {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.section {
  width: min(100%, var(--max));
  margin: 0 auto;
  padding: clamp(78px, 10vw, 128px) clamp(18px, 4vw, 32px);
  scroll-margin-top: 80px;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink-2);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--live); }

.section-heading { display: grid; gap: 18px; max-width: 720px; }
.section-centered .section-heading { margin: 0 auto; text-align: center; justify-items: center; }
.section-centered .eyebrow { justify-content: center; }

h2 {
  font-size: clamp(31px, 4.4vw, 52px);
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.section-heading p:not(.eyebrow) {
  color: var(--ink-2); font-size: 17.5px; line-height: 1.6; max-width: 620px;
}

/* ---------- Feature-Sections ---------- */
.feature-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 400px);
  align-items: center;
  gap: clamp(36px, 7vw, 84px);
}
.feature-section-flipped { grid-template-columns: minmax(280px, 400px) 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: 20px; max-width: 580px; }
.feature-copy > p { color: var(--ink-2); font-size: 17px; line-height: 1.6; }

.feature-list { display: grid; gap: 14px; margin: 4px 0 0; padding: 0; list-style: none; }
.feature-list li {
  display: flex; align-items: flex-start; gap: 13px;
  color: var(--ink); opacity: 0.92;
  font-size: 15.5px; font-weight: 450; line-height: 1.5;
}
.feature-list b { font-weight: 650; color: var(--ink); opacity: 1; }

.li-dot { flex: 0 0 8px; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--live); }
.li-dot.white { background: var(--ink); }
.li-dot.warm { background: var(--warm); }
.li-dot.carb { background: var(--carb); }

.feature-visual { display: grid; place-items: center; }

/* ---------- Mini-Steps (echte Sequenz) ---------- */
.mini-steps {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin: 8px 0 0; padding: 16px 0 0; list-style: none;
  border-top: 1px solid var(--line);
}
.mini-steps li {
  display: inline-flex; align-items: center; gap: 9px;
  color: var(--ink-2); font-size: 13.5px; font-weight: 600;
}
.mini-steps span {
  font-variant-numeric: tabular-nums;
  font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--live);
}

/* ---------- Flagship-Säule (Training) ---------- */
.section-flagship { position: relative; }
.flagship-glow {
  position: absolute;
  inset: -4% -6% auto auto;
  width: 58%; height: 78%;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(46% 52% at 70% 28%, var(--glow-1), transparent 70%);
  filter: blur(34px);
}
.section-flagship h2 { font-size: clamp(34px, 5vw, 60px); }
.sci-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  margin: -4px 0 -2px;
  padding: 7px 15px 7px 12px;
  border: 1px solid var(--live-soft);
  border-radius: 999px;
  background: var(--live-dim);
  color: var(--live);
  font-size: 12.5px;
  font-weight: 650;
}
.device-lg { width: min(84vw, 330px); }

/* ==========================================================================
   Algorithmus – Lern-Chart (Signature)
   ========================================================================== */
.section-learn .feature-visual { width: 100%; }

.learn-card {
  width: 100%;
  max-width: 460px;
  margin: 0;
  padding: 22px 22px 18px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
}

.learn-head { display: grid; gap: 3px; margin-bottom: 8px; }
.learn-head > span:first-child {
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-2);
}
.learn-head strong { font-size: 40px; line-height: 1; }
.learn-head strong small { font-size: 16px; color: var(--ink-2); font-weight: 250; }
.learn-band-note { font-size: 12.5px; color: var(--live); font-weight: 600; }

.learn-chart { width: 100%; height: auto; margin-top: 6px; display: block; }
.lc-grid line { stroke: var(--line); stroke-width: 1; }
.lc-band { fill: var(--live-dim); stroke: none; }
.lc-true { stroke: var(--ink-3); stroke-width: 1.5; stroke-dasharray: 1 7; stroke-linecap: round; }
.lc-formula { fill: none; stroke: var(--ink-3); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; }
.lc-est {
  fill: none; stroke: var(--live); stroke-width: 3.4; stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 1px 5px var(--live-dim));
}
.lc-dot { fill: var(--live); filter: drop-shadow(0 0 5px var(--live-soft)); }

.js .reveal .lc-est { stroke-dasharray: 560; stroke-dashoffset: 560; }
.js .reveal.is-visible .lc-est {
  animation: drawLine 1500ms var(--ease) 200ms forwards;
}
.js .reveal .lc-dot { opacity: 0; }
.js .reveal.is-visible .lc-dot { animation: dotIn 360ms var(--ease) 1500ms forwards; }
@keyframes drawLine { to { stroke-dashoffset: 0; } }
@keyframes dotIn { to { opacity: 1; } }

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

.learn-x {
  display: flex; justify-content: space-between;
  margin-top: 6px; padding: 0 4px;
  color: var(--ink-3); font-size: 11.5px; font-weight: 600;
}

.learn-note {
  margin: 12px 0 0; padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--ink-3); font-size: 12px; line-height: 1.5;
}

/* ==========================================================================
   Modi (Dark / Sanft)
   ========================================================================== */
.section-modes { max-width: 980px; }
.modes-stage {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 230px));
  justify-content: center;
  gap: clamp(20px, 5vw, 48px);
  margin-top: clamp(40px, 5vw, 60px);
}
.modes-phone { display: grid; justify-items: center; gap: 16px; margin: 0; }
.modes-phone .device { width: min(60vw, 230px); }
.modes-phone figcaption { color: var(--ink-2); font-size: 13.5px; font-weight: 600; }

.modes-hint {
  margin: 26px auto 0;
  text-align: center;
  color: var(--ink-2);
  font-size: 15px;
}
.link-btn {
  display: inline;
  margin-left: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--live);
  font-weight: 650;
  cursor: pointer;
  border-bottom: 1px solid var(--live-soft);
}
.link-btn:hover { opacity: 0.85; }

/* ==========================================================================
   Training (Chips)
   ========================================================================== */
.section-training { max-width: 860px; }
.chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 11px;
  margin: clamp(34px, 4vw, 48px) auto 0; padding: 0; list-style: none;
}
.chips li {
  padding: 11px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--ink);
  opacity: 0.92;
  font-size: 14px;
  font-weight: 600;
}

/* ==========================================================================
   Privacy
   ========================================================================== */
.privacy-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: clamp(38px, 5vw, 58px);
}
.privacy-card {
  display: grid; gap: 13px; align-content: start;
  padding: 28px 26px 30px;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  transition: transform 240ms var(--ease), border-color 240ms ease;
}
.privacy-card:hover { transform: translateY(-5px); border-color: var(--line-2); }
.privacy-ic {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--ink);
}
.privacy-card h3 { font-size: 17px; font-weight: 720; }
.privacy-card p { color: var(--ink-2); font-size: 14px; line-height: 1.55; }

/* ==========================================================================
   FAQ
   ========================================================================== */
.section-faq { max-width: 860px; }
.faq-list { display: grid; gap: 12px; margin-top: clamp(32px, 4vw, 46px); }
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: var(--surface);
  transition: border-color 200ms ease;
}
.faq-item[open] { border-color: var(--line-2); }
.faq-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 22px; cursor: pointer; list-style: none;
  font-size: 16.5px; font-weight: 650; letter-spacing: -0.01em;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-marker { position: relative; flex: 0 0 26px; width: 26px; height: 26px; }
.faq-marker::before, .faq-marker::after {
  position: absolute; top: 50%; left: 50%;
  width: 12px; height: 1.6px; content: "";
  background: var(--ink-2);
  transform: translate(-50%, -50%);
  transition: transform 280ms var(--ease), background 200ms ease;
}
.faq-marker::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-item[open] .faq-marker::before, .faq-item[open] .faq-marker::after { background: var(--live); }
.faq-item[open] .faq-marker::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq-body { padding: 0 22px 22px; }
.faq-item[open] .faq-body { animation: faqOpen 340ms var(--ease) both; }
@keyframes faqOpen {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}
.faq-body p { color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 64ch; }
.faq-body a { color: var(--live); font-weight: 600; }

/* ==========================================================================
   Final CTA
   ========================================================================== */
.final-cta-section { padding: 28px clamp(18px, 4vw, 32px) 120px; }
.final-cta {
  position: relative;
  display: grid;
  width: min(100%, 940px);
  justify-items: center;
  gap: 18px;
  margin: 0 auto;
  padding: clamp(52px, 9vw, 86px) clamp(22px, 5vw, 72px);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background: var(--surface);
  text-align: center;
  overflow: hidden;
}
.final-glow {
  position: absolute;
  inset: -50% -20% auto;
  height: 120%;
  pointer-events: none;
  background: radial-gradient(40% 60% at 50% 0%, var(--glow-1), transparent 70%);
  filter: blur(28px);
}
.final-cta > * { position: relative; }
.final-cta img {
  border-radius: 19px;
  box-shadow: 0 24px 60px var(--device-shadow), 0 0 0 1px var(--line);
}
.final-cta h2 { max-width: 17ch; }
.final-cta > p { color: var(--ink-2); font-size: 17px; line-height: 1.55; }

.availability-note { color: var(--ink-3); font-size: 13.5px !important; }
.availability-note a {
  color: var(--ink-2); font-weight: 650;
  border-bottom: 1px solid var(--line-2);
  transition: color 160ms ease;
}
.availability-note a:hover { color: var(--live); border-color: var(--live-soft); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 56px clamp(18px, 4vw, 32px) 36px;
  background: var(--footer-bg);
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(120px, auto));
  gap: 40px clamp(24px, 4vw, 64px);
  width: min(100%, var(--max));
  margin: 0 auto;
}
.footer-brand { margin-bottom: 16px; }
.footer-about p { max-width: 420px; color: var(--ink-2); font-size: 14px; line-height: 1.6; }
.footer-col {
  display: grid; gap: 12px; align-content: start;
  color: var(--ink-2); font-size: 14.5px; font-weight: 500;
}
.footer-col strong {
  margin-bottom: 4px; color: var(--ink);
  font-size: 12.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
}
.footer-col a { width: fit-content; transition: color 160ms ease; }
.footer-col a:hover { color: var(--ink); }
.footer-meta {
  width: min(100%, var(--max));
  margin: 44px auto 0; padding-top: 24px;
  border-top: 1px solid var(--line);
  color: var(--ink-2); font-size: 13px;
}

/* ==========================================================================
   Mobile Sticky CTA
   ========================================================================== */
.mobile-sticky-cta {
  position: fixed;
  left: 12px; right: 12px; bottom: 12px;
  z-index: 25;
  display: none; opacity: 0; pointer-events: none;
  transform: translateY(14px);
  transition: opacity 200ms ease, transform 200ms ease;
}
.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: 54px; border-radius: 999px;
  background: var(--btn-bg); color: var(--btn-ink);
  font-weight: 700;
  box-shadow: 0 18px 44px var(--device-shadow);
}

/* ==========================================================================
   Reveals
   ========================================================================== */
.reveal { transition: opacity 700ms var(--ease), transform 700ms var(--ease); }
.js .reveal { opacity: 0; transform: translateY(26px); }
.js .reveal.is-visible { opacity: 1; transform: translateY(0); }

.privacy-grid.is-visible .privacy-card { animation: cardIn 600ms var(--ease) both; }
.privacy-grid.is-visible .privacy-card:nth-child(2) { animation-delay: 100ms; }
.privacy-grid.is-visible .privacy-card:nth-child(3) { animation-delay: 200ms; }
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   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: 1080px) {
  .float-card-a { right: -4px; }
  .float-card-b { left: -8px; }
  .float-card-c { right: -2px; }
}

@media (max-width: 980px) {
  .nav-links { display: none; }

  .hero-section {
    grid-template-columns: 1fr;
    gap: 40px;
    min-height: auto;
    padding-top: 128px;
    padding-bottom: 56px;
  }
  .hero-copy { max-width: 680px; }
  .phone-scene { padding: 10px 0 24px; }
  .float-card-a { top: 2%; right: max(0px, calc(50% - 240px)); }
  .float-card-b { left: max(-6px, calc(50% - 250px)); }
  .float-card-c { right: max(-2px, calc(50% - 236px)); }

  .feature-section, .feature-section-flipped { grid-template-columns: 1fr; gap: 44px; }
  .feature-section-flipped .feature-copy,
  .feature-section-flipped .feature-visual { grid-column: auto; grid-row: auto; }
  .feature-copy { max-width: 680px; }
  .section-learn .feature-visual { justify-items: start; }
  .learn-card { max-width: 520px; }

  .privacy-grid { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  body { padding-bottom: 72px; }
  .site-header { padding: 10px 12px; }
  .nav-shell { min-height: 54px; padding-left: 14px; gap: 10px; }

  .hero-section { padding: 112px 18px 40px; gap: 30px; }
  h1 { font-size: clamp(44px, 12.5vw, 62px); }
  .hero-body { font-size: 16px; }
  .hero-actions { width: 100%; flex-direction: column; align-items: stretch; gap: 10px; }
  .cta-primary { justify-content: center; }
  .cta-ghost { min-height: 52px; }

  /* Hero ohne schwebende Karten – ruhiger auf kleinen Screens */
  .float-card { display: none; }

  .section { padding: 68px 18px; }
  .modes-stage { gap: 16px; }
  .modes-phone .device { width: min(42vw, 200px); }

  .faq-item summary { padding: 17px 18px; font-size: 15px; }
  .faq-body { padding: 0 18px 18px; }
  .final-cta-section { padding-bottom: 84px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }
  .mobile-sticky-cta { display: block; }
  .legal-main { padding-top: 118px; }
  .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 { padding: 0 11px; }
  .support-form-card { padding: 22px 18px; }
  .support-form-grid { grid-template-columns: 1fr; }
  .support-submit { width: 100%; }
}

/* ==========================================================================
   Reduced Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .reveal, .js .reveal { opacity: 1 !important; transform: none !important; }
  .js .reveal .lc-est { stroke-dashoffset: 0 !important; }
  .js .reveal .lc-dot { opacity: 1 !important; }
}

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