/* ========================================================================== */
/* WERBETECHNIK                                                               */
/* HERO + SCROLLYTELLING + REFERENZEN + WEISSER FOOTER                       */
/* ========================================================================== */


/* ========================================================================== */
/* 0. GRUNDLAGE                                                               */
/* ========================================================================== */

html {
    scroll-behavior: auto;
}

body.wt-werbetechnik-page {
    background: #ffffff;
}

.wt-page-wrapper {
    position: relative;
    width: 100%;
    background-color: #030712;
    color: #f4f7fb;
    overflow-x: clip;

    /*
     * --hero  = Fortschritt durch die Hero-Phase, 0 bis 1.
     *           Wird von der JS gesetzt und ist auf JEDEM Geraet 0 bis 1,
     *           egal wie hoch der Bildschirm ist. Frueher stand hier die
     *           rohe Pixelzahl (--scroll), deshalb lief das Licht auf einem
     *           kleinen Bildschirm viel zu schnell und zu hell hoch.
     * --wt-vh = echte Viewport-Hoehe in px, ebenfalls aus der JS.
     *           Damit rechnen CSS und JS garantiert mit derselben Hoehe.
     */
    --hero: 0;
    --hero-flash: 0;
    --hero-flash-2: 0;
    --wt-vh: 100vh;

    /*
     * Laenge der Hero-Phase, bevor die Kapitel kommen.
     *
     * Davon sind die ersten 44 % der Weissblitz (siehe --hero-flash in
     * der werbet.js). Der Rest ist der komplett weisse Moment, bevor
     * das erste Kapitel von unten hereinkommt.
     *
     * Laenger = laenger weiss. Kuerzer = schneller weiter.
     */
    --wt-hero-phase: 350vh;
}

.wt-container {
    width: calc(100% - 80px);
    max-width: 1440px;
    margin-inline: auto;
}


/* ========================================================================== */
/* 1. FIXIERTER HERO                                                          */
/* ========================================================================== */

.wt-hero-section {
    position: fixed;
    top: 0;
    left: 0;

    width: 100vw;
    height: 100vh;
    height: 100svh;

    display: flex;
    align-items: center;
    justify-content: center;

    background:
        radial-gradient(
            circle at center,
            #0a1424 0%,
            #030712 75%
        );

    overflow: hidden;
    z-index: 1;
}


/* Weißer Lichtübergang */

.wt-page-wrapper::after {
    content: '';

    position: fixed;
    inset: 0;

    background-color: #ffffff;

    /*
     * ----------------------------------------------------------------
     * DAS LICHT KOMMT AUS DEM WORT
     * ----------------------------------------------------------------
     *
     * Frueher war das eine feste Ellipse von 90vw x 70vh, die einfach
     * heller wurde. Sie hatte mit dem Schriftzug nichts zu tun - es sah
     * aus, als ginge dahinter eine Lampe an.
     *
     * Jetzt waechst die Ellipse selbst. Sie startet in der Form des
     * Wortes - sehr breit, sehr flach, 42vw x 3vh - und liegt genau auf
     * der Zeile. Von dort dehnt sie sich aus, bis sie den Bildschirm
     * ausfuellt.
     *
     * Die Groesse haengt an --hero-flash-2 (dem quadrierten Wert), damit
     * das Licht am Anfang eng am Wort bleibt und erst spaet in die
     * Flaeche schiesst. Die Deckkraft haengt am linearen --hero-flash.
     *
     * Der deckende Kern (Schwarz-Stopp) waechst selbst erst von 0 auf
     * 58 % mit. Dadurch ist lange nur ein weicher Schimmer zu sehen und
     * nicht die Kante eines Ovals. Erst ganz am Schluss holt der Kern
     * die Bildschirmecken ein - die liegen bei Endgroesse rechnerisch
     * bei 45,6 % des Verlaufsstrahls.
     *
     * 47 % statt 45 % Hoehe, weil die Schriftzeile dort sitzt.
     */
    mask-image:
        radial-gradient(
            ellipse
                calc(30vw + var(--hero-flash-2) * 128vw)
                calc(2vh + var(--hero-flash-2) * 167vh)
            at 50% 47%,
            black calc(var(--hero-flash-2) * 58%),
            transparent calc(45% + var(--hero-flash-2) * 120%)
        );

    -webkit-mask-image:
        radial-gradient(
            ellipse
                calc(30vw + var(--hero-flash-2) * 128vw)
                calc(2vh + var(--hero-flash-2) * 167vh)
            at 50% 47%,
            black calc(var(--hero-flash-2) * 58%),
            transparent calc(45% + var(--hero-flash-2) * 120%)
        );

    /*
     * Setzt erst bei 30 % des Blitzes ein. Davor gehoert die Buehne
     * allein dem Leuchten aus den Buchstaben - die Flaeche kommt erst,
     * wenn der Text schon ueberstrahlt ist.
     */
    opacity:
        clamp(
            0,
            calc((var(--hero-flash) - 0.30) * 1.7),
            1
        );

    pointer-events: none;

    z-index: 5;

    will-change:
        opacity,
        mask-image,
        -webkit-mask-image;
}


/* ========================================================================== */
/* 2. SCROLLYTELLING                                                          */
/* ========================================================================== */

