/* Visual Page Editor – Marketing-Site. Eigenständig, keine externen Requests.
 *
 * Farben laufen ausschließlich über Tokens. Die Seite läuft auf der Palette
 * `neon` (data-palette="neon" auf <html>) – Creative Neon, Theme 29 der App.
 * Der Teal-Satz in :root bleibt als Basis/Fallback für alle Tokens, die eine
 * Palette nicht überschreibt. Hell/Dunkel schaltet data-theme="light|dark"
 * – derselbe Schalter wie in der App. */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter/inter-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
  font-style: normal;
}

*, *::before, *::after { box-sizing: border-box; }

/* Reset für Elemente mit Browser-Margins. `figure` bringt `margin: 1em 40px` mit –
   in einem Flex-Slider verschiebt das jede Slide gegenüber dem Schiebeschritt. */
figure, blockquote, dl, dd, fieldset { margin: 0; }

/* ── Palette: Teal (Standard), hell ───────────────────────────────────────── */
:root {
  --bg: #ffffff;
  --surface: #f5f8fa;
  --card: #ffffff;
  --ink: #0f172a;
  --muted: #5b6b7c;
  --border: #e2e8f0;

  --primary: #0f766e;
  --primary-hover: #0d6a63;
  --primary-ink: #ffffff;
  --primary-tint: #e6f3f1;

  --accent: #16a34a;
  --accent-tint: #e7f6ec;
  --accent-ink: #ffffff;

  --bad: #dc2626;
  --bad-tint: #fdecec;
  --bad-border: #f3d3d3;

  --band: linear-gradient(160deg, #0a1220, #111c2e);
  --band-ink: #e7edf5;
  --band-muted: #b6c2d2;
  --band-accent: #4ade80;
  --band-card: rgba(255, 255, 255, 0.04);
  --band-border: rgba(255, 255, 255, 0.1);

  --footer-bg: #0a1220;
  --footer-ink: #9fb0c3;

  --glow: 0 0 0 1px color-mix(in srgb, var(--primary) 30%, transparent), 0 24px 60px -24px color-mix(in srgb, var(--primary) 45%, transparent);
  --radius: clamp(0.7rem, 1.6vw, 1.15rem);
  --shadow: 0 24px 60px -28px rgba(15, 23, 42, 0.35);
  --maxw: 72rem;
}

/* ── Palette: Teal, dunkel ────────────────────────────────────────────────── */
:root[data-theme="dark"] {
  --bg: #0a1220;
  --surface: #0f1a2c;
  --card: #111c2e;
  --ink: #e7edf5;
  --muted: #9fb0c3;
  --border: #1e2b40;

  --primary: #14b8a6;
  --primary-hover: #0ea5a0;
  --primary-ink: #04201d;
  --primary-tint: rgba(20, 184, 166, 0.14);

  --accent: #4ade80;
  --accent-tint: rgba(74, 222, 128, 0.12);
  --accent-ink: #052e16;

  --bad: #f87171;
  --bad-tint: rgba(248, 113, 113, 0.1);
  --bad-border: rgba(248, 113, 113, 0.28);

  --band: linear-gradient(160deg, #05090f, #0d1524);
  --footer-bg: #05090f;
  --shadow: 0 24px 60px -28px rgba(0, 0, 0, 0.7);
}

/* ── Palette: Creative Neon (App-Theme 29) ────────────────────────────────── */
:root[data-palette="neon"] {
  --bg: #ffffff;
  --surface: #f5f5f5;
  --card: #ffffff;
  --ink: #0a0a0a;
  --muted: #525252;
  --border: #e5e5e5;

  --primary: #0891b2;
  --primary-hover: #0e7490;
  --primary-ink: #ffffff;
  --primary-tint: #e0f7fb;

  --accent: #db2777;
  --accent-tint: #fce7f3;
  --accent-ink: #ffffff;

  --bad: #dc2626;
  --bad-tint: #fee2e2;
  --bad-border: #fecaca;

  /* Das Datenschutz-Band folgt dem Theme – im Hellmodus ist es hell. */
  --band: linear-gradient(160deg, #fafafa, #f0f0f0);
  --band-ink: #0a0a0a;
  --band-muted: #525252;
  --band-accent: #db2777;
  --band-card: #ffffff;
  --band-border: #e5e5e5;
  --footer-bg: #000000;
}
:root[data-palette="neon"][data-theme="dark"] {
  --bg: #000000;
  --surface: #0a0a0a;
  --card: #171717;
  --ink: #ffffff;
  --muted: #a3a3a3;
  --border: #262626;

  --primary: #06b6d4;
  --primary-hover: #22d3ee;
  --primary-ink: #000000;
  --primary-tint: rgba(6, 182, 212, 0.15);

  --accent: #ec4899;
  --accent-tint: rgba(236, 72, 153, 0.15);
  --accent-ink: #000000;

  --bad: #f43f5e;
  --bad-tint: rgba(244, 63, 94, 0.12);
  --bad-border: rgba(244, 63, 94, 0.3);

  --band: linear-gradient(160deg, #000000, #150a12);
  --band-ink: #ffffff;
  --band-muted: #a3a3a3;
  --band-accent: #ec4899;
  --band-card: rgba(255, 255, 255, 0.04);
  --band-border: #262626;
  --footer-bg: #000000;
  --shadow: 0 24px 60px -24px rgba(236, 72, 153, 0.28);
}

html { font-size: clamp(15px, 0.6rem + 0.5vw, 18px); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; width: 100%; overflow-x: hidden;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--bg); line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  transition: background-color 0.25s ease, color 0.25s ease;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(1rem, 5vw, 4rem); }
.wrap--wide { max-width: 82rem; }
.section { padding-block: clamp(3.5rem, 8vw, 7rem); }
.section--tight { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.section--surface { background: var(--surface); }

.eyebrow { display: inline-block; font-size: clamp(0.78rem, 1.4vw, 0.9rem); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); margin: 0 0 0.7rem; }
h1, h2, h3 { line-height: 1.08; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(2.2rem, 6vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 4.4vw, 2.9rem); font-weight: 800; }
h3 { font-size: clamp(1.1rem, 2vw, 1.3rem); font-weight: 700; }
p.lead { font-size: clamp(1.05rem, 2.2vw, 1.3rem); color: var(--muted); }
.center { text-align: center; }
.measure { max-width: 44rem; margin-inline: auto; }
.muted { color: var(--muted); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; font-weight: 700; font-size: clamp(0.95rem, 1.6vw, 1.05rem); padding: 0.85em 1.5em; border-radius: 999px; border: 1.5px solid transparent; cursor: pointer; transition: transform 0.12s ease, background 0.2s ease, box-shadow 0.2s ease; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
/* Höhere Spezifität als `.nav-links a`, sonst gewinnt dort die Link-Farbe und
   die Schrift im Button wird grau statt weiß. */
.btn.btn--primary, .nav-links a.btn--primary { background: var(--primary); color: var(--primary-ink); box-shadow: 0 12px 30px -12px color-mix(in srgb, var(--primary) 60%, transparent); }
.btn.btn--primary:hover, .nav-links a.btn--primary:hover { background: var(--primary-hover); color: var(--primary-ink); }
.btn.btn--ghost, .nav-links a.btn--ghost { background: var(--card); color: var(--ink); border-color: var(--border); }
.btn.btn--ghost:hover { border-color: var(--primary); color: var(--primary); }
/* CTA in der Kopfzeile: normale Größe – die wuchtigen Maße gehören in den Hero. */
.site-header .btn { padding: 0.5em 1em; font-size: 0.85rem; box-shadow: none; }
.btn--light { background: #fff; color: #0a1220; }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,0.45); }
.btn--outline-light:hover { background: rgba(255,255,255,0.1); }

/* Badge */
.badge { display: inline-flex; align-items: center; gap: 0.5rem; font-size: clamp(0.8rem, 1.5vw, 0.95rem); font-weight: 700; padding: 0.45em 0.95em; border-radius: 999px; background: var(--accent-tint); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); }
.badge svg { width: 1.05em; height: 1.05em; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.85rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; font-weight: 800; letter-spacing: -0.02em; font-size: clamp(1.2rem, 1.6vw, 1.4rem); }
.brand .mark { width: clamp(2.3rem, 3vw, 2.7rem); height: clamp(2.3rem, 3vw, 2.7rem); flex: none; border-radius: 0.6rem; display: block; }
/* Der dunkle Icon-Hintergrund verschwimmt im Dark-Mode mit der Seite – schmale
   weiße Kante hebt ihn ab. */
[data-theme="dark"] .brand .mark { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.55); }
.nav-links { display: flex; align-items: center; gap: clamp(1.1rem, 2.8vw, 2.2rem); }
.nav-menu { display: flex; align-items: center; gap: clamp(1.1rem, 2.8vw, 2.2rem); }
.nav-links a:not(.btn) { font-weight: 600; color: var(--muted); font-size: 0.98rem; }
.nav-links a:not(.btn):hover { color: var(--ink); }

/* Burger – nur auf schmalen Bildschirmen */
.nav-burger { display: none; }
@media (max-width: 48rem) {
  .nav-burger {
    display: inline-grid; place-content: center; gap: 0.3rem;
    width: 2.7rem; height: 2.7rem; flex: none;
    border-radius: 0.65rem; border: 1px solid var(--border);
    background: var(--card); cursor: pointer; padding: 0;
  }
  .nav-burger span {
    display: block; width: 1.15rem; height: 2px; border-radius: 2px;
    background: var(--ink);
    transition: transform 0.25s ease, opacity 0.2s ease;
  }
  .nav-burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(0.5rem) rotate(45deg); }
  .nav-burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-0.5rem) rotate(-45deg); }

  /* Das Menü klappt unter der Kopfzeile auf (die ist sticky = positioniert). */
  .nav-menu {
    display: none;
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 0.25rem clamp(1rem, 5vw, 4rem) 1.2rem;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  .nav-menu[data-open] { display: flex; }
  .nav-menu a:not(.btn) { padding: 0.9rem 0; border-bottom: 1px solid var(--border); font-size: 1.05rem; }
  .nav-menu .btn { margin-top: 1rem; width: 100%; }
  /* Im aufgeklappten Menü darf der CTA wieder normal groß sein. */
  .site-header .nav-menu .btn { padding: 0.8em 1.4em; font-size: 1rem; }
}

/* Hero */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(2.5rem, 6vw, 4.5rem); background: radial-gradient(70% 60% at 50% 0%, var(--primary-tint), transparent 70%); }
.hero .wrap { text-align: center; }
.hero h1 { margin-top: 1rem; }
.hero p.lead { margin: 1.2rem auto 0; max-width: 42rem; }
.hero p.lead--sub { margin-top: 0.7rem; font-size: clamp(0.98rem, 1.9vw, 1.12rem); }
.hero .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.8rem; }
.hero .platform { margin-top: 1rem; font-size: 0.9rem; color: var(--muted); display: inline-flex; gap: 0.5rem; align-items: center; justify-content: center; }
.hero .platform svg { width: 1.05em; height: 1.05em; }

