/* ============================================================
   GT-Systems — Variante „Glas" (Testfassung /v2/)
   ============================================================
   Liegt als css/variante.css NUR in der Kopie /v2/ und wird dort
   nach gts.css geladen (inc/head.php). Die Hauptfassung kennt
   diese Datei nicht.

   Baut auf dem Leitstand auf (dunkel, Instrument Serif, JetBrains
   Mono, Tuerkis) und legt darueber:
     1. einen bewegten Lichtgrund hinter der ganzen Seite
     2. Glasflaechen (durchscheinend, Lichtkante, Unschaerfe)
     3. Leuchten an allem, was Signal ist
   Abloesung der hellen „Apple"-Fassung vom 15.11. (apple.css).
   ============================================================ */

:root {
    --glas-bg: linear-gradient(140deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025) 42%, rgba(63, 201, 238, 0.045));
    --glas-rand: rgba(255, 255, 255, 0.09);
    --glas-blur: blur(22px) saturate(170%);
    --glas-schatten:
        inset 0 1px 0 rgba(255, 255, 255, 0.20),
        inset 0 -1px 0 rgba(255, 255, 255, 0.04),
        inset 0 0 28px rgba(255, 255, 255, 0.025),
        0 30px 70px -36px rgba(0, 0, 0, 0.85);
    --glas-kante: linear-gradient(140deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.05) 28%, rgba(63, 201, 238, 0) 62%, rgba(63, 201, 238, 0.5));

    --c-canvas: #05070B;
    --glow: 0 0 0 1px var(--c-accent-line), 0 0 44px -6px rgba(63, 201, 238, 0.6), 0 0 120px -30px rgba(63, 201, 238, 0.5);

    --r-card: 24px;
    --r-button: 14px;
    --header-h: 64px;
}

@media (max-width: 700px) {
    :root {
        --glas-blur: blur(12px) saturate(150%);
        --r-card: 20px;
    }
}


/* --- 1. Lichtgrund ------------------------------------------ */

html {
    background-color: var(--c-canvas);
}

body {
    background: transparent;
}

body::before {
    content: "";
    position: fixed;
    inset: -22vmax;
    z-index: -2;
    background-image:
        radial-gradient(38vmax 38vmax at 20% 24%, rgba(63, 201, 238, 0.24), transparent 62%),
        radial-gradient(34vmax 34vmax at 80% 14%, rgba(112, 96, 255, 0.17), transparent 60%),
        radial-gradient(42vmax 42vmax at 72% 76%, rgba(7, 142, 181, 0.24), transparent 62%),
        radial-gradient(30vmax 30vmax at 14% 84%, rgba(91, 227, 164, 0.11), transparent 60%);
    animation: lichtgrund 38s ease-in-out infinite alternate;
    will-change: transform;
    pointer-events: none;
}

/* Feines Raster ueber dem Licht, zur Mitte hin sichtbar */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(90% 70% at 50% 30%, #000, transparent 85%);
    mask-image: radial-gradient(90% 70% at 50% 30%, #000, transparent 85%);
    pointer-events: none;
}

@keyframes lichtgrund {
    from {
        transform: translate3d(-2vmax, 1vmax, 0) rotate(0deg) scale(1);
    }

    to {
        transform: translate3d(4vmax, -3vmax, 0) rotate(9deg) scale(1.1);
    }
}

/* Das eigene Raster des Hero entfaellt, der Lichtgrund traegt jetzt die Seite. */
.hero::before {
    background-image: radial-gradient(55% 55% at 76% 34%, rgba(63, 201, 238, 0.14), rgba(63, 201, 238, 0) 70%);
    background-size: auto;
    opacity: 1;
}

.band,
.band-dark {
    background-color: transparent;
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.012));
    border-block: 1px solid rgba(255, 255, 255, 0.07);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}


/* --- 2. Glasflaechen ----------------------------------------- */

