/* Mailich – Website. Gleiche Gestaltung wie die App (mailich/static/app.css), ergänzt um Marketing-Bausteine.
   Keine externen Schriften, keine Bilder, kein Tracking. Abweichungen von den App-Tokens nur für Kontrast (WCAG AA). */

/* ── Design-Tokens ─────────────────────────────────────────────────────────── */
:root {
  color-scheme: light dark;
  --bg: #f6f7fb;
  --surface: #ffffff;
  --surface-2: #f1f3f8;
  --surface-3: #e9ecf3;
  --text: #0e1525;
  --text-2: #334155;
  --muted: #5a6578;               /* App: #64748b – hier etwas dunkler für AA auf --bg */
  --border: #e4e7ef;
  --border-strong: #d3d8e3;
  --accent: #5b5bf6;
  --accent-2: #8b5cf6;
  --accent-soft: #eef0ff;
  --accent-ink: #4b4bdf;          /* Text auf --accent-soft */
  --gradient: linear-gradient(135deg, #5b5bf6 0%, #8b5cf6 55%, #c084fc 100%);
  /* Für Flächen mit weißem Text: gleiche Richtung, Stopps so gewählt, dass Weiß überall ≥ 4,5 : 1 hat */
  --gradient-strong: linear-gradient(135deg, #5b5bf6 0%, #6d4ff2 52%, #7a46e6 100%);
  --gradient-text: linear-gradient(100deg, #5b5bf6 0%, #7c4ff0 55%, #9b51e0 100%);
  --ok: #047857;
  --ok-soft: #e7f8f1;
  --warn: #9a3412;
  --warn-soft: #fff5e6;
  --danger: #b91c1c;
  --danger-line: #dc2626;
  --danger-soft: #fdeeee;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -12px rgba(15, 23, 42, .12);
  --shadow-lg: 0 24px 60px -24px rgba(39, 39, 120, .35);
  --shadow-xl: 0 50px 120px -40px rgba(39, 39, 120, .45), 0 18px 40px -24px rgba(39, 39, 120, .25);
  --ring: 0 0 0 4px rgba(91, 91, 246, .18);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  --wrap: 1160px;
  --gutter: 24px;
  --header-h: 64px;
  /* Markierungen in den Rechtstext-Entwürfen */
  --ph-bg: #fff1a6; --ph-fg: #4a3500; --ph-line: #c08a00;
  --pr-bg: #ffe1e4; --pr-fg: #7f1d1d; --pr-line: #e11d48;
  --te-bg: #dff1ff; --te-fg: #0c4a6e; --te-line: #0284c7;
  /* Mischfarben: hier fertig gemischt für ältere Safari (color-mix() erst ab 16.2, also nicht auf macOS 10.13–10.15);
     neuere Browser mischen per color-mix() – siehe @supports unter dem Dunkelmodus. */
  --header-bg: rgba(246, 247, 251, .8);   /* --bg 80 % */
  --pill-bg: rgba(255, 255, 255, .7);     /* --surface 70 % */
  --toast-line: rgba(246, 247, 251, .3);  /* --bg 30 % */
  --row-selected: #f6f7ff;                /* --accent-soft 55 % mit --surface */
  --line-hover: #9da0ec;                  /* --accent 45 % mit --border-strong */
  --faq-open-line: #b4b6f1;               /* --accent 35 % mit --border */
  --strip-stripe: #fff4d3;                /* --warn-soft 70 % mit --ph-bg */
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0c12;
    --surface: #11141c;
    --surface-2: #171b25;
    --surface-3: #1f2430;
    --text: #edf0f6;
    --text-2: #c3c9d6;
    --muted: #8a93a6;
    --border: #222837;
    --border-strong: #2e3546;
    --accent: #8a8cff;
    --accent-2: #a78bfa;
    --accent-soft: #1d1f3d;
    --accent-ink: #a9abff;
    --gradient: linear-gradient(135deg, #6d6dfb 0%, #9b6cf8 55%, #c58afc 100%);
    --gradient-text: linear-gradient(100deg, #9597ff 0%, #b28cff 55%, #d3a2ff 100%);
    --ok: #34d399;
    --ok-soft: #10261f;
    --warn: #fbbf24;
    --warn-soft: #2a2110;
    --danger: #f87171;
    --danger-line: #f87171;
    --danger-soft: #2c1517;
    --shadow-sm: none;
    --shadow: 0 0 0 1px rgba(255, 255, 255, .02);
    --shadow-lg: 0 24px 60px -24px rgba(0, 0, 0, .7);
    --shadow-xl: 0 50px 120px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(255, 255, 255, .03);
    --ring: 0 0 0 4px rgba(138, 140, 255, .25);
    --ph-bg: #3a2f05; --ph-fg: #ffe58a; --ph-line: #d4a20a;
    --pr-bg: #3b1219; --pr-fg: #fecdd3; --pr-line: #fb7185;
    --te-bg: #0b2a3d; --te-fg: #bae6fd; --te-line: #38bdf8;
    --header-bg: rgba(10, 12, 18, .8);
    --pill-bg: rgba(17, 20, 28, .7);
    --toast-line: rgba(10, 12, 18, .3);
    --row-selected: #181a2e;
    --line-hover: #575c99;
    --faq-open-line: #464b7d;
    --strip-stripe: #2f250d;
  }
}
/* Mit var() darin wird color-mix() in älteren Safari erst beim Berechnen ungültig – eine Ersatzangabe davor hilft dann
   nicht. Deshalb die fertigen Farben oben als Tokens, hier für neuere Browser überschrieben. */
@supports (color: color-mix(in srgb, red, blue)) {
  :root {
    --header-bg: color-mix(in srgb, var(--bg) 80%, transparent);
    --pill-bg: color-mix(in srgb, var(--surface) 70%, transparent);
    --toast-line: color-mix(in srgb, var(--bg) 30%, transparent);
    --row-selected: color-mix(in srgb, var(--accent-soft) 55%, var(--surface));
    --line-hover: color-mix(in srgb, var(--accent) 45%, var(--border-strong));
    --faq-open-line: color-mix(in srgb, var(--accent) 35%, var(--border));
    --strip-stripe: color-mix(in srgb, var(--warn-soft) 70%, var(--ph-bg));
  }
}

/* ── Grundlagen ───────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); } /* compat-ok: Safari < 15.4 springt ohne Animation */
body {
  margin: 0; background: var(--bg); color: var(--text); overflow-x: hidden; overflow-x: clip; /* compat-ok: hidden davor für Safari < 16 */
  font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .45em; color: var(--text); letter-spacing: -.02em; }
h1 { font-size: 2.4rem; line-height: 1.1; font-weight: 750; }
h2 { font-size: clamp(1.95rem, 3.8vw, 2.9rem); line-height: 1.08; font-weight: 720; letter-spacing: -.035em; }
h3 { font-size: 1.12rem; line-height: 1.3; font-weight: 650; }
p { margin: 0 0 .9em; text-wrap: pretty; } /* compat-ok: ältere Safari brechen normal um */
h1, h2, h3 { text-wrap: balance; } /* compat-ok: ältere Safari brechen normal um */
a { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; } /* compat-ok: ohne var() – Safari < 16.2 verwirft die Angabe, Unterstrich in voller Linkfarbe */
a:hover { text-decoration-color: currentColor; }
strong { font-weight: 650; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; } /* compat-ok: Safari < 15.4 zeigt den Standard-Fokusrahmen */
[hidden] { display: none !important; }  /* auch bei Elementen mit eigenem display (z. B. Hero-Knöpfe je Gerät) */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.wrap { width: 100%; max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
svg.i { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
svg.i.sm { width: 15px; height: 15px; }
svg.i.lg { width: 22px; height: 22px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.skip {
  position: fixed; left: 16px; top: -60px; z-index: 100; padding: 10px 16px; border-radius: 10px;
  background: var(--text); color: var(--bg); font-weight: 600; text-decoration: none; transition: top .15s;
}
.skip:focus { top: 12px; }

/* ── Kopfzeile ────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--header-bg);
  -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent; transition: border-color .2s, background .2s;
}
.site-header.scrolled, .site-header.open, body.legal .site-header { border-bottom-color: var(--border); }
.site-header .bar { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 1.14rem var(--font-display); letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.logo {
  width: 32px; height: 32px; border-radius: 10px; background: var(--gradient); box-shadow: 0 6px 16px -6px rgba(91, 91, 246, .6);
  display: grid; place-items: center; position: relative; flex: none;
}
.logo::before {
  content: ""; width: 16px; height: 12px; border: 2px solid #fff; border-radius: 3px;
  background: linear-gradient(to bottom right, transparent 47%, #fff 48%, #fff 52%, transparent 53%) top/100% 60% no-repeat,
              linear-gradient(to bottom left, transparent 47%, #fff 48%, #fff 52%, transparent 53%) top/100% 60% no-repeat;
}
.nav { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); font-weight: 550; font-size: .94rem; text-decoration: none; transition: background .15s, color .15s; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.site-header .menu-btn { display: none; }
.menu-btn .close, .site-header.open .menu-btn .open-ico { display: none; }
.site-header.open .menu-btn .close { display: block; }

/* ── Buttons & Chips ──────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px; font: 600 .95rem/1.2 var(--font);
  padding: 12px 18px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  text-decoration: none; box-shadow: var(--shadow-sm); cursor: pointer; white-space: nowrap;
  transition: transform .08s, box-shadow .15s, background .15s, border-color .15s, filter .15s;
}
.btn:hover { border-color: var(--line-hover); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--gradient-strong); color: #fff; border-color: transparent; box-shadow: 0 10px 26px -12px rgba(91, 91, 246, .9); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; box-shadow: none; color: var(--text-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--text); }
.btn.lg { padding: 15px 22px; font-size: 1rem; border-radius: 14px; }
.btn.sm { padding: 9px 14px; font-size: .88rem; border-radius: 10px; }
.btn.full { width: 100%; }
.soon {
  display: inline-flex; align-items: center; padding: 3px 9px; border-radius: 99px; font-size: .75rem; font-weight: 700; letter-spacing: .01em;
  background: rgba(255, 255, 255, .2); color: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .28);
}
.btn:not(.primary) .soon { background: var(--accent-soft); color: var(--accent-ink); box-shadow: none; }

.chip {
  display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 2px 10px; font-size: .76rem; font-weight: 600;
  background: var(--surface-2); color: var(--text-2); border: 1px solid var(--border); white-space: nowrap; line-height: 1.6;
}
.chip.accent { background: var(--accent-soft); color: var(--accent-ink); border-color: transparent; }
.chip.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chip.danger { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.chip.solid { background: var(--gradient-strong); color: #fff; border: 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-ink); margin-bottom: 14px;
}
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 99px; font-size: .86rem; font-weight: 600;
  background: var(--pill-bg); border: 1px solid var(--border); color: var(--text-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); box-shadow: var(--shadow-sm);
}
.pill .dot { width: 22px; height: 22px; border-radius: 99px; background: var(--gradient); display: grid; place-items: center; color: #fff; }
.pill .dot svg { width: 13px; height: 13px; }

/* ── Abschnitte ───────────────────────────────────────────────────────────── */
.block { padding: clamp(72px, 10vw, 128px) 0; }
.block.tight-top { padding-top: clamp(40px, 6vw, 72px); }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 56px); text-align: center; }
.section-head p { color: var(--text-2); font-size: clamp(1.04rem, 1.4vw, 1.16rem); margin: 0 auto; max-width: 640px; }
.grad-text { background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ── Hero ─────────────────────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; padding: clamp(48px, 8vw, 104px) 0 clamp(56px, 8vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; z-index: -2; left: 50%; top: -260px; width: 1500px; height: 1100px; transform: translateX(-50%);
  background:
    radial-gradient(520px 360px at 28% 30%, rgba(91, 91, 246, .20), transparent 70%),
    radial-gradient(480px 340px at 74% 22%, rgba(192, 132, 252, .22), transparent 70%),
    radial-gradient(700px 420px at 50% 70%, rgba(139, 92, 246, .12), transparent 72%);
}
.hero::after {
  content: ""; position: absolute; z-index: -1; top: 0; right: 0; bottom: 0; left: 0;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 56px 56px; opacity: .45;
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 18%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 55% at 50% 18%, #000 20%, transparent 75%);
}
.hero-copy { text-align: center; max-width: 900px; margin: 0 auto; }
.hero h1 { font-size: clamp(2.6rem, 7.4vw, 5.3rem); line-height: 1.02; letter-spacing: -.048em; font-weight: 760; margin: 22px 0 22px; }
.hero h1 > span { display: block; }
.lead { font-size: clamp(1.08rem, 1.7vw, 1.3rem); line-height: 1.55; color: var(--text-2); max-width: 660px; margin: 0 auto 34px; }
.hero-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 10px 26px; justify-content: center; flex-wrap: wrap; margin: 30px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: .92rem; font-weight: 550; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; text-align: left; }
.hero-trust svg { color: var(--ok); }
/* Je nach Gerät (site.js): zweites System als Link, Hinweis fürs Handy, Rückmeldung von „Link merken“ */
.alt-os { margin: 12px 0 0; font-size: .92rem; color: var(--muted); }
.alt-os a { display: inline-block; padding: 10px 2px; font-weight: 600; }
.device-note { display: flex; gap: 10px; align-items: flex-start; max-width: 560px; margin: 18px auto 0; padding: 12px 16px; border-radius: 14px; background: var(--accent-soft); color: var(--text); font-size: .95rem; line-height: 1.45; text-align: left; }
.device-note svg { margin-top: 3px; color: var(--accent-ink); }
.device-note.center { margin: 0 auto 26px; }
.share-msg { margin: 12px auto 0; max-width: 560px; font-size: .92rem; font-weight: 600; color: var(--ok); overflow-wrap: break-word; overflow-wrap: anywhere; } /* compat-ok: break-word davor für Safari < 15.4 */
.cta-card .share-msg { color: #fff; }
.hero-copy > * { animation: rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.hero-copy > *:nth-child(2) { animation-delay: .05s; }
.hero-copy > *:nth-child(3) { animation-delay: .1s; }
.hero-copy > *:nth-child(4) { animation-delay: .15s; }
.hero-copy > *:nth-child(5) { animation-delay: .2s; }
.mock { animation: rise .8s .25s cubic-bezier(.2, .7, .2, 1) both; }

/* ── Erklärvideo im Hero ──────────────────────────────────────────────────── */
.explainer { position: relative; max-width: 1100px; margin: clamp(40px, 6vw, 72px) auto 0; animation: rise .8s .25s cubic-bezier(.2, .7, .2, 1) both; }
.explainer-frame { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-xl); overflow: hidden; background: #f4f5fb; border: 1px solid var(--border); box-shadow: var(--shadow-xl); } /* compat-ok: ohne aspect-ratio (Safari < 15) gibt das Video die Höhe vor */
.explainer video { display: block; width: 100%; height: 100%; object-fit: cover; }
/* Handy hochkant: Hochformat-Fassung (9:16), so breit, dass der Rahmen ganz in den Bildschirm passt */
.explainer-frame.is-tall { aspect-ratio: 9 / 16; width: min(100%, calc((100vh - 150px) * 9 / 16)); width: min(100%, calc((100svh - 150px) * 9 / 16)); margin-left: auto; margin-right: auto; } /* compat-ok: vh davor; ohne aspect-ratio gibt das Video die Höhe vor */
.explainer-toggle { position: absolute; right: 14px; bottom: 14px; width: 44px; height: 44px; border: 0; border-radius: 50%; display: grid; place-items: center; background: rgba(14, 21, 37, .62); color: #fff; cursor: pointer; opacity: .8; transition: opacity .15s; }
.explainer-toggle:hover { opacity: 1; }
.explainer-toggle:focus-visible { opacity: 1; } /* compat-ok: eigene Regel, damit ältere Safari nur diese auslassen */
.explainer-toggle .play, .explainer-toggle.paused .pause { display: none; }
.explainer-toggle.paused .play { display: block; }
.explainer-toggle svg { fill: currentColor; stroke: none; }
.explainer-steps { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.explainer-steps button { width: 100%; height: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text-2); font: inherit; font-size: .9rem; line-height: 1.3; text-align: left; cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.explainer-steps button:hover { border-color: var(--border-strong); }
.explainer-steps b { color: var(--text); font-weight: 680; }
.explainer-steps .n { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); font-size: .8rem; font-weight: 760; }
.explainer-steps li.active button { border-color: rgba(91, 91, 246, .45); background: var(--accent-soft); color: var(--accent-ink); }
.explainer-steps li.active b { color: var(--accent-ink); }
.explainer-steps li.active .n { background: var(--gradient-strong); color: #fff; }
@media (max-width: 760px) {
  .explainer-frame { border-radius: var(--radius-lg); }
  .explainer-steps { grid-template-columns: 1fr 1fr; gap: 8px; }
  .explainer-steps button { padding: 10px 12px; font-size: .85rem; }
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* ── Produkt-Ansicht (Nachbau der App in HTML/CSS) ────────────────────────── */
.mock { position: relative; max-width: 1100px; margin: clamp(48px, 7vw, 84px) auto 0; }
.mock-stage { position: relative; }
.mock::before {
  content: ""; position: absolute; z-index: -1; top: 8%; right: 6%; bottom: 0; left: 6%; border-radius: 40px; background: var(--gradient); filter: blur(70px); opacity: .28;
}
.mock-window { position: relative; border-radius: 22px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-xl); overflow: hidden; text-align: left; }
.mock-titlebar { position: relative; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); }
.tl { width: 12px; height: 12px; border-radius: 50%; }
.tl.r { background: #ff5f57; } .tl.y { background: #febc2e; } .tl.g { background: #28c840; }
.mock-titlebar .t { position: absolute; left: 50%; transform: translateX(-50%); font-size: .8rem; color: var(--muted); font-weight: 600; }
/* Windows-Besucher: Fensterknöpfe rechts statt der Mac-Ampel (site.js setzt data-os) */
.win-ctl { display: none; margin-left: auto; gap: 22px; align-items: center; }
.win-ctl i { position: relative; display: block; width: 11px; height: 11px; color: var(--muted); }
.win-ctl .min::before { content: ""; position: absolute; left: 0; right: 0; top: 5px; border-top: 1.4px solid currentColor; }
.win-ctl .max { border: 1.4px solid currentColor; border-radius: 1px; }
.win-ctl .cls::before, .win-ctl .cls::after { content: ""; position: absolute; left: 5px; top: -2px; height: 15px; border-left: 1.4px solid currentColor; transform: rotate(45deg); }
.win-ctl .cls::after { transform: rotate(-45deg); }
[data-os="windows"] .mock-titlebar .tl { display: none; }
[data-os="windows"] .mock-titlebar .win-ctl { display: flex; }
[data-os="windows"] .mock-titlebar .t { left: 16px; transform: none; }
.mock-body { display: grid; grid-template-columns: 196px minmax(0, 1fr) 340px; min-height: 470px; font-size: 15px; }
.mock-side { display: flex; flex-direction: column; gap: 2px; padding: 16px 12px; border-right: 1px solid var(--border); background: var(--surface); }
.mock-side .brand { font-size: .98rem; padding: 2px 6px 14px; }
.mock-side .logo { width: 26px; height: 26px; border-radius: 8px; }
.mock-side .logo::before { width: 13px; height: 10px; border-width: 1.6px; }
.mnav { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text-2); font-size: .85rem; font-weight: 500; }
.mnav.active { background: var(--accent-soft); color: var(--accent-ink); font-weight: 650; }
.mnav .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; text-align: center; line-height: 1.6; }
.mplan { margin-top: auto; padding: 12px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: .74rem; color: var(--muted); }
.mplan b { color: var(--text); font-size: .8rem; }
.mplan .row { display: flex; justify-content: space-between; margin-top: 8px; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.bar > span { display: block; height: 100%; background: var(--gradient); border-radius: 99px; }
.bar .w58 { width: 58%; } .bar .w69 { width: 69%; }
.mock-main { min-width: 0; padding: 22px 22px 24px; background: var(--bg); }
.mhello { font: 700 1.32rem/1.2 var(--font-display); letter-spacing: -.02em; margin: 0 0 3px; color: var(--text); }
.msub { color: var(--muted); font-size: .84rem; margin: 0 0 16px; }
.mstats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 18px; }
.mstat { display: flex; gap: 10px; align-items: center; padding: 11px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); min-width: 0; }
.mstat .ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; flex: none; background: var(--accent-soft); color: var(--accent-ink); }
.mstat .ico.danger { background: var(--danger-soft); color: var(--danger); }
.mstat .ico.ok { background: var(--ok-soft); color: var(--ok); }
.mstat > div { min-width: 0; }
.mstat .num { font: 700 1.2rem/1 var(--font-display); color: var(--text); }
.mstat .lbl { font-size: .7rem; color: var(--muted); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mgroup { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 650 .9rem var(--font-display); color: var(--text); }
.mgroup.next { margin-top: 14px; }
.mlist { background: var(--surface); border: 1px solid var(--border); border-radius: 16px; overflow: hidden; box-shadow: var(--shadow-sm); }
.mrow { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 12px; padding: 12px 14px; border-top: 1px solid var(--border); }
.mrow:first-child { border-top: 0; }
.mrow.hoch { box-shadow: inset 3px 0 0 var(--danger-line); }
.mrow.sel { background: var(--row-selected); }
.av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font: 700 .76rem var(--font-display); color: #fff; }
.av-a { background: linear-gradient(135deg, #f472b6, #db2777); }
.av-b { background: linear-gradient(135deg, #38bdf8, #2563eb); }
.av-c { background: linear-gradient(135deg, #34d399, #059669); }
.mtop { display: flex; align-items: baseline; gap: 8px; }
.mfrom { font-weight: 650; font-size: .84rem; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mtime { color: var(--muted); font-size: .72rem; white-space: nowrap; }
.msubj { font-weight: 600; font-size: .82rem; margin: 1px 0; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msum { color: var(--text-2); font-size: .78rem; line-height: 1.45; margin: 0; }
.mside { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.mside .chip { font-size: .68rem; padding: 1px 8px; }
.mside .chip svg { width: 12px; height: 12px; }
.mcollapsed { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 14px; border-radius: 14px; background: var(--surface); border: 1px dashed var(--border-strong); font-size: .8rem; color: var(--muted); }
.mdraft { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-left: 1px solid var(--border); background: var(--surface); min-width: 0; }
.mdraft-head { display: flex; gap: 6px; flex-wrap: wrap; }
.mdraft-to { font-size: .78rem; color: var(--muted); }
.mdraft-to b { color: var(--text); font-weight: 650; }
.mdraft-text { padding: 14px 15px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); font-size: .84rem; line-height: 1.6; color: var(--text); }
.mdraft-text p { margin: 0 0 .65em; }
.mdraft-text p:last-child { margin: 0; }
.caret { display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.mdraft-meta { display: flex; gap: 7px; align-items: flex-start; font-size: .74rem; color: var(--muted); line-height: 1.45; }
.mdraft-meta svg { color: var(--accent); margin-top: 1px; }
.mdraft-actions { display: flex; gap: 8px; margin-top: auto; }
.mdraft-actions .btn { pointer-events: none; }
.mfloat { position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; font-size: .84rem; font-weight: 550; box-shadow: var(--shadow-lg); }
.mfloat.toast { right: 28px; bottom: -22px; background: var(--text); color: var(--bg); max-width: calc(100% - 32px); }
.mfloat.toast .x { opacity: .75; font-weight: 650; padding-left: 10px; margin-left: 4px; border-left: 1px solid var(--toast-line); }
.mfloat.lockpill { right: 44px; top: -18px; background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.mfloat.lockpill svg { color: var(--ok); }
.mock figcaption { margin-top: 46px; text-align: center; font-size: .82rem; color: var(--muted); }

/* ── So funktioniert's ────────────────────────────────────────────────────── */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; counter-reset: s; list-style: none; margin: 0; padding: 0; }
.steps::before {
  content: ""; position: absolute; top: 44px; left: 16%; right: 16%; height: 2px; z-index: 0;
  background: linear-gradient(90deg, transparent, var(--border-strong) 12%, var(--border-strong) 88%, transparent);
}
.step { position: relative; z-index: 1; padding: 26px 26px 24px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.step-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.step-num { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-strong); color: #fff; font: 700 .95rem var(--font-display); box-shadow: 0 8px 18px -8px rgba(91, 91, 246, .8); }
.step-ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.step p { color: var(--text-2); margin: 0; }
.step .note { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); font-size: .88rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; }
.step .note svg { margin-top: 3px; color: var(--ok); }
.onboarding-line { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 30px 0 0; font-size: .9rem; color: var(--muted); }
.onboarding-line .chip { font-size: .8rem; }

/* ── Datenschutz („Tresor“: immer dunkel, Tokens lokal überschrieben) ─────── */
.vault {
  --bg: #0b0d1a; --surface: #131729; --surface-2: #191e33; --surface-3: #232942;
  --text: #f1f3fa; --text-2: #c8cde0; --muted: #98a1b8; --border: #262c45; --border-strong: #333a58;
  --accent: #9597ff; --accent-soft: #23264a; --accent-ink: #b9baff; --ok: #4ade80; --ok-soft: #10291c;
  --shadow: none; --shadow-sm: none;
  /* Mischfarben im Tresor (immer dunkel): fertig gemischt für ältere Safari, sonst per color-mix() – siehe unten */
  --flow-bg: rgba(19, 23, 41, .75); --fact-bg: rgba(19, 23, 41, .85); --tag-ok-line: rgba(74, 222, 128, .45);
  position: relative; isolation: isolate; overflow: hidden; border-radius: var(--radius-xl);
  padding: clamp(40px, 6vw, 80px) clamp(20px, 5vw, 72px); background: var(--bg); color: var(--text);
  box-shadow: var(--shadow-xl); border: 1px solid #1d2238;
}
.vault::before {
  content: ""; position: absolute; z-index: -1; top: -30%; right: -10%; bottom: auto; left: -10%; height: 120%;
  background:
    radial-gradient(520px 320px at 15% 0%, rgba(109, 109, 251, .30), transparent 70%),
    radial-gradient(520px 320px at 90% 10%, rgba(197, 138, 252, .22), transparent 70%);
}
@supports (color: color-mix(in srgb, red, blue)) {
  .vault {
    --flow-bg: color-mix(in srgb, var(--surface) 75%, transparent);
    --fact-bg: color-mix(in srgb, var(--surface) 85%, transparent);
    --tag-ok-line: color-mix(in srgb, var(--ok) 45%, transparent);
  }
}
.vault .section-head { margin-bottom: 40px; }
.vault h2 { color: var(--text); }
.vault-quote { display: inline-block; font-size: 1rem; color: var(--text-2); font-style: italic; margin-bottom: 16px; }
.flow { margin: 0 0 22px; padding: clamp(16px, 3vw, 30px); border-radius: var(--radius-lg); background: var(--flow-bg); border: 1px solid var(--border); }
.flow figcaption { margin-top: 14px; font-size: .86rem; color: var(--muted); text-align: center; }
.df { display: block; width: 100%; height: auto; }
.df-v { display: none; max-width: 420px; margin: 0 auto; }
.df text { font-family: var(--font); }
.df .node { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5; }
.df-h .node.me { stroke: url(#dfgh); stroke-width: 2.5; }
.df-v .node.me { stroke: url(#dfgv); stroke-width: 2.5; }
.df .ttl { fill: var(--text); font-weight: 680; font-size: 17px; }
.df .sub { fill: var(--muted); font-size: 13px; }
.df .icobg { fill: var(--accent-soft); }
.df use { stroke: var(--accent-ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.df .edge { stroke: var(--accent); stroke-width: 2; fill: none; }
.df .ret { stroke: var(--muted); stroke-width: 1.6; stroke-dasharray: 5 6; fill: none; }
.df .arrow { fill: var(--accent); }
.df .arrow.m { fill: var(--muted); }
.df .lbl { fill: var(--text-2); font-size: 12px; font-weight: 620; }
.df .lbl.m { fill: var(--muted); font-weight: 500; }
.df .tag { fill: var(--surface-3); }
.df .tag.ok { fill: var(--ok-soft); stroke: var(--tag-ok-line); }
.df .tagt { fill: var(--text-2); font-size: 12px; font-weight: 650; }
.df .tagt.ok { fill: var(--ok); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; list-style: none; margin: 0; padding: 0; }
.fact { padding: 22px; border-radius: var(--radius-lg); background: var(--fact-bg); border: 1px solid var(--border); }
.fact .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 14px; }
.fact h3 { font-size: 1.04rem; color: var(--text); margin-bottom: 6px; }
.fact p { color: var(--text-2); margin: 0; font-size: .94rem; }
.honest { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin-top: 14px; }
.honest > div { padding: 22px; border-radius: var(--radius-lg); border: 1px dashed var(--border-strong); }
.honest h3 { display: flex; align-items: center; gap: 9px; font-size: 1rem; color: var(--text); }
.honest h3 svg { color: var(--accent-ink); }
.honest p, .honest li { color: var(--text-2); font-size: .94rem; }
.honest p:last-child { margin: 0; }
.honest ul { margin: 0; padding-left: 18px; }
.honest a { color: var(--accent-ink); }
.site-proof { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 28px 0 0; font-size: .92rem; color: var(--text-2); text-align: center; flex-wrap: wrap; }
.site-proof svg { color: var(--ok); }

/* ── Modi ─────────────────────────────────────────────────────────────────── */
.modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.mode { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.mode.featured { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; }
.mode .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 16px; }
.mode.featured .ico { background: var(--gradient-strong); color: #fff; }
.mode .top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mode p { color: var(--text-2); margin: 0; }
.panels { display: grid; grid-template-columns: 1.15fr .85fr; gap: 16px; margin-top: 16px; }
.panel { padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.panel > p { color: var(--text-2); }
.checks { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 11px; }
.checks li { display: flex; gap: 11px; align-items: flex-start; color: var(--text-2); font-size: .95rem; }
.checks li svg { flex: none; margin-top: 3px; color: var(--ok); }
.features { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 18px; }
.features li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.features .ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); }
.features strong { display: block; color: var(--text); }
.features span { color: var(--text-2); font-size: .93rem; }
code.ph-demo { font: 600 .85em var(--font-mono); padding: 1px 5px; border-radius: 6px; background: var(--warn-soft); color: var(--warn); }

/* ── Anbieter ─────────────────────────────────────────────────────────────── */
.providers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.provider { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.provider.soon-p { background: transparent; border-style: dashed; box-shadow: none; }
.provider.soon-p .pv-mark { opacity: .55; }
.pv-mark { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; flex: none; font: 800 1.2rem/1 var(--font-display); letter-spacing: -.02em; color: #fff; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); }
.pv-mark.wide { font-size: .8rem; letter-spacing: .02em; }
.pv-gmail { background: #EA4335; }
.pv-icloud { background: linear-gradient(135deg, #5AC8FA, #1E7CF2); }
.pv-gmx { background: #1C449B; }
.pv-webde { background: #FFD800; color: #1f1f1f; }
.pv-tonline { background: #E20074; }
.pv-ionos { background: #003D8F; }
.pv-imap { background: var(--surface-3); color: var(--text-2); }
.pv-outlook { background: #0078D4; }
.pv-name { display: block; font: 650 .98rem/1.25 var(--font-display); color: var(--text); }
.pv-sub { display: block; font-size: .8rem; color: var(--muted); }
.provider .chip { margin-left: auto; }
.providers-note { max-width: 720px; margin: 26px auto 0; text-align: center; color: var(--muted); font-size: .94rem; }

/* ── Preise ───────────────────────────────────────────────────────────────── */
.audience { display: flex; justify-content: center; margin-top: 16px; }
.audience .chip { white-space: normal; text-align: left; padding: 4px 12px; max-width: 100%; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; max-width: 1040px; margin: 0 auto; }
.plan { position: relative; display: flex; flex-direction: column; padding: 28px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); }
.plan.featured { border: 1.5px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--gradient) border-box; box-shadow: var(--shadow-lg); }
.plan .badge { position: absolute; top: -12px; left: 26px; }
.plan h3 { font-size: 1.15rem; margin: 0; }
.plan .for { color: var(--muted); font-size: .92rem; margin: 4px 0 0; }
.price { font: 750 2.7rem/1 var(--font-display); letter-spacing: -.04em; margin: 22px 0 4px; color: var(--text); }
.price small { font: 500 .95rem var(--font); color: var(--muted); letter-spacing: 0; }
.vat { font-size: .84rem; color: var(--muted); margin: 0; }
/* Preisansicht: Privat (Endpreise, Standard) | Unternehmen & Selbstständige (netto) – site.js */
.price-switch { display: flex; justify-content: center; margin: -18px 0 28px; }
.seg { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 3px; max-width: 100%; padding: 4px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.seg button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 600 .94rem/1.2 var(--font); cursor: pointer; transition: background .15s, color .15s, box-shadow .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); box-shadow: inset 0 0 0 1.5px var(--accent); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; font-size: .95rem; color: var(--text-2); }
.plan li { display: flex; gap: 10px; align-items: flex-start; }
.plan li svg { color: var(--ok); margin-top: 3px; }
.plan .cta { margin-top: auto; }
.fineprint { max-width: 820px; margin: 30px auto 0; padding: 18px 22px; border-radius: var(--radius); background: var(--surface-2); color: var(--text-2); font-size: .9rem; }
.fineprint p { margin: 0 0 .5em; }
.fineprint p:last-child { margin: 0; }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq { max-width: 840px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); transition: border-color .15s; }
.faq details[open] { border-color: var(--faq-open-line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; cursor: pointer; list-style: none;
  font: 650 1.03rem/1.4 var(--font-display); color: var(--text); border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { color: var(--accent); transition: transform .2s; }
.faq details[open] summary svg { transform: rotate(45deg); }
.faq .answer { padding: 0 22px 20px; color: var(--text-2); }
.faq .answer p:last-child { margin: 0; }

/* ── Abschluss & Fußzeile ─────────────────────────────────────────────────── */
.cta-card {
  position: relative; isolation: isolate; overflow: hidden; text-align: center; border-radius: var(--radius-xl);
  padding: clamp(44px, 7vw, 88px) clamp(20px, 5vw, 64px); background: var(--gradient-strong); color: #fff; box-shadow: var(--shadow-xl);
}
.cta-card::before {
  content: ""; position: absolute; z-index: -1; top: auto; right: -120px; bottom: -200px; left: auto; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
}
.cta-card::after {
  content: ""; position: absolute; z-index: -1; top: -220px; right: auto; bottom: auto; left: -160px; width: 480px; height: 480px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .14), transparent 65%);
}
.cta-card h2 { color: #fff; margin-bottom: 14px; }
.cta-card p { color: rgba(255, 255, 255, .92); font-size: 1.1rem; max-width: 600px; margin: 0 auto 30px; }
.cta-card .chip { background: rgba(255, 255, 255, .16); color: #fff; border-color: rgba(255, 255, 255, .3); margin-bottom: 18px; }
.cta-card .ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.light { background: #fff; color: #3b2fc9; border-color: transparent; }
.btn.on-dark { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); box-shadow: none; }
.btn.on-dark:hover { background: rgba(255, 255, 255, .2); border-color: #fff; }
.btn.is-disabled { cursor: not-allowed; opacity: .92; box-shadow: none; }
.btn.light .soon { background: #eef0ff; color: #3b2fc9; box-shadow: none; }
/* Download: erkanntes System hell, das andere zurückhaltend (site.js setzt .secondary) */
.btn.light.secondary { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn.light.secondary .soon { background: rgba(255, 255, 255, .2); color: #fff; }
.sysreq { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 22px; margin: 22px 0 0; padding: 0; list-style: none; font-size: .92rem; color: rgba(255, 255, 255, .88); }
.sysreq .secondary { color: rgba(255, 255, 255, .7); }
.dl-help { margin: 14px 0 0 !important; font-size: .95rem !important; }
.dl-help a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 4px; color: #fff; font-weight: 600; }
.cta-card :focus-visible { outline-color: #fff; } /* compat-ok: Safari < 15.4 zeigt den Standard-Fokusrahmen */

.site-footer { border-top: 1px solid var(--border); padding: 56px 0 40px; background: var(--surface); }
body.legal .site-footer { margin-top: clamp(40px, 6vw, 72px); }
.foot-grid { display: grid; grid-template-columns: 1.3fr 1fr 1.1fr 1fr 1fr; gap: 28px; }
.foot-grid h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 0 0 12px; font-weight: 700; font-family: var(--font); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.foot-grid a { color: var(--text-2); text-decoration: none; font-size: .95rem; }
.foot-grid li a { display: inline-block; padding: 10px 0; }
.foot-grid a:hover { color: var(--accent); text-decoration: underline; }
.foot-grid a[aria-current="page"] { color: var(--accent-ink); font-weight: 650; }
/* § 312k / § 356a BGB: „gut lesbar“ – etwas kräftiger als die übrigen Links */
.foot-grid a.strong { color: var(--text); font-weight: 650; }
.foot-brand .brand { min-height: 44px; }
.foot-brand p { color: var(--muted); font-size: .92rem; margin: 12px 0 0; max-width: 300px; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--border); font-size: .86rem; color: var(--muted); }
.foot-bottom span { display: inline-flex; align-items: center; gap: 8px; }
.foot-bottom svg { color: var(--ok); }

/* ── Rechtstexte (aus docs/recht/*.md, siehe build.py) ────────────────────── */
.draft-strip {
  position: sticky; top: var(--header-h); z-index: 30; border-bottom: 1px solid var(--pr-line);
  background: repeating-linear-gradient(-45deg, var(--warn-soft), var(--warn-soft) 14px, var(--strip-stripe) 14px, var(--strip-stripe) 28px);
  color: var(--warn); font-size: .86rem;
}
.draft-strip .wrap { display: flex; align-items: center; gap: 8px 16px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.draft-strip strong { letter-spacing: .04em; }
.draft-strip .legend { display: inline-flex; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.legal-main { padding: clamp(36px, 6vw, 64px) 0 24px; }
.legal-doc { max-width: 860px; margin: 0 auto; }
.legal-doc > header { margin-bottom: 26px; }
.legal-doc h1 { font-size: clamp(2rem, 5vw, 2.8rem); letter-spacing: -.035em; }
.legal-doc h2 { font-size: 1.45rem; letter-spacing: -.02em; margin: 2.1em 0 .6em; scroll-margin-top: calc(var(--header-h) + 64px); }
.legal-doc h3 { font-size: 1.12rem; margin: 1.7em 0 .5em; scroll-margin-top: calc(var(--header-h) + 64px); }
.legal-doc h4 { font-size: 1rem; margin: 1.4em 0 .4em; }
.legal-doc p, .legal-doc li, .legal-doc td { color: var(--text-2); }
.legal-doc ul, .legal-doc ol { padding-left: 1.4em; margin: 0 0 1em; }
.legal-doc li { margin: .3em 0; }
.legal-doc li > p { margin: 0 0 .35em; }
.legal-doc li > ul, .legal-doc li > ol { margin: .3em 0 .5em; }
.legal-doc hr { border: 0; height: 1px; background: var(--border); margin: 2.4em 0; }
.legal-doc code { font: .86em var(--font-mono); padding: 1px 5px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); word-break: break-word; }
.legal-doc pre { overflow-x: auto; padding: 16px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); font: .82rem/1.6 var(--font-mono); }
.legal-doc pre code { padding: 0; border: 0; background: none; font-size: inherit; }
.legal-doc blockquote { margin: 1em 0; padding: 14px 18px; border-left: 3px solid var(--accent); border-radius: 0 12px 12px 0; background: var(--accent-soft); }
.legal-doc blockquote p { color: var(--text); }
.legal-doc blockquote p:last-child { margin: 0; }
.legal-doc a { word-break: break-word; }
.table-wrap { overflow-x: auto; margin: 0 0 1.2em; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.legal-doc table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.legal-doc th { text-align: left; font-size: .76rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 650; padding: 10px 12px; background: var(--surface-2); border-bottom: 1px solid var(--border); }
.legal-doc td { padding: 10px 12px; border-top: 1px solid var(--border); vertical-align: top; }
.legal-doc tr:first-child td { border-top: 0; }
.legal-doc .r { text-align: right; }
.draft-banner {
  margin: 0 0 28px; padding: 18px 20px; border-radius: 14px; border: 2px solid var(--pr-line); background: var(--pr-bg); color: var(--pr-fg);
}
.draft-banner p { color: var(--pr-fg); margin: 0 0 .4em; }
.draft-banner p:first-child { font-size: 1.12rem; }
.draft-banner p:last-child { margin: 0; }
.draft-banner code { background: rgba(255, 255, 255, .5); border-color: transparent; }
mark.ph { border-radius: 4px; padding: 1px 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; font-weight: 600; }
mark.ph-platzhalter { background: var(--ph-bg); color: var(--ph-fg); box-shadow: inset 0 -2px 0 var(--ph-line); }
mark.ph-pruefen { background: var(--pr-bg); color: var(--pr-fg); box-shadow: inset 0 -2px 0 var(--pr-line); }
mark.ph-technik { background: var(--te-bg); color: var(--te-fg); box-shadow: inset 0 -2px 0 var(--te-line); }
.mark-block { margin: 1em 0; padding: 14px 18px; border-radius: 12px; border: 1px dashed var(--pr-line); background: var(--pr-bg); color: var(--pr-fg); }
.mark-block p, .mark-block li { color: var(--pr-fg); }
.mark-block .mark-label { font-weight: 700; margin-bottom: .3em; }
.intern { margin: 2em 0; padding: 4px 22px 10px; border-radius: 16px; border: 2px dashed var(--border-strong); background: var(--surface-2); }
.intern-label { display: inline-flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--warn); }
.intern > :nth-child(2) { margin-top: .8em; }
.ph-link { text-decoration: underline dotted; }
.toc { margin: 0 0 30px; padding: 18px 22px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); }
.toc h2 { margin: 0 0 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-family: var(--font); }
.toc ol { list-style: none; margin: 0; padding: 0; columns: 2; column-gap: 28px; }
.toc li { margin: 0 0 6px; break-inside: avoid; font-size: .92rem; }
.toc a { color: var(--text-2); text-decoration: none; }
.toc a:hover { color: var(--accent); text-decoration: underline; }
.back-top { margin: 40px 0 0; font-size: .92rem; }

/* ── Responsiv ────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .mfloat.lockpill { display: none; }
}
@media (max-width: 1060px) {
  .mock-body { grid-template-columns: minmax(0, 1fr) 320px; }
  .mock-side { display: none; }
  .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .providers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --header-h: 60px; }
  .header-cta { margin-left: auto; }
  .site-header .menu-btn { display: inline-flex; padding: 9px 10px; min-width: 44px; min-height: 44px; }
  .header-cta { min-height: 44px; }
  .site-header .brand { min-height: 44px; }
  .site-header .bar { gap: 10px; }
  .nav {
    display: none; position: absolute; top: var(--header-h); left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
    padding: 10px var(--gutter) 16px; background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: var(--shadow-lg);
  }
  .site-header.open .nav { display: flex; }
  .nav a { padding: 12px 12px; font-size: 1rem; }
  .steps, .modes, .plans { grid-template-columns: 1fr; }
  .steps::before { display: none; }
  .plans { max-width: 520px; }
  .panels, .honest { grid-template-columns: 1fr; }
  .df-h { display: none; }
  .df-v { display: block; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .toc ol { columns: 1; }
}
@media (max-width: 760px) {
  .mock-body { grid-template-columns: 1fr; min-height: 0; }
  .mdraft { border-left: 0; border-top: 1px solid var(--border); }
  .mock-main { padding: 18px 14px 20px; }
  .mfloat.toast { position: relative; right: auto; bottom: auto; margin: 14px auto 0; width: fit-content; }
  .mock figcaption { margin-top: 16px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .header-cta .lbl-long { display: none; }
  .hero-ctas .btn { width: 100%; }
  .hero-trust { flex-direction: column; align-items: center; gap: 8px; }
  .mstats { gap: 6px; }
  .mstat { flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; }
  .mstat .ico { width: 26px; height: 26px; border-radius: 8px; }
  .mstat .lbl { white-space: normal; line-height: 1.3; }
  .mstat .ico svg { width: 15px; height: 15px; }
  .mrow { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; padding: 12px; }
  .av { width: 30px; height: 30px; border-radius: 9px; }
  .mside { grid-column: 2; flex-direction: row; align-items: center; justify-content: flex-start; flex-wrap: wrap; }
  .facts, .providers { grid-template-columns: 1fr; }
  .vault { padding: 40px 14px 32px; border-radius: 22px; }
  .flow { padding: 14px 4px; }
  .fact, .honest > div { padding: 18px; }
  .fact, .panel, .step, .mode, .plan { padding: 22px; }
  .faq summary { padding: 16px 18px; }
  .faq .answer { padding: 0 18px 18px; }
  .cta-card .ctas .btn { width: 100%; white-space: normal; }
  .dl-ctas .btn { padding: 14px 14px; gap: 8px; }
  .soon { white-space: nowrap; }
  .foot-grid { grid-template-columns: 1fr; }
  .seg button { padding: 10px 12px; font-size: .9rem; }
  .draft-strip .legend { display: none; }
  .draft-strip { font-size: .8rem; }
  .intern { padding: 4px 16px 8px; }
}
@media (max-width: 360px) {
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media print {
  .site-header, .draft-strip, .site-footer, .skip { display: none; }
  body { background: #fff; color: #000; }
}

/* ── Ältere Safari ohne gap in Flexbox (bis 14.0, z. B. macOS 10.13 High Sierra) ─────────────────────────────
   compat-ok-datei: flex-gap – Ersatz per Rand in diesem Block.
   Flexbox-gap lässt sich nicht abfragen (@supports (gap: 1px) stimmt dank Grid schon früher). inset kam in Safari 14.1
   zusammen mit Flexbox-gap und dient deshalb als Erkennungsmerkmal. Neuere Browser überspringen den Block. */
@supports not (inset: 0) {
  .brand .logo, .mnav > svg, .mstat .ico, .device-note > svg, .explainer-steps .n, .site-proof > svg, .plan li > svg,
  .mfloat > svg { margin-right: 10px; }
  .btn > svg.i:first-child, .honest h3 > svg { margin-right: 9px; }
  .btn > .soon, .btn > span + svg.i { margin-left: 9px; }
  .menu-btn > svg.i:first-child { margin-right: 0; }
  .pill > .dot, .eyebrow > svg, .hero-trust li > svg, .step .note > svg, .dl-help a > svg, .foot-bottom span > svg,
  .intern-label > svg, .draft-strip strong { margin-right: 8px; }
  .checks li > svg { margin-right: 11px; }
  .mdraft-meta > svg { margin-right: 7px; }
  .chip > svg.i:first-child { margin-right: 5px; }
  .mtime, .mgroup .chip, .mock-titlebar .tl + .tl, .mdraft-actions .btn + .btn, .legend mark + mark { margin-left: 8px; }
  .mdraft-head .chip + .chip { margin-left: 6px; }
  .seg button + button { margin-left: 3px; }
  .win-ctl i + i { margin-left: 22px; }
  .provider > span + span { margin-left: 14px; }
  .faq summary > svg { margin-left: 16px; }
  .mside > * + * { margin-top: 6px; }
  .mdraft > :not(:first-child):not(.mdraft-actions) { margin-top: 12px; }
  .onboarding-line > * { margin: 4px; }
  .hero-ctas > :not([hidden]) ~ *, .cta-card .ctas > :not([hidden]) ~ * { margin-left: 12px; }
  .hero-trust { margin: 25px -13px -5px; }
  .hero-trust > li { margin: 5px 13px; }
  .sysreq { margin: 20px -11px -2px; }
  .sysreq > li { margin: 2px 11px; }
  .menu-btn { margin-left: 10px; }
  @media (min-width: 901px) {
    .nav { margin-right: 20px; }
  }
  @media (max-width: 600px) {
    .hero-ctas > :not([hidden]) ~ *, .cta-card .ctas > :not([hidden]) ~ * { margin-left: 0; margin-top: 12px; }
    .hero-trust { margin: 26px 0 -4px; }
    .hero-trust > li { margin: 4px 0; }
    .mstat .ico { margin: 0 0 6px; }
    .mside > * + * { margin: 0 0 0 6px; }
  }
}

/* ── Themen- und Ratgeberseiten (website/inhalte/*.md, build.py) ─────────────────────────── */
.seite-doc .crumbs { font-size: .86rem; color: var(--muted); margin-bottom: 18px; }
.seite-doc .crumbs a { color: var(--muted); }
.seite-doc .stand { margin: .2em 0 0; font-size: .86rem; color: var(--muted); }
.seite-doc .lead, .seite-doc > p:first-of-type { font-size: 1.12rem; color: var(--text); }
.seite-doc h2 { margin-top: 1.8em; }
.cta-box { margin: 2.6em 0 1.6em; padding: 24px 26px; border-radius: 18px; background: var(--accent-soft); border: 1px solid var(--border); }
.cta-box h2 { margin: 0 0 .4em; font-size: 1.3rem; }
.cta-box p { color: var(--text-2); }
.cta-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 0; }
.cta-actions .btn { text-decoration: none; }
.related { margin: 2.2em 0 0; }
.related h2 { font-size: 1.2rem; margin: 0 0 .7em; }
.related ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.related li { margin: 0; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.related li a { display: block; font-weight: 650; text-decoration: none; margin-bottom: 3px; }
.related li span { display: block; font-size: .9rem; color: var(--muted); }
.related.list { margin-top: 1.2em; }
@media (min-width: 720px) { .related ul { grid-template-columns: 1fr 1fr; } }
