/*
  Envly-Landingpage. Farben und Schriften wie in der App (frontend/src/index.css,
  „Calm Ledger“), damit Seite und Produkt zusammengehören. Die Schriften liegen
  lokal (fonts/, SIL OFL): ein Abruf bei Google Fonts würde jede Besucher-IP an
  Google schicken.
*/
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 700; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-700-normal.5b629bd8abb4.woff2") format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-weight: 800; font-display: swap; src: url("fonts/plus-jakarta-sans-latin-800-normal.408ecc6630e8.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.77bc02670657.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.f7016cd446d2.woff2") format('woff2'); }
@font-face { font-family: 'IBM Plex Sans'; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.196e3cbc5fee.woff2") format('woff2'); }

:root {
  --color-primary: #12513b;
  --color-primary-hover: #1a6b4d;
  --color-on-primary: #ffffff;
  --color-primary-soft: #e7efe9;
  --color-bg: #f7f6f3;
  --color-fg: #1a1815;
  --color-card: #ffffff;
  --color-muted: #f1efe9;
  --color-muted-fg: #6b665d;
  --color-border: #eae7e0;
  --color-border-strong: #dcd8ce;
  --color-destructive: #a8432c;
  --color-destructive-soft: #f7eae6;
  --color-ring: #2f8f63;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 1px 2px rgba(26, 24, 21, 0.04), 0 8px 24px rgba(26, 24, 21, 0.05);
  --shadow-lg: 0 4px 8px rgba(26, 24, 21, 0.04), 0 20px 40px rgba(26, 24, 21, 0.14);

  --ease-out: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --shadow-md: 0 2px 4px rgba(26, 24, 21, 0.05), 0 16px 36px rgba(26, 24, 21, 0.09);
  --glow-1: rgba(47, 143, 99, 0.18);
  --glow-2: rgba(47, 143, 99, 0.08);

  --font-heading: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --color-primary: #34a373;
    --color-primary-hover: #3fbb84;
    --color-on-primary: #08150f;
    --color-primary-soft: #16281f;
    --color-bg: #14120f;
    --color-fg: #f1ede6;
    --color-card: #1c1a16;
    --color-muted: #191713;
    --color-muted-fg: #a39c8f;
    --color-border: rgba(255, 250, 240, 0.08);
    --color-border-strong: rgba(255, 250, 240, 0.16);
    --color-destructive: #e0704a;
    --color-destructive-soft: rgba(224, 112, 74, 0.16);
    --color-ring: #3fbb84;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 16px 40px rgba(0, 0, 0, 0.5);
    --shadow-md: 0 8px 20px rgba(0, 0, 0, 0.35);
    --glow-1: rgba(52, 163, 115, 0.16);
    --glow-2: rgba(124, 155, 224, 0.10);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; interpolate-size: allow-keywords; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-fg);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--font-heading); line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.25rem, 5vw + 1rem, 3.75rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2.125rem); font-weight: 800; }
h3 { font-size: 1.1875rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--color-primary); text-underline-offset: 3px; }
a:hover { color: var(--color-primary-hover); }
:focus-visible { outline: 3px solid var(--color-ring); outline-offset: 2px; border-radius: 4px; }

img { max-width: 100%; height: auto; display: block; }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.container--narrow { max-width: 760px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }

.muted { color: var(--color-muted-fg); }

.icon { width: 1.25em; height: 1.25em; flex-shrink: 0; }

/* --- Kopf und Fuss ------------------------------------------------------- */
.site-header { padding: 20px 0; }
.site-header__inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--color-fg); text-decoration: none; font-family: var(--font-heading); font-weight: 800; font-size: 1.375rem; }
.brand img { border-radius: 8px; }