.card,
.band .card,
.band-dark .card,
.symptom,
.vergleich,
.kontaktform,
.band .kontaktform,
.betriebhinweis,
.artikel__kurz,
.tuecken>li {
    position: relative;
    background-color: transparent;
    background-image: var(--glas-bg);
    border: 1px solid var(--glas-rand);
    box-shadow: var(--glas-schatten);
    -webkit-backdrop-filter: var(--glas-blur);
    backdrop-filter: var(--glas-blur);
}

/* Lichtkante: oben links hell, unten rechts tuerkis */
.card::after,
.symptom::after,
.vergleich::after,
.kontaktform::after,
.flow::after {
    content: "";
    position: absolute;
    inset: 0;
    padding: 1px;
    border-radius: inherit;
    background: var(--glas-kante);
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
    pointer-events: none;
}

/* Licht folgt dem Mauszeiger (js/variante.js setzt --mx / --my) */
.card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(440px circle at var(--mx, 50%) var(--my, 0%), rgba(63, 201, 238, 0.17), transparent 46%);
    opacity: 0;
    transition: opacity 320ms ease;
    pointer-events: none;
}

.card:hover::before {
    opacity: 1;
}

a.card:hover,
.card--hover:hover {
    border-color: rgba(63, 201, 238, 0.35);
    transform: translateY(-4px);
    box-shadow:
        var(--glas-schatten),
        0 0 60px -18px rgba(63, 201, 238, 0.55);
}

.bereich--ki,
.stufe--haupt {
    background-image:
        radial-gradient(120% 85% at 50% 0%, rgba(63, 201, 238, 0.22), rgba(63, 201, 238, 0) 62%),
        var(--glas-bg);
    border-color: rgba(63, 201, 238, 0.4);
}

.stufe--haupt {
    box-shadow: var(--glas-schatten), var(--glow);
}

.betriebhinweis {
    border-left: 2px solid var(--c-accent);
    border-radius: 0 var(--r-input) var(--r-input) 0;
    box-shadow: var(--glas-schatten), -18px 0 50px -26px rgba(63, 201, 238, 0.7);
}

.symptom {
    border-radius: 18px;
}

.symptom::before {
    text-shadow: 0 0 22px rgba(63, 201, 238, 0.8);
}

.vergleich__zeile,
.vergleich__kopf {
    border-color: rgba(255, 255, 255, 0.07);
}

.vergleich__auto::before {
    filter: drop-shadow(0 0 6px rgba(63, 201, 238, 0.9));
}