/* Browser-Mock mit Video */
.mock { margin: clamp(2rem, 5vw, 3.5rem) auto 0; max-width: 62rem; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow), 0 0 0 1px var(--border); background: #000; }
.mock .bar { display: flex; align-items: center; gap: 0.4rem; padding: 0.7rem 1rem; background: var(--surface); border-bottom: 1px solid var(--border); }
.mock .bar span { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #cbd5e1; }
.mock .bar span:nth-child(1){ background:#fb7185;} .mock .bar span:nth-child(2){ background:#fbbf24;} .mock .bar span:nth-child(3){ background:#34d399;}
.mock .screen { aspect-ratio: 16/9; background: #000; }
.mock .screen video { width: 100%; height: 100%; object-fit: cover; }
/* Dunkel: der Rahmen aus --border verschwindet fast im schwarzen Hintergrund –
   hier deutlicher und weiß, damit das Video eine sichtbare Kante hat. */
:root[data-theme="dark"] .mock { box-shadow: var(--shadow), 0 0 0 2px #ffffff; }

/* Raster */
.grid { display: grid; gap: clamp(1rem, 2.5vw, 1.75rem); }
.grid--feat { grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }

/* Feature-Karten */
.feat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.2rem, 2.4vw, 1.6rem); transition: transform 0.15s ease, box-shadow 0.2s ease, border-color 0.2s ease; }
.feat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--primary) 40%, var(--border)); }
.feat .ico { width: 2.9rem; height: 2.9rem; border-radius: 0.8rem; display: grid; place-items: center; font-size: 1.4rem; background: var(--primary-tint); margin-bottom: 0.9rem; }
.feat h3 { margin-bottom: 0.35rem; }
.feat p { margin: 0; color: var(--muted); font-size: 0.97rem; }

