/* ==========================================================================
   Zack KI — Website v7
   Ein Stylesheet, eine Anfrage. Aufbau:
   1 Tokens · 2 Reset · 3 Typografie · 4 Buttons · 5 Layout · 6 Kopf/Fuss
   7 Hero + Demo · 8 App-Fenster · 9 Abschnitte · 10 Preise · 11 Tabellen
   12 FAQ · 13 Seiten · 14 Prosa/Recht · 15 Bewegung · 16 Druck
   ========================================================================== */

/* --- 1 Tokens ------------------------------------------------------------ */

:root {
  color-scheme: light;

  --bg: #ffffff;
  --bg-tint: #f6f8fa;
  --surface: #ffffff;
  --surface-2: #f1f4f7;
  --surface-3: #e6eaef;
  --edge: #e2e6ec;
  --edge-strong: #cbd2db;

  --fg: #14181f;
  --fg-muted: #545c68;
  --fg-subtle: #79828f;

  --accent: #0a7cf0;
  --accent-hover: #0668cc;
  --accent-soft: rgba(10, 124, 240, 0.10);
  --accent-soft-strong: rgba(10, 124, 240, 0.18);
  --accent-line: rgba(10, 124, 240, 0.28);
  --on-accent: #ffffff;
  --accent-text: #0668cc;

  --ok: #157a3c;
  --ok-soft: rgba(21, 122, 60, 0.10);
  --danger: #c5221f;
  --warn: #a45b00;
  --warn-soft: rgba(214, 138, 0, 0.12);

  --shadow-sm: 0 1px 2px rgba(15, 23, 35, 0.05);
  --shadow-md: 0 1px 2px rgba(15, 23, 35, 0.04), 0 8px 24px rgba(15, 23, 35, 0.07);
  --shadow-lg: 0 2px 6px rgba(15, 23, 35, 0.06), 0 28px 64px rgba(15, 23, 35, 0.14);

  --r-xs: 8px;
  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 24px;
  --sp-6: 32px;
  --sp-7: 48px;
  --sp-8: 64px;
  --sp-9: 96px;

  --wrap: 1140px;
  --wrap-narrow: 760px;
  --header-h: 66px;

  --font: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --mono: "Cascadia Mono", Consolas, ui-monospace, monospace;

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

:root[data-theme="auto"] { color-scheme: light dark; }

@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] { color-scheme: dark; }
}

/* Dunkelmodus-Werte einmal definieren, zweimal anwenden (System + Umschalter). */
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0f1319;
    --bg-tint: #141922;
    --surface: #171d26;
    --surface-2: #1e252f;
    --surface-3: #272f3b;
    --edge: #262e3a;
    --edge-strong: #3a4553;

    --fg: #e9edf3;
    --fg-muted: #a3adbb;
    --fg-subtle: #7d8796;

    --accent: #4da3ff;
    --accent-hover: #6fb5ff;
    --accent-soft: rgba(77, 163, 255, 0.14);
    --accent-soft-strong: rgba(77, 163, 255, 0.24);
    --accent-line: rgba(77, 163, 255, 0.32);
    --on-accent: #08121e;
    --accent-text: #7bbaff;

    --ok: #5fd08a;
    --ok-soft: rgba(95, 208, 138, 0.12);
    --danger: #f28b82;
    --warn: #f0b45c;
    --warn-soft: rgba(240, 180, 92, 0.12);

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 28px 64px rgba(0, 0, 0, 0.55);
  }
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0f1319;
  --bg-tint: #141922;
  --surface: #171d26;
  --surface-2: #1e252f;
  --surface-3: #272f3b;
  --edge: #262e3a;
  --edge-strong: #3a4553;
  --fg: #e9edf3;
  --fg-muted: #a3adbb;
  --fg-subtle: #7d8796;
  --accent: #4da3ff;
  --accent-hover: #6fb5ff;
  --accent-soft: rgba(77, 163, 255, 0.14);
  --accent-soft-strong: rgba(77, 163, 255, 0.24);
  --accent-line: rgba(77, 163, 255, 0.32);
  --on-accent: #08121e;
  --accent-text: #7bbaff;
  --ok: #5fd08a;
  --ok-soft: rgba(95, 208, 138, 0.12);
  --danger: #f28b82;
  --warn: #f0b45c;
  --warn-soft: rgba(240, 180, 92, 0.12);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.35), 0 8px 24px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 28px 64px rgba(0, 0, 0, 0.55);
}

/* --- 2 Reset ------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%; scroll-behavior: smooth;
  /* Sprungziele landen unter der klebenden Kopfzeile, nicht dahinter. */
  scroll-padding-top: calc(var(--header-h) + var(--sp-4));
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
svg { display: block; }

h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.02em; font-weight: 650; text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
[hidden] { display: none !important; }

a { color: var(--accent-text); text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: 3px; }
a:hover { color: var(--accent-hover); }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

::selection { background: var(--accent-soft); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: 50%; top: 8px; transform: translate(-50%, -200%);
  z-index: 100; background: var(--accent); color: var(--on-accent);
  padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600; text-decoration: none;
}
.skip-link:focus-visible { transform: translate(-50%, 0); color: var(--on-accent); }

.icon { width: 20px; height: 20px; flex: none; }

/* --- 3 Typografie -------------------------------------------------------- */

h1 { font-size: clamp(2.2rem, 1.35rem + 3.1vw, 3.65rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(1.65rem, 1.2rem + 1.6vw, 2.4rem); letter-spacing: -0.028em; }
h3 { font-size: 1.16rem; }

.lead {
  font-size: clamp(1.05rem, 0.98rem + 0.35vw, 1.24rem);
  color: var(--fg-muted);
  max-width: 56ch;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--sp-2);
  font-size: 0.82rem; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--accent-text);
  margin: 0 0 var(--sp-3);
}
.eyebrow .icon { width: 17px; height: 17px; }
.eyebrow--big { font-size: 3rem; letter-spacing: -0.03em; text-transform: none; color: var(--accent); }

.accent { color: var(--accent-text); }

.brand-z { font-weight: 700; }
.brand-ki { font-weight: 700; color: var(--accent-text); }

kbd {
  font-family: var(--font); font-size: 0.85em; font-weight: 650;
  padding: 2px 7px; border-radius: var(--r-xs);
  background: var(--surface-2); border: 1px solid var(--edge-strong);
  border-bottom-width: 2px; color: var(--fg); white-space: nowrap;
}

code {
  font-family: var(--mono); font-size: 0.9em;
  background: var(--surface-2); padding: 1px 5px; border-radius: 5px;
}

