/* =========================================================
   KS CRM — Startseite & Login
   Helle Fläche in den Neutraltönen der CRM-Oberfläche selbst:
   Weiß, das App-Grau (#f7f7f7) und das Chip-Grau der Titelleiste.
   Echte Produktaufnahmen tragen die Farbe, die Seite hält sich zurück.
   Die übrigen Seiten (Registrierung, Mein-Bereich, Rechtliches)
   nutzen weiter style.css.
   ========================================================= */

:root {
  color-scheme: light;
  /* Flächen — identisch mit den Tokens im CRM (Main/src/app/globals.css) */
  --canvas: #ffffff;
  --app: #f7f7f7;                          /* Arbeitsfläche im CRM */
  --chip: oklch(0.965 0.005 260);          /* Buttons & Ansichten in der Titelleiste */
  --chip-hover: oklch(0.94 0.006 260);
  --line: oklch(0.915 0.005 260);          /* Rahmen im CRM */
  --line-soft: oklch(0.945 0.004 260);
  --muted: oklch(0.955 0.005 260);         /* bg-muted im CRM */
  --muted-fg: oklch(0.52 0.01 260);        /* text-muted-foreground im CRM */

  /* Schrift */
  --ink: oklch(0.18 0.015 260);            /* Vordergrund im CRM */
  --ink-hover: oklch(0.28 0.018 260);
  --body: oklch(0.42 0.012 260);
  --mute: oklch(0.5 0.01 260);
  --quiet: oklch(0.6 0.01 260);            /* zweiter Satz in Überschriften */

  /* Einziger Akzent: das Indigo des CRM, sparsam */
  --accent: oklch(0.5 0.22 265);
  --accent-ink: oklch(0.42 0.2 265);
  --accent-soft: oklch(0.955 0.025 265);

  /* Markenverlauf aus dem Logo — nur im Schriftzug */
  --brand-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #ec4899 100%);

  /* Statusfarben der Prozessleiste im CRM */
  --bpf: #3b82f6;
  --won: #16a34a;
  --lost: #dc2626;

  --font-display: "Onest", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Hanken Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-xl: 16px;
  --r-2xl: 22px;

  --shadow-frame: 0 1px 2px oklch(0.2 0.02 260 / 0.05), 0 28px 60px -32px oklch(0.2 0.02 260 / 0.28);
  --shadow-soft: 0 1px 2px oklch(0.2 0.02 260 / 0.04), 0 8px 24px -16px oklch(0.2 0.02 260 / 0.18);
  --shadow-pop: 0 2px 6px oklch(0.2 0.02 260 / 0.06), 0 22px 44px -14px oklch(0.2 0.02 260 / 0.28);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);   /* expo-artig */
  --ease-soft: cubic-bezier(0.25, 1, 0.5, 1);  /* quart */
  --gutter: clamp(20px, 4vw, 40px);
  --wrap: 1200px;
  --nav-h: 64px;

  /* Stapelreihenfolge */
  --z-sticky: 20;
  --z-nav: 40;
  --z-drawer: 60;
  --z-veil: 5;
  --z-expand: 90;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 24px); }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01", "ss03";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
/* Angemeldet-Elemente erst zeigen, wenn /api/member/me geantwortet hat */
[data-auth-user][hidden] { display: none !important; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  margin: 0;
  text-wrap: balance;
}
p { margin: 0; text-wrap: pretty; }

.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
.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; }

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 40px; padding: 0 16px;
  border-radius: var(--r-md);
  border: 1px solid transparent;
  font: 500 0.9375rem/1 var(--font-body);
  text-decoration: none; white-space: nowrap;
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease, color .18s ease, box-shadow .25s ease, transform .18s var(--ease-out);
}
.btn:active { transform: translateY(1px); }
.btn-lg { height: 46px; padding: 0 22px; font-size: 1rem; }
.btn-sm { height: 34px; padding: 0 12px; font-size: 0.875rem; }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 1px 0 oklch(1 0 0 / 0.12) inset, 0 1px 2px oklch(0.2 0.02 260 / 0.2); }
.btn-primary:hover { background: var(--ink-hover); box-shadow: 0 1px 0 oklch(1 0 0 / 0.12) inset, 0 6px 16px -6px oklch(0.2 0.02 260 / 0.45); }
.btn-secondary { background: var(--chip); color: var(--ink); }
.btn-secondary:hover { background: var(--chip-hover); }
.btn-outline { background: var(--canvas); color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: oklch(0.85 0.006 260); background: var(--app); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--chip); }
.btn .arrow { transition: transform .25s var(--ease-out); }
.btn:hover .arrow { transform: translateX(3px); }

.link {
  color: var(--accent-ink); font-weight: 500; text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-size: 0 1px; background-repeat: no-repeat; background-position: 0 100%;
  transition: background-size .25s var(--ease-out);
}
.link:hover { background-size: 100% 1px; }

/* ── Schriftzug (wie auf der bisherigen Seite) ───────────── */
.brand {
  display: inline-flex; align-items: center; gap: 7px; text-decoration: none; color: var(--ink);
  font: 800 1.125rem/1 var(--font-body);
  letter-spacing: -0.04em;
  /* rückt "KS" und "CRM" zusammen, ohne dass das HTML "KSCRM" wird */
  word-spacing: -0.18em;
}
.brand .logo-mark { width: 30px; height: 30px; flex: none; background: url("/assets/logo/ks-logo-128.png") center/contain no-repeat; }
.brand .accent { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ── Navigation ──────────────────────────────────────────── */
.nav-wrap {
  position: sticky; top: 0; z-index: var(--z-nav);
  background: color-mix(in oklab, var(--canvas) 86%, transparent);
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease;
}
.nav-wrap.scrolled { border-bottom-color: var(--line); }
.nav { height: var(--nav-h); display: flex; align-items: center; gap: 28px; }
.nav-links { display: flex; gap: 4px; }
.nav-links a { padding: 8px 12px; border-radius: var(--r-md); color: var(--body); font-size: 0.9375rem; font-weight: 500; text-decoration: none; transition: background-color .15s ease, color .15s ease; }
.nav-links a:hover { background: var(--chip); color: var(--ink); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; padding: 3px; border-radius: var(--r-md); background: var(--chip); margin-right: 4px; }
.lang-switch a { padding: 5px 9px; border-radius: 6px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.02em; color: var(--mute); text-decoration: none; }
.lang-switch a[aria-current="true"] { background: var(--canvas); color: var(--ink); box-shadow: 0 1px 2px oklch(0.2 0.02 260 / 0.08); }
.auth-avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 700; }
.menu-btn { display: none; width: 40px; height: 40px; border-radius: var(--r-md); border: 0; background: transparent; color: var(--ink); cursor: pointer; align-items: center; justify-content: center; }
.menu-btn:hover { background: var(--chip); }

