/* Dekorative CSS-Scroll-Animationen. Der Grundzustand bleibt sichtbar und statisch.
   Keine Scroll-Listener, Bibliotheken oder ausgeblendeten Inhalte als Fallback. */
:root {
    --qah-reveal-distance: 1.25rem;
}

@keyframes qah-scroll-enter {
    from {
        opacity: .35;
        translate: 0 var(--qah-reveal-distance);
    }
    to {
        opacity: 1;
        translate: 0 0;
    }
}

@media screen and (prefers-reduced-motion: no-preference) {
    /* Auch animation-range prüfen: Teilunterstützung darf Inhalte nicht abdunkeln. */
    @supports (animation-timeline: view()) and (animation-range: entry 0% entry 80%) {
        .site :where(
            .qah-scroll-reveal,
            .qah-facts__intro,
            .qah-facts__item,
            .qah-features__title,
            .qah-features__item,
            .qah-render__figure,
            .qah-location__head,
            .qah-location__body,
            .qah-location__figure,
            .qah-visual__figure,
            .qah-visual__panel,
            .qah-partners > .qah-container > :is(.qah-eyebrow, .qah-heading),
            .qah-partner,
            .qah-closing__block,
            .qah-project-section > .qah-project-container > :is(.qah-project-kicker, h2, .qah-project-subheading),
            .qah-project-facts > div,
            .qah-project-highlights > div,
            .qah-project-copy > div,
            .qah-project-gallery__main,
            .qah-project-gallery__details > figure,
            .qah-project-location__title,
            .qah-project-location__copy > p,
            .qah-project-distances > div,
            .qah-project-map,
            .qah-project-fitout__image,
            .qah-project-fitout__panel,
            .qah-project-material__intro,
            .qah-project-material__grid > div,
            .qah-project-material__note,
            .qah-project-timeline > li,
            .com-content-article:not(:has(.builder-section)) .com-content-article__body > :is(h2, h3)
        ):not(.qah-scroll-static, .qah-scroll-static *):not([data-ls-animate], [data-ls-animate] *):not(:focus-within, :target) {
            animation: qah-scroll-enter auto linear both;
            /* Nach dem Shorthand setzen, da animation die Timeline zurücksetzt. */
            animation-timeline: view(block);
            animation-range: entry 0% entry 80%;
        }
    }
}

@media (max-width: 767.98px) {
    :root {
        --qah-reveal-distance: .75rem;
    }
}