/* ── Scroll-Reveal ────────────────────────────────────────────────────────── */
/* Der Startzustand hängt an `.js-reveal` (wird vom Script gesetzt): ohne JS
   bleibt alles sichtbar, statt unsichtbar hängen zu bleiben. */
.js-reveal [data-reveal] {
  opacity: 0;
  transform: translateY(1.4rem);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-i, 0) * 90ms);
}
.js-reveal [data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ── Cloud vs. Offline – Duell-Layout ─────────────────────────────────────── */
.versus {
  margin-top: clamp(2.5rem, 6vw, 4rem);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: clamp(1rem, 3vw, 2.5rem);
}
@media (max-width: 60rem) {
  .versus { grid-template-columns: 1fr; }
}
.vs-badge {
  display: grid; place-items: center;
  width: clamp(2.8rem, 5vw, 3.6rem); aspect-ratio: 1; border-radius: 999px;
  font-weight: 800; font-size: clamp(0.85rem, 1.6vw, 1rem); letter-spacing: 0.02em;
  background: var(--bg); color: var(--text);
  border: 2px solid rgba(15, 23, 42, 0.85); box-shadow: var(--shadow);
  justify-self: center;
}
/* Dunkel: der Ring soll sich klar vom fast schwarzen Hintergrund abheben. */
[data-theme="dark"] .vs-badge { border-color: rgba(255, 255, 255, 0.9); }
.duel { position: relative; border-radius: var(--radius); padding: clamp(1.4rem, 3vw, 2.2rem); border: 1px solid var(--border); background: transparent; height: 100%; }
.duel h3 { display: flex; align-items: center; gap: 0.6rem; font-size: clamp(1.05rem, 2vw, 1.25rem); }
.duel .tagline { margin: 0.5rem 0 1.3rem; color: var(--muted); font-size: 0.95rem; }
.duel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.duel li { display: flex; gap: 0.65rem; align-items: flex-start; font-size: 0.98rem; }
.duel li svg { width: 1.2rem; height: 1.2rem; flex: none; margin-top: 0.15rem; }
.duel .sign { display: grid; place-items: center; width: 1.35rem; height: 1.35rem; border-radius: 999px; flex: none; font-size: 0.8rem; font-weight: 800; margin-top: 0.1rem; }

/* Verlierer-Seite: gedämpft – beide Kacheln stehen ohne Fläche auf dem
   Seitenhintergrund, nur der rote Rand bleibt zur Unterscheidung (gleiche
   Intensität wie rechts). */
.duel--them { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); }
.duel--them li { color: var(--muted); }
[data-theme="dark"] .duel--them li { color: #fff; }
.duel--them .sign { background: color-mix(in srgb, var(--bad) 18%, transparent); color: var(--bad); }
.duel--them .ico { background: color-mix(in srgb, var(--bad) 14%, transparent); }

/* Gewinner-Seite: hervorgehoben */
.duel--us { border-color: color-mix(in srgb, var(--primary) 45%, var(--border)); box-shadow: var(--glow); }
.duel--us::before {
  content: "Empfohlen"; position: absolute; top: 0; right: clamp(1rem, 3vw, 1.8rem);
  transform: translateY(-50%);
  background: var(--primary); color: var(--primary-ink);
  font-size: 0.72rem; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase;
  padding: 0.35em 0.9em; border-radius: 999px;
}
.duel--us .sign { background: var(--accent-tint); color: var(--accent); }
.duel .ico { width: 2.6rem; height: 2.6rem; border-radius: 0.75rem; display: grid; place-items: center; font-size: 1.25rem; background: var(--primary-tint); flex: none; }

/* Datenschutz-Band (immer dunkel) */
.privacy { background: var(--band); color: var(--band-ink); }
.privacy .eyebrow { color: var(--band-accent); }
.privacy h2 { color: var(--band-ink); }
.privacy .band-strong { color: var(--band-ink); }
.privacy .big { font-size: clamp(2.4rem, 7vw, 4.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.02; }
.privacy .big .zero { color: var(--band-accent); }
.privacy p { color: var(--band-muted); }
/* 2 × 2 – nicht 3 + 1. */
.privacy .pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); margin-top: clamp(2rem, 5vw, 3rem); }
@media (max-width: 42rem) { .privacy .pgrid { grid-template-columns: 1fr; } }
.privacy .pcard { background: var(--band-card); border: 1px solid var(--band-border); border-radius: var(--radius); padding: clamp(1.1rem, 2.4vw, 1.5rem); }
.privacy .pcard h3 { color: var(--band-ink); display: flex; align-items: center; gap: 0.55rem; }
.privacy .pcard h3 svg { width: 1.3rem; height: 1.3rem; color: var(--band-accent); flex: none; }
.privacy .pcard p { margin: 0.5rem 0 0; font-size: 0.96rem; }

