/* Funnel, Marketingseite. LILAPIXEL-Digital-Stil, hell. Schrift lokal, nur 300 und 400, deshalb kein Fett.
   Gemeinsame Grundlage für alle Kapitel. Kapitel von Strang C nutzen nur diese Variablen und Klassen. */

@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 300; font-display: swap; src: url("../fonts/source-sans-pro-300-latin.woff2") format("woff2"); }
@font-face { font-family: "Source Sans Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/source-sans-pro-400-latin.woff2") format("woff2"); }

:root {
  --lila: #660066;
  --lila-hell: #8a1a8a;
  --lila-zart: #b044b0;
  --lila-flaeche: #660066; /* Flächen mit weißer Schrift, bleibt im Dunkeln dunkel genug */
  --magenta: #a3007a;
  --petrol: #006666;
  --petrol-hell: #00a3a3;
  --tief: #1c0a20;           /* tief-lila Fläche für den Trichter */
  --tief-2: #2a0f2b;
  --bg: #fbf6fa;
  --flaeche: #ffffff;
  --flaeche-2: #f2e6f2;
  --tint: #e3f1f1;
  --ink: #2a0f2b;
  --ink-2: #4a3550;
  --ink-3: #5c485f;
  --linie: rgba(102, 0, 102, 0.14);
  --linie-stark: rgba(102, 0, 102, 0.38);
  --schatten: 0 12px 32px rgba(102, 0, 102, 0.1);
  --schatten-gross: 0 30px 80px rgba(42, 15, 43, 0.18);
  --rund: 24px;
  --rund-gross: 36px;
  --f: "Source Sans Pro", -apple-system, "Segoe UI", sans-serif;
  --mono: var(--f); /* nur Source Sans Pro (KONZEPT), Zahlen mit fester Breite über .mono und tabular-nums */
  --breite: 1120px;
  --text-breite: 36rem;
  /* Stufenfarben, gleich wie im Pixel-Trichter der App (public/ui/app.css --st-*, Test src/modules/ui/farben.test.ts) */
  --s-anfrage: #66c2c2;
  --s-kontakt: #00a3a3;
  --s-termin: #b044b0;
  --s-kunde: #ffffff;
  --s-verloren: #6e5a70;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 18px/1.6 var(--f); overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: var(--lila); text-decoration-thickness: 1px; text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--fokus, var(--petrol-hell)); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--lila); color: #fff; }

.huelle { width: min(var(--breite), 100% - 32px); margin-inline: auto; }
.kapitel { padding-block: clamp(72px, 12vw, 150px); position: relative; }
.kapitel + .kapitel { border-top: 1px solid var(--linie); }
.kapitel.tief { background: var(--tief); color: #f4eaf6; border-top: 0; }
.kapitel.tief + .kapitel { border-top: 0; }
.kapitel.zart { background: var(--flaeche-2); border-top: 0; }

.kicker { display: inline-flex; align-items: center; gap: 0.6rem; font: 400 1rem var(--f); letter-spacing: 0.01em; color: var(--petrol); margin: 0 0 18px; }
.kicker::before { content: ""; width: 0.5rem; height: 0.5rem; background: currentColor; }
.tief .kicker { color: var(--petrol-hell); }
.nummer { font: 300 1rem var(--f); color: var(--ink-3); font-variant-numeric: tabular-nums; }

h1, h2, h3 { font-weight: 300; letter-spacing: -0.02em; line-height: 1.08; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(2.8rem, 8vw, 6rem); }
h2 { font-size: clamp(2.1rem, 5.2vw, 3.8rem); }
h3 { font-size: clamp(1.35rem, 2.4vw, 1.75rem); line-height: 1.2; }
.hl { color: var(--lila); }
.tief .hl { color: var(--ink); }
.p-hl { color: var(--petrol); }
p { margin: 0 0 1em; max-width: var(--text-breite); }
.gross { font-size: clamp(1.2rem, 2.1vw, 1.45rem); color: var(--ink-2); line-height: 1.5; }
.tief .gross { color: var(--ink-2); }
.klein { font-size: 0.86rem; color: var(--ink-3); }
.tief .klein { color: var(--ink-3); }
.mono { font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }

.zwei { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.zwei.gleich { grid-template-columns: 1fr 1fr; }
.kopf { max-width: 46rem; margin-bottom: clamp(36px, 6vw, 64px); }
.kopf h2 + p { margin-top: 22px; }

.knopf { display: inline-flex; align-items: center; gap: 0.6rem; border: 1px solid var(--lila-hell); background: var(--lila-flaeche); color: #fff; border-radius: 100px; padding: 13px 28px; text-decoration: none; cursor: pointer; transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s; letter-spacing: 0.01em; }
.knopf:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(102, 0, 102, 0.28); }
.knopf.leise { background: transparent; color: var(--lila); border-color: var(--linie-stark); }
.tief .knopf.leise { color: #f4eaf6; border-color: rgba(255, 255, 255, 0.35); }
.knopf.klein { padding: 8px 18px; font-size: 0.9rem; }
.knopf:disabled { opacity: 0.45; cursor: not-allowed; transform: none; box-shadow: none; }

.karte { background: var(--flaeche); border-radius: var(--rund); box-shadow: var(--schatten); padding: clamp(20px, 3vw, 32px); }
.tief .karte { background: rgba(255, 255, 255, 0.05); box-shadow: none; border: 1px solid rgba(255, 255, 255, 0.1); }

/* Bedienelemente der interaktiven Teile */
.seg { display: inline-flex; background: var(--flaeche-2); border-radius: 100px; padding: 4px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; border-radius: 100px; padding: 7px 16px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--flaeche); color: var(--lila); box-shadow: 0 2px 8px rgba(102, 0, 102, 0.12); }
.chip { border: 1px solid var(--linie-stark); background: transparent; border-radius: 100px; padding: 6px 14px; cursor: pointer; font-size: 0.92rem; color: var(--ink-2); }
.chip[aria-pressed="true"] { background: var(--lila-flaeche); border-color: var(--lila-flaeche); color: #fff; }
.chip[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }
.feld { display: grid; gap: 8px; margin-bottom: 22px; }
.feld > span, .feld > label { font: 400 0.95rem var(--f); color: var(--ink-2); }
input[type="text"], input[type="number"] { width: 100%; border: 1px solid var(--linie-stark); background: var(--flaeche); border-radius: 16px; padding: 12px 16px; }
input[type="range"] { width: 100%; accent-color: var(--lila); }

.nur-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Erscheinen beim Scrollen. Ohne JS oder mit reduzierter Bewegung sofort sichtbar. */
.js .auf { opacity: 0; transform: translateY(24px); transition: opacity 0.9s cubic-bezier(0.2, 0.7, 0.2, 1), transform 0.9s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .auf.da { opacity: 1; transform: none; }

@media (max-width: 860px) {
  .zwei, .zwei.gleich { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .auf { opacity: 1; transform: none; }
}
