/* ===== WOW-Effekte (nur aktiv, wenn wow.js läuft: html.wow) ===== */
html.wow .rv{opacity:0;transform:translateY(26px);transition:opacity .7s cubic-bezier(.2,.7,.2,1),transform .7s cubic-bezier(.2,.7,.2,1);transition-delay:calc(var(--i,0) * 90ms)}
html.wow .rv.in{opacity:1;transform:none}
html.wow-reduce .rv{opacity:1;transform:none;transition:none}

/* Kopfbereich A: Wald wächst, Sonne glüht, Blätter fallen */
@keyframes wow-grow{from{transform:scaleY(0) scaleX(.6);opacity:0}to{transform:none;opacity:1}}
@keyframes wow-sun{0%,100%{transform:scale(1);opacity:.85}50%{transform:scale(1.08);opacity:1}}
@keyframes wow-fall{0%{transform:translate(0,-20px) rotate(0);opacity:0}10%{opacity:1}100%{transform:translate(var(--dx,-60px),360px) rotate(320deg);opacity:0}}
@keyframes wow-rise{from{opacity:0;transform:translateY(18px)}to{opacity:1;transform:none}}
html.wow:not(.wow-reduce) .hero-art svg>g{transform-box:fill-box;transform-origin:50% 100%;animation:wow-grow 1.1s cubic-bezier(.2,.8,.2,1) both}
html.wow:not(.wow-reduce) .hero-art svg>g:nth-of-type(1){animation-delay:.15s}
html.wow:not(.wow-reduce) .hero-art svg>g:nth-of-type(2){animation-delay:.25s}
html.wow:not(.wow-reduce) .hero-art svg>g:nth-of-type(3){animation-delay:.45s}
html.wow:not(.wow-reduce) .hero-art svg>g:nth-of-type(4){animation-delay:.65s}
html.wow:not(.wow-reduce) .hero-art svg>g:nth-of-type(5){animation-delay:.85s}
html.wow:not(.wow-reduce) .hero-art svg>circle{transform-box:fill-box;transform-origin:center;animation:wow-sun 6s ease-in-out infinite}
html.wow:not(.wow-reduce) .hero-copy>*{animation:wow-rise .8s cubic-bezier(.2,.7,.2,1) both}
html.wow:not(.wow-reduce) .hero-copy>*:nth-child(2){animation-delay:.1s}
html.wow:not(.wow-reduce) .hero-copy>*:nth-child(3){animation-delay:.2s}
html.wow:not(.wow-reduce) .hero-copy>*:nth-child(4){animation-delay:.3s}
html.wow:not(.wow-reduce) .hero-copy>*:nth-child(5){animation-delay:.4s}
.hero-art{position:relative}
.leaves{position:absolute;inset:0;pointer-events:none;overflow:hidden;border-radius:28px}
.leaves i{position:absolute;top:0;width:14px;height:9px;border-radius:0 80% 0 80%;background:#c98a3a;opacity:0}
html.wow:not(.wow-reduce) .leaves i{animation:wow-fall 9s linear infinite}
.leaves i:nth-child(1){left:62%;animation-delay:1s!important;--dx:-80px}
.leaves i:nth-child(2){left:72%;background:#e3b25d;animation-delay:3.5s!important;--dx:-40px}
.leaves i:nth-child(3){left:55%;background:#7cb56a;animation-delay:6s!important;--dx:-110px}
.leaves i:nth-child(4){left:80%;background:#b77b34;animation-delay:7.5s!important;--dx:-70px}

/* ===== Waldumbau: Scroll-Geschichte ===== */
.wu{--wu-green:#1d6b2c;--wu-dark:#14491f;--wu-brown:#8a5a2b;--wu-gold:#c98a3a;background:linear-gradient(#f7f8f3,#e9f0d8);position:relative}
.wu-head{padding:84px 0 12px}
.wu-head h2{margin:0 0 8px}
.wu-head p{color:#4c5a4e;max-width:62ch;margin:0}
.wu-track{position:relative}
html.wow .wu-track{height:330vh}
.wu-sticky{display:grid;grid-template-columns:.9fr 1.1fr;gap:40px;align-items:center;padding:40px 0 70px}
html.wow .wu-sticky{position:sticky;top:0;min-height:100vh;padding:80px 0 40px}
.wu-steps{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.wu-step{background:#fff;border-radius:16px;padding:18px 20px;box-shadow:0 8px 24px rgba(31,61,43,.08);border-left:5px solid #dcebd6;transition:all .45s ease}
.wu-step b{display:block;font-family:"Iowan Old Style",Georgia,serif;font-size:1.25rem;color:var(--wu-dark)}
.wu-step span{color:#4c5a4e;font-size:.98rem}
.wu-step small{display:block;text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:700;color:#3a8a3d;margin-bottom:2px}
html.wow .wu-step{opacity:.38;transform:scale(.97)}
html.wow .wu[data-stage="0"] .wu-step:nth-child(1),html.wow .wu[data-stage="1"] .wu-step:nth-child(2),html.wow .wu[data-stage="2"] .wu-step:nth-child(3),html.wow .wu[data-stage="3"] .wu-step:nth-child(4){opacity:1;transform:none;border-left-color:var(--wu-gold);box-shadow:0 14px 34px rgba(31,61,43,.16)}
.wu-stage{position:relative}
.wu-scene{width:100%;height:auto;display:block;border-radius:24px;box-shadow:0 18px 40px rgba(31,61,43,.18);background:#eaf1db}
.wu-label{position:absolute;top:16px;left:16px;background:rgba(31,61,43,.88);color:#fff;font:700 .85rem/1 system-ui,sans-serif;padding:9px 14px;border-radius:999px}
.wu-label i{font-style:normal;display:none}
.wu[data-stage="0"] .wu-label i:nth-child(1),.wu[data-stage="1"] .wu-label i:nth-child(2),.wu[data-stage="2"] .wu-label i:nth-child(3),.wu[data-stage="3"] .wu-label i:nth-child(4),.wu:not([data-stage]) .wu-label i:nth-child(4){display:inline}
.wu-dots{display:flex;gap:8px;justify-content:center;margin-top:14px}
.wu-dots button{width:34px;height:34px;border-radius:50%;border:2px solid var(--wu-green);background:#fff;color:var(--wu-green);font-weight:700;cursor:pointer}
.wu[data-stage="0"] [data-goto="0"],.wu[data-stage="1"] [data-goto="1"],.wu[data-stage="2"] [data-goto="2"],.wu[data-stage="3"] [data-goto="3"]{background:var(--wu-green);color:#fff}
html:not(.wow) .wu-dots{display:none}
.wu-bar{height:4px;background:#dcebd6;border-radius:4px;margin-top:12px;overflow:hidden}
.wu-bar::after{content:"";display:block;height:100%;width:calc(var(--p,1) * 100%);background:var(--wu-gold)}
/* Szene: Bäume */
.wu-scene .t{transform-box:fill-box;transform-origin:50% 100%;transition:transform 1s cubic-bezier(.3,.7,.2,1),opacity .9s ease,fill .8s ease}
.wu-scene .t .c{transition:fill .8s ease}
.wu-scene .lb{transform:scale(0);opacity:0}
.wu-scene .sky{transition:fill 1s ease}
.wu-scene .bug{opacity:0;transition:opacity .6s ease}
.wu-scene .ring{opacity:0;transition:opacity .8s ease}
.wu-scene .gap{opacity:0;transition:opacity .8s ease}
/* Stufe 1: Schädling / Hitze – Fichten sterben, Lücken */
.wu[data-stage="1"] .dies .c{fill:var(--wu-brown)}
.wu[data-stage="1"] .dies{transform:rotate(78deg) translateY(10px)}
.wu[data-stage="1"] .bug{opacity:1}
.wu[data-stage="1"] .gap{opacity:1}
.wu[data-stage="1"] .sky{fill:#f3e3c0}
/* Stufe 2: früh eingreifen – Kalamitätsholz weg, Durchforstung, Verjüngung */
.wu[data-stage="2"] .dies,.wu[data-stage="3"] .dies,.wu:not([data-stage]) .dies{opacity:0;transform:translateY(40px)}
.wu[data-stage="2"] .thin,.wu[data-stage="3"] .thin,.wu:not([data-stage]) .thin{opacity:0;transform:scale(.2)}
.wu[data-stage="2"] .lb{transform:scale(.45);opacity:1}
/* Stufe 3: stabiler Mischwald, Höhlenbaum erhalten */
.wu[data-stage="3"] .lb,.wu:not([data-stage]) .lb{transform:none;opacity:1}
.wu[data-stage="3"] .ring,.wu:not([data-stage]) .ring{opacity:1}
.wu[data-stage="3"] .sky,.wu:not([data-stage]) .sky{fill:#e3f0d2}
.wu-scene .lb:nth-of-type(odd){transition-delay:.15s}
@media (max-width:900px){
  .wu-sticky{grid-template-columns:1fr;gap:18px}
  html.wow .wu-sticky{padding:64px 0 24px;align-content:start}
  .wu-stage{order:-1}
  html.wow .wu-step{display:none}
  html.wow .wu[data-stage="0"] .wu-step:nth-child(1),html.wow .wu[data-stage="1"] .wu-step:nth-child(2),html.wow .wu[data-stage="2"] .wu-step:nth-child(3),html.wow .wu[data-stage="3"] .wu-step:nth-child(4){display:block}
}

/* ===== Vorher/Nachher-Regler ===== */
.ba{position:relative;border-radius:18px;overflow:hidden;box-shadow:0 18px 40px rgba(0,0,0,.18);aspect-ratio:16/10;background:#111;--pos:50%}
.ba img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:top}
.ba .ba-new{clip-path:inset(0 0 0 var(--pos))}
.ba input[type=range]{position:absolute;inset:0;width:100%;height:100%;opacity:0;cursor:ew-resize;margin:0;z-index:3}
.ba-line{position:absolute;top:0;bottom:0;left:var(--pos);width:3px;background:#f0c987;z-index:2;transform:translateX(-50%);pointer-events:none}
.ba-line::after{content:"⟷";position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);width:46px;height:46px;border-radius:50%;background:#f0c987;color:#14491f;display:grid;place-items:center;font-weight:700;box-shadow:0 6px 16px rgba(0,0,0,.3)}
.ba-tag{position:absolute;top:14px;z-index:2;background:rgba(0,0,0,.72);color:#fff;font:700 .8rem/1 system-ui;padding:8px 12px;border-radius:999px;pointer-events:none}
.ba-tag.l{left:14px}.ba-tag.r{right:14px;background:#1d6b2c}
html:not(.wow) .ba .ba-new{clip-path:none;opacity:0}
html:not(.wow) .ba-line{display:none}
@media (prefers-reduced-motion:reduce){.wu-scene .t,.wu-step,.wu-scene .sky{transition:none}}
/* B: Überschrift Wort für Wort, Linie zeichnet sich; C: Hero hebt sich */
@keyframes wow-draw{from{stroke-dashoffset:2600}to{stroke-dashoffset:0}}
html.wow:not(.wow-reduce) .vb-line path{stroke-dasharray:2600;animation:wow-draw 3.2s .4s ease-out both}
html.wow:not(.wow-reduce) .vb-hero .vb-wrap>*{animation:wow-rise .9s cubic-bezier(.2,.7,.2,1) both}
html.wow:not(.wow-reduce) .vb-hero .vb-wrap>*:nth-child(2){animation-delay:.12s}
html.wow:not(.wow-reduce) .vb-hero .vb-wrap>*:nth-child(3){animation-delay:.3s}
html.wow:not(.wow-reduce) .vb-hero .vb-wrap>*:nth-child(4){animation-delay:.45s}
html.wow:not(.wow-reduce) .vc-hero .vc-wrap>*{animation:wow-rise .9s cubic-bezier(.2,.7,.2,1) both}
html.wow:not(.wow-reduce) .vc-hero .vc-wrap>*:nth-child(2){animation-delay:.1s}
html.wow:not(.wow-reduce) .vc-hero .vc-wrap>*:nth-child(3){animation-delay:.22s}
html.wow:not(.wow-reduce) .vc-hero .vc-wrap>*:nth-child(4){animation-delay:.34s}
.vc-tile{transition:transform .2s,box-shadow .2s}.vc-tile:hover{transform:translateY(-3px);box-shadow:0 10px 24px rgba(0,0,0,.08)}
.vb-list li{transition:padding-left .25s}.vb-list li:hover{padding-left:8px}