.site-footer { border-top: 1px solid var(--color-border); padding: 32px 0; color: var(--color-muted-fg); font-size: 0.9375rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer a { color: inherit; }

/* --- Knöpfe -------------------------------------------------------------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border-radius: var(--radius-sm); border: 1px solid transparent;
  font: 600 1rem/1.2 var(--font-body); text-decoration: none; cursor: pointer;
  transition: background-color 150ms, border-color 150ms;
}
.button--primary { background: var(--color-primary); color: var(--color-on-primary); }
.button--primary:hover { background: var(--color-primary-hover); color: var(--color-on-primary); }
.button--ghost { background: var(--color-card); color: var(--color-fg); border-color: var(--color-border-strong); }
.button--ghost:hover { border-color: var(--color-primary); color: var(--color-fg); }
.button--danger { background: var(--color-destructive); color: #fff; }
.button--block { width: 100%; }

/* --- Hero ---------------------------------------------------------------- */
.hero { padding: 32px 0 64px; }
.hero__inner { display: grid; gap: 40px; align-items: start; }
@media (min-width: 960px) {
  .hero { padding: 56px 0 96px; }
  .hero__inner { grid-template-columns: 1.15fr 1fr; gap: 64px; }
  .hero__text { padding-top: 24px; }
  .hero h1 { font-size: 3.25rem; }
}
.eyebrow {
  display: inline-block; margin-bottom: 20px; padding: 4px 12px;
  border-radius: 999px; background: var(--color-primary-soft); color: var(--color-primary);
  font-weight: 600; font-size: 0.875rem;
}
.lead { font-size: 1.1875rem; color: var(--color-muted-fg); max-width: 36em; }
.checklist { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.checklist li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.checklist .icon { color: var(--color-primary); }

/* --- Karten und Formular ------------------------------------------------- */
.card {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: 24px;
}
@media (min-width: 720px) { .card { padding: 32px; } }
.signup h2 { font-size: 1.5rem; margin-bottom: 4px; }
.signup form { margin-top: 20px; }

.field { margin: 0 0 20px; padding: 0; border: 0; min-width: 0; }
.field > label:not(.choice), .field legend { display: block; font-weight: 600; margin-bottom: 6px; font-size: 0.9375rem; }
.field input[type='email'] {
  width: 100%; min-height: 48px; padding: 10px 14px;
  border: 1px solid var(--color-border-strong); border-radius: var(--radius-sm);
  background: var(--color-bg); color: var(--color-fg); font: inherit;
}
.field input[type='email']:focus { outline: 3px solid var(--color-ring); outline-offset: 0; border-color: transparent; }
.field--error input[type='email'] { border-color: var(--color-destructive); }
.field__error { color: var(--color-destructive); font-size: 0.9375rem; margin: 6px 0 0; }

.choice { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 8px; font-weight: 400; cursor: pointer; font-size: 0.9375rem; }
.choice input { margin: 4px 0 0; width: 18px; height: 18px; accent-color: var(--color-primary); flex-shrink: 0; }
.choice--consent { color: var(--color-muted-fg); line-height: 1.5; }
.field--error .choice--consent { color: var(--color-fg); }

.honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.hint { font-size: 0.875rem; color: var(--color-muted-fg); margin: 12px 0 0; text-align: center; }

.alert { border-radius: var(--radius-sm); padding: 12px 14px; font-size: 0.9375rem; }
.alert--error { background: var(--color-destructive-soft); color: var(--color-destructive); }

/* --- Abschnitte ---------------------------------------------------------- */
.section { padding: 64px 0; }
@media (min-width: 960px) { .section { padding: 88px 0; } }
.section--muted { background: var(--color-muted); }
.section__title { text-align: center; margin-bottom: 40px; }

.features { display: grid; gap: 20px; }
@media (min-width: 820px) { .features { grid-template-columns: repeat(3, 1fr); gap: 28px; } }
.feature {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px;
}
.feature p { color: var(--color-muted-fg); margin: 0; }
.feature__icon {
  display: inline-flex; width: 48px; height: 48px; align-items: center; justify-content: center;
  border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary);
  margin-bottom: 16px;
}
.feature__icon .icon { width: 26px; height: 26px; }

.screens { display: grid; gap: 32px; }
@media (min-width: 960px) { .screens { grid-template-columns: 1fr 1fr; } }
.screen { margin: 0; }
.screen img { border-radius: var(--radius-md); border: 1px solid var(--color-border); box-shadow: var(--shadow-lg); }
.screen figcaption { margin-top: 14px; color: var(--color-muted-fg); text-align: center; font-size: 0.9375rem; }

.faq details {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); margin-bottom: 12px;
  transition: border-color 150ms;
}
.faq details:hover, .faq details[open] { border-color: var(--color-border-strong); }
/* Eigener Chevron rechts statt des Browser-Dreiecks, das ausserhalb der Karte hing. */
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; font-weight: 600; list-style: none;
  border-radius: var(--radius-md);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; flex-shrink: 0; width: 8px; height: 8px; margin-right: 4px;
  border-right: 2px solid var(--color-muted-fg); border-bottom: 2px solid var(--color-muted-fg);
  transform: translateY(-2px) rotate(45deg); transition: transform 150ms;
}
.faq details[open] summary::after { transform: translateY(2px) rotate(-135deg); }
@media (prefers-reduced-motion: reduce) { .faq summary::after { transition: none; } }
.faq details p { color: var(--color-muted-fg); margin: 0; padding: 0 20px 18px; }