.mobile-drawer { position: fixed; inset: 0; z-index: var(--z-drawer); background: oklch(0.2 0.02 260 / 0.28); opacity: 0; pointer-events: none; transition: opacity .2s ease; }
.mobile-drawer.open { opacity: 1; pointer-events: auto; }
.mobile-drawer .panel {
  position: absolute; top: 8px; left: 8px; right: 8px;
  background: var(--canvas); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 12px; display: flex; flex-direction: column; gap: 2px;
  box-shadow: var(--shadow-frame);
  transform: translateY(-8px); transition: transform .3s var(--ease-out);
}
.mobile-drawer.open .panel { transform: none; }
.mobile-drawer .panel > a:not(.btn) { padding: 12px; border-radius: var(--r-md); color: var(--ink); font-weight: 500; text-decoration: none; }
.mobile-drawer .panel > a:not(.btn):hover { background: var(--chip); }
.mobile-drawer .panel .btn { margin-top: 8px; width: 100%; }
.drawer-lang { display: flex; gap: 16px; margin-top: 10px; padding: 12px 12px 4px; border-top: 1px solid var(--line-soft); font-size: .9rem; }
.drawer-lang a { color: var(--body); text-decoration: none; font-weight: 500; }

@media (max-width: 900px) {
  .nav-links, .nav-end .lang-switch, .nav-end [data-auth-anon].btn-ghost { display: none !important; }
  .menu-btn { display: inline-flex; }
}
@media (max-width: 480px) {
  .nav-end .btn-primary { display: none !important; }
}

/* ── Hero ────────────────────────────────────────────────── */
.hero { position: relative; isolation: isolate; padding-top: clamp(56px, 9vw, 104px); overflow: clip; }
/* Die einzige atmosphärische Fläche der Seite: oben Weiß wie die Navigation,
   ein Hauch Indigo über der Überschrift. Die Vorschau steht direkt auf Weiß. */
.hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 70%;
  background: radial-gradient(55% 60% at 50% 0%, oklch(0.955 0.028 265 / 0.85), transparent 72%);
  z-index: -1;
}
.hero-copy { text-align: center; max-width: 860px; margin-inline: auto; }
.hero h1 {
  font-size: clamp(2.35rem, 5.6vw, 4.25rem);
  line-height: 1.03;
  letter-spacing: -0.038em;
}
/* Die Überschrift wird für die Animation in Wörter zerlegt; der Originaltext
   bleibt als Quelle für Übersetzung und Screenreader erhalten. */
.hero h1.is-split .ht-src { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ht-anim .w { display: inline-block; }
.hero-lead { margin: 24px auto 0; max-width: 62ch; font-size: clamp(1.0625rem, 1.5vw, 1.1875rem); color: var(--body); }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 32px; }
.hero-trust {
  display: flex; justify-content: center; flex-wrap: wrap; gap: 6px 22px;
  margin-top: 22px; font-size: 0.875rem; color: var(--mute);
}
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--accent); flex: none; }

.stage { position: relative; margin: clamp(48px, 7vw, 76px) auto 0; max-width: 1120px; perspective: 2000px; padding-bottom: clamp(28px, 5vw, 56px); }
.stage-tilt { position: relative; transform-origin: 50% 0%; }
.stage .frame-browser { position: relative; z-index: 1; }
/* Hinweis unter der interaktiven Vorschau */
.stage-hint { margin: 18px auto 0; max-width: 64ch; text-align: center; font-size: 0.875rem; color: var(--mute); }

/* ── Rahmen für Produktbilder ────────────────────────────── */
.frame-browser {
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-frame);
}
.frame-bar {
  position: relative;
  height: 34px; display: flex; align-items: center; gap: 12px; padding: 0 12px;
  background: var(--canvas); border-bottom: 1px solid var(--line-soft);
}
.frame-dots { display: inline-flex; gap: 6px; }
.frame-dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.frame-url {
  margin-inline: auto; transform: translateX(-24px);
  padding: 3px 14px; border-radius: 6px; background: var(--chip);
  font-size: 0.75rem; color: var(--mute); letter-spacing: 0.01em;
}
.frame-browser img { width: 100%; }
/* Rechts in der Fensterleiste: Hinweis „Interaktive Vorschau“ und Vollbild-Knopf */
.frame-tools {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; gap: 8px;
}
.frame-live { display: inline-flex; align-items: center; gap: 6px; font-size: 0.75rem; font-weight: 500; color: var(--mute); }
.frame-expand {
  width: 26px; height: 26px; padding: 0; border: 0; border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; color: var(--mute); opacity: .7; cursor: pointer;
  transition: background-color .15s ease, color .15s ease, opacity .15s ease;
}
.frame-expand:hover, .frame-expand:focus-visible { background: var(--chip); color: var(--ink); opacity: 1; }
.frame-live i { width: 7px; height: 7px; border-radius: 50%; background: oklch(0.7 0.17 150); box-shadow: 0 0 0 3px oklch(0.7 0.17 150 / 0.18); }
@media (max-width: 640px) { .frame-live span { display: none; } .frame-url { transform: none; } }