.wt-cards-container {
    position: relative;
    z-index: 10;

    margin-top: var(--wt-hero-phase, 150vh);

    background-color: #ffffff;
}

.wt-fade-stage {
    position: relative;
    width: 100%;
    background: #ffffff;
}

.wt-fade-section {
    position: sticky;
    top: 0;
    left: 0;

    width: 100%;

    /*
     * --wt-vh kommt aus der JS und ist exakt window.innerHeight.
     * Vorher stand hier 100svh, waehrend die JS mit innerHeight
     * gerechnet hat - zwei verschiedene Hoehen fuer dieselbe Flaeche.
     */
    height: var(--wt-vh, 100vh);

    overflow: hidden;

    display: flex;
    align-items: center;

    background: #ffffff;
    color: #132239;

    opacity: 0;
    visibility: hidden;

    transform: translateY(60px);

    transition:
        opacity 0.35s ease-out,
        transform 0.35s ease-out,
        visibility 0.35s ease-out;

    pointer-events: none;

    z-index: 2;
}

.wt-fade-section.is-active {
    opacity: 1;
    visibility: visible;

    transform: translateY(0);

    pointer-events: auto;
}

.wt-fade-section--outro {
    background: #ffffff;
}

.wt-fade-inner {
    width: 100%;

    padding:
        120px
        0
        60px;

    box-sizing: border-box;

    will-change: transform;
}


/* ========================================================================== */
/* 3. DUNKELBLAUER ABSCHLUSSBEREICH                                           */
/* ========================================================================== */

.wt-references-card {
    position: relative;

    z-index: 30;

    width: 100%;
    min-height: 100vh;

    background: #091526;
    color: #f4f7fb;

    padding:
        clamp(120px, 14vh, 180px)
        0
        100px;

    box-sizing: border-box;

    isolation: isolate;
}


/* Übergang von weiß zu dunkelblau */

/*
 * Der Verlauf liegt OBERHALB der Karte und damit ueber dem letzten
 * Kapitel. Bei 70px hat er dessen unterste Zeile angeknabbert - auf dem
 * Handy lag er mitten auf "Inklusion / sicher orientieren".
 *
 * Jetzt 36px, und darunter im Mobilteil noch einmal weniger. Dazu
 * bekommt das letzte Kapitel unten Luft, damit der Verlauf auf leerer
 * Flaeche liegt statt auf Text.
 */

.wt-references-card::before {
    content: '';

    position: absolute;

    top: -36px;
    left: 0;

    width: 100%;
    height: 36px;

    background:
        linear-gradient(
            to bottom,
            rgba(9, 21, 38, 0),
            #091526
        );

    pointer-events: none;

    z-index: -1;
}


/* ========================================================================== */
/* 4. SCROLL REVEAL                                                           */
/* ========================================================================== */

.wt-scroll-reveal {
    opacity: 0;

    transform: translateY(45px);

    transition:
        opacity 0.9s cubic-bezier(0.2, 1, 0.2, 1),
        transform 0.9s cubic-bezier(0.2, 1, 0.2, 1);
}

.wt-scroll-reveal.is-visible {
    opacity: 1;

    transform: translateY(0);
}


/* ========================================================================== */
/* 5. HERO AMBIENT                                                            */
/* ========================================================================== */

.wt-hero-ambient {
    position: absolute;
    inset: 0;

    background:
        radial-gradient(
            circle at 50% 40%,
            rgba(30, 79, 158, 0.08),
            transparent 75%
        );

    pointer-events: none;
}


/* ========================================================================== */
/* 6. MAUS SPOTLIGHT                                                          */
/* ========================================================================== */

.wt-mouse-spotlight {
    position: fixed;

    top: 0;
    left: 0;

    width: 500px;
    height: 500px;

    border-radius: 50%;

    background:
        radial-gradient(
            circle,
            rgba(147, 197, 253, 0.25) 0%,
            rgba(147, 197, 253, 0) 70%
        );

    pointer-events: none;

    z-index: 2;

    transform:
        translate(
            calc(var(--mouse-x, -1000px) - 250px),
            calc(var(--mouse-y, -1000px) - 250px)
        );

    transition: opacity 0.4s ease;

    opacity: 0;
}

.wt-hero-section:hover .wt-mouse-spotlight {
    opacity: 1;
}


/* ========================================================================== */
/* 7. PHOSPHOR ELEMENTE                                                       */
/* ========================================================================== */

.wt-hidden-glow-elements {
    position: absolute;
    inset: 0;

    pointer-events: none;

    z-index: 3;
}

.wt-glow-element {
    position: absolute;

    font-family: monospace;

    font-size: 1rem;
    font-weight: 700;

    letter-spacing: 4px;

    background: transparent !important;

    border: none !important;

    box-shadow: none !important;

    color: rgba(190, 242, 100, 1);

    text-shadow:
        0 0 8px
        rgba(190, 242, 100, 0.75);

    opacity: 0;

    transition: opacity 0.4s ease;

    -webkit-mask-image:
        radial-gradient(
            circle 150px
            at
            var(--spot-x, -1000px)
            var(--spot-y, -1000px),
            black 30%,
            transparent 85%
        );

    mask-image:
        radial-gradient(
            circle 150px
            at
            var(--spot-x, -1000px)
            var(--spot-y, -1000px),
            black 30%,
            transparent 85%
        );
}