.cta { text-align: center; }
.cta .lead { margin: 0 auto 28px; }

/* --- Status- und Textseiten --------------------------------------------- */
.message { text-align: left; }
.message h1 { font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem); }
.message form { margin: 24px 0 0; }

.prose h1 { font-size: clamp(2rem, 3vw + 1rem, 2.75rem); }
.prose h2 { font-size: 1.375rem; margin-top: 2em; }
.prose ul { padding-left: 1.25em; }
.prose li { margin-bottom: 0.4em; }

/* --- „Kennst du das?“ ---------------------------------------------------- */
.pains { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 12px; }
.pains li {
  background: var(--color-card); border: 1px solid var(--color-border); border-radius: var(--radius-md);
  padding: 16px 20px; font-size: 1.0625rem;
}
.pains__answer { text-align: center; font-family: var(--font-heading); font-weight: 700; font-size: 1.25rem; margin: 0; }

/* --- Vier Schritte ------------------------------------------------------- */
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 20px; }
@media (min-width: 820px) { .steps { grid-template-columns: 1fr 1fr; gap: 28px; } }
.step {
  background: var(--color-card); border: 1px solid var(--color-border);
  border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 24px;
}
.step__head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.step__head .feature__icon { margin-bottom: 0; }
.step__number {
  display: inline-flex; width: 32px; height: 32px; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--color-primary); color: var(--color-on-primary);
  font-family: var(--font-heading); font-weight: 800;
}
.step ul { margin: 0; padding-left: 1.1em; color: var(--color-muted-fg); display: grid; gap: 8px; }
.step li::marker { color: var(--color-primary); }

/* --- Beispielrechnung ---------------------------------------------------- */
.example {
  display: flex; gap: 20px; align-items: flex-start;
  background: var(--color-primary-soft); border-radius: var(--radius-lg); padding: 24px;
}
@media (min-width: 720px) { .example { padding: 32px; } }
.example .feature__icon { background: var(--color-card); flex-shrink: 0; margin: 0; }
.example__label { font-weight: 600; color: var(--color-primary); margin-bottom: 6px; font-size: 0.9375rem; }
.example__text { font-size: 1.1875rem; margin: 0; }
.example strong { color: var(--color-primary); }

/* ======================================================================== */
/* Bewegung. Alles hier ist Zierde: ohne JS oder mit „Bewegung reduzieren“    */
/* bleibt die Seite vollständig und statisch (siehe Ende der Datei).          */
/* ======================================================================== */

/* --- Kopfzeile: klebt oben, Schatten erst nach dem Scrollen -------------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  transition: background-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out), padding 220ms var(--ease-out);
}
.site-header.is-scrolled {
  padding: 12px 0;
  background: color-mix(in srgb, var(--color-bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  box-shadow: 0 1px 0 var(--color-border);
}
.brand img { transition: transform 300ms var(--ease-spring); }
.brand:hover img { transform: rotate(-8deg) scale(1.06); }

/* --- Hero: weicher Farbschein im Hintergrund und gestaffelter Auftritt ---- */
.hero { position: relative; isolation: isolate; }
.hero__glow {
  position: absolute; inset: -160px 0 -40px; z-index: -1; pointer-events: none; overflow: hidden;
}
.hero__glow::before, .hero__glow::after {
  content: ''; position: absolute; border-radius: 50%; filter: blur(60px);
  animation: drift 16s ease-in-out infinite alternate;
}
.hero__glow::before {
  width: 560px; height: 560px; left: -120px; top: 40px; background: var(--glow-1);
}
.hero__glow::after {
  width: 480px; height: 480px; right: -80px; top: -40px; background: var(--glow-2);
  animation-duration: 20s; animation-direction: alternate-reverse;
}
@keyframes drift {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(60px, 40px, 0) scale(1.12); }
}