/* --- 4 Buttons ----------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  padding: 11px 20px; border-radius: var(--r-pill);
  border: 1px solid transparent; background: transparent;
  font-weight: 600; font-size: 0.97rem; line-height: 1.2;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .16s var(--ease), border-color .16s var(--ease),
              color .16s var(--ease), transform .16s var(--ease), box-shadow .16s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .icon { width: 19px; height: 19px; }

.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: var(--shadow-md); }

.btn-secondary { background: var(--surface); color: var(--fg); border-color: var(--edge-strong); }
.btn-secondary:hover { background: var(--surface-2); color: var(--fg); border-color: var(--fg-subtle); }

/* Google-Anmeldung: weisse Flaeche, neutraler Rand, vierfarbiges Zeichen
   links — bewusst identisch zu dem Knopf, den Nutzer von anderen Seiten
   kennen. Googles Markenregeln lassen kein eigenes Einfaerben zu, deshalb
   bleiben Flaeche und Zeichen auch im dunklen Thema unveraendert. */
.btn-google { background: #fff; color: #1f1f1f; border-color: #747775; }
.btn-google:hover { background: #f7f8f8; color: #1f1f1f; border-color: #747775; }
.btn-google .google-mark { flex: 0 0 auto; width: 18px; height: 18px; }

.btn-ghost { color: var(--fg-muted); }
.btn-ghost:hover { background: var(--surface-2); color: var(--fg); }

.btn-sm { padding: 8px 15px; font-size: 0.9rem; }
.btn-sm .icon { width: 17px; height: 17px; }
.btn-lg { padding: 14px 26px; font-size: 1.03rem; }
.btn-block { display: flex; width: 100%; }

/* --- 4b Geteilter Download-Knopf: Store vorne, Installer im Aufklapp ---- */

.dl-split { position: relative; display: inline-flex; align-items: stretch; }
.dl-split .dl-split-main { border-radius: var(--r-pill) 0 0 var(--r-pill); }
.dl-split .dl-split-toggle {
  border-radius: 0 var(--r-pill) var(--r-pill) 0;
  border-left: 1px solid color-mix(in srgb, var(--on-accent) 30%, transparent);
  padding-inline: 13px;
}
.dl-split .dl-split-toggle .icon { width: 17px; height: 17px; transition: transform .18s var(--ease); }
.dl-split .dl-split-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.dl-split .dl-split-main.is-pending { cursor: not-allowed; }
.dl-menu {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 30;
  min-width: 270px; padding: 6px;
  border: 1px solid var(--edge); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.dl-menu-item {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; border-radius: 8px;
  color: var(--fg); font-weight: 600; font-size: 0.93rem; text-decoration: none;
}
.dl-menu-item:hover { background: var(--surface-2); }
.dl-menu-item .icon { width: 17px; height: 17px; color: var(--fg-muted); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; text-decoration: none;
}
.link-arrow .icon { width: 18px; height: 18px; transition: transform .18s var(--ease); }
.link-arrow:hover .icon { transform: translateX(3px); }

/* --- 5 Layout ------------------------------------------------------------ */

.wrap { width: min(100% - 2 * var(--sp-5), var(--wrap)); margin-inline: auto; }
.wrap--narrow { width: min(100% - 2 * var(--sp-5), var(--wrap-narrow)); }

.section { padding-block: clamp(var(--sp-7), 5vw, var(--sp-9)); }
.section--flush { padding-top: var(--sp-6); }
/* Abschnitte trennen sich ueber Abstand und Border, nicht ueber graue
   Flächen — einzige Ausnahme ist die Kontext-Buehne, deren Szenen eine
   eigene, dunklere Flaeche behalten. */

.section-head { max-width: 62ch; margin: 0 auto clamp(var(--sp-6), 4vw, var(--sp-7)); text-align: center; }
.section-head--left { margin-inline: 0; text-align: left; }
.section-head .eyebrow { justify-content: center; }
.section-head--left .eyebrow { justify-content: flex-start; }
.section-sub { margin-top: var(--sp-4); color: var(--fg-muted); font-size: 1.06rem; }

.section-foot {
  margin-top: var(--sp-6); text-align: center;
  color: var(--fg-muted); font-size: 0.98rem;
}

.split-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }

/* --- 6 Kopf- und Fusszeile ---------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s var(--ease), background-color .2s var(--ease);
}
.site-header.is-stuck { border-bottom-color: var(--edge); background: color-mix(in srgb, var(--bg) 92%, transparent); }

.header-inner { display: flex; align-items: center; gap: var(--sp-5); height: var(--header-h); }

.logo {
  display: inline-flex; align-items: center; gap: 9px;
  text-decoration: none; color: var(--fg); font-size: 1.12rem; letter-spacing: -0.02em;
}
.logo-mark { width: 30px; height: 30px; flex: none; }
.logo-z { fill: var(--fg); }
.logo-bolt { fill: var(--accent); }
.logo--lg { font-size: 1.5rem; }
.logo--lg .logo-mark { width: 42px; height: 42px; }

.nav { margin-inline-start: var(--sp-3); flex: 1; }
.nav-list { display: flex; align-items: center; gap: 2px; }
.nav-list a {
  display: block; padding: 8px 13px; border-radius: var(--r-pill);
  color: var(--fg-muted); text-decoration: none; font-size: 0.95rem; font-weight: 550;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.nav-list a:hover { background: var(--surface-2); color: var(--fg); }
.nav-list a[aria-current="page"] { color: var(--fg); background: var(--surface-2); }

.header-actions { display: flex; align-items: center; gap: var(--sp-2); margin-inline-start: auto; }

/* Der Download steht schon gross im Hero — oben erscheint er erst, wenn
   man daran vorbeigescrollt ist. */
.header-cta {
  opacity: 0; transform: translateY(-4px); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.header-cta.is-in { opacity: 1; transform: none; pointer-events: auto; }

.lang-switch {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: var(--r-pill);
  color: var(--fg-muted); text-decoration: none; font-size: 0.9rem; font-weight: 550;
}
.lang-switch:hover { background: var(--surface-2); color: var(--fg); }
.lang-switch .icon { width: 17px; height: 17px; }

.theme-toggle {
  display: inline-flex; padding: 3px; gap: 2px;
  background: var(--surface-2); border: 1px solid var(--edge); border-radius: var(--r-pill);
}
.theme-toggle button {
  display: grid; place-items: center; width: 30px; height: 26px;
  border: 0; background: transparent; border-radius: var(--r-pill);
  color: var(--fg-subtle); cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease);
}
.theme-toggle button .icon { width: 15px; height: 15px; }
.theme-toggle button:hover { color: var(--fg); }
.theme-toggle button[aria-checked="true"] { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }

.nav-toggle {
  display: none; place-items: center; width: 38px; height: 38px;
  border: 1px solid var(--edge); border-radius: var(--r-sm);
  background: var(--surface); cursor: pointer; color: var(--fg);
}
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

.mobile-nav {
  display: grid; gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5) var(--sp-5);
  border-top: 1px solid var(--edge); background: var(--bg);
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-list { display: grid; gap: 2px; }
.mobile-nav-list a {
  display: block; padding: 12px 14px; border-radius: var(--r-sm);
  color: var(--fg); text-decoration: none; font-weight: 550;
}
.mobile-nav-list a:hover { background: var(--surface-2); }
.mobile-nav-foot { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }

.site-footer {
  padding-block: var(--sp-8) var(--sp-5);
  background: var(--bg-tint); border-top: 1px solid var(--edge);
}
.footer-grid {
  display: grid; gap: var(--sp-6);
  grid-template-columns: 1.6fr repeat(3, 1fr);
}
.footer-brand p { color: var(--fg-muted); font-size: 0.95rem; margin-top: var(--sp-3); max-width: 34ch; }
.footer-directory-badge { display: inline-flex; align-items: center; margin-top: 0; }
.footer-directory-badge img { display: block; width: auto; max-width: 112px; height: 18px; }
.footer-col h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-subtle); margin-bottom: var(--sp-3); }
.footer-col ul { display: grid; gap: 7px; }
.footer-col a { color: var(--fg-muted); text-decoration: none; font-size: 0.94rem; }
.footer-col a:hover { color: var(--fg); text-decoration: underline; }