.wt-hero-section:hover .wt-glow-element {
    opacity: 1;
}


/* ========================================================================== */
/* 8. HERO CONTENT                                                            */
/* ========================================================================== */

.wt-hero-content {
    position: relative;

    z-index: 4;

    text-align: center;

    max-width: 1200px;
    width: 100%;

    padding: 0 2rem;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /*
     * Frueher: brightness(1 + scroll/100). Bei 300px Scroll war das
     * schon brightness(4) - der Text ist komplett ausgebrannt. Jetzt
     * haengt es am normierten Fortschritt und endet sauber bei 2.2.
     */
    /*
     * Haengt am Blitz, nicht an der ganzen Hero-Phase. Das Ausbrennen
     * passiert dadurch gemeinsam mit dem Weisswerden und nicht erst,
     * wenn laengst nichts mehr zu sehen ist.
     */
    /*
     * Hier stand ein filter: brightness(). Der ist ersatzlos weg.
     *
     * Zwei Gruende:
     *
     * 1. Er hat den ganzen Block gleichmaessig aufgehellt - Kicker,
     *    Schriftzug und Unterzeile zusammen. Das sah aus wie eine
     *    Lampe dahinter, nicht wie eine Roehre unter Ueberspannung.
     *
     * 2. Ein filter erzeugt eine Filter-Region, und WebKit schneidet
     *    alles ab, was darueber hinausragt. Genau daran ist der Glow
     *    auf dem iPhone abgeschnitten worden. Solange hier ein filter
     *    steht, kann das Leuchten nie ueber diesen Kasten hinaus.
     *
     * Das Ausbrennen macht jetzt der Schriftzug selbst, ueber
     * text-shadow (siehe .wt-neon-outline). text-shadow wird nicht
     * beschnitten - das Licht darf also so weit aus den Buchstaben
     * heraustreten, wie es will.
     */

    transform:
        scale(
            calc(
                1 +
                var(--hero-flash) * 0.14
            )
        );

    will-change:
        transform;
}

.wt-kicker {
    display: block;

    margin-bottom: 2rem;

    font-size: 0.85rem;

    text-transform: uppercase;

    letter-spacing: 6px;

    font-weight: 700;

    color:
        var(
            --primary-sh,
            #71a1e9
        );
}


/* ========================================================================== */
/* 9. NEON                                                                    */
/* ========================================================================== */

.wt-neon-container {
    position: relative;

    display: inline-block;

    margin-bottom: 2rem;

    text-align: center;

    /*
     * Die Schriftangaben stehen jetzt hier statt auf .wt-neon-layer.
     * Die Ebenen erben sie - und ebenso die Leucht-Ebene ::before
     * weiter unten. So gibt es die Groesse nur an einer Stelle.
     */
    font-size:
        clamp(
            3.5rem,
            7.5vw,
            7.5rem
        );

    font-weight: 900;

    letter-spacing: -0.008em;

    line-height: 1;

    white-space: nowrap;
}


/* ==========================================================================
   UEBERSPANNUNG

   Eine zweite, deckungsgleiche Ausgabe des Wortes, die nur aus Licht
   besteht. Sie liegt ueber den anderen Ebenen.

   Entscheidend fuer die Laufruhe: ihr Leuchten ist FEST. Es wird einmal
   gerechnet und dann nur noch ein- und ausgeblendet.

   Vorher habe ich die Unschaerfe selbst animiert - ueber 300 Pixel
   Streuung, bei jedem Scroll-Frame neu gerastert. Gemessen waren das
   161 ms pro Frame statt 19. Deckkraft und Skalierung dagegen liegen
   beim Compositor und kosten praktisch nichts.
   ========================================================================== */

.wt-neon-container::before {
    content: "WERBETECHNIK.";

    position: absolute;
    top: 0;
    left: 0;

    width: 100%;

    text-align: center;

    color: rgba(255, 255, 255, 0.92);

    text-shadow:
        0 0 0.30em rgba(214, 234, 255, 0.95),
        0 0 0.95em rgba(255, 255, 255, 0.90),
        0 0 2.40em rgba(255, 255, 255, 0.75);

    /*
     * Die Deckkraft laeuft gleichmaessig mit dem Blitz hoch - das Wort
     * wird also langsam durchgehend heiss, statt vorzupreschen.
     *
     * Die Vergroesserung bleibt bei 5 %. Sie war zwischendurch bei 45 %,
     * dadurch ist der Schriftzug regelrecht auf den Betrachter
     * zugewachsen, bevor er weiss wurde. Das sah falsch aus - eine
     * Leuchtroehre wird heller, sie kommt nicht naeher.
     */
    opacity: var(--hero-flash);

    transform: scale(calc(1 + var(--hero-flash) * 0.05));

    z-index: 4;

    pointer-events: none;

    will-change: opacity, transform;
}

/*
 * Schriftgroesse, Gewicht, Laufweite und Zeilenhoehe kommen vom
 * .wt-neon-container. Der Buchstabenabstand steht dort in em statt in
 * px - frueher waren es -1px am Desktop und -2px im Mobilteil, was bei
 * 43px Schrift fast 5 % ergab. Genau deshalb klebten die Buchstaben auf
 * dem Handy aneinander.
 */
.wt-neon-layer {
    text-align: center;
}