/* Vollbild: das Fenster wird aus der Seite gelöst (frame-expand.js) und liegt über allem */
.frame-backdrop { position: fixed; inset: 0; z-index: var(--z-expand); background: oklch(0.2 0.02 260 / 0.5); animation: fade-in .25s ease; }
.frame-browser.is-expanded {
  --g: clamp(8px, 2.5vw, 28px);
  position: fixed; inset: var(--g); z-index: calc(var(--z-expand) + 1);
  display: flex; flex-direction: column;
  border-radius: var(--r-lg);
  box-shadow: 0 30px 80px -20px oklch(0.15 0.02 260 / 0.5);
  animation: frame-in .35s var(--ease-out);
}
.frame-browser.is-expanded .frame-bar { flex: none; }
/* Screenshots: Fenster auf das Seitenverhältnis des Bildes zuschneiden und mittig setzen */
.frame-browser.is-expanded.is-image {
  --w: min(calc(100vw - 2 * var(--g)), calc((100dvh - 2 * var(--g) - 36px) * var(--ar, 1.7)));
  inset: 0; margin: auto; width: var(--w); height: calc(var(--w) / var(--ar, 1.7) + 36px);
}
.frame-browser.is-expanded.is-image > img { flex: 1; min-height: 0; object-fit: contain; }
html.frame-open { overflow: hidden; }
/* Nach dem Schließen nicht noch einmal einblenden */
.js .stage .frame-browser.no-intro { animation: none; opacity: 1; transform: none; }
@keyframes frame-in { from { opacity: 0; transform: scale(.975); } }
@keyframes fade-in { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .frame-browser.is-expanded, .frame-backdrop { animation: none; } }

.frame-phone {
  padding: 7px; border-radius: 30px;
  background: oklch(0.22 0.012 260);
  box-shadow: 0 1px 0 oklch(0.4 0.01 260) inset, var(--shadow-frame);
}
.frame-phone img { border-radius: 23px; width: 100%; }

/* Vorschauen stehen direkt auf der Seite: volle Spaltenbreite, vollständiger Rahmen */
.media-panel { position: relative; }

/* ── Fakten unter dem Hero ───────────────────────────────── */
.facts-strip { border-block: 1px solid var(--line-soft); }
.facts-strip ul {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.facts-strip li {
  padding: 22px 20px; font-size: 0.9375rem; color: var(--ink); font-weight: 500;
  display: flex; flex-direction: column; gap: 2px;
}
.facts-strip li + li { border-left: 1px solid var(--line-soft); }
.facts-strip small { font-size: 0.8125rem; font-weight: 400; color: var(--mute); }
@media (max-width: 720px) {
  .facts-strip ul { grid-template-columns: minmax(0, 1fr); }
  .facts-strip li { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 14px 0; }
  .facts-strip li + li { border-left: 0; border-top: 1px solid var(--line-soft); }
  .facts-strip small { text-align: right; }
}

/* ── Abschnittsköpfe ─────────────────────────────────────── */
.section { padding-block: clamp(80px, 11vw, 136px); }
.section-head { max-width: 760px; }
.section-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); line-height: 1.08; letter-spacing: -0.032em; }
.section-head h2 .quiet { color: var(--quiet); }
.section-head p { margin-top: 18px; font-size: 1.125rem; max-width: 60ch; }

/* ── Rundgang durch die Module ───────────────────────────── */
.tour { display: grid; grid-template-columns: 216px minmax(0, 1fr); gap: clamp(40px, 5vw, 72px); margin-top: clamp(48px, 6vw, 72px); }
.tour-index { position: sticky; top: calc(var(--nav-h) + 28px); align-self: start; }
.tour-index ol { position: relative; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.tour-index li:not(.tour-marker) { position: relative; z-index: 1; }
.tour-index a {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r-md);
  color: var(--body); font-size: 0.9375rem; font-weight: 500; text-decoration: none;
  transition: background-color .2s ease, color .25s ease;
}
.tour-index a svg { flex: none; color: var(--mute); transition: color .25s ease; }
.tour-index a:hover { color: var(--ink); }
.tour-index a[aria-current="true"] { color: var(--ink); }
.tour-index a[aria-current="true"] svg { color: var(--accent); }
/* Gleitende Markierung hinter dem aktiven Modul */
.tour-marker {
  position: absolute; top: 0; left: 0; z-index: 0;
  width: 0; height: 0; border-radius: var(--r-md);
  background: var(--chip);
  opacity: 0; pointer-events: none;
  transition: opacity .25s ease;
}
.tour-marker.ready { transition: transform .5s var(--ease-out), width .5s var(--ease-out), height .5s var(--ease-out), opacity .25s ease; }
.tour-index-note { margin-top: 18px; padding: 0 10px; font-size: 0.8125rem; color: var(--mute); }

.tour-chapters { min-width: 0; }
.chapter { scroll-margin-top: calc(var(--nav-h) + 24px); }
.chapter + .chapter { margin-top: clamp(88px, 11vw, 136px); }
.chapter-copy { max-width: 640px; }
.chapter h3 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.028em; line-height: 1.12; }
.chapter .lede { margin-top: 10px; font-size: 1.1875rem; line-height: 1.45; color: var(--ink); font-weight: 500; }
.chapter .body { margin-top: 14px; }
.chapter-facts {
  list-style: none; margin: 28px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 24px;
  view-timeline-name: --facts;
}
.chapter-facts li { position: relative; padding-top: 14px; font-size: 0.9375rem; color: var(--ink); line-height: 1.4; }
.chapter-facts li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left center; }
.chapter-media { margin: 36px 0 0; }
@media (max-width: 720px) {
  .chapter-facts { grid-template-columns: 1fr; gap: 0; }
  .chapter-facts li { padding-block: 12px; }
}

