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

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; }
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;
  border-radius: var(--r-xs);
}

::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); }

.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 rgb(255 255 255 / .3);
  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--stage { background: var(--bg-tint); border-block: 1px solid var(--edge); }

.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-badge {
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: var(--sp-4) !important; font-size: 0.86rem !important; color: var(--fg-subtle) !important;
}
.footer-badge .icon { width: 16px; height: 16px; color: var(--ok); }
.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; 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-selection {
  position: absolute; z-index: 0; left: 0; top: 0; width: 0; height: 0;
  border-radius: 3px; background: rgb(0 120 215 / .34);
  box-shadow: inset 0 0 0 1px rgb(0 120 215 / .18);
  pointer-events: none; opacity: 0; transition: none;
}
.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 {
  padding: var(--sp-5) var(--sp-5) var(--sp-6);
  border: 1px solid var(--edge); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.tl--accent { border-color: var(--accent-line); box-shadow: var(--shadow-md); }
.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 -------------------------------------------------------- */

/* Kontext: Beschreibung links, Buehne rechts. */
.ctx-layout {
  display: grid; gap: clamp(var(--sp-5), 3vw, var(--sp-6));
  grid-template-columns: minmax(0, 0.3fr) minmax(0, 0.7fr);
  align-items: center;
}
.ctx-copy-col { min-width: 0; }
.ctx-copy h3 { font-size: 1.45rem; margin-bottom: var(--sp-3); }
.ctx-copy p { color: var(--fg-muted); font-size: 1.02rem; }
.ctx-copy p + p { margin-top: var(--sp-3); }
.ctx-copy-more { color: var(--fg-subtle) !important; font-size: 0.94rem !important; }
.ctx-copy[hidden] { display: none; }
.ctx-replay { margin-top: var(--sp-5); }

/* Quick/Deep: die echte Pille, ein Zeiger, ein Klick. */
.mode-grid {
  display: grid; gap: var(--sp-5);
  grid-template-columns: 1fr auto 1fr; align-items: center;
  max-width: 820px; margin-inline: auto;
}
.mode-card {
  display: grid; gap: var(--sp-3);
  max-width: 320px;
  padding: var(--sp-5); border: 1px solid var(--edge); border-radius: var(--r-lg);
  background: var(--surface); box-shadow: var(--shadow-sm);
}
.mode-card p { color: var(--fg-muted); }

.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); }
}

/* Datenschutz: der Weg einer Frage. */


/* Karten mit Symbol — auf der Kontaktseite. */
.fact-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); }
.fact {
  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); box-shadow: var(--shadow-sm);
}
.fact-icon {
  display: grid; place-items: center; width: 38px; height: 38px;
  border-radius: var(--r-sm); background: var(--accent-soft); color: var(--accent-text);
}
.fact h2, .fact h3 { font-size: 1.05rem; }
.fact p { color: var(--fg-muted); font-size: 0.94rem; }
.fact--action .link-arrow { margin-top: auto; }

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

.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; }
.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: center; }
.cta-meta { color: var(--fg-subtle); font-size: 0.85rem; }

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

/* 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); scroll-margin-top: calc(var(--header-h) + var(--sp-5)); }
.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); }
.page-hero--split h1 { max-width: none; }

.dl-grid { display: grid; gap: var(--sp-6); grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.7fr); align-items: center; }
.fact-list {
  display: grid; gap: 0; margin: 0;
  border: 1px solid var(--edge); border-radius: var(--r-lg); background: var(--surface); overflow: hidden;
}
.fact-list > div { display: flex; justify-content: space-between; gap: var(--sp-4); padding: 13px var(--sp-5); border-bottom: 1px solid var(--edge); }
.fact-list > div:last-child { border-bottom: 0; }
.fact-list dt { color: var(--fg-subtle); font-size: 0.9rem; }
.fact-list dd { margin: 0; font-weight: 600; font-size: 0.92rem; font-variant-numeric: tabular-nums; }

.step-grid { display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.step { display: flex; gap: var(--sp-4); align-items: flex-start; }
.step .step-num { width: 32px; height: 32px; font-size: 0.92rem; background: var(--accent-soft); color: var(--accent-text); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--fg-muted); font-size: 0.94rem; }

.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--warn { border-color: color-mix(in srgb, var(--warn) 45%, var(--edge)); background: var(--warn-soft); }
.note-card--warn h2 .icon { color: var(--warn); }
.note-card--info { border-color: var(--accent-line); background: var(--accent-soft); }
.note-steps { display: grid; gap: 7px; counter-reset: n; }
.note-steps li { counter-increment: n; display: flex; gap: 10px; font-size: 0.95rem; }
.note-steps li::before {
  content: counter(n); display: grid; place-items: center; flex: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: color-mix(in srgb, var(--warn) 22%, transparent); color: var(--warn);
  font-size: 0.75rem; font-weight: 650;
}
/* 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); scroll-margin-top: calc(var(--header-h) + var(--sp-4));
}
.prose h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.prose h3 { font-size: 1.1rem; margin-top: var(--sp-6); scroll-margin-top: calc(var(--header-h) + var(--sp-4)); }
.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-stand { font-size: 0.9rem; color: var(--fg-subtle) !important; }
.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: all .15s 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: all .15s 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: #ffffff;
  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; }
  .ctx-layout { grid-template-columns: 1fr; }
  .legal-grid { grid-template-columns: 1fr; }
  .toc { position: static; max-height: none; }
  .dl-grid { grid-template-columns: 1fr; }
}

@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: 1fr; }
  .hero-demo { order: 2; }
  .ctx-panel { grid-template-columns: 1fr; }
  .mode-grid { gap: var(--sp-3); }
  .mode-card { padding: var(--sp-4); }
  .mode-demo { width: 130px; height: 90px; }
  .mode-pills .composer-mode { transform: scale(1.5); }
  .pack { gap: var(--sp-3); padding: var(--sp-4); }
  .pack-benefits li { font-size: 0.88rem; }
  .mode-switch { justify-self: center; }
  .demo-source { width: 92%; }
  .demo-app { width: 92%; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .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; }
  .cta-actions { justify-items: start; }
  .mobile-hint { display: block; }
  .mode-grid { grid-template-columns: 1fr; justify-items: center; gap: var(--sp-3); }
  .mode-card { max-width: 320px; width: 100%; padding: var(--sp-4); text-align: left; }
  .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); }
}

@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; }
}