.wt-neon-bg {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    color: #020408;

    /*
     * ---------------------------------------------------------------
     * ALLE LEUCHT-WERTE STEHEN AB HIER IN em STATT IN px.
     *
     * em rechnet gegen die Schriftgroesse. Die ist per clamp(...vw...)
     * bildschirmabhaengig - der Glow war es vorher nicht. Auf dem Handy
     * war die Schrift 43px gross und der aeussere Schein 50px breit,
     * das Wort ist im eigenen Licht ertrunken. Jetzt skaliert beides
     * gemeinsam. Die Werte entsprechen dem Aussehen auf dem 15-Zoeller.
     * ---------------------------------------------------------------
     */
    transform: translate(0.039em, 0.046em);

    z-index: 1;

    user-select: none;

    text-shadow:
        0.015em
        0.031em
        0.093em
        rgba(0, 0, 0, 0.8);

    text-align: center;
}

.wt-neon-outline {
    position: relative;

    z-index: 2;

    color: transparent;

    -webkit-text-stroke:
        0.017em
        #93c5fd;

    /*
     * Feste Werte. Hier darf NICHTS am Scroll haengen - jede Aenderung
     * an einem text-shadow zwingt den Browser, den weichgezeichneten
     * Schriftzug neu zu rastern. Das Ueberstrahlen macht die eigene
     * Leucht-Ebene .wt-neon-container::before weiter oben.
     */
    text-shadow:
        0 0 0.077em rgba(147, 197, 253, 0.8),
        0 0 0.193em rgba(37, 99, 235, 0.8),
        0 0 0.386em var(--primary);

    text-align: center;
}

.wt-neon-layer.wt-neon-glow {
    position: absolute;

    top: 0;
    left: 0;

    width: 100%;

    z-index: 3;

    color: transparent;

    -webkit-text-stroke:
        0.0093em
        #ffffff;

    pointer-events: none;

    text-align: center;
}

.wt-neon-glow .l,
.wt-neon-bg .l,
.wt-neon-outline .l {
    display: inline-block;

    opacity: 0;
}


/* ========================================================================== */
/* 10. NEON STARTFLACKERN                                                     */
/* ========================================================================== */

/*
 * WICHTIG: hier darf kein filter stehen.
 *
 * Ein filter auf einem Element erzeugt eine eigene Zeichenflaeche, die
 * sogenannte Filter-Region. WebKit - also Safari auf dem Mac und jeder
 * Browser auf dem iPhone - nimmt dafuer die Kastengroesse des Elements
 * und schneidet alles ab, was darueber hinausragt. Das Leuchten ist ein
 * text-shadow und ragt genau dort hinaus. Ergebnis: ein Rechteck mit
 * harten Kanten um das Wort.
 *
 * Chrome auf dem Desktop rechnet grosszuegiger und bezieht Schatten mit
 * ein, deshalb faellt es dort nicht auf.
 *
 * Frueher stand hier filter: blur(4px) bis blur(0). Auch blur(0) ist ein
 * Filter - die Region blieb also nach dem Flackern bestehen, und damit
 * auch der Schnitt.
 *
 * Der weiche Anlauf kommt jetzt aus der Deckkraft allein. Optisch ist
 * der Unterschied bei 1,2 Sekunden Flackern nicht zu sehen.
 */

@keyframes letterIgnite {

    0% {
        opacity: 0;
    }

    15% {
        opacity: 0;
    }

    20% {
        opacity: 1;
    }

    25% {
        opacity: 0.1;
    }

    30% {
        opacity: 0.9;
    }

    35% {
        opacity: 0.2;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 1;
    }
}


.wt-neon-glow.is-igniting .l:nth-child(1),
.wt-neon-outline.is-igniting .l:nth-child(1),
.wt-neon-bg.is-igniting .l:nth-child(1) {
    animation: letterIgnite 1.2s ease 0.05s forwards;
}

.wt-neon-glow.is-igniting .l:nth-child(2),
.wt-neon-outline.is-igniting .l:nth-child(2),
.wt-neon-bg.is-igniting .l:nth-child(2) {
    animation: letterIgnite 1.2s ease 0.18s forwards;
}

.wt-neon-glow.is-igniting .l:nth-child(3),
.wt-neon-outline.is-igniting .l:nth-child(3),
.wt-neon-bg.is-igniting .l:nth-child(3) {
    animation: letterIgnite 1.2s ease 0.10s forwards;
}

.wt-neon-glow.is-igniting .l:nth-child(4),
.wt-neon-outline.is-igniting .l:nth-child(4),
.wt-neon-bg.is-igniting .l:nth-child(4) {
    animation: letterIgnite 1.2s ease 0.28s forwards;
}

.wt-neon-glow.is-igniting .l:nth-child(5),
.wt-neon-outline.is-igniting .l:nth-child(5),
.wt-neon-bg.is-igniting .l:nth-child(5) {
    animation: letterIgnite 1.2s ease 0.15s forwards;
}

.wt-neon-glow.is-igniting .l:nth-child(6),
.wt-neon-outline.is-igniting .l:nth-child(6),
.wt-neon-bg.is-igniting .l:nth-child(6) {
    animation: letterIgnite 1.2s ease 0.35s forwards;
}

