/* =========================================================
   Sechs Schritte als Tour (Runde 3, 22.11.2026, config weg: an)
   Links der Schritt und was du dabei tust (Haken für Erledigtes), rechts die echte App: Bild für Bild, der Zeiger geht
   zum Knopf und klickt. Alles hängt direkt am Scrollen (js/weg.js setzt Deckkraft, Zeiger und Klick), kein Zoom.
   Ohne html.bew stehen die Schritte mit ihren Bildern untereinander.
   ========================================================= */
.weg { padding: 120px 0 40px; }
.weg-pfad, .weg-app { display: none; }
.weg-schritte { list-style: none; margin: 56px 0 0; padding: 0; display: grid; gap: 90px; }
.weg-nr { color: var(--akzent); }
.weg-text h3 { font-size: clamp(28px, 3vw, 44px); line-height: 1.05; letter-spacing: -.04em; font-weight: 560; margin: 12px 0 0; text-wrap: balance; }
.weg-text > p { font-size: 18px; line-height: 1.5; color: var(--ink2); margin: 14px 0 0; max-width: 460px; text-wrap: pretty; }
.weg-teile { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; max-width: 460px; }
.weg-teile li { position: relative; display: flex; gap: 12px; align-items: baseline; font-size: 16px; line-height: 1.45; color: var(--ink); }
.weg-punkt { flex: none; width: 20px; height: 20px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--s); transform: translateY(4px); display: grid; place-items: center; transition: background .3s, border-color .3s; }
.weg-punkt::after { content: ""; width: 8px; height: 4px; border: solid #fff; border-width: 0 0 2px 2px; transform: translateY(-1px) rotate(-45deg); opacity: 0; transition: opacity .2s; }
.weg-bilder { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 26px; }
.weg-f { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: var(--s); box-shadow: var(--sch2); }
.weg-f img { width: 100%; height: auto; }
.weg-hinweis { margin-top: 40px; }
@media (max-width: 640px) {
  .weg { padding-top: 90px; }
  .weg-text > p { font-size: 16px; }
  .weg-teile li { font-size: 15px; }
  .weg-bilder { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

/* =========================================================
   Mit Bewegung: eine stehende Bühne
   ========================================================= */
html.bew .weg { padding: 0; }
html.bew .weg-bahn { height: calc((1.2 + var(--n, 10) * .8) * 100vh); }
html.bew .weg-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; padding-top: 76px; overflow: hidden; }
html.bew .weg-in { height: 100%; display: flex; flex-direction: column; padding-top: 26px; padding-bottom: 18px; }
html.bew .weg-kopf { flex: none; max-height: 280px; padding-bottom: .3em; overflow: hidden; transition: max-height .55s var(--weich), opacity .35s; }
html.bew .weg.laeuft .weg-kopf { max-height: 0; padding-bottom: 0; opacity: 0; }
html.bew .weg.laeuft .weg-pfad { margin-top: 4px; }
html.bew .weg-pfad { transition: margin .55s var(--weich); }
html.bew .weg-kopf .titel { margin-top: 10px; }

/* Der Weg oben: Linie füllt sich mit dem Scrollen, Punkte werden blau */
html.bew .weg-pfad { display: grid; grid-template-columns: repeat(6, 1fr); position: relative; list-style: none; margin: 26px 0 0; padding: 0; flex: none; }
html.bew .weg-linie { position: absolute; left: calc(100% / 12); right: calc(100% / 12); top: 6px; height: 2px; background: var(--line2); border-radius: 2px; overflow: hidden; }
html.bew .weg-linie b { position: absolute; inset: 0; background: var(--akzent); transform-origin: left; transform: scaleX(var(--wp, 0)); }
html.bew [data-weg-punkt] { display: grid; justify-items: center; gap: 8px; position: relative; }
html.bew [data-weg-punkt] i { width: 14px; height: 14px; border-radius: 50%; background: var(--bg); border: 2px solid var(--line2); transition: background .3s, border-color .3s, box-shadow .3s; }
html.bew [data-weg-punkt] span { font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
html.bew [data-weg-punkt].fertig i { background: var(--akzent); border-color: var(--akzent); }
html.bew [data-weg-punkt].jetzt i { background: var(--s); border-color: var(--akzent); box-shadow: 0 0 0 4px var(--hauch); }
html.bew [data-weg-punkt].jetzt span { color: var(--akzent); }

/* Haupt: links der Schritt, rechts die App */
html.bew .weg-haupt { flex: 1; min-height: 0; margin-top: 24px; display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 0 56px; align-items: center; container-type: size; }
html.bew .weg-schritte { position: relative; margin: 0; display: block; height: 100%; }
html.bew .weg-s { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(24px);
  transition: opacity .4s var(--weich), transform .6s var(--weich), visibility 0s .6s; }
html.bew .weg-s.vorbei { transform: translateY(-24px); }
html.bew .weg-s.an { opacity: 1; visibility: visible; transform: none; transition: opacity .4s var(--weich) .08s, transform .6s var(--weich) .08s, visibility 0s; }
html.bew .weg-bilder { display: none; }
html.bew .weg-text h3 { font-size: clamp(30px, 3vw, 46px); }
html.bew .weg-teile li { color: var(--muted); transition: color .3s; }
html.bew .weg-teile li.jetzt { color: var(--ink); font-weight: 540; }
html.bew .weg-teile li.jetzt .weg-punkt { border-color: var(--akzent); box-shadow: 0 0 0 4px var(--hauch); }
html.bew .weg-teile li.fertig { color: var(--ink2); }
html.bew .weg-teile li.fertig .weg-punkt { background: var(--akzent); border-color: var(--akzent); }
html.bew .weg-teile li.fertig .weg-punkt::after { opacity: 1; }

html.bew .weg-app { display: flex; flex-direction: column; justify-self: center; width: min(100%, calc((100cqh - 44px) * 1.2727)); background: var(--s); border: 1px solid var(--line2); border-radius: 16px; box-shadow: var(--sch3); overflow: hidden; }
html.bew .weg-leiste { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); background: var(--s2); flex: none; }
html.bew .weg-leiste i { width: 10px; height: 10px; border-radius: 50%; background: var(--line2); }
html.bew .weg-leiste span { margin: 0 auto; transform: translateX(-20px); font-family: var(--mono); font-size: 12px; color: var(--muted); background: var(--s); border: 1px solid var(--line); border-radius: 7px; padding: 3px 14px; }
html.bew .weg-schirm { position: relative; aspect-ratio: 1400 / 1100; overflow: hidden; background: var(--bg); }
html.bew .weg-schirm .weg-f { position: absolute; inset: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; background: var(--s); opacity: 0; will-change: opacity, transform; }
html.bew .weg-schirm .weg-f img { width: 100%; height: auto; }

/* Zeiger und Klick */
html.bew .weg-zeiger { position: absolute; left: 0; top: 0; z-index: 3; width: 26px; height: 26px; margin: -3px 0 0 -5px; opacity: 0; pointer-events: none; will-change: transform; filter: drop-shadow(0 2px 3px rgba(0,0,0,.25)); }
html.bew .weg-zeiger svg { width: 100%; height: 100%; display: block; }
html.bew .weg-zeiger::before { content: ""; position: absolute; left: 3px; top: 1px; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 2px solid var(--akzent);
  opacity: var(--klick, 0); box-shadow: 0 0 0 calc(var(--klick-weit, 0) * 12px) rgba(36,71,209,.16); }

@media (max-height: 820px) and (min-width: 900px) {
  html.bew .weg-in { padding-top: 16px; }
  html.bew .weg-pfad { margin-top: 16px; }
  html.bew .weg-haupt { margin-top: 16px; }
  html.bew .weg-text h3 { font-size: 34px; }
  html.bew .weg-text > p { font-size: 16px; margin-top: 10px; }
  html.bew .weg-teile { margin-top: 16px; gap: 8px; }
  html.bew .weg-teile li { font-size: 15px; }
}

/* Schmal: Text oben, App darunter; der Kopf schiebt sich weg, sobald die Tour beginnt */
@media (max-width: 899px) {
  html.bew .weg-buehne { padding-top: 62px; }
  html.bew .weg-in { padding-top: 14px; padding-bottom: 10px; }
  html.bew .weg-pfad { margin-top: 16px; }
  html.bew .weg.laeuft .weg-pfad { margin-top: 0; }
  html.bew .weg-haupt { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; container-type: normal; }
  html.bew .weg-schritte { flex: none; height: auto; display: grid; }
  html.bew .weg-s { position: static; grid-area: 1 / 1; justify-content: flex-start; transform: translateX(28px); }
  html.bew .weg-s.vorbei { transform: translateX(-28px); }
  html.bew .weg-s.an { transform: none; }
  html.bew .weg-text h3 { font-size: 24px; margin-top: 6px; }
  html.bew .weg-text > p { display: none; }
  html.bew .weg-teile { margin-top: 10px; gap: 6px; }
  html.bew .weg-teile li { font-size: 14px; gap: 10px; }
  html.bew .weg-punkt { width: 17px; height: 17px; transform: translateY(3px); }
  html.bew .weg-app { flex: 1; min-height: 0; width: 100%; align-self: center; container-type: size; border-radius: 14px; }
  html.bew .weg-schirm { flex: 1; aspect-ratio: auto; }
  html.bew .weg-hinweis { font-size: 10px; margin-top: 8px; }
}
@media (max-width: 640px) {
  html.bew .weg-buehne { padding-top: 60px; }
  html.bew .weg .titel { font-size: 36px; }
  html.bew [data-weg-punkt] span { font-size: 9.5px; letter-spacing: .04em; }
  /* Handy: das Bild ist ein ganzer Bildschirm der App; es schiebt sich so, dass der Knopf zu sehen ist */
  html.bew .weg-app { width: min(100%, 320px); border-radius: 26px; }
  html.bew .weg-leiste { display: none; }
  html.bew .weg-schirm .weg-f img { transform: translateY(var(--off, 0px)); transition: transform .6s var(--weich); }
}
