/* Bewegung. Greift nur, wenn html[data-bewegung="voll"] gesetzt ist (app/bewegung.js: Schalter + prefers-reduced-motion).
   Ohne dieses Attribut zeigt weg.css überall den fertigen Zustand. */
html[data-bewegung="voll"] .band::before{transition:opacity .8s linear,background-color .8s linear}
/* Höhenprofil: Der Wanderer selbst wird in app/weg.js Bild für Bild entlang der Kurve bewegt. */
html[data-bewegung="voll"] .zeichen path{transition:fill .3s,stroke .3s,opacity .35s}
html[data-bewegung="voll"] #weg .zeichen:not(.fertig) .blaze{transform:scale(.3)}
html[data-bewegung="voll"] #weg .blaze{transition:opacity .25s,transform .45s var(--stempeln)}
html[data-bewegung="voll"] #weg .glanz{transition:opacity .5s .15s}
html[data-bewegung="voll"] #weg .schild,html[data-bewegung="voll"] #weg .lot{transition:opacity .3s}
html[data-bewegung="voll"] #weg .puls{animation:ww-puls 2.6s ease-out infinite}
html[data-bewegung="voll"] #weg .sonne{transition:opacity .8s}
html[data-bewegung="voll"] #weg .wolke{transition:opacity .8s,transform 1.3s var(--einblenden),fill .8s}
html[data-bewegung="voll"] #weg .regen{transition:opacity .6s .5s}
html[data-bewegung="voll"] .band[data-wetter="gewitter"] #weg .blitz{animation:ww-blitz 1.5s .9s both}
html[data-bewegung="voll"] .marken .tick{transition:background-color .25s,border-color .25s}
html[data-bewegung="voll"] .btn,html[data-bewegung="voll"] .opt span,html[data-bewegung="voll"] .route{transition:background-color .2s,border-color .2s,box-shadow .2s}

/* Intro: Bergketten steigen auf, das Profil zeichnet sich, die Stationen folgen, die Sonne geht auf */
html[data-bewegung="voll"] #weg.intro .ferne{animation:ww-steigen 1s calc(var(--i) * 180ms) var(--einblenden) both}
html[data-bewegung="voll"] #weg.intro .flaeche,html[data-bewegung="voll"] #weg.intro .skala,html[data-bewegung="voll"] #weg.intro .schnee{animation:ww-einblenden 1.1s .35s both}
html[data-bewegung="voll"] #weg.intro .baum{animation:ww-huette .4s calc(.5s + var(--i) * 50ms) var(--einblenden) both}
html[data-bewegung="voll"] #weg.intro .linie{animation:ww-linie 1.4s .2s var(--zeichnen) both}
html[data-bewegung="voll"] #weg.intro .zeichen,html[data-bewegung="voll"] #weg.intro .gipfel{animation:ww-huette .45s calc(.6s + var(--i) * 80ms) var(--einblenden) both}
html[data-bewegung="voll"] #weg.intro .sonne{animation:ww-steigen 1.2s .4s var(--einblenden) backwards}
html[data-bewegung="voll"] #weg.intro .wanderer{animation:ww-einblenden .4s .9s both}

/* Fragenwechsel */
html[data-bewegung="voll"] .ansicht{view-transition-name:ansicht}
html[data-bewegung="voll"]::view-transition-old(ansicht){animation:ww-raus .18s ease-in both}
html[data-bewegung="voll"]::view-transition-new(ansicht){animation:ww-rein .35s var(--einblenden) both}
html[data-bewegung="voll"]::view-transition-old(root),html[data-bewegung="voll"]::view-transition-new(root){animation-duration:.01s}

/* Echo, Rucksack, Stempel */
html[data-bewegung="voll"] .echo p{animation:ww-rein .25s ease-out both}
html[data-bewegung="voll"] .rucksack li.neu{animation:ww-pack .45s var(--stempeln) both}
html[data-bewegung="voll"] .rucksack h2 b.mehr{animation:ww-zahl .45s var(--stempeln)}
html[data-bewegung="voll"] .rast .stempel{animation:ww-stempel .45s .25s var(--stempeln) both}
html[data-bewegung="voll"] .stempelreihe .stempel.neu{animation:ww-stempel-klein .45s var(--stempeln) both}

/* Finale: Vorlage erscheint, Stempel fällt, Balken zeichnen sich */
html[data-bewegung="voll"] .vorlage{animation:ww-rein .7s .2s var(--einblenden) both}
html[data-bewegung="voll"] .vorlage .stempel{animation:ww-stempel .45s 1.2s var(--stempeln) both}
html[data-bewegung="voll"] .gantt .balken{animation:ww-balken .9s calc(.3s + var(--i) * 150ms) var(--zeichnen) both}

@keyframes ww-einblenden{from{opacity:0}to{opacity:1}}
@keyframes ww-steigen{from{opacity:0;transform:translateY(16px)}to{opacity:1;transform:none}}
@keyframes ww-linie{from{stroke-dasharray:1;stroke-dashoffset:1}to{stroke-dasharray:1;stroke-dashoffset:0}}
@keyframes ww-puls{0%{opacity:.7;transform:scale(1)}70%,100%{opacity:0;transform:scale(2.7)}}
@keyframes ww-blitz{0%,16%,32%{opacity:0}8%,24%,40%,100%{opacity:1}}
@keyframes ww-huette{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
@keyframes ww-raus{to{opacity:0;transform:translateY(-8px)}}
@keyframes ww-rein{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes ww-pack{from{opacity:0;transform:translateX(-14px)}to{opacity:1;transform:none}}
@keyframes ww-zahl{from{transform:scale(1.5)}to{transform:scale(1)}}
@keyframes ww-stempel{from{opacity:0;transform:rotate(-7deg) scale(1.6)}to{opacity:1;transform:rotate(-7deg) scale(1)}}
@keyframes ww-stempel-klein{from{opacity:0;transform:rotate(-4deg) scale(1.6)}to{opacity:1;transform:rotate(-4deg) scale(1)}}
@keyframes ww-balken{from{transform:scaleX(0)}to{transform:scaleX(1)}}