.accent {
  background: linear-gradient(100deg, var(--color-primary) 0%, var(--color-ring) 50%, var(--color-primary) 100%);
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shimmer 6s ease-in-out infinite;
}
@keyframes shimmer { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.hero__text > *, .signup { animation: rise 700ms var(--ease-out) both; }
.hero__text > :nth-child(1) { animation-delay: 60ms; }
.hero__text > :nth-child(2) { animation-delay: 140ms; }
.hero__text > :nth-child(3) { animation-delay: 240ms; }
.hero__text > :nth-child(4) { animation-delay: 340ms; }
.signup { animation-delay: 300ms; animation-duration: 800ms; }

@keyframes pop { 0% { transform: scale(0); opacity: 0; } 100% { transform: scale(1); opacity: 1; } }
.checklist .icon { animation: pop 420ms var(--ease-spring) both; }
.checklist li:nth-child(1) .icon { animation-delay: 520ms; }
.checklist li:nth-child(2) .icon { animation-delay: 620ms; }
.checklist li:nth-child(3) .icon { animation-delay: 720ms; }

/* --- Einblenden beim Scrollen (Klasse „js“ setzt landing.js) ------------- */
.js .reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 650ms var(--ease-out), transform 650ms var(--ease-out);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* --- Karten: heben sich beim Überfahren ---------------------------------- */
.feature, .step, .pains li {
  transition: transform 220ms var(--ease-out), box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out),
    opacity 650ms var(--ease-out);
}
.js .reveal.feature, .js .reveal.step, .js .pains li.reveal {
  transition: opacity 650ms var(--ease-out) var(--reveal-delay, 0ms), transform 650ms var(--ease-out) var(--reveal-delay, 0ms),
    box-shadow 220ms var(--ease-out), border-color 220ms var(--ease-out);
}
@media (hover: hover) {
  .feature:hover, .step:hover {
    transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--color-border-strong);
  }
  .js .reveal.is-visible.feature:hover, .js .reveal.is-visible.step:hover { transform: translateY(-4px); }
  .pains li:hover { border-color: var(--color-primary); }
  .feature:hover .feature__icon, .step:hover .feature__icon { transform: scale(1.08) rotate(-4deg); }
}
.feature__icon { transition: transform 300ms var(--ease-spring); }

.step__number { transition: transform 300ms var(--ease-spring); }
.js .step.is-visible .step__number { animation: pop 500ms var(--ease-spring) both; animation-delay: calc(var(--reveal-delay, 0ms) + 200ms); }

/* --- Screenshots: leichtes Anheben ---------------------------------------- */
.screen img { transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out); }
@media (hover: hover) {
  .screen:hover img { transform: translateY(-6px) scale(1.015); box-shadow: 0 30px 60px rgba(0, 0, 0, 0.18); }
}

/* --- Beispiel: Wettlauf zweier Tilgungspläne ----------------------------- */
.race { display: grid; gap: 10px; margin-top: 20px; }
.race__row {
  display: grid; grid-template-columns: 9.5em 1fr auto; gap: 12px; align-items: center; font-size: 0.875rem;
}
.race__label { color: var(--color-muted-fg); }
.race__date { font-weight: 600; font-variant-numeric: tabular-nums; min-width: 5.5em; text-align: right; }
.race__track { height: 10px; border-radius: 999px; background: var(--color-card); overflow: hidden; }
.race__bar { display: block; height: 100%; width: var(--target); border-radius: inherit; }
.race__bar--slow { background: var(--color-border-strong); }
.race__bar--fast { background: linear-gradient(90deg, var(--color-primary), var(--color-ring)); }
.js .race__bar { width: 0; transition: width 1400ms var(--ease-out) 250ms; }
.js .race__bar--fast { transition-duration: 1000ms; }
.js .example.is-visible .race__bar { width: var(--target); }
@media (max-width: 520px) {
  .race__row { grid-template-columns: 1fr auto; }
  .race__track { grid-column: 1 / -1; grid-row: 2; }
}

/* --- Knöpfe: Druckgefühl und Ladezustand --------------------------------- */
.button { transition: background-color 150ms, border-color 150ms, transform 150ms var(--ease-out), box-shadow 150ms; }
.button--primary:hover { box-shadow: 0 6px 18px color-mix(in srgb, var(--color-primary) 35%, transparent); transform: translateY(-1px); }
.button:active { transform: translateY(0) scale(0.98); }
.button.is-loading { cursor: progress; opacity: 0.85; }
.button.is-loading::before {
  content: ''; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: spin 700ms linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* --- Eingabefeld ---------------------------------------------------------- */
.field input[type='email'] { transition: border-color 150ms, box-shadow 200ms var(--ease-out), background-color 150ms; }
.field input[type='email']:focus { background: var(--color-card); }
.choice input { transition: transform 200ms var(--ease-spring); }
.choice input:checked { transform: scale(1.1); }

/* --- FAQ: weich auf- und zuklappen (wo der Browser es kann) -------------- */
.faq details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 280ms var(--ease-out), content-visibility 280ms allow-discrete;
}
.faq details[open]::details-content { block-size: auto; }