.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--sp-4);
  margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid var(--edge); color: var(--fg-subtle); font-size: 0.88rem;
}
.footer-bottom-actions { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-3); }

/* --- 7 Hero und Demo ----------------------------------------------------- */

.hero { position: relative; padding-block: clamp(var(--sp-7), 5vw, var(--sp-9)); }
/* Der Akzent-Glow ragt bewusst über den Abschnitt hinaus und bekommt deshalb
   einen eigenen Beschneidungsrahmen. Der Abschnitt selbst beschneidet nichts
   mehr — sonst kappt er den weichen Fensterschatten der App-Nachbildung an
   der Abschnittsgrenze hart ab. */
.hero-glow-clip {
  position: absolute; inset: 0; overflow: hidden; z-index: -1; pointer-events: none;
}
.hero-glow {
  position: absolute; inset-inline: 0; top: -220px; height: 560px;
  background:
    radial-gradient(52% 60% at 22% 42%, var(--accent-soft), transparent 70%),
    radial-gradient(46% 52% at 82% 20%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 70%);
  filter: blur(6px);
}
.hero-grid {
  display: grid; gap: clamp(var(--sp-6), 4vw, var(--sp-8));
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
}
.hero-copy h1 { margin-bottom: var(--sp-4); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-top: var(--sp-6); }
.hero-actions--center { justify-content: center; }
.hero-note {
  display: flex; align-items: center; gap: 7px;
  margin-top: var(--sp-4); color: var(--fg-subtle); font-size: 0.92rem;
}
.hero-note .icon { width: 17px; height: 17px; color: var(--ok); }
.mobile-hint { display: none; margin-top: var(--sp-4); color: var(--fg-muted); font-size: 0.92rem; }

/* Der Hero spielt den ganzen Weg einmal durch: markieren, Alt+1, Fenster,
   Chip, Antwort. Ein Mauszeiger begleitet die zweite Haelfte. Danach bleibt
   das Ergebnis stehen. */
.hero-demo { position: relative; min-height: 500px; }

.hero-mail {
  position: absolute; right: 0; top: 0; width: 44%;
  border: 1px solid var(--edge-strong); border-radius: 12px;
  background: var(--bg); box-shadow: var(--shadow-md); overflow: hidden;
  transition: opacity .5s var(--ease), transform .5s var(--ease);
}
.hero-mail-body {
  position: relative; padding: 14px 18px; display: flex; flex-direction: column; gap: 7px;
  font-size: .8rem; line-height: 1.55; color: var(--fg);
}
.hero-mail-line {
  position: relative; z-index: 1; padding: 3px 6px; border-radius: 6px;
  color: var(--fg); transition: background-color .25s var(--ease), color .25s var(--ease);
}
.hero-mail-line:not(.is-target) { color: var(--fg-muted); }
.hero-mail-line.is-target { font-weight: 500; }
.hero-mail-line.is-replaced {
  background: color-mix(in srgb, var(--ok) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 35%, transparent);
}
.hero-mail-line.is-flash { animation: hero-mail-flash .7s ease; }
@keyframes hero-mail-flash {
  0%, 100% { background-color: color-mix(in srgb, var(--ok) 16%, transparent); }
  50% { background-color: color-mix(in srgb, var(--ok) 34%, transparent); }
}

.hero-demo .stage-keys {
  left: 56%; top: 48%; z-index: 5;
}

.hero-app {
  position: absolute; left: 0; bottom: 0; z-index: 2;
  opacity: 0; transform: translateY(18px) scale(.97);
  transition: opacity .4s var(--ease), transform .4s var(--ease);
}
[data-hero-demo][data-step="3"] .hero-app,
[data-hero-demo][data-step="4"] .hero-app { opacity: 1; transform: none; }
[data-hero-demo][data-step="3"] .hero-mail,
[data-hero-demo][data-step="4"] .hero-mail { opacity: .5; }

/* Innerhalb des Fensters: erst Leerzustand mit Kontext, dann die Antwort. */
.hero-app [data-appshot-context] { opacity: 0; transition: opacity .3s var(--ease); }
[data-hero-demo][data-step="3"] .hero-app [data-appshot-context] { opacity: 1; }
/* display statt nur Opacity: eine nur transparente Auswahl-Karte hinterliesse
   ueber dem Eingabefeld eine leere Luecke in Kartengroesse. */
[data-hero-demo][data-step="4"] .hero-app [data-appshot-context] { display: none; }
.hero-app [data-message-row] { opacity: 0; transition: opacity .35s var(--ease); }
[data-hero-demo][data-step="4"] .hero-app [data-message-row] { opacity: 1; }
[data-hero-demo][data-step="4"] .hero-app .empty-state { opacity: 0; display: none; }
[data-hero-demo][data-step="4"] .hero-app [data-titlebar-new] { display: grid; }
/* Chip und Einsetzen-Knopf schaltet das Skript per Klasse beziehungsweise
   data-apply-state genau im Moment des Zeiger-Klicks — appshot.css liefert
   den angewendeten Zustaenden bereits die passende Optik. */