/* Vergleichstabelle */
.compare { margin-top: clamp(2rem, 5vw, 3rem); overflow-x: auto; }
.compare table { width: 100%; border-collapse: collapse; min-width: 34rem; background: var(--band-card); border-radius: var(--radius); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 0.9rem 1.1rem; border-bottom: 1px solid var(--band-border); font-size: 0.98rem; }
.compare thead th { color: var(--band-ink); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; }
.compare th.us { color: var(--band-accent); }
.compare td.us { color: var(--band-ink); font-weight: 600; }
.compare td.them { color: var(--band-muted); }
.compare tr td:first-child { color: var(--band-ink); font-weight: 600; }

/* Auf dem Handy passen drei Spalten nicht nebeneinander – die Tabelle wurde
   rechts abgeschnitten. Jede Zeile wird deshalb zu einem gestapelten Block;
   die Spaltenüberschrift kommt per data-label vor den Wert. */
@media (max-width: 48rem) {
  .compare { overflow-x: visible; }
  .compare table { min-width: 0; display: block; }
  .compare thead { display: none; }
  .compare tbody { display: block; }
  .compare tr {
    display: grid; gap: 0.45rem;
    padding: 1rem 1.1rem;
    border-bottom: 1px solid var(--band-border);
  }
  .compare td { display: flex; justify-content: space-between; gap: 1rem; padding: 0; border: 0; }
  .compare td::before { content: attr(data-label); color: var(--band-muted); font-weight: 600; flex: none; }
  /* Gleiche Farbe wie die Spaltenüberschrift auf dem Desktop (th.us). */
  .compare td.us::before { color: var(--band-accent); }
  .compare td.us, .compare td.them { text-align: right; }
  /* Die Frage hat kein data-label – als Flex-Zelle schöbe das leere ::before
     sie nach rechts. Deshalb hier wieder ein normaler Block. */
  .compare tr td:first-child { display: block; text-align: left; font-size: 1.02rem; margin-bottom: 0.2rem; }
  .compare tr td:first-child::before { content: none; }
}