.wt-neon-glow.is-igniting .l:nth-child(7),
.wt-neon-outline.is-igniting .l:nth-child(7),
.wt-neon-bg.is-igniting .l:nth-child(7) {
    animation: letterIgnite 1.2s ease 0.22s forwards;
}

.wt-neon-glow.is-igniting .l:nth-child(8),
.wt-neon-outline.is-igniting .l:nth-child(8),
.wt-neon-bg.is-igniting .l:nth-child(8) {
    animation: letterIgnite 1.2s ease 0.40s forwards;
}

.wt-neon-glow.is-igniting .l:nth-child(9),
.wt-neon-outline.is-igniting .l:nth-child(9),
.wt-neon-bg.is-igniting .l:nth-child(9) {
    animation: letterIgnite 1.2s ease 0.12s forwards;
}

.wt-neon-glow.is-igniting .l:nth-child(10),
.wt-neon-outline.is-igniting .l:nth-child(10),
.wt-neon-bg.is-igniting .l:nth-child(10) {
    animation: letterIgnite 1.2s ease 0.30s forwards;
}

.wt-neon-glow.is-igniting .l:nth-child(11),
.wt-neon-outline.is-igniting .l:nth-child(11),
.wt-neon-bg.is-igniting .l:nth-child(11) {
    animation: letterIgnite 1.2s ease 0.20s forwards;
}

.wt-neon-glow.is-igniting .l:nth-child(12),
.wt-neon-outline.is-igniting .l:nth-child(12),
.wt-neon-bg.is-igniting .l:nth-child(12) {
    animation: letterIgnite 1.2s ease 0.45s forwards;
}

.wt-neon-glow .wt-dot-flicker,
.wt-neon-outline .wt-dot-flicker {
    opacity: 0 !important;
}

.wt-neon-glow.is-igniting .l:nth-child(13),
.wt-neon-outline.is-igniting .l:nth-child(13),
.wt-neon-bg.is-igniting .l:nth-child(13) {
    animation: letterIgnite 1.2s ease 0.50s forwards;
}

.wt-neon-glow.is-burning .l,
.wt-neon-outline.is-burning .l,
.wt-neon-bg.is-burning .l {
    opacity: 1 !important;
}

.wt-dot-flicker {
    display: inline-block;

    animation:
        letterIgnite 1.2s ease 0.50s forwards,
        perfectTubeFlicker 5s infinite steps(1, end) 1.2s;
}


/*
 * Auch hier: kein filter mehr.
 *
 * Das drop-shadow() hat dasselbe Problem wie der blur im Zuendflackern -
 * es erzeugt eine Filter-Region, und WebKit schneidet das Leuchten an
 * deren Rand ab. Weil dieses Flackern dauerhaft laeuft, war der Schnitt
 * auch dauerhaft da.
 *
 * Der Lichtkranz, den das drop-shadow beigesteuert hat, steckt jetzt als
 * zusaetzliche Stufe im text-shadow. text-shadow wird nicht beschnitten,
 * egal wie weit es ueber den Buchstaben hinausragt.
 */

@keyframes perfectTubeFlicker {

    0%,
    65%,
    100% {
        opacity: 1;

        -webkit-text-stroke:
            0.0093em
            #ffffff;

        text-shadow:
            0 0 0.077em rgba(147, 197, 253, 0.9),
            0 0 0.077em rgba(147, 197, 253, 0.9),
            0 0 0.193em rgba(37, 99, 235, 0.9);
    }

    67% {
        opacity: 1;

        -webkit-text-stroke:
            0.0093em
            #999999;

        text-shadow: none;
    }

    68% {
        opacity: 1;

        -webkit-text-stroke:
            0.0093em
            #ffffff;

        text-shadow:
            0 0 0.077em rgba(147, 197, 253, 0.9),
            0 0 0.062em rgba(147, 197, 253, 0.8);
    }

    69% {
        opacity: 1;

        -webkit-text-stroke:
            0.0093em
            #999999;

        text-shadow: none;
    }

    72% {
        opacity: 1;

        -webkit-text-stroke:
            0.0093em
            #ffffff;

        text-shadow:
            0 0 0.077em rgba(147, 197, 253, 0.9),
            0 0 0.077em rgba(147, 197, 253, 0.9);
    }

    85% {
        opacity: 1;

        -webkit-text-stroke:
            0.0093em
            #999999;

        text-shadow: none;
    }

    86% {
        opacity: 1;

        -webkit-text-stroke:
            0.0093em
            #b5b5b5;

        text-shadow: none;
    }

    87% {
        opacity: 1;

        -webkit-text-stroke:
            0.0093em
            #999999;

        text-shadow: none;
    }

    89% {
        opacity: 1;

        -webkit-text-stroke:
            0.0093em
            #ffffff;

        text-shadow:
            0 0 0.077em rgba(147, 197, 253, 0.9),
            0 0 0.093em rgba(147, 197, 253, 1);
    }
}


/* ========================================================================== */
/* 11. HERO BESCHREIBUNG                                                      */
/* ========================================================================== */

.wt-hero-desc {
    max-width: 650px;

    margin: 0 auto;

    font-size: 1.2rem;

    line-height: 1.7;

    color: #94a3b8;

    text-align: center;
}


/* ========================================================================== */
/* 12. KAPITEL GRID                                                           */
/* ========================================================================== */

.wt-grid-intro {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        minmax(0, 1fr);

    gap: 4rem;

    align-items: center;

    width: 100%;
}