.hero-app .composer-chip.is-active {
  color: rgb(var(--ca-accent-text));
  background: rgb(var(--ca-accent) / 0.2);
  box-shadow: inset 0 0 0 1px rgb(var(--ca-accent) / 0.4);
}

/* Mauszeiger wie in der Kontext-Buehne; bewegt wird er per Inline-transform,
   hier steht nur Optik und Klick-Rueckmeldung. */
.hero-pointer {
  position: absolute; left: 0; top: 0; z-index: 6;
  width: 24px; height: 24px; opacity: 0;
  color: var(--fg); will-change: transform;
  transition: opacity .25s var(--ease);
}
.hero-pointer.is-visible { opacity: 1; }
.hero-pointer svg { width: 24px; height: 24px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.hero-pointer-arrow { transform-origin: 4px 2px; }
.hero-pointer-ring {
  position: absolute; left: -9px; top: -11px; width: 26px; height: 26px;
  border: 2px solid var(--accent); border-radius: 50%; opacity: 0;
}
.hero-pointer.is-clicking .hero-pointer-arrow { animation: hero-cursor-press .28s ease; }
.hero-pointer.is-clicking .hero-pointer-ring { animation: hero-cursor-ring .64s ease-out; }
@keyframes hero-cursor-press { 0%, 100% { transform: scale(1); } 50% { transform: scale(.85); } }
@keyframes hero-cursor-ring { 0% { opacity: .7; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.9); } }

@media (prefers-reduced-motion: reduce) {
  .hero-pointer { display: none; }
}

/* --- 8 Zeitstrahlen ------------------------------------------------------ */

/* Beide Strahlen teilen dieselbe Schrittbreite. Der kurze endet deshalb
   sichtbar frueher: der Unterschied wird gesehen, nicht gezaehlt. */
.tl-grid { display: grid; gap: var(--sp-5); }
.tl {
  min-width: 0;
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  border: 1px solid var(--edge); border-radius: var(--r-lg);
  background: var(--bg-tint);
}
/* Wie der Sprech-Tacho der Typing-Seite: der kurze Weg traegt den Verlauf. */
.tl--accent {
  border-color: var(--accent-line);
  background: radial-gradient(90% 120% at 50% 0%, var(--accent-soft), transparent 70%), var(--bg-tint);
}
.tl-head { display: flex; align-items: center; gap: var(--sp-3); margin-bottom: var(--sp-5); }
.tl-icon {
  display: grid; place-items: center; width: 34px; height: 34px;
  border-radius: var(--r-sm); background: var(--surface-2); color: var(--fg-muted);
}
.tl--accent .tl-icon { background: var(--accent-soft); color: var(--accent); }
.tl-head h3 { flex: 1; font-size: 1.08rem; }
.tl-count {
  padding: 4px 11px; border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--fg-muted);
  font-size: .8rem; font-weight: 650; white-space: nowrap;
}
.tl--accent .tl-count { background: var(--accent); color: var(--on-accent); }