/* ── Kapitel „Außerdem an Bord“: Funktionen mit Icon-Kachel ─
   Jede Funktion bekommt ihre eigene Farbe über --h (OKLCH-Farbton),
   Haarlinien wie bei den Kapitel-Fakten. */
.more-list {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(28px, 4vw, 48px);
}
.more-list li {
  position: relative;
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
  padding: 22px 0 24px;
}
.more-list li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); }
.more-ic {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  color: oklch(0.5 0.16 var(--h, 265));
  background: oklch(0.965 0.028 var(--h, 265));
  box-shadow: inset 0 0 0 1px oklch(0.9 0.045 var(--h, 265));
  transition: transform .45s var(--ease-out), background-color .3s ease, box-shadow .3s ease;
}
.more-ic svg { display: block; }
.more-t { display: block; margin: 2px 0 0; font-family: var(--font-display); font-size: 1rem; font-weight: 600; line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
.more-list p { margin: 5px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--body); max-width: 42ch; }
@media (hover: hover) {
  .more-list li:hover .more-ic {
    transform: translateY(-2px) rotate(-6deg);
    background: oklch(0.94 0.05 var(--h, 265));
    box-shadow: inset 0 0 0 1px oklch(0.86 0.07 var(--h, 265)), 0 10px 20px -12px oklch(0.5 0.16 var(--h, 265) / .55);
  }
}
@media (max-width: 720px) {
  .more-list { grid-template-columns: minmax(0, 1fr); }
  .more-list li { padding: 18px 0 20px; }
}

@media (max-width: 980px) {
  .tour { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .tour-index {
    min-width: 0;
    position: sticky; top: var(--nav-h); z-index: var(--z-sticky);
    margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter);
    background: var(--canvas);
    border-bottom: 1px solid var(--line-soft);
    margin-bottom: 40px;
  }
  .tour-index ol { flex-direction: row; overflow-x: auto; scrollbar-width: none; gap: 4px; overscroll-behavior-x: contain; }
  .tour-index ol::-webkit-scrollbar { display: none; }
  .tour-index a { white-space: nowrap; font-size: 0.875rem; padding: 7px 10px; }
  .tour-index-note { display: none; }
  /* Auf Mobilgeräten keine Weichzeichner-Flächen beim Scrollen */
  .nav-wrap { background: color-mix(in oklab, var(--canvas) 97%, transparent); backdrop-filter: none; -webkit-backdrop-filter: none; }
}