/* --- „Vom Minus ins Plus“: Nettovermögen als sich zeichnende Kurve ------- */
.journey { margin: 0 0 48px; }
.journey__chart { display: block; width: 100%; height: auto; overflow: visible; }
.journey__stop--plus { stop-color: var(--color-ring); }
.journey__stop--minus { stop-color: var(--color-destructive); }
.journey__zero { stroke: var(--color-border-strong); stroke-width: 1.5; stroke-dasharray: 4 6; }
.journey__axis { fill: var(--color-muted-fg); font: 600 13px var(--font-body); }
.journey__line { fill: none; stroke: url(#journey-stroke); stroke-width: 5; stroke-linecap: round; }
.journey__area { fill: url(#journey-stroke); opacity: 0.12; }
.journey__point circle { stroke: var(--color-bg); stroke-width: 3; }
.journey__point--start circle { fill: var(--color-destructive); }
.journey__point--free circle, .journey__point--end circle { fill: var(--color-ring); }
.journey__point text { fill: var(--color-fg); font: 700 15px var(--font-heading); }
.journey__point--start text { fill: var(--color-destructive); font-size: 13px; }
.journey__pulse { fill: none !important; stroke: var(--color-ring) !important; stroke-width: 2 !important; transform-box: fill-box; transform-origin: center; }
.journey__caption { text-align: center; color: var(--color-muted-fg); max-width: 34em; margin: 20px auto 0; }

.js .journey__line { stroke-dasharray: 1; stroke-dashoffset: 1; }
.js .journey__area, .js .journey__point { opacity: 0; }
.js .journey__point { transform-box: fill-box; transform-origin: center; transform: scale(0.6); }
.js .journey.is-visible .journey__line { stroke-dashoffset: 0; transition: stroke-dashoffset 2200ms var(--ease-out) 300ms; }
.js .journey.is-visible .journey__area { opacity: 0.12; transition: opacity 900ms var(--ease-out) 1600ms; }
.js .journey.is-visible .journey__point {
  opacity: 1; transform: none; transition: opacity 400ms var(--ease-out), transform 500ms var(--ease-spring);
}
.js .journey.is-visible .journey__point--start { transition-delay: 300ms; }
.js .journey.is-visible .journey__point--free { transition-delay: 1350ms; }
.js .journey.is-visible .journey__point--end { transition-delay: 2300ms; }
.journey.is-visible .journey__pulse, html:not(.js) .journey__pulse { animation: pulse 2s ease-out 2s infinite; }
@keyframes pulse { from { transform: scale(1); opacity: 0.8; } to { transform: scale(2.6); opacity: 0; } }

/* --- Lichtspot: weicher Schein folgt der Maus über Karten ---------------- */
.feature, .step { position: relative; isolation: isolate; overflow: hidden; }
.feature::before, .step::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(320px circle at var(--spot-x, 50%) var(--spot-y, 50%), var(--glow-1), transparent 70%);
  opacity: 0; transition: opacity 300ms var(--ease-out);
}
@media (hover: hover) { .feature:hover::before, .step:hover::before { opacity: 1; } }

/* --- Screenshots: neigen sich mit der Maus ------------------------------- */
.screen { perspective: 1200px; }
.screen picture { display: block; transform-style: preserve-3d; }
.screen img { transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)); }
@media (hover: hover) {
  .screen:hover img {
    transform: rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(-6px) scale(1.02);
    transition: transform 120ms linear, box-shadow 400ms var(--ease-out);
  }
}

/* --- Fortschritt beim Lesen --------------------------------------------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 20; pointer-events: none;
  background: linear-gradient(90deg, var(--color-primary), var(--color-ring));
  transform-origin: 0 50%; transform: scaleX(var(--progress, 0));
}

/* --- Konfetti nach der Bestätigung --------------------------------------- */
.confetti { position: fixed; inset: 0; z-index: 30; pointer-events: none; width: 100%; height: 100%; }

/* --- Bewegung reduzieren: alles still, alles sichtbar -------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important;
  }
  .hero__glow::before, .hero__glow::after, .accent, .journey__pulse { animation: none !important; }
  .scroll-progress { display: none; }
}