.tl-track { position: relative; }
.tl-line {
  position: absolute; left: 5px; top: 5px; height: 2px;
  background: var(--surface-3); border-radius: 2px;
}
.tl--accent .tl-line { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.tl-steps { display: flex; position: relative; }
.tl-step { flex: 1 1 0; min-width: 0; position: relative; padding-right: 8px; }
.tl-dot {
  display: block; width: 11px; height: 11px; border-radius: 50%;
  background: var(--surface-3); box-shadow: 0 0 0 1px var(--edge-strong);
  margin-bottom: 12px; position: relative; z-index: 1;
}
.tl--accent .tl-dot { background: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.tl-label { display: block; font-size: .76rem; line-height: 1.3; color: var(--fg-muted); }
.tl--accent .tl-label { color: var(--fg); font-weight: 550; }

/* --- 9 Abschnitte -------------------------------------------------------- */

/* Kachelzeilen: je Funktion ein Name, ein Satz und das Beispiel in einer
   Kachel mit weichem Verlauf. Aufeinanderfolgende Zeilen wechseln die
   Seite. Beide Websites (sections.showcase). */
.showcase {
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: var(--sp-8); align-items: center; padding-block: var(--sp-8);
}
.showcase:first-child { padding-top: 0; }
.showcase:last-child { padding-bottom: 0; }
.showcase:nth-of-type(even) { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.showcase:nth-of-type(even) .showcase-copy { order: 2; }
/* Die KI-Buehnen zeigen ein ganzes Fenster; mehr Breite haelt die App lesbar. */
.showcase--stage { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); }
.showcase--stage:nth-of-type(even) { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); }
.showcase-copy h2 { margin-bottom: var(--sp-4); }
.showcase-copy > p:not(.eyebrow) { max-width: 44ch; color: var(--fg-muted); font-size: 1.06rem; }
.showcase-copy > .showcase-hint { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.showcase-hint .icon { flex: none; width: 17px; height: 17px; margin-top: 4px; color: var(--accent); }
.showcase-copy > .showcase-action { margin-top: var(--sp-5); }
.showcase-visual { min-width: 0; }
.showcase-tile {
  position: relative; padding: var(--sp-5);
  background: radial-gradient(80% 55% at 50% 0%, var(--accent-soft), transparent 70%), var(--bg-tint);
  border: 1px solid var(--edge); border-radius: var(--r-lg);
}

/* Quick/Deep: die echte Pille, ein Zeiger, ein Klick; darunter beide Modi.
   Die Karte des gewaehlten Modus leuchtet im Takt der Pille mit. */
.mode-tile { display: grid; justify-items: center; gap: var(--sp-5); padding-top: var(--sp-6); }
.mode-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); width: 100%; }
.mode-card {
  display: grid; align-content: start; gap: var(--sp-3);
  padding: var(--sp-5); border: 1px solid var(--edge); border-radius: var(--r-md);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.mode-card p { margin: 0; color: var(--fg-muted); }
@media (prefers-reduced-motion: no-preference) {
  .mode-card--quick { animation: mode-card-quick 8s infinite; }
  .mode-card--deep { animation: mode-card-deep 8s infinite; }
}
@keyframes mode-card-quick {
  0%, 36%  { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
  39%, 90% { border-color: var(--edge); box-shadow: var(--shadow-sm); }
  93%, 100% { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
}
@keyframes mode-card-deep {
  0%, 36%  { border-color: var(--edge); box-shadow: var(--shadow-sm); }
  39%, 90% { border-color: var(--accent-line); box-shadow: 0 0 0 3px var(--accent-soft); }
  93%, 100% { border-color: var(--edge); box-shadow: var(--shadow-sm); }
}

.mode-demo { position: relative; display: grid; place-items: center; width: 150px; height: 104px; }
.mode-pills, .mode-tag {
  display: grid; place-items: center;
  background: none; box-shadow: none; border: 0; overflow: visible;
}
/* Die Ueberschriften der beiden Karten sind derselbe Knopf wie im Composer. */
.mode-tag { justify-self: start; }
.mode-tag .composer-mode { transform: scale(1.35); transform-origin: left center; }

.mode-pills .composer-mode {
  grid-area: 1 / 1; transform: scale(1.8); transform-origin: center;
  transition: transform .12s var(--ease);
  animation: mode-swap 8s infinite steps(1);
}
.mode-pills .composer-mode[data-slot="deep"] { animation-name: mode-swap-deep; }
/* Kurzes Eindruecken genau im Moment des Klicks — sonst fehlt das Gefuehl,
   dass da wirklich ein Knopf gedrueckt wird. */
.mode-pills { animation: mode-press 8s infinite var(--ease); }

@keyframes mode-swap      { 0%, 37% { opacity: 1; } 38%, 91% { opacity: 0; } 92%, 100% { opacity: 1; } }
@keyframes mode-swap-deep { 0%, 37% { opacity: 0; } 38%, 91% { opacity: 1; } 92%, 100% { opacity: 0; } }
@keyframes mode-press {
  0%, 34%   { transform: scale(1); }
  37%       { transform: scale(.93); }
  40%, 88%  { transform: scale(1); }
  91%       { transform: scale(.93); }
  94%, 100% { transform: scale(1); }
}

.mode-cursor {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 22px;
  color: var(--fg); pointer-events: none;
  animation: mode-cursor 8s infinite var(--ease);
}
.mode-cursor svg { width: 22px; height: 22px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.mode-cursor-ring {
  position: absolute; left: -8px; top: -10px; width: 24px; height: 24px;
  border: 2px solid var(--accent); border-radius: 50%; opacity: 0;
  animation: mode-ring 8s infinite var(--ease);
}
/* Der Zeiger ist vor dem Umschalten da und klickt genau dann, wenn die
   Pille wechselt (37 % und 91 %). */
@keyframes mode-cursor {
  0%   { transform: translate(32px, 38px); opacity: 0; }
  6%   { transform: translate(32px, 38px); opacity: 1; }
  30%  { transform: translate(1px, 3px);   opacity: 1; }
  46%  { transform: translate(1px, 3px);   opacity: 1; }
  58%  { transform: translate(32px, 38px); opacity: 0; }
  78%  { transform: translate(32px, 38px); opacity: 0; }
  82%  { transform: translate(32px, 38px); opacity: 1; }
  90%  { transform: translate(1px, 3px);   opacity: 1; }
  100% { transform: translate(1px, 3px);   opacity: 1; }
}
@keyframes mode-ring {
  0%, 35% { opacity: 0; transform: scale(.4); }
  37%     { opacity: .7; transform: scale(.5); }
  45%     { opacity: 0; transform: scale(1.8); }
  89%     { opacity: 0; transform: scale(.4); }
  91%     { opacity: .7; transform: scale(.5); }
  99%     { opacity: 0; transform: scale(1.8); }
}

.cta {
  padding-block: clamp(var(--sp-7), 5vw, var(--sp-8));
  background: linear-gradient(140deg, color-mix(in srgb, var(--accent) 12%, var(--bg)), var(--bg) 62%);
  border-top: 1px solid var(--edge);
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-6); flex-wrap: wrap; }
/* Die Textspalte darf schrumpfen und umbrechen, damit Text und Knopf so lange
 * wie moeglich eine Reihe bleiben; der Knopf behaelt seine Breite und sitzt
 * am rechten Rand — margin-left:auto haelt ihn auch nach einem Umbruch rechts. */
.cta-inner > div:first-child { flex: 1 1 24rem; min-width: 0; }
.cta-inner p { color: var(--fg-muted); margin-top: var(--sp-3); max-width: 48ch; }
.cta-actions { display: grid; gap: var(--sp-3); justify-items: end; margin-left: auto; }

/* Ein Konto für beide Apps: beide App-Icons mit ihrer Rolle, dazwischen
   Konto und Guthaben. Linien und Konto sitzen auf der Hoehe der Icon-Mitte. */
.sibling-visual {
  --icon: clamp(56px, 7vw, 76px);
  display: flex; align-items: flex-start; margin: 0; min-width: 0;
  padding: var(--sp-7) var(--sp-5) var(--sp-6);
}
.sibling-app { display: grid; justify-items: center; gap: var(--sp-1); flex: none; text-align: center; }
.sibling-icon { margin-bottom: var(--sp-2); }
.sibling-icon svg {
  display: block; width: var(--icon); height: auto;
  border-radius: 22%; box-shadow: var(--shadow-md), 0 0 0 1px var(--edge-strong);
}
.sibling-name { font-size: .92rem; white-space: nowrap; }
.sibling-role { font-size: .78rem; color: var(--fg-muted); white-space: nowrap; }
.sibling-line {
  flex: 1 1 var(--sp-5); min-width: var(--sp-3); height: 2px; margin-top: calc(var(--icon) / 2 - 1px);
  background: repeating-linear-gradient(90deg, var(--accent-line) 0 6px, transparent 6px 11px);
}
.sibling-account {
  display: grid; justify-items: center; gap: 2px; flex: none;
  margin-top: calc(var(--icon) / 2); transform: translateY(-50%);
  padding: var(--sp-3) var(--sp-4);
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--accent-line);
  box-shadow: var(--shadow-sm); font-size: .82rem; font-weight: 650; line-height: 1.3; color: var(--fg); text-align: center;
}
.sibling-account .icon { width: 20px; height: 20px; color: var(--accent-text); margin-bottom: 2px; }

/* --- 10 Preise ----------------------------------------------------------- */

.billing-toggle {
  display: flex; width: max-content; gap: 3px; padding: 4px;
  margin: 0 auto var(--sp-5);
  background: var(--surface-2); border: 1px solid var(--edge); border-radius: var(--r-pill);
}
.billing-toggle button {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 18px; border: 0; border-radius: var(--r-pill);
  background: transparent; color: var(--fg-muted); font-weight: 600; font-size: 0.92rem; cursor: pointer;
}
.billing-toggle button.is-active { background: var(--surface); color: var(--fg); box-shadow: var(--shadow-sm); }
.save-pill {
  padding: 2px 8px; border-radius: var(--r-pill);
  background: var(--accent-soft); color: var(--accent-text); font-size: 0.74rem; font-weight: 650;
}

/* Drei Abos nebeneinander. */
.plan-grid {
  display: grid; gap: var(--sp-4);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 900px; margin-inline: auto; align-items: stretch;
}
.plan {
  display: flex; flex-direction: column; gap: var(--sp-3);
  padding: var(--sp-5); border: 1px solid var(--edge); border-radius: var(--r-lg);
  background: var(--surface); position: relative;
}
.plan--featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.plan-flag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 3px 12px; border-radius: var(--r-pill);
  background: var(--accent); color: var(--on-accent); font-size: 0.74rem; font-weight: 650; white-space: nowrap;
}
.plan-name { font-size: 1.05rem; }
.plan-pricing { display: flex; flex-direction: column; gap: 3px; margin: 0; }
.plan-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; margin: 0; }
.plan-amount { font-size: 2rem; font-weight: 680; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.plan-period { color: var(--fg-subtle); font-size: 0.88rem; }
.plan-vat { color: var(--fg-subtle); font-size: 0.8rem; min-height: 1.2em; margin: 0; line-height: 1.3; }
.plan-estimate {
  display: flex; align-items: center; justify-content: center; gap: 7px;
  text-align: center; line-height: 1.35; white-space: nowrap;
  padding: 6px 12px; border-radius: var(--r-sm);
  background: var(--accent-soft); border: 1px solid var(--accent-line);
  color: var(--accent-text); font-size: 0.86rem; font-weight: 600;
  margin-block: 2px;
}
.plan-estimate .icon { width: 15px; height: 15px; color: var(--accent); flex: none; }
.plan-benefits { display: grid; gap: 9px; margin-block: 4px var(--sp-4); }
.plan-benefits li { display: flex; gap: 9px; font-size: 0.92rem; color: var(--fg-muted); }
.plan-benefits .icon { width: 17px; height: 17px; color: var(--ok); margin-top: 3px; flex: none; }
.plan .btn { margin-top: auto; }
.plan-note {
  display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap;
  margin-top: var(--sp-5); color: var(--fg-subtle); font-size: 0.87rem; text-align: center;
}
.plan-note .icon { width: 17px; height: 17px; color: var(--ok); }
.plan-footnote { margin: var(--sp-2) 0 0; text-align: center; font-size: .78rem; color: var(--fg-subtle); }

/* Das Credit-Pack ist kein vierter Tarif, sondern eine Nachfuellpackung —
   deshalb steht es abgesetzt darunter, quer statt hochkant. */
.pack-head { max-width: 900px; margin: var(--sp-8) auto var(--sp-4); text-align: center; }
.pack-head p:last-child { color: var(--fg-muted); }
.pack {
  display: grid; gap: var(--sp-5); align-items: center;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr) auto;
  max-width: 900px; margin-inline: auto;
  padding: var(--sp-5); border: 1px solid var(--edge); border-radius: var(--r-lg);
  background: var(--surface);
}
.pack .plan-vat { min-height: 0; }
.pack-benefits { display: grid; gap: 8px; }
.pack-benefits li { display: flex; gap: 9px; font-size: 0.92rem; color: var(--fg-muted); }
.pack-benefits .icon { width: 17px; height: 17px; color: var(--ok); margin-top: 3px; flex: none; }

