/* ==========================================================================
   Sektion „03 — Einrichtung": horizontale Installation Journey
   Scroll-gesteuert über --p (0–1), gesetzt von js/setup.js.
   Ohne JS / bei reduzierter Bewegung: alles aktiv, Linie voll.
   ========================================================================== */

.sec--setup { background: var(--bg); padding-top: clamp(80px, 11vw, 160px); padding-bottom: clamp(96px, 13vw, 190px); }
.sec--setup::before { /* sehr dezente Lichtfläche */
  content: ''; position: absolute; z-index: 0; left: 50%; top: 52%; width: 900px; height: 520px; margin: -260px 0 0 -450px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(216,196,143,.05), transparent 72%);
}
.h2--md { font-size: clamp(2.2rem, 4.2vw, 4rem); max-width: 15em; text-wrap: balance; }
.setup__head { max-width: 920px; }
.setup__head .lead { max-width: 34em; }

/* ---------- Journey ---------- */
.journey { --p: 1; position: relative; margin-top: clamp(64px, 8vw, 120px); }
.journey__line { position: absolute; left: 0; right: 0; top: 7px; height: 1px; background: var(--line-strong); }
.journey__fill {
  position: absolute; inset: 0; display: block; transform-origin: left center; transform: scaleX(var(--p));
  background: linear-gradient(90deg, rgba(216,196,143,.35), var(--gold) 70%, var(--gold-soft));
  box-shadow: 0 0 14px rgba(216,196,143,.35);
  transition: transform .35s linear;
}
.journey__steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(32px, 5vw, 80px); }
.jstep { position: relative; padding-top: 52px; }
.jstep__node {
  position: absolute; left: 0; top: 0; width: 15px; height: 15px; border-radius: 50%;
  background: var(--bg); border: 1px solid rgba(255,255,255,.28);
  transition: background-color .8s var(--ease), border-color .8s var(--ease), box-shadow .9s var(--ease), transform .8s var(--ease);
}
.jstep__label { margin: 0; font: 500 13px/1 var(--font-mono); letter-spacing: .2em; text-transform: uppercase; color: var(--gold); transition: color .8s var(--ease); }
.jstep__text { margin: 22px 0 0; max-width: 17em; font: 500 clamp(1.15rem, 1.7vw, 1.55rem)/1.4 var(--font-display); letter-spacing: -.02em; color: var(--text); transition: color .9s var(--ease), transform .9s var(--ease), opacity .9s var(--ease); }

/* aktiv / inaktiv (nur mit JS) */
.ready .journey { --p: 0; }
.ready .jstep__label { color: var(--text-faint); }
.ready .jstep__text { color: #6f6a63; }
.ready .jstep.is-on .jstep__label { color: var(--gold); }
.ready .jstep.is-on .jstep__text { color: var(--text); }
.jstep.is-on .jstep__node, html:not(.ready) .jstep__node { background: var(--gold); border-color: var(--gold-soft); box-shadow: 0 0 0 6px rgba(216,196,143,.1), 0 0 26px rgba(216,196,143,.55); }

.setup__cta { margin-top: clamp(56px, 7vw, 96px); }

/* ---------- Mobil: vertikale Journey ---------- */
@media (max-width: 860px) {
  .journey__line { left: 7px; right: auto; top: 0; bottom: 0; width: 1px; height: auto; }
  .journey__fill { transform-origin: top center; transform: scaleY(var(--p)); background: linear-gradient(180deg, rgba(216,196,143,.35), var(--gold) 70%, var(--gold-soft)); }
  .journey__steps { grid-template-columns: 1fr; gap: 52px; }
  .jstep { padding: 0 0 0 48px; }
  .jstep__node { top: 0; }
  .jstep__text { margin-top: 16px; max-width: 22em; font-size: 1.2rem; }
}
@media (max-width: 560px) {
  .setup__cta .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .journey__fill, .jstep__node, .jstep__label, .jstep__text { transition-duration: .01ms !important; }
}