/* ── Live-Prozessleiste (Nachbau der BPF aus dem CRM) ────── */
.bpf-card {
  position: relative;
  background: var(--canvas);
  border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--shadow-frame);
  font-family: var(--font-body);
}
.bpf-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 18px 20px 4px; }
.bpf-title { display: block; font: 700 1.0625rem/1.3 var(--font-display); color: var(--ink); letter-spacing: -0.01em; }
.bpf-meta { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: .875rem; color: var(--mute); }
.bpf-chip { font: 600 .75rem/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; letter-spacing: .06em; color: oklch(0.45 0.2 268); background: oklch(0.965 0.018 268); border: 1px solid oklch(0.91 0.04 268); padding: 4px 6px; border-radius: 4px; }
.bpf-tools { display: flex; align-items: center; gap: 2px; color: var(--body); }
.bpf-tools > span { width: 32px; height: 32px; display: inline-flex; align-items: center; justify-content: center; }
.bpf-tools .danger { color: oklch(0.58 0.2 25); }
.bpf-tools .save { margin-left: 6px; width: 36px; height: 36px; border-radius: var(--r-md); background: oklch(0.52 0.24 277); color: #fff; }

.bpf { --c: var(--bpf); list-style: none; margin: 0; padding: 16px 8px 18px; display: flex; border-bottom: 1px solid var(--line); }
.bpf[data-won] { --c: var(--won); }
.bpf > li { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; }
.bpf-row { position: relative; width: 100%; height: 36px; display: flex; align-items: center; justify-content: center; }
.bpf-line { position: absolute; top: 50%; height: 2px; margin-top: -1px; }
.bpf-line.l { left: 0; right: 50%; }
.bpf-line.r { left: 50%; right: 0; }
.bpf-line::before { content: ""; position: absolute; inset: 0; border-bottom: 2px dashed var(--c); opacity: .3; transition: border-color .5s ease; }
.bpf-line::after { content: ""; position: absolute; inset: 0; background: var(--c); transform: scaleX(0); transform-origin: left center; transition: transform .42s var(--ease-soft), background-color .5s ease; }
.bpf > li[data-state="done"] .bpf-line::after,
.bpf > li[data-state="current"] .bpf-line.l::after,
.bpf > li[data-state="won"] .bpf-line.l::after { transform: scaleX(1); }
.bpf > li[data-state="current"] .bpf-line.l::after,
.bpf > li[data-state="won"] .bpf-line.l::after { transition-delay: .38s, 0s; }

.bpf-node {
  position: relative; z-index: 1;
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--canvas);
  border: 2px solid color-mix(in oklab, var(--muted) 60%, transparent);
  transition: background-color .35s ease, border-color .35s ease, transform .4s var(--ease-out), box-shadow .4s ease;
}
.bpf-node > * { position: absolute; opacity: 0; transition: opacity .25s ease, transform .35s var(--ease-out); }
.bpf-node .dot-todo { width: 6px; height: 6px; border-radius: 50%; background: color-mix(in oklab, var(--muted-fg) 30%, transparent); }
.bpf-node .dot-cur { width: 10px; height: 10px; border-radius: 50%; background: #fff; transform: scale(.4); }
.bpf-node .i-check { color: var(--muted-fg); transform: scale(.6); }
.bpf-node .i-flag { color: color-mix(in oklab, var(--muted-fg) 40%, transparent); }
.bpf-node .i-trophy { color: #fff; transform: scale(.5) rotate(-12deg); }

.bpf > li[data-state="todo"] .dot-todo { opacity: 1; }
.bpf > li[data-state="done"] .bpf-node { border-color: var(--line); background: color-mix(in oklab, var(--muted) 40%, var(--canvas)); box-shadow: 0 1px 2px oklch(0.2 0.02 260 / 0.06); }
.bpf > li[data-state="done"] .i-check { opacity: 1; transform: none; }
.bpf > li[data-state="current"] .bpf-node {
  border-color: transparent; background: var(--c); transform: scale(1.1);
  box-shadow: 0 0 14px color-mix(in srgb, var(--c) 33%, transparent), 0 0 0 4px color-mix(in srgb, var(--c) 13%, transparent);
  transition-delay: .62s;
}
.bpf > li[data-state="current"] .dot-cur { opacity: 1; transform: none; transition-delay: .62s; }
.bpf-end .bpf-node { border-style: dashed; }
.bpf-end[data-state="todo"] .i-flag,
.bpf-end[data-state="choosing"] .i-flag { opacity: 1; }
.bpf-end[data-state="choosing"] .bpf-node { border-color: color-mix(in oklab, var(--accent) 60%, transparent); transform: scale(1.1); }
.bpf-end[data-state="won"] .bpf-node {
  border: 0; background: var(--won); transform: scale(1.18);
  box-shadow: 0 0 14px color-mix(in srgb, var(--won) 33%, transparent), 0 0 0 4px color-mix(in srgb, var(--won) 13%, transparent);
  transition-delay: .6s;
}
.bpf-end[data-state="won"] .i-trophy { opacity: 1; transform: none; transition-delay: .6s; }

.bpf-label { margin-top: 8px; font-size: .75rem; font-weight: 500; white-space: nowrap; color: color-mix(in oklab, var(--muted-fg) 50%, transparent); transition: color .3s ease; }
.bpf > li[data-state="done"] .bpf-label { color: var(--muted-fg); }
.bpf > li[data-state="current"] .bpf-label { color: var(--ink); font-weight: 600; }
.bpf-end .t-won { display: none; }
.bpf-end[data-state="won"] .t-pending { display: none; }
.bpf-end[data-state="won"] .t-won { display: inline; }
.bpf-end[data-state="won"] .bpf-label { color: var(--won); font-weight: 600; }

/* Auswahl beim Abschließen, wie das Popover im CRM */
.bpf-pop {
  position: absolute; top: calc(100% + 10px); right: max(-8px, calc(50% - 110px)); z-index: 3;
  padding: 12px; border-radius: var(--r-lg);
  background: var(--canvas); border: 1px solid var(--line); box-shadow: var(--shadow-pop);
  opacity: 0; transform: translateY(-6px) scale(.96); transform-origin: top right;
  pointer-events: none;
  transition: opacity .2s ease, transform .3s var(--ease-out);
}
.bpf-end[data-state="choosing"] .bpf-pop { opacity: 1; transform: none; }
.bpf-pop-title { margin-bottom: 8px; text-align: center; font-size: .6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted-fg); }
.bpf-pop-opts { display: flex; gap: 8px; }
.bpf-opt {
  --o: var(--won);
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 84px;
  padding: 10px 14px; border-radius: var(--r-lg);
  border: 2px solid color-mix(in srgb, var(--o) 33%, transparent);
  background: color-mix(in srgb, var(--o) 6%, var(--canvas));
  transition: background-color .2s ease, border-color .2s ease, transform .25s var(--ease-out);
}
.bpf-opt.lost { --o: var(--lost); }
.bpf-opt .ic { width: 30px; height: 30px; border-radius: 50%; background: var(--o); color: #fff; display: flex; align-items: center; justify-content: center; }
.bpf-opt .lb { font-size: .75rem; font-weight: 600; color: var(--o); }
.bpf-opt.hot { background: color-mix(in srgb, var(--o) 13%, var(--canvas)); border-color: var(--o); transform: scale(1.05); }

.bpf-fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 18px 20px 20px; }
.bpf-field { padding: 8px 12px; border-radius: var(--r-md); background: var(--muted); }
.bpf-field small { display: block; font-size: .6875rem; color: var(--muted-fg); }
.bpf-field span { display: block; margin-top: 1px; font-size: .9375rem; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bpf.fading { opacity: 0; transition: opacity .3s ease; }
.bpf.instant, .bpf.instant *, .bpf.instant *::before, .bpf.instant *::after { transition: none !important; }
@media (max-width: 640px) {
  .bpf-tools > span:not(.save) { display: none; }
  .bpf-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bpf-fields .bpf-field:nth-child(3) { display: none; }
  .bpf-label { font-size: .6875rem; }
  .bpf-head { padding: 14px 14px 2px; }
  .bpf-fields { padding: 14px; }
}

/* ── Warum KS CRM ────────────────────────────────────────── */
.why { background: var(--app); }
.why-grid { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; view-timeline-name: --why; }
.why-grid article { position: relative; padding-top: 22px; }
.why-grid article::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: oklch(0.88 0.006 260); transform-origin: left center; }
.why-grid h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.015em; }
.why-grid p { margin-top: 12px; font-size: 0.9875rem; }
@media (max-width: 900px) { .why-grid { grid-template-columns: 1fr; gap: 32px; } }