.tag,
.werkzeug {
    background-color: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.input {
    background-color: rgba(255, 255, 255, 0.045);
    border-color: rgba(255, 255, 255, 0.13);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.input:focus {
    border-color: var(--c-accent);
    box-shadow: 0 0 0 3px rgba(63, 201, 238, 0.2), 0 0 34px -8px rgba(63, 201, 238, 0.7);
}

.projektfoto img,
.ansprechpartner__bild img {
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.9), 0 0 90px -34px rgba(63, 201, 238, 0.55);
}

.sitefooter {
    background-color: rgba(5, 7, 11, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    -webkit-backdrop-filter: blur(18px);
    backdrop-filter: blur(18px);
}


/* --- Kopfleiste: schwebende Glasleiste ----------------------- */

.siteheader {
    top: 10px;
    width: min(calc(100% - 20px), calc(var(--page-max) + 24px));
    margin: 10px auto 0;
    background-color: rgba(10, 14, 20, 0.5);
    background-image: linear-gradient(180deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.02));
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 20px;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 18px 50px -24px rgba(0, 0, 0, 0.9),
        0 0 60px -30px rgba(63, 201, 238, 0.5);
    -webkit-backdrop-filter: blur(26px) saturate(180%);
    backdrop-filter: blur(26px) saturate(180%);
}

.siteheader .btn {
    min-height: 40px;
}


/* --- 3. Leuchten --------------------------------------------- */

.akzent {
    background-image: linear-gradient(100deg, #3FC9EE 0%, #A5EEFF 45%, #5BE3A4 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 26px rgba(63, 201, 238, 0.5));
    /* Kursive Serifen ragen ueber die Textbox, sonst schneidet der Verlauf ab */
    padding-right: 0.08em;
}

.eyebrow {
    text-shadow: 0 0 18px rgba(63, 201, 238, 0.55);
}

.eyebrow::before {
    box-shadow: 0 0 12px 1px rgba(63, 201, 238, 0.9);
}

.btn--primary {
    background-image: linear-gradient(180deg, #7FE0FA, #3FC9EE 55%, #22B4DC);
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.6),
        0 0 0 1px rgba(63, 201, 238, 0.35),
        0 10px 34px -8px rgba(63, 201, 238, 0.75),
        0 0 70px -14px rgba(63, 201, 238, 0.65);
}

.btn--primary:hover {
    background-color: #A5EEFF;
    background-image: linear-gradient(180deg, #FFFFFF, #A5EEFF 60%, #5FD5F5);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--c-on-accent);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 0 0 1px rgba(63, 201, 238, 0.5),
        0 14px 44px -8px rgba(63, 201, 238, 0.95),
        0 0 100px -12px rgba(63, 201, 238, 0.85);
    transform: translateY(-2px);
}

.btn--secondary,
.btn--ghost,
.nav-toggle {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

.btn--secondary:hover,
.btn--ghost:hover {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2), 0 0 40px -10px rgba(63, 201, 238, 0.7);
}

.knoten--start,
.knoten--ziel {
    box-shadow: 0 0 26px -6px rgba(63, 201, 238, 0.75);
}

.kette__linie {
    box-shadow: 0 0 10px rgba(63, 201, 238, 0.6);
}

.tag--live::before {
    box-shadow: 0 0 12px 2px rgba(91, 227, 164, 0.9);
}

.bereich__nr,
.stufe__nr,
.wzkarte__art {
    text-shadow: 0 0 16px rgba(63, 201, 238, 0.6);
}

.stufe__betrag {
    text-shadow: 0 0 34px rgba(63, 201, 238, 0.45);
}

.betriebpunkt,
.grundsatz {
    border-left-color: var(--c-accent);
    box-shadow: -14px 0 30px -22px rgba(63, 201, 238, 0.9);
}


/* --- Ablauf-Demo: Glasfenster mit Lichthof ------------------- */

.hero__raster>div:last-child {
    position: relative;
}

.hero__raster>div:last-child::before {
    content: "";
    position: absolute;
    inset: 6% 2%;
    z-index: -1;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #3FC9EE, #7060FF, #5BE3A4, #078EB5, #3FC9EE);
    filter: blur(72px);
    opacity: 0.42;
    animation: lichthof 16s linear infinite;
    pointer-events: none;
}

@keyframes lichthof {
    to {
        transform: rotate(360deg);
    }
}

.flow {
    background-color: rgba(9, 13, 19, 0.58);
    background-image: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0) 40%);
    border: 1px solid rgba(255, 255, 255, 0.11);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        0 50px 110px -44px rgba(0, 0, 0, 0.95),
        0 0 110px -30px rgba(63, 201, 238, 0.55);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
}

.fstep.is-active .fstep__knoten {
    box-shadow: 0 0 0 4px rgba(63, 201, 238, 0.16), 0 0 34px 2px rgba(63, 201, 238, 0.85);
}


/* --- Rueckfall und Ruecksicht -------------------------------- */

@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .card,
    .band .card,
    .band-dark .card,
    .symptom,
    .vergleich,
    .kontaktform,
    .band .kontaktform,
    .betriebhinweis,
    .tuecken>li,
    .flow,
    .siteheader {
        background-color: rgba(14, 19, 27, 0.94);
    }
}