/* Check-Liste */
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.6rem; }
.checks li { display: flex; gap: 0.6rem; align-items: flex-start; color: var(--ink); }
.checks li svg { width: 1.25rem; height: 1.25rem; color: var(--accent); flex: none; margin-top: 0.12rem; }
.checks li.cross { color: var(--muted); }
.checks li.cross svg { color: #dc2626; }

/* ── Auto-Slider (Produkt-Screenshots) ────────────────────────────────────── */
/* Pfeile stehen NEBEN der Bühne, nicht darauf: drei Spalten (Pfeil | Bühne |
   Pfeil). Dadurch verdeckt nichts das Bild, und auf schmalen Schirmen schrumpft
   die Bühne mit, statt dass die Pfeile aus dem Bild laufen. */
.slider {
  display: grid; align-items: center;
  grid-template-columns: auto minmax(0, 1fr) auto;
  column-gap: clamp(0.4rem, 1.5vw, 1.1rem);
  margin-top: clamp(2rem, 5vw, 3rem); max-width: 64.5rem; margin-inline: auto;
}
/* WebKit klippt einen transformierten Kindknoten nicht an einer Box mit
   border-radius + overflow:hidden – die Slides quellen aus der Karte. Eigener
   Stapelkontext + Maske erzwingen das Klippen (isolation allein reicht nicht). */
.slider__view {
  grid-column: 2; grid-row: 1;
  position: relative; z-index: 0; isolation: isolate;
  overflow: hidden; border-radius: var(--radius);
  -webkit-mask-image: -webkit-radial-gradient(#fff, #000);
  mask-image: radial-gradient(#fff, #000);
  border: 1px solid var(--border); box-shadow: var(--shadow); background: var(--card);
}
[data-theme="dark"] .slider__view { border: 1px solid rgba(255, 255, 255, 0.5); }
.slider__track { display: flex; transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1); }
/* <figure> bringt vom Browser `margin: 1em 40px` mit. Ohne Reset ist jede Slide
   80px breiter als der Schiebeschritt (translateX(-100%)) – der Versatz summiert
   sich mit jeder Slide auf. Genau der Grund, warum nur die erste korrekt saß. */
.slide { flex: 0 0 100%; min-width: 0; margin: 0; }
/* contain + center: der Screenshot wird nie angeschnitten und sitzt mittig. */
.slide img { width: 100%; aspect-ratio: 16 / 10; object-fit: contain; object-position: center; background: var(--surface); }

/* Fokus-Rahmen: hebt genau den Bereich hervor, um den es in der Slide geht.
   Der riesige Schatten-Spread dunkelt alles außerhalb ab – deshalb muss die
   Bühne clippen, sonst legt er sich über die ganze Karte. */
.slide__media { position: relative; overflow: hidden; }
.slide__focus {
  position: absolute;
  left: var(--fx); top: var(--fy); width: var(--fw); height: var(--fh);
  border: 2px solid var(--primary);
  border-radius: 0.55rem;
  box-shadow:
    0 0 0 9999px rgba(2, 6, 23, 0.42),
    0 0 0 4px color-mix(in srgb, var(--primary) 30%, transparent),
    0 0 28px 6px color-mix(in srgb, var(--primary) 45%, transparent);
  pointer-events: none;
}
.slide figcaption {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.2rem 0.7rem;
  padding: clamp(0.9rem, 2vw, 1.2rem) clamp(1rem, 2.5vw, 1.6rem);
  border-top: 1px solid var(--border); background: var(--card);
}
.slide figcaption b { font-size: clamp(0.98rem, 1.8vw, 1.1rem); }
.slide figcaption span { color: var(--muted); font-size: 0.95rem; }

.slider__arrow {
  grid-row: 1; justify-self: center;
  display: grid; place-items: center;
  width: clamp(2.2rem, 6vw, 2.8rem); aspect-ratio: 1;
  border-radius: 999px; border: 1px solid var(--border);
  background: color-mix(in srgb, var(--card) 88%, transparent);
  color: var(--ink);
  cursor: pointer; box-shadow: var(--shadow); transition: background 0.2s ease, transform 0.12s ease;
}
.slider__arrow:hover { background: var(--card); transform: scale(1.06); }
.slider__arrow svg { width: 1.2rem; height: 1.2rem; }
.slider__arrow--prev { grid-column: 1; }
.slider__arrow--next { grid-column: 3; }

.slider__dots { grid-column: 1 / -1; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1.2rem; }
.slider__dots button {
  width: 0.6rem; height: 0.6rem; padding: 0; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--border);
  transition: width 0.25s ease, background 0.25s ease;
}
.slider__dots button[aria-current="true"] { width: 1.9rem; background: var(--primary); border-color: var(--primary); }

@media (prefers-reduced-motion: reduce) {
  .slider__track { transition: none; }
}

/* Preise */
.prices { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: clamp(1.25rem, 3vw, 2rem); max-width: 46rem; margin-inline: auto; align-items: stretch; }
/* Karten-Inhalt mittig – auch die Häkchen-Zeilen (eigene Flex-Zeilen, die sonst
   links am Rand kleben, obwohl der Text zentriert ist). */
.price { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: clamp(1.5rem, 3.5vw, 2.2rem); display: flex; flex-direction: column; align-items: center; text-align: center; }
.price.featured { border-color: var(--primary); box-shadow: var(--glow); position: relative; }
.price:not(.featured) { border-color: color-mix(in srgb, var(--bad) 45%, var(--border)); }
:root:not([data-theme="dark"]) .price:not(.featured) .btn--ghost { border-color: #000; }
[data-theme="dark"] .price:not(.featured) .btn--ghost { border-color: #fff; }
.price .tag { position: absolute; top: 0; right: clamp(1rem,3vw,1.6rem); transform: translateY(-50%); background: var(--primary); color: var(--primary-ink); font-size: 0.75rem; font-weight: 700; padding: 0.3em 0.8em; border-radius: 999px; }
.price h3 { font-size: 1.25rem; }
.price .amount { font-size: clamp(2.4rem, 6vw, 3.2rem); font-weight: 800; letter-spacing: -0.03em; margin: 0.4rem 0 0.1rem; }
.price .amount small { font-size: 1rem; font-weight: 600; color: var(--muted); }
.price .note { color: var(--muted); font-size: 0.9rem; margin: 0 0 1.2rem; }
.price .checks { margin: 0.5rem 0 1.6rem; width: 100%; }
.price .checks li { justify-content: center; }
.price .btn { margin-top: auto; width: 100%; }
.price-foot { text-align: center; color: var(--muted); font-size: 0.9rem; margin-top: 1.4rem; max-width: 42rem; margin-inline: auto; text-wrap: pretty; }
.price-foot + .price-foot { margin-top: 0.7rem; }
.price-foot a { color: var(--primary); }

/* ── Download ─────────────────────────────────────────────────────────────── */
.dl-meta { margin: 0.7rem 0 0; font-size: 0.85rem; color: var(--muted); }

/* FAQ */
.faq { max-width: 46rem; margin-inline: auto; display: grid; gap: 0.75rem; }
.faq details { background: var(--card); border: 1px solid var(--border); border-radius: 0.9rem; padding: 0 1.2rem; }
.faq summary { list-style: none; cursor: pointer; padding: 1.05rem 0; font-weight: 700; color: var(--ink); display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.5rem; color: var(--primary); font-weight: 400; line-height: 1; }
.faq details[open] summary::after { content: "\2013"; }
.faq details p { margin: 0 0 1.1rem; color: var(--muted); }

/* CTA-Band */
.cta-band { background: var(--primary); color: var(--primary-ink); border-radius: var(--radius); padding: clamp(2rem, 5vw, 3.5rem); text-align: center; box-shadow: var(--shadow); }
.cta-band h2 { color: inherit; }
.cta-band p { color: inherit; opacity: 0.92; max-width: 36rem; margin: 0.8rem auto 0; }
.cta-band .cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; justify-content: center; margin-top: 1.6rem; }
.cta-band .btn--light { background: var(--card); color: var(--ink); }
.cta-band .btn--outline-light { color: var(--primary-ink); border-color: color-mix(in srgb, var(--primary-ink) 45%, transparent); }
.cta-band .btn--outline-light:hover { background: color-mix(in srgb, var(--primary-ink) 12%, transparent); }

/* Footer */
.site-footer { background: var(--footer-bg); color: var(--footer-ink); padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.site-footer .wrap { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.site-footer .brand { color: #fff; }
.site-footer a { color: var(--footer-ink); }
.site-footer a:hover { color: #fff; }
.site-footer h4 { color: #fff; font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.05em; margin: 0 0 0.8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.5rem; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,0.1); margin-top: 2rem; padding-top: 1.5rem; font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; justify-content: space-between; }

/* Rechtsseiten */
.legal { max-width: 46rem; }
.legal h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); margin-bottom: 1rem; }
.legal h2 { font-size: 1.3rem; margin: 2rem 0 0.6rem; }
.legal p, .legal li { color: var(--muted); }
/* Der Zustimmungssatz muss zeichengleich im Stripe-Checkout stehen (§ 356 Abs. 5 BGB). */
.legal .consent-quote { border-left: 3px solid var(--primary); background: var(--card); border-radius: 0 0.7rem 0.7rem 0; padding: 0.8rem 1rem; margin: 0.8rem 0 1.5rem; }
.legal .placeholder { background: var(--accent-tint); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent); color: var(--accent); border-radius: 0.7rem; padding: 0.8rem 1rem; font-size: 0.9rem; margin-bottom: 1.5rem; }
.back { color: var(--primary); font-weight: 700; }

.legal h3 { font-size: 1.05rem; margin: 1.4rem 0 0.4rem; color: var(--ink); }

/* Cookie-Tabelle der Rechtsseiten. Vier Spalten passen auf dem Handy nicht
   nebeneinander – unter 48rem wird jede Zeile zu einem gestapelten Block,
   die Spaltenüberschrift kommt per data-label vor den Wert. */
.legal-table { margin: 0.8rem 0 1.5rem; overflow-x: auto; }
.legal-table table { width: 100%; border-collapse: collapse; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.legal-table th, .legal-table td { text-align: left; vertical-align: top; padding: 0.7rem 0.9rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; color: var(--muted); }
.legal-table thead th { color: var(--ink); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.legal-table tbody tr:last-child td { border-bottom: 0; }
.legal-table tbody td:first-child { color: var(--ink); font-weight: 600; word-break: break-word; }
@media (max-width: 48rem) {
  .legal-table { overflow-x: visible; }
  .legal-table table { display: block; }
  .legal-table thead { display: none; }
  .legal-table tbody { display: block; }
  .legal-table tr { display: grid; gap: 0.35rem; padding: 0.9rem; border-bottom: 1px solid var(--border); }
  .legal-table tbody tr:last-child { border-bottom: 0; }
  .legal-table td { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding: 0; border: 0; }
  .legal-table td::before { content: attr(data-label); color: var(--ink); font-weight: 600; flex: none; }
}


/* ── Widerrufsbutton + Bestätigungsseite (§ 356a BGB) ───────────────────────
   Der Knopf muss gut lesbar und dauerhaft erreichbar sein — deshalb steht er
   oben auf der Widerrufsbelehrung und in jedem Footer, nicht nur im Fließtext. */
.widerruf-cta {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: clamp(0.8rem, 2vw, 1.4rem);
  background: var(--card); border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border));
  border-radius: var(--radius); padding: clamp(1rem, 2.5vw, 1.5rem);
  margin: 0 0 2rem;
}
.widerruf-cta p { margin: 0; flex: 1 1 16rem; }
.legal .widerruf-cta p strong { color: var(--ink); }
.legal .widerruf-cta p a { color: var(--primary); }
.btn--widerruf { flex: none; font-size: clamp(1rem, 1.8vw, 1.15rem); padding: 0.9em 1.7em; }

.widerruf-form { margin: 1.5rem 0 0; display: grid; gap: clamp(1rem, 2.5vw, 1.5rem); }
/* display:grid schlägt sonst das UA-[hidden] — das Formular bliebe nach dem
   Absenden neben der Quittung stehen. */
.widerruf-form[hidden] { display: none; }
.widerruf-erklaerung {
  border-left: 3px solid var(--primary); background: var(--card);
  border-radius: 0 0.7rem 0.7rem 0; padding: 0.9rem 1.1rem; margin: 0;
  font-weight: 600; color: var(--ink);
}
.form-grid { display: grid; gap: clamp(0.9rem, 2vw, 1.3rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.form-grid .field { display: grid; gap: 0.35rem; margin: 0; }
.form-grid .field--wide { grid-column: 1 / -1; }
.widerruf-form label { font-weight: 600; font-size: 0.95rem; color: var(--ink); }
.widerruf-form label abbr { color: var(--primary); text-decoration: none; }
.widerruf-form .hint { font-size: 0.85rem; color: var(--muted); }
.widerruf-form input, .widerruf-form textarea {
  width: 100%; font: inherit; font-size: clamp(0.95rem, 1.6vw, 1.02rem);
  color: var(--ink); background: var(--bg);
  border: 1.5px solid var(--border); border-radius: 0.7rem;
  padding: 0.7em 0.85em; resize: vertical;
}
.widerruf-form input:focus-visible, .widerruf-form textarea:focus-visible {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 25%, transparent);
}
.widerruf-form input[aria-invalid="true"], .widerruf-form textarea[aria-invalid="true"] { border-color: var(--bad); }
.widerruf-form .form-note { margin: 0; font-size: 0.88rem; color: var(--muted); }
.widerruf-form .btn--widerruf { justify-self: start; }
.widerruf-form button[disabled] { opacity: 0.6; cursor: progress; transform: none; }
.form-status { margin: 0; font-size: 0.95rem; min-height: 1.2em; }
.form-status[data-state="fehler"] { color: var(--bad); font-weight: 600; }
.form-status[data-state="laeuft"] { color: var(--muted); }

/* Honigtopf: nicht display:none — das überspringen manche Bots gezielt. */
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.widerruf-quittung { margin-top: 1.5rem; border: 1px solid color-mix(in srgb, var(--primary) 45%, var(--border)); background: var(--card); border-radius: var(--radius); padding: clamp(1.1rem, 3vw, 1.8rem); }
.widerruf-quittung h2 { margin-top: 0; }
.widerruf-beleg {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: clamp(0.8rem, 1.5vw, 0.92rem); line-height: 1.6;
  white-space: pre-wrap; word-break: break-word;
  background: var(--bg); border: 1px solid var(--border); border-radius: 0.7rem;
  padding: clamp(0.8rem, 2vw, 1.1rem); margin: 1rem 0; color: var(--ink);
}
@media print {
  .site-header, .site-footer, .widerruf-form, .back, [data-widerruf-drucken] { display: none !important; }
  .widerruf-quittung { border: none; padding: 0; }
}

/* Mac App Store Badge: gleiche Höhe wie .btn (Zeilenhöhe 1.6em + Innenabstand 1.7em + Rahmen 3px). */
.appstore-badge { display: inline-flex; align-self: center; font-size: clamp(0.95rem, 1.6vw, 1.05rem); line-height: 0; }
.appstore-badge img { display: block; height: calc(3.3em + 3px); width: auto; max-width: 100%; }

/* Unterstrich-Linien im Muster-Widerrufsformular dürfen auf schmalen Bildschirmen umbrechen. */
.legal p { overflow-wrap: anywhere; }