/* ── Preise ──────────────────────────────────────────────── */
.pricing-head { text-align: center; margin-inline: auto; }
.pricing-head p { margin-inline: auto; }
[data-pricing-section] { position: relative; margin-top: 40px; }
.toggle-pill {
  position: relative;
  display: inline-flex; padding: 3px; border-radius: var(--r-md); background: var(--chip);
}
.toggle-pill button {
  position: relative; z-index: 1;
  border: 0; background: transparent; padding: 7px 14px; border-radius: 6px;
  font: 500 0.875rem/1 var(--font-body); color: var(--body); cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: color .2s ease;
}
.toggle-pill button.active { color: var(--ink); }
/* ohne JS: aktiver Knopf trägt selbst die weiße Fläche */
.toggle-pill:not(.has-thumb) button.active { background: var(--canvas); box-shadow: 0 1px 2px oklch(0.2 0.02 260 / 0.08); }
.toggle-thumb {
  position: absolute; top: 3px; bottom: 3px; left: 0; z-index: 0;
  border-radius: 6px; background: var(--canvas); box-shadow: 0 1px 2px oklch(0.2 0.02 260 / 0.1);
  transition: transform .4s var(--ease-out), width .4s var(--ease-out);
}
.save-pill { font-size: 0.75rem; font-weight: 600; color: var(--accent-ink); }
.toggle-row { display: flex; justify-content: center; }

.plans { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.plan {
  display: flex; flex-direction: column;
  padding: 28px; border-radius: var(--r-xl);
  background: var(--canvas); border: 1px solid var(--line);
  transition: transform .35s var(--ease-out), box-shadow .35s ease, border-color .25s ease;
}
.plan:hover { transform: translateY(-3px); box-shadow: var(--shadow-soft); }
.plan.featured { border-color: var(--ink); box-shadow: var(--shadow-soft); }
.plan.featured:hover { box-shadow: var(--shadow-frame); }
.plan-name { font: 600 1.125rem/1.3 var(--font-display); letter-spacing: -0.01em; color: var(--ink); }
.plan .price { margin-top: 18px; min-height: 2.5rem; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.plan .amt { font: 600 2.5rem/1 var(--font-display); letter-spacing: -0.03em; color: var(--ink); }
.plan .amt.word { font-size: 1.75rem; }
.plan .per { font-size: 0.9rem; color: var(--mute); }
.plan .note { margin-top: 8px; min-height: 1.3em; font-size: 0.8125rem; color: var(--accent-ink); font-weight: 500; }
.plan .desc { margin-top: 12px; font-size: 0.9375rem; }
.plan ul { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink); line-height: 1.4; }
.plan li svg { flex: none; margin-top: 2px; color: var(--accent); }
.plan .cta { margin-top: auto; padding-top: 24px; }
.plan .cta .btn { width: 100%; }
.pricing-note { text-align: center; margin-top: 16px; font-size: 0.8125rem; color: var(--mute); }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }

.pricing-veil { position: absolute; inset: 0; z-index: var(--z-veil); display: flex; align-items: center; justify-content: center; pointer-events: none; }
.pricing-veil[hidden] { display: none; }
.pricing-veil-card {
  pointer-events: auto; max-width: 440px; width: calc(100% - 32px); text-align: center;
  padding: 32px 36px; border-radius: var(--r-xl);
  background: var(--canvas); border: 1px solid var(--line); box-shadow: var(--shadow-frame);
}
.pricing-veil-title { font: 600 1.375rem/1.25 var(--font-display); letter-spacing: -0.02em; color: var(--ink); margin-top: 10px; text-wrap: balance; }
.pricing-veil-card p { margin: 10px 0 20px; font-size: 0.95rem; }
.pricing-veil-pill { display: inline-block; padding: 4px 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: 0.75rem; font-weight: 600; }
body.pricing-blurred [data-pricing-section] .plans,
body.pricing-blurred [data-pricing-section] .toggle-row { filter: blur(8px); pointer-events: none; user-select: none; }

/* ── Abschluss ───────────────────────────────────────────── */
.closing { padding-block: 0 clamp(72px, 10vw, 120px); }
.closing-panel {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(56px, 9vw, 104px) clamp(20px, 5vw, 64px);
  border-radius: 28px; border: 1px solid var(--line-soft);
  background: var(--app); text-align: center;
}
.closing-panel::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 80%; z-index: -1;
  background: radial-gradient(50% 70% at 50% 0%, oklch(0.95 0.03 265 / 0.9), transparent 75%);
}
.closing-panel .logo-mark { display: block; width: 44px; height: 44px; margin: 0 auto 22px; background: url("/assets/logo/ks-logo-128.png") center/contain no-repeat; }
.closing h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -0.032em; line-height: 1.08; max-width: 18ch; margin-inline: auto; }
.closing p { margin: 18px auto 0; max-width: 56ch; font-size: 1.0625rem; }
.closing .hero-actions { margin-top: 30px; }

/* ── Fußzeile ────────────────────────────────────────────── */
.site-footer { background: var(--app); border-top: 1px solid var(--line-soft); padding-block: 56px 32px; font-size: 0.9375rem; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; }
.footer-grid p { margin-top: 12px; max-width: 38ch; color: var(--body); }
.footer-col strong { display: block; color: var(--ink); font-size: 0.875rem; margin-bottom: 12px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-col a { color: var(--body); text-decoration: none; }
.footer-col a:hover { color: var(--ink); }
.footer-social a { display: inline-flex; align-items: center; gap: 8px; }
.footer-social svg { flex: none; color: var(--mute); transition: color .15s ease, transform .2s var(--ease-out); }
.footer-social a:hover svg { color: var(--ink); transform: translateY(-1px); }
.footer-bottom { margin-top: 48px; padding-top: 20px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; font-size: 0.8125rem; color: var(--mute); }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr 1fr; } }