@media (prefers-reduced-transparency: reduce) {
    .card,
    .band .card,
    .band-dark .card,
    .symptom,
    .vergleich,
    .kontaktform,
    .band .kontaktform,
    .flow,
    .siteheader {
        background-color: #0E131B;
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body::before,
    .hero__raster>div:last-child::before {
        animation: none;
    }

    a.card:hover,
    .card--hover:hover,
    .btn--primary:hover {
        transform: none;
    }
}


/* --- „Ein Anruf kostet nichts" --- */
.anruf {
    position: relative;
    background-color: transparent;
    background-image:
        radial-gradient(90% 140% at 100% 50%, rgba(63, 201, 238, 0.18), rgba(63, 201, 238, 0) 60%),
        var(--glas-bg);
    border: 1px solid rgba(63, 201, 238, 0.32);
    box-shadow: var(--glas-schatten), 0 0 70px -24px rgba(63, 201, 238, 0.6);
    -webkit-backdrop-filter: var(--glas-blur);
    backdrop-filter: var(--glas-blur);
}

.anruf__tel {
    text-shadow: 0 0 22px rgba(63, 201, 238, 0.7);
}

/* --- Nachtrag 16.11. (2): neue Bloecke der Kaufentscheidung --- */
.kundenfall,
.check {
    border-color: rgba(63, 201, 238, 0.32);
}

.kundenfall {
    background-image:
        radial-gradient(90% 120% at 100% 0%, rgba(63, 201, 238, 0.14), rgba(63, 201, 238, 0) 60%),
        var(--glas-bg);
}

.kundenfall__spalten>div+div,
.check__fragen li {
    border-color: rgba(255, 255, 255, 0.09);
}

.kundenfall__spalten dt,
.check__fragen .mono,
.technikzeile .mono,
.flow__ergebnis .mono {
    text-shadow: 0 0 16px rgba(63, 201, 238, 0.6);
}

.sicherheit {
    border-left-color: var(--c-accent);
    box-shadow: -14px 0 30px -22px rgba(63, 201, 238, 0.9);
}

.kontakt__person img {
    border-color: rgba(63, 201, 238, 0.45);
    box-shadow: 0 0 40px -10px rgba(63, 201, 238, 0.6);
}

.technikzeile {
    border-top-color: rgba(255, 255, 255, 0.08);
}

/* Ein Lichtfleck je Karte reicht: beim Kundenprojekt und beim Ablauf-Check
   liegt Text unter dem Zeiger, dort stoert er. */
.kundenfall::before,
.check::before {
    display: none;
}

/* ------------------------------------------------------------
   HANDY UND TABLET (Rueckmeldung Tobias 16.11.2026: seitliches
   Scrollen, Ruckeln beim Scrollen)
   Ursache 1: Der Lichtgrund ragte mit inset -22vmax ueber den
   Bildschirm hinaus. Android schiebt die Seite dann seitlich.
   Ursache 2: Unschaerfe hinter jeder Karte plus ein bewegter,
   weichgezeichneter Hintergrund sind auf Handys zu teuer.
   Hier deshalb: Lichtgrund steht und bleibt im Bild, Karten sind
   durchscheinend OHNE Unschaerfe. Die Glasleiste oben bleibt.
   ------------------------------------------------------------ */

html,
body {
    overflow-x: clip;
}

@media (max-width: 899px), (hover: none) {
    body::before {
        inset: 0;
        animation: none;
        transform: none;
        will-change: auto;
    }

    .hero__raster>div:last-child::before {
        inset: 14% 10%;
        animation: none;
        filter: blur(44px);
        opacity: 0.3;
    }

    .card,
    .band .card,
    .band-dark .card,
    .symptom,
    .vergleich,
    .kontaktform,
    .band .kontaktform,
    .betriebhinweis,
    .artikel__kurz,
    .tuecken>li,
    .anruf,
    .flow {
        background-color: rgba(13, 18, 26, 0.86);
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .sitefooter,
    .btn--secondary,
    .btn--ghost,
    .nav-toggle {
        -webkit-backdrop-filter: none;
        backdrop-filter: none;
    }

    .sitefooter {
        background-color: rgba(5, 7, 11, 0.9);
    }

    .siteheader {
        background-color: rgba(10, 14, 20, 0.78);
        -webkit-backdrop-filter: blur(14px);
        backdrop-filter: blur(14px);
    }

    /* Grosse weiche Schatten kosten beim Scrollen ebenfalls. */
    .card,
    .symptom,
    .vergleich,
    .kontaktform {
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
    }

    a.card:hover,
    .card--hover:hover {
        transform: none;
    }
}