/* --- 11 Tabellen (nur Rechtstexte) --------------------------------------- */

.table-wrap { overflow-x: auto; border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--surface); }
.prose-table { width: 100%; border-collapse: collapse; font-size: 0.94rem; min-width: 460px; }
.prose-table th, .prose-table td {
  padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--edge); vertical-align: top;
}
.prose-table thead th {
  background: var(--surface-2); font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--fg-subtle); font-weight: 650;
}
.prose-table tbody tr:last-child td { border-bottom: 0; }

/* --- 12 FAQ -------------------------------------------------------------- */

.faq { display: grid; gap: var(--sp-2); }
.faq-item {
  border: 1px solid var(--edge); border-radius: var(--r-md);
  background: var(--surface); overflow: hidden;
  transition: border-color .16s var(--ease);
}
.faq-item[open] { border-color: var(--accent-line); }
.faq-item summary {
  display: flex; align-items: center; gap: var(--sp-4);
  padding: var(--sp-4) var(--sp-5); cursor: pointer; list-style: none;
  font-weight: 600; font-size: 1.02rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary span { flex: 1; }
.faq-item summary .icon { color: var(--fg-subtle); transition: transform .2s var(--ease); }
.faq-item[open] summary .icon { transform: rotate(180deg); }
.faq-item summary:hover { background: var(--surface-2); }
.faq-answer { padding: 0 var(--sp-5) var(--sp-5); color: var(--fg-muted); max-width: 68ch; }

.faq-group { margin-bottom: var(--sp-7); }
.faq-group h2 { font-size: 1.4rem; margin-bottom: var(--sp-4); }

.chip-nav { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-7); }
.chip-nav a {
  padding: 7px 15px; border-radius: var(--r-pill);
  border: 1px solid var(--edge); background: var(--surface);
  color: var(--fg-muted); text-decoration: none; font-size: 0.9rem; font-weight: 550;
}
.chip-nav a:hover { border-color: var(--accent-line); color: var(--fg); background: var(--accent-soft); }

/* --- 13 Unterseiten ------------------------------------------------------ */

.page-hero {
  padding-block: clamp(var(--sp-7), 5vw, var(--sp-8)) var(--sp-6);
  border-bottom: 1px solid var(--edge);
}
.page-hero h1 { max-width: 20ch; }
.page-hero .lead { margin-top: var(--sp-4); }
.page-hero--center { text-align: center; }
.page-hero--center h1, .page-hero--center .lead { margin-inline: auto; }
.page-hero--center .eyebrow { justify-content: center; display: flex; }
.page-hero--slim { padding-block: var(--sp-7) var(--sp-5); }

/* Feature-Seite: Gruppen mit Vorteilen, je Vorteil Titel und ein Satz. */
.feature-group { padding-block: var(--sp-7) 0; scroll-margin-top: calc(var(--header-h) + var(--sp-4)); }
.feature-group:first-of-type { padding-top: 0; }
.feature-group-head { max-width: 62ch; margin-bottom: var(--sp-5); }
.feature-group-head h2 { font-size: clamp(1.4rem, 1.1rem + 1vw, 1.9rem); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3) var(--sp-5); }
.feature-item {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--sp-3); align-items: start;
  padding: var(--sp-4) var(--sp-5); border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--surface);
}
.feature-item > .icon { width: 20px; height: 20px; margin-top: 3px; color: var(--accent); }
.feature-item h3 { font-size: 1.02rem; margin: 0 0 var(--sp-1); overflow-wrap: anywhere; }
.feature-item p { margin: 0; color: var(--fg-muted); font-size: .95rem; overflow-wrap: anywhere; }