/* ── Bewegung ────────────────────────────────────────────────
   Inhalte sind ohne JS sichtbar; .js setzt nur den Startzustand.
   Jede Bewegung gehört zu ihrem Inhalt: Die Überschrift baut sich
   Wort für Wort auf, das Produktbild richtet sich beim Scrollen auf,
   Produktbilder steigen aus ihrer Fläche, Trennlinien zeichnen sich,
   die Prozessleiste läuft ihre Phasen durch. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero h1.is-split .w {
    opacity: 0; filter: blur(10px); transform: translateY(0.28em);
    animation: word-in .95s var(--ease-out) forwards;
    animation-delay: calc(60ms + var(--i, 0) * 52ms);
  }
  .js .hero-lead { opacity: 0; transform: translateY(12px); animation: rise .9s var(--ease-out) .42s forwards; }
  .js .hero-actions { opacity: 0; transform: translateY(12px); animation: rise .9s var(--ease-out) .52s forwards; }
  .js .hero-trust { opacity: 0; animation: rise .9s var(--ease-out) .64s forwards; }
  .js .stage .frame-browser { opacity: 0; transform: translateY(36px) scale(.985); animation: rise 1.25s var(--ease-out) .5s forwards; }
  .js .stage-hint { opacity: 0; animation: rise 1s var(--ease-out) 1.1s forwards; }

  /* Rückfall ohne scroll-gebundene Animationen: Bild wird beim Erreichen freigelegt */
  .js .reveal-media { clip-path: inset(0 0 10% 0 round var(--r-2xl)); opacity: .001; transform: translateY(18px); transition: clip-path 1s var(--ease-out), opacity .6s ease, transform 1s var(--ease-out); }
  .js .reveal-media.in { clip-path: inset(0 0 0 0 round var(--r-2xl)); opacity: 1; transform: none; }

  .btn-primary .arrow { transition: transform .25s var(--ease-out); }
}
@keyframes rise { to { opacity: 1; transform: none; } }
@keyframes word-in { to { opacity: 1; filter: blur(0); transform: none; } }

/* Scroll-gebunden, wo der Browser es kann (läuft ohne JS auf dem Compositor) */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    /* Hero: Produktbild liegt leicht zurück und richtet sich beim Scrollen auf */
    .stage-tilt {
      animation: stage-flat linear both;
      animation-timeline: scroll(root block);
      animation-range: 0 min(60vh, 560px);
    }
    /* Kapitelbilder steigen aus ihrer Fläche */
    .js .reveal-media { clip-path: none; opacity: 1; transform: none; transition: none; }
    .chapter-media {
      animation: panel-rise linear both;
      animation-timeline: view();
      animation-range: entry 0% cover 38%;
    }
    /* Trennlinien zeichnen sich von links */
    .chapter-facts li::before { animation: line-draw linear both; animation-timeline: --facts; animation-range: entry 40% cover 36%; }
    .chapter-facts li:nth-child(2)::before { animation-range: entry 60% cover 42%; }
    .chapter-facts li:nth-child(3)::before { animation-range: entry 80% cover 48%; }
    .why-grid article::before { animation: line-draw linear both; animation-timeline: --why; animation-range: entry 30% cover 30%; }
    .why-grid article:nth-child(2)::before { animation-range: entry 45% cover 36%; }
    .why-grid article:nth-child(3)::before { animation-range: entry 60% cover 42%; }
  }
}
/* Sobald jemand die Vorschau benutzt, richtet sie sich ganz auf (crm-demo.js setzt .flat) */
.stage-tilt.flat { animation: stage-unflat .7s var(--ease-out) both; animation-timeline: auto; animation-range: normal; }
@keyframes stage-unflat { from { transform: var(--tilt-from, none); } to { transform: none; } }
@keyframes stage-flat { from { transform: rotateX(11deg) scale(.955); } to { transform: none; } }
@keyframes panel-rise { from { opacity: .4; transform: translateY(44px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes line-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@media (max-width: 720px) {
  @keyframes stage-flat { from { transform: rotateX(8deg) scale(.97); } to { transform: none; } }
  @keyframes panel-rise { from { opacity: .4; transform: translateY(24px); } to { opacity: 1; transform: none; } }
}
@media (prefers-reduced-motion: no-preference) {
  .bpf-node .dot-cur { animation: dot-pulse 2s ease-in-out infinite; }
}
@keyframes dot-pulse { 50% { opacity: .55; } }

/* ── Login ───────────────────────────────────────────────── */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); }
.auth-main { display: flex; flex-direction: column; padding: 28px clamp(24px, 5vw, 64px); }
.auth-main .brand { align-self: flex-start; }
.auth-card { width: 100%; max-width: 400px; margin: auto; padding-block: 48px; }
.auth-card h1 { font-size: clamp(1.75rem, 3vw, 2.125rem); letter-spacing: -0.03em; }
.auth-card .sub { margin-top: 8px; color: var(--body); }
.auth-card form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 500; color: var(--ink); }
.input-row { display: flex; align-items: center; height: 44px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--canvas); transition: border-color .15s ease, box-shadow .15s ease; }
.input-row:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input-row input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; padding: 0 12px; font: 400 1rem var(--font-body); color: var(--ink); }
.input-row input::placeholder { color: oklch(0.55 0.01 260); }
.input-row .prefix { padding-left: 12px; color: var(--mute); display: inline-flex; }
.input-row .suffix { padding: 0 12px; color: var(--mute); font-size: .9rem; border-left: 1px solid var(--line-soft); height: 100%; display: inline-flex; align-items: center; background: var(--app); border-radius: 0 var(--r-md) var(--r-md) 0; }
.auth-card .btn { width: 100%; }
/* Registrierung: Auswahl, Hinweise, Einwilligung, Bestätigung */
.input-row select {
  flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; padding: 0 38px 0 12px; cursor: pointer;
  font: 400 1rem var(--font-body); color: var(--ink); -webkit-appearance: none; appearance: none;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
}
.field .opt { color: var(--mute); font-weight: 400; }
.field-hint { margin-top: 6px; font-size: 0.8125rem; line-height: 1.45; color: var(--mute); }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 2px; font-size: 0.875rem; line-height: 1.55; color: var(--body); cursor: pointer; }
.check-row input { flex: none; width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--accent); cursor: pointer; }
.check-row a { color: var(--ink) !important; font-weight: 600; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
.check-row a:hover { text-decoration-color: currentColor; }
.verify-icon { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; margin-bottom: 22px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); }
.verify-email { display: inline-block; max-width: 100%; margin-top: 14px; padding: 7px 11px; border-radius: var(--r-md); background: var(--app); border: 1px solid var(--line-soft); font-weight: 600; color: var(--ink); overflow-wrap: anywhere; }
.verify-email:empty { display: none; }
.verify-tip { margin: 20px 0 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--app); font-size: 0.875rem; line-height: 1.55; color: var(--body); }
.verify-tip b { color: var(--ink); }
.verify-card .notice.show { margin-top: 12px; }
.auth-aside .aside-facts { display: flex; flex-wrap: wrap; gap: 8px 20px; max-width: none; margin-top: 18px; font-size: 0.9375rem; color: var(--body); }
.aside-facts > span { display: inline-flex; align-items: center; gap: 7px; }
.aside-facts svg { flex: none; color: var(--accent); }
.divider { display: flex; align-items: center; gap: 12px; margin: 28px 0 0; font-size: 0.8125rem; color: var(--mute); }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.notice { display: none; font-size: 0.875rem; padding: 10px 12px; border-radius: var(--r-md); }
.notice.show { display: block; }
.notice.show:empty { display: none; }
.notice.ok { background: oklch(0.96 0.04 155); color: oklch(0.38 0.1 155); }
.notice.err { background: oklch(0.96 0.03 25); color: oklch(0.45 0.16 25); }
.auth-foot { margin-top: 28px; font-size: 0.9375rem; color: var(--body); }
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; color: var(--mute); text-decoration: none; margin-bottom: 20px; }
.back-link:hover { color: var(--ink); }
.spinner { display: inline-block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; vertical-align: -2px; }
@keyframes spin { to { transform: rotate(360deg); } }

