/* ===================================================================
   "Unsere Wirkung" – Scroll-Erzählung. Baut auf /style.css auf
   (Farben, Schriften, Kopf, Fuß, Knöpfe; Hell/Dunkel über data-theme).
   Ohne JavaScript ist alles sichtbar – Effekte greifen nur mit .w-js.
   =================================================================== */
.w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.w-fortschritt {
    position: fixed; inset: 0 0 auto; height: 3px; z-index: 300; pointer-events: none;
    background: linear-gradient(90deg, #2dd4bf, var(--teal-600)); transform-origin: 0 50%; transform: scaleX(0);
}
.main-nav a[aria-current="page"] { color: var(--link); font-weight: 700; }

/* Einblenden beim Scrollen */
.w-js .w-reveal {
    opacity: 0; transform: translateY(36px);
    transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms);
}
.w-js .w-reveal.ist-da { opacity: 1; transform: none; }

/* ---------- Hero: die eine Zahl ---------- */
.w-hero {
    position: relative; min-height: calc(100svh - 72px); display: grid; place-items: center; overflow: hidden;
    text-align: center; color: #fff; padding-block: 10vh 16vh;
    background:
        radial-gradient(1100px 560px at 50% 115%, rgba(45, 212, 191, .30), transparent 62%),
        radial-gradient(760px 420px at 8% -12%, rgba(111, 208, 194, .16), transparent 60%),
        var(--green-900);
}
.w-hero-bild {
    position: absolute; left: 50%; bottom: -6vh; width: min(78vw, 620px); translate: -50% 0;
    opacity: .08; pointer-events: none; will-change: transform;
}
.w-hero-innen { position: relative; }
.w-hero .eyebrow { color: #6fd0c2; justify-content: center; }
.w-hero .eyebrow::before { background: #6fd0c2; }
.w-hero h1 {
    color: #fff; font-size: clamp(2rem, 5.5vw, 3.8rem); line-height: 1.05; letter-spacing: -.03em;
    margin: .6rem auto 1.2rem; max-width: 16ch;
}
.w-hero-zahl {
    margin: 0; font-family: var(--font-head); font-weight: 800; line-height: .9; letter-spacing: -.05em;
    font-size: clamp(5.5rem, 24vw, 14rem);
    background: linear-gradient(180deg, #ffffff 35%, #7ee0d2); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.w-hero-text { font-size: clamp(1.05rem, 2.2vw, 1.35rem); color: rgba(255, 255, 255, .84); max-width: 34ch; margin: 1.2rem auto 0; }
.w-scroll {
    position: absolute; bottom: 3.5vh; left: 50%; translate: -50% 0; display: flex; flex-direction: column; align-items: center;
    gap: .45rem; font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .65);
}
.w-scroll::after { content: ""; width: 2px; height: 36px; background: linear-gradient(#fff, transparent); animation: w-tropfen 1.9s var(--ease) infinite; }
@keyframes w-tropfen {
    0%   { transform: scaleY(0); transform-origin: top; }
    50%  { transform: scaleY(1); transform-origin: top; }
    51%  { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Wörter, die beim Scrollen aufleuchten ---------- */
.w-woerter { background: var(--bg); }
.w-js .w-woerter { height: 230vh; }
.w-woerter-innen { display: grid; place-items: center; padding: clamp(4rem, 10vw, 7rem) clamp(1.2rem, 5vw, 3rem); }
.w-js .w-woerter-innen { position: sticky; top: 0; height: 100svh; padding-block: 0; }
.w-woerter p {
    margin: 0; max-width: 15ch; text-align: center; font-family: var(--font-head); font-weight: 800;
    font-size: clamp(2.3rem, 7.5vw, 5.6rem); line-height: 1.06; letter-spacing: -.035em; color: var(--heading);
}
.w-js .w-wort { opacity: .13; transition: opacity .55s var(--ease); }
.w-js .w-wort.an { opacity: 1; }
.w-wort--gips { color: var(--link); }

/* ---------- Eiertausch in vier Schritten ---------- */
.w-schritte { background: var(--bg-soft); padding-block: clamp(4rem, 9vw, 7rem); }
.w-schritte-raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 6vw, 5rem); align-items: start; }
.w-nest-rahmen { position: sticky; top: 16vh; }
.w-nest { display: block; width: 100%; max-width: 480px; height: auto; margin-inline: auto; }
.w-nest .ei, .w-nest .gips, .w-nest .taube, .w-nest .null {
    transition: opacity .7s var(--ease), transform .8s var(--ease); transform-box: fill-box; transform-origin: center;
}
.w-nest .gips, .w-nest .taube, .w-nest .null { opacity: 0; }
.w-nest .taube { transform: translateY(-24px); }
.w-nest .null { transform: scale(.8); }
.w-nest:is([data-schritt="2"], [data-schritt="3"], [data-schritt="4"]) .ei { opacity: 0; transform: translate(150px, -30px) rotate(30deg); }
.w-nest:is([data-schritt="2"], [data-schritt="3"], [data-schritt="4"]) .gips { opacity: 1; }
.w-nest:is([data-schritt="3"], [data-schritt="4"]) .taube { opacity: 1; transform: none; }
.w-nest[data-schritt="4"] .null { opacity: 1; transform: none; }
.w-schritt-liste { list-style: none; margin: 0; padding: 0; }
.w-schritt { min-height: 62vh; display: flex; flex-direction: column; justify-content: center; }
.w-js .w-schritt { opacity: .3; transition: opacity .45s var(--ease); }
.w-js .w-schritt.aktiv { opacity: 1; }
.w-schritt-nr { font-family: var(--font-head); font-weight: 800; font-size: .88rem; letter-spacing: .12em; text-transform: uppercase; color: var(--link); }
.w-schritt h3 { font-size: clamp(1.6rem, 3.2vw, 2.4rem); margin: .45rem 0 .8rem; color: var(--heading); }
.w-schritt p { font-size: 1.1rem; color: var(--ink-soft); max-width: 38ch; margin: 0; }
.w-schritt p strong { color: var(--heading); }

/* ---------- Zahlen ---------- */
.w-zahlen { background: var(--bg); padding-block: clamp(4rem, 9vw, 7rem); }
.w-zahlen-raster { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.1rem; }
.w-kachel { padding: 1.7rem 1.5rem; border-radius: var(--radius-lg); background: var(--bg-soft); border: 1px solid var(--line); }
.w-kachel-zahl {
    font-family: var(--font-head); font-weight: 800; font-size: clamp(2.6rem, 6vw, 3.6rem); line-height: 1;
    letter-spacing: -.03em; color: var(--heading);
}
.w-kachel-text { margin-top: .65rem; color: var(--ink-soft); font-size: 1rem; line-height: 1.45; }

/* ---------- Monat für Monat ---------- */
/* overflow: auch unsichtbare Tooltips zählen zur Seitenbreite – ohne das stünde die Seite am Handy seitlich über */
.w-verlauf { background: var(--bg-soft); padding-block: clamp(4rem, 9vw, 7rem); overflow: hidden; }
.w-diagramm {
    display: flex; align-items: stretch; gap: clamp(6px, 2vw, 20px); height: 300px; max-width: 760px;
    margin-inline: auto; padding-top: 30px; border-bottom: 1px solid var(--line);
}
.w-js .w-diagramm.w-reveal { transform: none; }
.w-saeule {
    position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end;
    align-items: center; border-radius: 8px; outline-offset: 4px;
}
.w-saeule:hover, .w-saeule:focus-visible { background: color-mix(in srgb, var(--link) 8%, transparent); }
.w-s-wert { font-family: var(--font-head); font-weight: 700; font-size: 1rem; color: var(--heading); margin-bottom: 6px; min-height: 1.3em; }
.w-s-balken { display: block; width: min(24px, 72%); height: var(--h); background: var(--link); border-radius: 4px 4px 0 0; }
.w-js .w-s-balken { transform: scaleY(0); transform-origin: bottom; transition: transform 1s var(--ease) calc(var(--i) * 80ms); }
.w-js .w-diagramm.ist-da .w-s-balken { transform: scaleY(1); }
.w-saeule::after {
    content: attr(data-tip); position: absolute; left: 50%; bottom: calc(var(--h) + 40px); translate: -50% 0;
    white-space: nowrap; background: var(--green-900); color: #fff; font-size: .85rem; font-weight: 600;
    padding: .35rem .65rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 2;
}
/* Randsäulen: Tooltip nach innen statt mittig, sonst wird er am Handy abgeschnitten */
.w-saeule:nth-child(-n+2)::after { left: 0; translate: none; }
.w-saeule:nth-last-child(-n+2)::after { left: auto; right: 0; translate: none; }
.w-saeule:hover::after, .w-saeule:focus-visible::after { opacity: 1; }
.w-achse { display: flex; gap: clamp(6px, 2vw, 20px); max-width: 760px; margin: 10px auto 0; }
.w-achse span { flex: 1 1 0; min-width: 0; text-align: center; font-size: .85rem; color: var(--ink-soft); }
.w-tabelle { max-width: 760px; margin: 1.6rem auto 0; }
.w-tabelle summary { cursor: pointer; font-weight: 600; color: var(--link); padding: .6rem 0; }
.w-tabelle table { width: 100%; border-collapse: collapse; margin-top: .4rem; font-variant-numeric: tabular-nums; }
.w-tabelle th, .w-tabelle td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); }
.w-tabelle td:last-child, .w-tabelle th:last-child { text-align: right; }

/* ---------- Mitmachen ---------- */
.w-mitmachen { background: var(--green-900); color: #fff; text-align: center; padding-block: clamp(5rem, 12vw, 9rem); }
.w-mitmachen h2 { color: #fff; font-size: clamp(2rem, 5.2vw, 3.6rem); letter-spacing: -.03em; max-width: 18ch; margin: 0 auto 1.2rem; }
.w-mitmachen p { color: rgba(255, 255, 255, .82); max-width: 46ch; margin: 0 auto 2rem; font-size: 1.12rem; }
.w-mitmachen .btn-row { justify-content: center; }
.w-stand { margin: 0; padding: 1.3rem 1.2rem; text-align: center; font-size: .85rem; color: var(--ink-soft); background: var(--bg); }

/* ---------- Handy ---------- */
@media (max-width: 820px) {
    .w-schritte-raster { grid-template-columns: 1fr; gap: 0; }
    .w-nest-rahmen { top: 64px; z-index: 1; background: var(--bg-soft); padding-block: .4rem .8rem; }
    .w-nest { max-width: 280px; }
    .w-schritt { min-height: 60vh; justify-content: flex-start; padding-top: 2rem; }
    .w-diagramm { height: 240px; }
}

/* ---------- Weniger Bewegung gewünscht: alles sofort, nichts animiert ---------- */
@media (prefers-reduced-motion: reduce) {
    .w-js .w-reveal, .w-js .w-wort, .w-js .w-schritt, .w-js .w-s-balken, .w-nest * {
        transition: none !important; opacity: 1 !important; transform: none !important;
    }
    .w-js .w-woerter { height: auto; }
    .w-js .w-woerter-innen { position: static; height: auto; padding-block: clamp(4rem, 10vw, 7rem); }
    .w-scroll::after { animation: none; }
}