.note-card {
  display: grid; gap: var(--sp-3); align-content: start;
  padding: var(--sp-5); border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--surface);
}
.note-card h2 { display: flex; align-items: center; gap: 9px; font-size: 1.1rem; }
.note-card h2 .icon { color: var(--accent); }
.note-card p { color: var(--fg-muted); font-size: 0.95rem; }
.note-card--info { border-color: var(--accent-line); background: var(--accent-soft); }
/* Liste aus Pfeil-Links (Kontaktseite: Selbstbedienungs-Strecken). */
.link-list { display: grid; gap: 10px; margin-top: 2px; }
.link-list li { display: flex; }

.check-list { display: grid; gap: 9px; }
.check-list li { display: flex; gap: 10px; font-size: 0.95rem; color: var(--fg-muted); }
.check-list .icon { width: 18px; height: 18px; color: var(--ok); flex: none; margin-top: 2px; }

.lang-page { display: grid; min-height: 100vh; place-items: center; }
.lang-chooser { padding: var(--sp-6); }
.lang-card {
  display: grid; gap: var(--sp-4); justify-items: center; text-align: center;
  max-width: 560px; padding: var(--sp-7); border: 1px solid var(--edge);
  border-radius: var(--r-xl); background: var(--surface); box-shadow: var(--shadow-md);
}
.lang-card p { color: var(--fg-muted); }
.lang-choices { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; }

/* --- 14 Prosa und Rechtstexte ------------------------------------------- */

.legal-grid { display: grid; gap: clamp(var(--sp-5), 4vw, var(--sp-7)); grid-template-columns: 250px minmax(0, 1fr); align-items: start; }
.legal-grid > .prose:only-child { grid-column: 1 / -1; max-width: var(--wrap-narrow); margin-inline: auto; }

.toc {
  position: sticky; top: calc(var(--header-h) + var(--sp-4));
  padding: var(--sp-4); border: 1px solid var(--edge); border-radius: var(--r-md); background: var(--surface);
  max-height: calc(100vh - var(--header-h) - var(--sp-7)); overflow-y: auto;
}
.toc-title { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--fg-subtle); font-weight: 650; margin-bottom: var(--sp-3); }
.toc ol { display: grid; gap: 3px; counter-reset: toc; }
.toc a {
  display: block; padding: 5px 9px; border-radius: var(--r-xs);
  color: var(--fg-muted); text-decoration: none; font-size: 0.88rem; line-height: 1.4;
}
.toc a:hover { background: var(--surface-2); color: var(--fg); }
.toc a.is-active { background: var(--accent-soft); color: var(--accent-text); font-weight: 600; }

.prose { max-width: 72ch; font-size: 1rem; }
.prose > * + * { margin-top: var(--sp-4); }
.prose h2 {
  font-size: 1.42rem; margin-top: var(--sp-7); padding-top: var(--sp-5);
  border-top: 1px solid var(--edge);
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: var(--sp-6); }
.prose h4 { font-size: 1rem; margin-top: var(--sp-5); }
.prose p, .prose li { color: var(--fg-muted); }
.prose strong { color: var(--fg); font-weight: 650; }
.prose ul, .prose ol { display: grid; gap: 9px; padding-left: var(--sp-5); }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose ul li::marker, .prose ol li::marker { color: var(--fg-subtle); }
.prose blockquote {
  margin: var(--sp-5) 0; padding: var(--sp-4) var(--sp-5);
  border-left: 3px solid var(--accent-line); background: var(--surface-2); border-radius: 0 var(--r-sm) var(--r-sm) 0;
}
.prose-lines { line-height: 1.75; }
.prose .prose-stand { font-size: 0.9rem; color: var(--fg-subtle); }
.prose-rule { border: 0; border-top: 1px solid var(--edge); margin-block: var(--sp-6); }
.prose .note-card { margin-bottom: var(--sp-6); }
.prose .table-wrap { margin-block: var(--sp-5); }

/* --- 14b Windows-Hinweis ------------------------------------------------- */

html:has(dialog[open]),
body:has(dialog[open]),
html.has-modal,
body.has-modal {
  overflow: hidden !important;
}

.ss-dialog {
  width: min(1200px, calc(100vw - 32px));
  max-width: min(1200px, calc(100vw - 32px));
  max-height: min(94vh, 780px);
  margin: auto; padding: 0; border: 1px solid var(--edge); border-radius: var(--r-xl);
  background: var(--surface); color: var(--fg); box-shadow: var(--shadow-lg);
  position: relative;
}
.ss-dialog::backdrop { background: rgb(12 16 22 / .65); backdrop-filter: blur(4px); }

.ss-close-btn {
  position: absolute;
  top: 20px; right: 20px;
  width: 42px; height: 42px;
  border-radius: var(--r-pill);
  border: 1px solid var(--edge);
  background: var(--surface-2);
  color: var(--fg-muted);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color .15s var(--ease), color .15s var(--ease), border-color .15s var(--ease);
  z-index: 10;
}
.ss-close-btn:hover {
  background: var(--surface-3);
  color: var(--fg);
  border-color: var(--edge-strong);
}
.ss-close-btn .icon { width: 22px; height: 22px; }

.ss-card {
  padding: clamp(var(--sp-6), 4vw, 48px);
  display: grid;
  grid-template-columns: 1fr 1.22fr;
  gap: clamp(var(--sp-6), 4vw, 52px);
  align-items: center;
}

.ss-col-info {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}
.ss-col-info .eyebrow {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.ss-col-info h2 {
  font-size: 1.95rem;
  font-weight: 700;
  line-height: 1.22;
  margin: 0;
}
.ss-lead {
  color: var(--fg-muted);
  font-size: 1.08rem;
  line-height: 1.5;
  margin: 0;
}

.ss-steps {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 0;
  margin: var(--sp-1) 0;
  list-style: none;
}
.ss-step-item {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  background: var(--surface-2);
  border: 1.5px solid var(--edge);
  border-radius: var(--r-md);
  font-size: 1.05rem;
  color: var(--fg);
  cursor: pointer;
  transition: background-color .15s var(--ease), border-color .15s var(--ease), box-shadow .15s var(--ease);
  user-select: none;
  max-width: 100%;
}
.ss-step-item:hover {
  background: var(--surface-3);
  border-color: var(--edge-strong);
}
.ss-step-item.is-active {
  background: var(--accent-soft);
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent-line);
}
.ss-step-item.is-active .ss-step-num {
  transform: scale(1.06);
  box-shadow: 0 2px 8px var(--accent-line);
}
.ss-step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
  transition: transform .15s ease, box-shadow .15s ease;
}
.ss-step-text {
  color: var(--fg-muted);
}
.ss-step-text strong {
  color: var(--fg);
}
.ss-step-item.is-active .ss-step-text {
  color: var(--fg);
}

