/* Ablauf als Partikel-Reise (Startseite). Alle Regeln hängen an .reise-an, die das Modul nur setzt,
   wenn WebGL 2 da ist und keine reduzierte Bewegung gewünscht wird. Ohne Klasse bleibt die Schrittliste. */

.reise-an .reise__lauf { position: relative; height: 420vh; margin-top: clamp(28px, 4vw, 48px); }
.reise-an .reise__buehne { position: sticky; top: 0; height: 100vh; height: 100dvh; }
/* Weiche Schattenkante, solange die Bühne als Fenster in der Seite steht */
.reise-an .reise__buehne.ist-fenster { filter: drop-shadow(0 30px 48px rgb(23 35 28 / .14)) drop-shadow(0 2px 5px rgb(23 35 28 / .06)); }

.reise-an .reise__fenster {
  position: absolute; inset: 0; overflow: hidden; isolation: isolate;
  background:
    radial-gradient(55% 60% at 72% 36%, rgb(255 255 255 / .75), rgb(255 255 255 / 0) 70%),
    radial-gradient(130% 95% at 50% 42%, rgb(23 35 28 / 0) 58%, rgb(23 35 28 / .075) 100%),
    linear-gradient(166deg, var(--papier-hell) 0%, var(--papier) 46%, var(--papier-2) 100%);
  clip-path: inset(9vh max(var(--rand), calc((100% - var(--breite)) / 2)) round var(--karte));
  will-change: clip-path;
}
/* Papierschleier hinter dem Text, damit Staub die Schrift nicht stört */
.reise-an .reise__fenster::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(248 249 245 / .86) 0%, rgb(248 249 245 / .5) 28%, rgb(248 249 245 / 0) 50%);
}
/* Leichtes Papierkorn auf der Bühne */
.reise-an .reise__fenster::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.reise-an .reise__leinwand { position: absolute; inset: 0; z-index: 0; display: block; width: 100%; height: 100%; opacity: 0; transition: opacity 600ms var(--aus); }
.reise-an .reise__fenster.ist-bereit .reise__leinwand { opacity: 1; }

.reise-an .reise__rahmen { position: absolute; inset: 0; z-index: 2; margin-inline: auto; pointer-events: none; }

/* Die vier Schritte werden zu Stationstexten: immer nur einer steht da */
.reise-an .reise__stationen { position: absolute; left: 0; right: 0; bottom: clamp(132px, 24vh, 240px); margin: 0; display: block; }
.reise-an .reise__stationen::before { content: none; }
.reise-an .reise__stationen > li,
.reise-an .reise__stationen > li.auf {
  position: absolute; left: 0; bottom: 0; width: min(460px, 40%); padding: 0;
  opacity: 0; transform: translate3d(0, 16px, 0); filter: blur(6px); animation: none;
  transition: opacity 400ms var(--aus), transform 400ms var(--aus), filter 400ms var(--aus);
}
.reise-an .reise__stationen > li::before { content: none; }
.reise-an .reise__stationen > li.ist-aktiv { opacity: 1; transform: none; filter: none; }
.reise-an .reise__stationen h3 { font-size: clamp(32px, 4vw, 56px); line-height: 1.02; letter-spacing: -.025em; font-variation-settings: "opsz" 72; }
.reise-an .reise__stationen p { margin: 16px 0 0; max-width: 34ch; font-size: 17px; line-height: 1.55; color: var(--flechte); }

/* Kapitel-Leiste */
.reise__leiste {
  position: absolute; z-index: 3; left: max(var(--rand), calc((100% - var(--breite)) / 2)); bottom: clamp(28px, 6vh, 56px);
  display: flex; gap: 4px; padding: 4px; border-radius: 999px;
  background: rgb(248 249 245 / .8); border: 1px solid var(--linie); box-shadow: 0 10px 30px -18px rgb(23 35 28 / .45);
}
.reise__leiste button {
  appearance: none; border: 0; margin: 0; cursor: pointer; min-height: 38px; padding: 0 15px; border-radius: 999px;
  background: transparent; color: var(--flechte); font: 500 12px/1 var(--fm); letter-spacing: .02em; white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, transform 160ms var(--aus);
}
.reise__leiste button[aria-current="step"] { background: var(--limette); color: var(--moos); }
.reise__leiste button:active { transform: scale(.97); }
.reise__leiste button:focus-visible { outline: 3px solid var(--moosgruen); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) {
  .reise__leiste button:hover { color: var(--moos); background: rgb(23 35 28 / .06); }
  .reise__leiste button[aria-current="step"]:hover { background: var(--limette-tief); }
}

/* Handy: Form oben, Text unten, Leiste ganz unten */
@media (max-width: 759px) {
  .reise-an .reise__lauf { height: 380vh; }
  .reise-an .reise__fenster::before { background: linear-gradient(0deg, rgb(248 249 245 / .94) 0%, rgb(248 249 245 / .7) 30%, rgb(248 249 245 / 0) 52%); }
  .reise-an .reise__stationen { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .reise-an .reise__stationen > li,
  .reise-an .reise__stationen > li.auf { width: 100%; padding-left: 0; }
  .reise-an .reise__stationen h3 { font-size: 34px; }
  .reise-an .reise__stationen p { margin-top: 10px; font-size: 16px; }
  .reise__leiste { left: 50%; translate: -50% 0; bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .reise__leiste button { min-height: 44px; padding: 0 11px; }
}