.wt-grid-intro--reverse .wt-intro-media {
    order: 2;
}

.wt-grid-intro--reverse .wt-intro-text {
    order: 1;
}


/* ========================================================================== */
/* 13. KAPITEL BILDER                                                         */
/* ========================================================================== */

.wt-intro-media {
    position: relative;

    width: 100%;

    height: 56vh;

    max-height: 520px;
    min-height: 320px;

    border-radius: 32px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #e9eef5,
            #f8fafc
        );

    box-shadow:
        0 25px 60px
        rgba(0, 0, 0, 0.08);
}

.wt-intro-media img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* ========================================================================== */
/* 14. KAPITEL TEXT                                                           */
/* ========================================================================== */

.wt-intro-text span {
    display: block;

    margin-bottom: 1rem;

    font-size: 0.75rem;

    text-transform: uppercase;

    letter-spacing: 4px;

    font-weight: 700;

    color: var(--primary);
}

.wt-intro-text h2 {
    margin-top: 0;
    margin-bottom: 1.25rem;

    font-size:
        clamp(
            2rem,
            3vw,
            3rem
        );

    letter-spacing: -1px;

    line-height: 1.1;

    color: #0f1d36;
}

.wt-intro-text p {
    margin-top: 0;

    font-size: 1.05rem;

    line-height: 1.7;

    color: #475569;
}


/* ========================================================================== */
/* 15. STATS                                                                  */
/* ========================================================================== */

.wt-intro-stats {
    display: grid;

    grid-template-columns:
        1fr
        1fr;

    gap: 1.5rem;

    margin-top: 2rem;
}

.wt-stat-box {
    background: #f8fafc;

    border:
        1px
        solid
        rgba(0, 0, 0, 0.06);

    padding:
        1.75rem
        1.5rem;

    border-radius: 24px;

    text-align: center;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.02);
}

.wt-stat-box strong {
    display: block;

    margin-bottom: 0.5rem;

    font-size: 2rem;

    color: var(--primary);

    letter-spacing: -1px;
}

.wt-stat-box span {
    display: block;

    margin-bottom: 0;

    font-size: 0.85rem;

    color: #64748b;

    font-weight: 600;
}


/* ========================================================================== */
/* 16. REFERENZ HEADER                                                        */
/* ========================================================================== */

.wt-ref-header {
    display: flex;

    justify-content: space-between;
    align-items: flex-end;

    gap: 3rem;

    margin-bottom: 4rem;
}

.wt-ref-header .wt-kicker {
    margin-bottom: 1.25rem;
}

.wt-ref-header h2 {
    margin: 0;

    font-size:
        clamp(
            2rem,
            3vw,
            3rem
        );

    color: #ffffff;

    letter-spacing: -1px;

    line-height: 1.1;
}

.wt-ref-header p {
    max-width: 400px;

    margin:
        0
        0
        0.25rem;

    color: #94a3b8;

    line-height: 1.7;
}


/* ========================================================================== */
/* 17. REFERENZEN                                                             */
/* ========================================================================== */

.wt-ref-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 2.5rem;
}

/*
 * Die Referenzkachel ist jetzt ein <button>, damit sie die Lightbox
 * oeffnen kann und dabei per Tastatur bedienbar bleibt.
 */

.wt-ref-item {
    appearance: none;
    -webkit-appearance: none;

    display: block;
    width: 100%;

    margin: 0;
    padding: 0;
    border: 0;

    font: inherit;
    text-align: left;

    cursor: pointer;

    background: #102038;

    border-radius: 28px;

    overflow: hidden;

    box-shadow:
        0 15px 40px
        rgba(0, 0, 0, 0.3);

    transition:
        transform
        0.4s
        ease;
}

.wt-ref-item:hover {
    transform:
        translateY(-6px);
}

.wt-ref-item:focus-visible {
    outline: 2px solid var(--primary-sh, #71a1e9);
    outline-offset: 4px;
}

.wt-ref-img {
    position: relative;

    display: block;

    height: 320px;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #102038,
            #15304f
        );
}

.wt-ref-img img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform
        0.6s
        ease;
}

.wt-ref-item:hover .wt-ref-img img {
    transform:
        scale(1.04);
}


/* Hinweis, dass sich die Galerie oeffnet */

.wt-ref-hint {
    position: absolute;

    left: 1.25rem;
    bottom: 1.25rem;

    display: inline-block;

    padding:
        0.5rem
        1rem;

    border-radius: 999px;

    background: rgba(5, 12, 22, 0.75);

    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border: 1px solid rgba(255, 255, 255, 0.18);

    font-family: monospace;
    font-size: 0.75rem;
    font-weight: 700;

    letter-spacing: 2px;
    text-transform: uppercase;

    color: #ffffff;

    opacity: 0;

    transform: translateY(8px);

    transition:
        opacity 0.35s ease,
        transform 0.35s ease;
}

.wt-ref-item:hover .wt-ref-hint,
.wt-ref-item:focus-visible .wt-ref-hint {
    opacity: 1;
    transform: translateY(0);
}


/* Auf Touchgeraeten gibt es kein Hover - Hinweis dauerhaft zeigen. */