.ss-actions {
  display: flex;
  align-items: center;
  margin-top: var(--sp-2);
}
.ss-actions .btn {
  font-size: 1.08rem;
  padding: 14px 32px;
}

.ss-col-media {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}
.ss-shot {
  margin: 0;
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--edge-strong);
  background: var(--surface);
  box-shadow: var(--shadow-md);
  width: 100%;
  position: relative;
  aspect-ratio: 655 / 577;
  cursor: pointer;
}
.ss-shot img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.ss-shot[data-ss-step="1"] img:nth-child(1) {
  display: block;
}
.ss-shot[data-ss-step="1"] img:nth-child(2) {
  display: none;
}
.ss-shot[data-ss-step="2"] img:first-child {
  display: none;
}
.ss-shot[data-ss-step="2"] img:nth-child(2) {
  display: block;
}

@media (max-width: 860px) {
  .ss-dialog {
    max-height: 90vh;
    overflow-y: auto;
  }
  .ss-card {
    grid-template-columns: 1fr;
    gap: var(--sp-5);
    padding: var(--sp-5);
  }
  .ss-col-media {
    order: -1;
    max-width: 400px;
    margin: 0 auto;
  }
}

/* --- 15 Bewegung und Responsivitaet ------------------------------------- */

[data-reveal] { opacity: 0; transform: translateY(16px); transition: opacity .55s var(--ease), transform .55s var(--ease); }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
}

@media (max-width: 880px) {
  .nav { display: none; }
  .nav-toggle { display: grid; }
  .header-cta, .header-actions .lang-switch, .header-actions .theme-toggle { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  /* Lange Download-Beschriftungen dürfen schmale Fenster nicht verbreitern. */
  .btn { max-width: 100%; white-space: normal; text-align: center; }
  .hero-demo { order: 2; }
  .mode-grid { gap: var(--sp-3); }
  .mode-card { padding: var(--sp-4); }
  .pack { gap: var(--sp-3); padding: var(--sp-4); }
  .pack-benefits li { font-size: 0.88rem; }
}

@media (max-width: 760px) {
  .showcase, .showcase:nth-of-type(even), .showcase--stage, .showcase--stage:nth-of-type(even) {
    grid-template-columns: minmax(0, 1fr); gap: var(--sp-5); padding-block: var(--sp-7);
  }
  .showcase:nth-of-type(even) .showcase-copy { order: 0; }
  .showcase-tile { padding: var(--sp-4) var(--sp-3); }
  .sibling-visual { padding: var(--sp-6) var(--sp-3) var(--sp-5); }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-5); }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .cta-inner { flex-direction: column; align-items: flex-start; }
  /* Basis-Zuschlag gilt nur fuer die Reihe; in der Spalte waere er eine
   * Mindesthoehe. */
  .cta-inner > div:first-child { flex: initial; }
  /* Der Split-Knopf ist als Einzeiler breiter als schmale Phones; in voller
   * Breite umbricht sein Text, statt ueber den Rand zu laufen (dasselbe Bild
   * wie btn-block in der mobilen Navigation). Die eine definite Spalte macht
   * width:100% am Knopf wirksam. */
  .cta-actions { grid-template-columns: minmax(0, 1fr); justify-items: stretch; align-self: stretch; margin-left: 0; }
  .cta-actions .dl-split { width: 100%; }
  .mobile-hint { display: block; }
  .mode-grid { grid-template-columns: 1fr; }
  .mode-demo { width: 130px; height: 90px; }
  .mode-pills .composer-mode { transform: scale(1.5); }
  .pack { grid-template-columns: 1fr; gap: var(--sp-4); }
  .pack .btn { justify-self: stretch; width: 100%; text-align: center; }
  .plan-grid { grid-template-columns: 1fr; }
  .lang-card { padding: var(--sp-5); }
  /* Neun Schritte nebeneinander passen nicht auf ein Telefon: die Strahlen
     laufen senkrecht. Der kurze endet weiterhin sichtbar frueher. */
  .tl { padding: var(--sp-4) var(--sp-4) var(--sp-5); }
  .tl-head { margin-bottom: var(--sp-4); }
  .tl-line { left: 4.5px; top: 9px; width: 2px !important; height: calc(100% - 18px); }
  .tl-steps { flex-direction: column; gap: 6px; width: auto !important; }
  .tl-step { display: flex; align-items: center; gap: 12px; min-height: 18px; padding-right: 0; }
  .tl-dot { margin-bottom: 0; flex: none; }
  .tl-label { font-size: .85rem; }
  /* Das Hero-Fenster (420 px mal 0,86) waere breiter als ein Telefon. */
  .hero-app .appframe { --app-scale: .76 !important; }
}

@media (max-width: 374px) {
  .hero-app .appframe { --app-scale: .66 !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}

/* --- 16 Druck ------------------------------------------------------------ */

@media print {
  .site-header, .site-footer, .cta, .skip-link, .toc, .chip-nav { display: none !important; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .prose { max-width: none; }
  .faq-item { break-inside: avoid; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; color: #555; }
}


/* Footer-only directory verification page: deliberately plain and compact. */
.badge-page {
  min-height: 52vh;
  padding: clamp(56px, 9vw, 104px) 0;
}
.badge-page h1 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}
.badge-page > .wrap > p {
  max-width: 620px;
  margin: 16px 0 0;
  color: var(--fg-muted);
  font-size: 17px;
  line-height: 1.55;
}
.badge-list {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.directory-badge {
  display: inline-flex;
  align-items: center;
}
.directory-badge img {
  display: block;
  width: 200px;
  height: 54px;
}

/* Equal consent choices; no overlay or blocked content. */
.ads-consent[hidden] { display: none; }
body:has(.ads-consent:not([hidden])) .zack-pill { display: none; }
.ads-consent { position: sticky; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; padding: 12px 20px; background: var(--bg, #fff); color: var(--text, #111); border-top: 1px solid currentColor; font-size: 16px; }
.ads-consent button { font: inherit; color: inherit; background: transparent; border: 1px solid currentColor; border-radius: 6px; padding: 8px 18px; min-width: 88px; cursor: pointer; }