.auth-aside {
  position: relative; overflow: hidden; isolation: isolate;
  background: var(--app); border-left: 1px solid var(--line-soft);
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(40px, 6vw, 80px) 0 clamp(40px, 6vw, 80px) clamp(40px, 6vw, 72px);
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 60%; z-index: -1;
  background: radial-gradient(60% 70% at 30% 0%, oklch(0.95 0.03 265 / 0.8), transparent 75%);
}
.auth-aside h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); letter-spacing: -0.025em; line-height: 1.15; max-width: 20ch; }
.auth-aside p { margin-top: 12px; max-width: 44ch; }
.auth-aside .frame-browser { margin-top: 40px; margin-right: -2px; border-radius: var(--r-lg) 0 0 var(--r-lg); border-right: 0; }
/* Dashboard-Vorschau neben dem Login: nur zur Ansicht (inert) — ohne Scrollbalken */
.auth-aside .crm-host .db-body { overflow: hidden; scrollbar-width: none; }
.auth-aside .crm-host .db-body::-webkit-scrollbar { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .js .auth-card { opacity: 0; transform: translateY(14px); animation: rise .9s var(--ease-out) .05s forwards; }
  .js .auth-aside h2, .js .auth-aside p { opacity: 0; transform: translateY(12px); animation: rise .9s var(--ease-out) .2s forwards; }
  .js .auth-aside p { animation-delay: .28s; }
  .js .auth-aside .frame-browser { opacity: 0; transform: translateX(48px); animation: rise 1.3s var(--ease-out) .35s forwards; }
}
@media (max-width: 960px) {
  .auth { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}

/* ── Weitere Bewegung auf der Seite ──────────────────────────
   Fortschritt durch die Module neben der Modulliste, Kapiteltexte
   steigen beim Scrollen auf, Preise rollen beim Umschalten. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .tour { timeline-scope: --tour; }
    .tour-chapters { view-timeline: --tour block; }
    .chapter-copy > * { animation: copy-in linear both; animation-timeline: view(); animation-range: entry 0% cover 20%; }
    .chapter-copy > .lede { animation-range: entry 8% cover 24%; }
    .chapter-copy > .body { animation-range: entry 14% cover 28%; }
    /* „Außerdem an Bord“: Einträge steigen gestaffelt auf, die Icon-Kachel dreht sich ein */
    .more-list li { animation: copy-in linear both; animation-timeline: view(); animation-range: entry 0% cover 16%; }
    .more-list li:nth-child(even) { animation-range: entry 6% cover 22%; }
    .more-ic { animation: ic-pop linear both; animation-timeline: view(); animation-range: entry 8% cover 26%; }
    .section-head > * { animation: copy-in linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
  }
  @media (prefers-reduced-motion: no-preference) and (min-width: 981px) {
    .tour-index ol::before, .tour-index ol::after { content: ""; position: absolute; left: -14px; top: 4px; bottom: 4px; width: 2px; border-radius: 2px; }
    .tour-index ol::before { background: var(--line-soft); }
    .tour-index ol::after { background: var(--accent); transform-origin: top; animation: tour-fill linear both; animation-timeline: --tour; animation-range: contain 0% contain 100%; }
  }
}
@keyframes copy-in { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes ic-pop { from { opacity: 0; scale: .6; rotate: -14deg; } to { opacity: 1; scale: 1; rotate: 0deg; } }
@keyframes tour-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Preise rollen beim Wechsel Monatlich/Jährlich */
@media (prefers-reduced-motion: no-preference) {
  .plan .amt.roll, .plan .note > span.roll { animation: price-roll .5s var(--ease-out); }
}
@keyframes price-roll { from { opacity: 0; transform: translateY(-10px); filter: blur(3px); } }
.plan .amt, .plan .note > span { display: inline-block; }


/* Karten der Warum-Sektion und Preiskarten heben sich leicht */
.why-grid article { transition: transform .35s var(--ease-out); }
@media (hover: hover) { .why-grid article:hover { transform: translateY(-2px); } }