@media (hover: none) {

    .wt-ref-hint {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================================================== */
/* HINWEIS BEI FEHLENDEN BILDERN (nur im Entwicklungsmodus sichtbar)          */
/* ========================================================================== */
/*
 * Erscheint nur, solange $WT_DEBUG oben in der werbet.php auf true steht.
 * Damit sieht man beim Einrichten sofort, welcher Ordner fehlt, statt vor
 * einer leeren Flaeche zu stehen.
 */

.wt-ref-missing {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;

    padding: 2rem;

    border: 2px dashed rgba(148, 163, 184, 0.5);
    border-radius: 24px;

    background: rgba(148, 163, 184, 0.06);

    color: #cbd5e1;

    box-shadow: none;
}

.wt-ref-missing:hover {
    transform: none;
}

.wt-ref-missing strong {
    font-size: 1.1rem;
    color: #ffffff;
}

.wt-ref-missing code {
    display: block;

    padding: 0.6rem 0.8rem;

    border-radius: 10px;

    background: rgba(0, 0, 0, 0.35);

    font-family: monospace;
    font-size: 0.85rem;

    color: #93c5fd;

    overflow-wrap: anywhere;
}

.wt-ref-missing-note {
    font-size: 0.8rem;
    color: #94a3b8;
}

.wt-ref-info {
    display: block;

    padding: 2.5rem;
}

.wt-ref-cat {
    display: block;

    font-family: monospace;

    font-size: 0.8rem;

    color:
        var(
            --primary-sh,
            #71a1e9
        );

    text-transform: uppercase;

    letter-spacing: 2px;

    font-weight: 700;
}

.wt-ref-title {
    display: block;

    margin-top: 0.5rem;

    font-size: 1.5rem;
    font-weight: 700;

    color: #ffffff;
}


/* ========================================================================== */
/* 18. KUNDENBEREICH                                                          */
/* ========================================================================== */

.wt-clients-section {
    position: relative;

    z-index: 25;

    margin-top: 100px;

    background-color: transparent;
}

.wt-clients-header {
    margin-bottom: 3rem;

    text-align: center;
}

.wt-clients-header h3 {
    margin: 0;

    font-size: 1.8rem;

    letter-spacing: -0.5px;

    color: #ffffff;
}


/* ========================================================================== */
/* 19. MARQUEE                                                                */
/* ========================================================================== */

.wt-marquee-wrapper {
    display: flex;

    width: 100%;

    overflow: hidden;

    position: relative;

    padding: 1rem 0;

    mask-image:
        linear-gradient(
            to right,
            transparent,
            black 10%,
            black 90%,
            transparent
        );

    -webkit-mask-image:
        linear-gradient(
            to right,
            transparent,
            black 10%,
            black 90%,
            transparent
        );
}

.wt-marquee-track {
    display: flex;

    gap: 3rem;

    align-items: center;

    white-space: nowrap;

    width: max-content;

    will-change: transform;
}

.wt-client-logo-box {
    min-width: 260px;
    height: 140px;

    display: flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding:
        1.5rem
        2.5rem;

    background: #0f1d36;

    border:
        1px
        solid
        rgba(255, 255, 255, 0.1);

    border-radius: 20px;

    box-shadow:
        0 10px 30px
        rgba(0, 0, 0, 0.1);

    font-family: monospace;

    font-weight: 700;

    color: #94a3b8;

    font-size: 1rem;

    letter-spacing: 2px;

    overflow: hidden;

    transition:
        all
        0.4s
        cubic-bezier(
            0.16,
            1,
            0.3,
            1
        );
}

/*
 * Logos als Bilder. Die Box gibt die Groesse vor, das Bild passt sich an
 * und wird nie verzerrt. Unterschiedlich grosse Logodateien wirken damit
 * trotzdem gleich gross.
 */

.wt-client-logo-box a {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 100%;
    height: 100%;
}

.wt-client-logo-box img {
    display: block;

    max-width: 100%;
    max-height: 64px;

    width: auto;
    height: auto;

    object-fit: contain;

    filter:
        grayscale(100%)
        opacity(0.65);

    transition:
        filter
        0.4s
        ease;
}

.wt-client-logo-box:hover img {
    filter:
        grayscale(0%)
        opacity(1);
}

/*
 * Falls deine Logodateien dunkel sind und auf dem dunklen Kasten
 * untergehen: die folgenden beiden Regeln einkommentieren. Dann werden
 * die Logos aufgehellt statt abgedunkelt. Nichts anderes aendern.
 */

/*
.wt-client-logo-box img {
    filter:
        grayscale(100%)
        invert(1)
        opacity(0.7);
}

.wt-client-logo-box:hover img {
    filter:
        invert(1)
        opacity(1);
}
*/

.wt-client-logo-box:hover {
    border-color:
        var(
            --primary-sh,
            #71a1e9
        );

    color: #ffffff;

    transform:
        translateY(-4px);

    background: #153a75;

    box-shadow:
        0 15px 35px
        rgba(30, 79, 158, 0.3);
}


/* ========================================================================== */
/* 20. WEISSER FOOTER                                                         */
/* ========================================================================== */
/*
    Verschiedene mögliche Footer-Selektoren.
    So bleibt der Footer unabhängig von deiner Footer-Klasse weiß.
*/

body:has(#wt-parallax-wrapper) footer,
body:has(#wt-parallax-wrapper) .site-footer,
body:has(#wt-parallax-wrapper) .footer,
body:has(#wt-parallax-wrapper) #footer,

body.wt-werbetechnik-page footer,
body.wt-werbetechnik-page .site-footer,
body.wt-werbetechnik-page .footer,
body.wt-werbetechnik-page #footer {
    position: relative;

    z-index: 40;

    background: #ffffff !important;
}


/* ========================================================================== */
/* 21. RESPONSIVE                                                             */
/* ========================================================================== */

/* ========================================================================== */
/* 21a. KAPITEL AUF KLEINEN GERAETEN: NORMALER DOKUMENTFLUSS                  */
/* ========================================================================== */
/*
 * Bis 1024px gibt es kein Sticky, kein Ein- und Ausblenden und kein
 * inneres Verschieben. Die Kapitel stehen einfach untereinander.
 *
 * Grund: der Effekt zwingt jedes Kapitel in genau eine Bildschirmhoehe.
 * Auf dem Handy passt der Inhalt dort nicht hinein, deshalb ragte er
 * unten heraus. Dazu kommt, dass die Adressleiste beim Scrollen die
 * Viewport-Hoehe aendert und die ganze Rechnung mitwandert.
 *
 * Die JS erkennt denselben Breakpoint und ruehrt die Kapitel dort
 * nicht mehr an.
 */

@media (max-width: 1024px) {

    .wt-fade-stage {
        height: auto !important;
    }

    .wt-fade-section {
        position: relative;
        height: auto;
        min-height: 0;

        overflow: visible;

        display: block;

        opacity: 1;
        visibility: visible;

        transform: none;
        transition: none;

        pointer-events: auto;
    }

    .wt-fade-inner {
        transform: none !important;

        padding:
            64px
            0;
    }

    /*
     * Das letzte Kapitel bekommt unten zusaetzlich Luft, damit der
     * dunkle Verlauf der Referenzkarte auf leerer Flaeche liegt und
     * nicht auf der letzten Textzeile.
     */
    .wt-cards-container > .wt-fade-stage:last-child .wt-fade-inner {
        padding-bottom: 104px;
    }

    .wt-references-card::before {
        top: -24px;
        height: 24px;
    }
}


@media (max-width: 1024px) {

    .wt-container {
        width:
            calc(
                100% - 40px
            );
    }

    .wt-grid-intro,
    .wt-grid-intro--reverse {
        grid-template-columns:
            1fr;

        gap: 2rem;
    }

    .wt-grid-intro--reverse .wt-intro-media,
    .wt-grid-intro--reverse .wt-intro-text {
        order: initial;
    }

    .wt-intro-media {
        height: 40vh;
        min-height: 300px;
    }

    .wt-fade-inner {
        padding-top: 90px;
    }

    .wt-ref-header {
        flex-direction: column;

        align-items: flex-start;

        gap: 1.5rem;
    }

    .wt-ref-grid {
        grid-template-columns:
            1fr;
    }
}


@media (max-width: 700px) {

    .wt-container {
        width:
            calc(
                100% - 28px
            );
    }

    .wt-page-wrapper {
        --wt-hero-phase: 280vh;
    }

    .wt-neon-container {
        font-size:
            clamp(
                2.2rem,
                10vw,
                4.5rem
            );

        /*
         * Kein eigener letter-spacing mehr - der Wert oben ist in em
         * und passt dadurch auf jeder Groesse.
         *
         * 11vw auf 10vw reduziert: ohne das enge -2px braucht das Wort
         * etwas mehr Platz, und der Glow soll nicht am Bildschirmrand
         * anstossen.
         */
    }

    .wt-hero-desc {
        font-size: 1rem;
    }

    .wt-fade-inner {
        padding:
            80px
            0
            40px;
    }

    .wt-intro-media {
        height: 34vh;
        min-height: 230px;

        border-radius: 22px;
    }

    .wt-grid-intro {
        gap: 1.5rem;
    }

    .wt-intro-text h2 {
        font-size:
            clamp(
                1.8rem,
                8vw,
                2.5rem
            );
    }

    .wt-intro-text p {
        font-size: 0.95rem;

        line-height: 1.6;
    }

    .wt-intro-stats {
        grid-template-columns:
            1fr;

        gap: 1rem;

        margin-top: 1.5rem;
    }

    .wt-stat-box {
        padding: 1.25rem;
    }

    .wt-stat-box strong {
        font-size: 1.6rem;
    }

    .wt-references-card {
        padding:
            100px
            0
            70px;
    }

    .wt-ref-header {
        margin-bottom: 2.5rem;
    }

    .wt-ref-img {
        height: 230px;
    }

    .wt-ref-info {
        padding: 1.75rem;
    }

    .wt-clients-section {
        margin-top: 70px;
    }

    .wt-client-logo-box {
        min-width: 220px;
        height: 110px;

        padding:
            1rem
            1.5rem;

        font-size: 0.85rem;
    }

    .wt-marquee-track {
        gap: 1.5rem;
    }
}


/* ========================================================================== */
/* 22. REDUCED MOTION                                                         */
/* ========================================================================== */

@media (prefers-reduced-motion: reduce) {

    .wt-scroll-reveal,
    .wt-fade-section,
    .wt-ref-item,
    .wt-ref-img img,
    .wt-client-logo-box {
        transition: none;
    }
}