/* iVos – Liquid-Glass Feature-Karten (QAT-20261128-76dd949c)
   Erweitert das Liquid-Glass-Design der Navbar auf alle .ht-feat-card-Elemente der Timeline. */

/* ── CSS-Startwerte für die kursorgesteuerte Lichtposition ── */
.ht-feat-card {
    --ht-gc-x: 50%;
    --ht-gc-y: 30%;
}

/* ── Glasartige Karte: transluzent, schwebend, reaktiv ── */
/* QAT-20261202-80c7d68d: geringere Deckkraft, damit das Muster aus home-bg-v1.css (Abschnitt 4)
   durch das Glas sichtbar bleibt; ausgewogene Unschärfe/Sättigung, mehrlagige weiche Schatten,
   innere Glanzlichter und eine leichte Verlaufsbeleuchtung über die Fläche.
   isolation:isolate hält ::before/::after (z-index:-1) innerhalb der Karte, über ihrem Hintergrund. */
.ht-feat-card {
    position: relative;
    isolation: isolate;
    background:
        radial-gradient(
            ellipse 72% 100% at var(--ht-gc-x, 50%) var(--ht-gc-y, 30%),
            rgba(255,255,255,.30) 0%,
            transparent 62%
        ),
        linear-gradient(
            155deg,
            rgba(255,255,255,.44) 0%,
            rgba(244,249,255,.22) 38%,
            rgba(232,242,255,.14) 68%,
            rgba(222,236,255,.26) 100%
        );
    backdrop-filter: blur(18px) saturate(1.6) brightness(1.04);
    -webkit-backdrop-filter: blur(18px) saturate(1.6) brightness(1.04);
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 24px;
    box-shadow:
        0 1px 2px rgba(15,32,72,.04),
        0 6px 14px -4px rgba(30,72,160,.06),
        0 20px 44px -14px rgba(40,92,200,.14),
        0 44px 90px -34px rgba(70,120,230,.18),
        inset 0 1px 0 rgba(255,255,255,.88),
        inset 0 -1px 0 rgba(170,205,255,.20),
        inset 0 0 28px rgba(255,255,255,.16);
    transition: background .3s ease, box-shadow .35s ease, border-color .35s ease;
}

/* ── Obere Lichtkante + diagonaler Glasreflex (synchron mit header-glass-v1.css) ── */
.ht-feat-card::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background:
        linear-gradient(
            180deg,
            rgba(255,255,255,.65) 0px,
            rgba(255,255,255,.16) 2px,
            rgba(255,255,255,.04) 18%,
            transparent 35%
        ),
        linear-gradient(
            118deg,
            transparent 26%,
            rgba(255,255,255,.16) 38%,
            rgba(255,255,255,.04) 47%,
            transparent 54%
        );
    pointer-events: none;
    /* Liegt hinter dem Karteninhalt, aber über dem Kartenhintergrund */
    z-index: -1;
}

/* ── Beleuchtete Kante: 1px-Verlaufsrahmen per Maske (oben links hell, unten rechts zart) ── */
.ht-feat-card::after {
    content: '';
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        140deg,
        rgba(255,255,255,.95) 0%,
        rgba(255,255,255,.22) 32%,
        rgba(176,204,255,.30) 64%,
        rgba(255,255,255,.70) 100%
    );
    -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, linear-gradient(#000 0 0);
    mask-composite: exclude;
    pointer-events: none;
    z-index: -1;
    opacity: .85;
    transition: opacity .35s ease;
}

/* ── Hover (nur Desktop mit Maus): etwas hellere Kanten und tieferer Schatten, keine Verschiebung ── */
@media (hover: hover) and (pointer: fine) {
    .ht-feat-card:hover {
        box-shadow:
            0 1px 2px rgba(15,32,72,.04),
            0 8px 18px -4px rgba(30,72,160,.08),
            0 26px 54px -14px rgba(40,92,200,.18),
            0 52px 100px -34px rgba(70,120,230,.22),
            inset 0 1px 0 rgba(255,255,255,.95),
            inset 0 -1px 0 rgba(170,205,255,.26),
            inset 0 0 32px rgba(255,255,255,.22);
        border-color: rgba(255,255,255,.70);
    }
    .ht-feat-card:hover::after {
        opacity: 1;
    }
}

/* ── Scroll-Einblend-Animation: Glaseigenschaften zu den bestehenden Übergängen ergänzen ── */
/* Höhere Spezifität als .ht-feat-card; Quelltextreihenfolge nach home-timeline-v1.css */
.ht-animate .ht-feat-card {
    transition:
        opacity  850ms cubic-bezier(.22,1.25,.36,1),
        transform 850ms cubic-bezier(.22,1.25,.36,1),
        filter   850ms cubic-bezier(.22,1.25,.36,1),
        background .3s ease,
        box-shadow .3s ease,
        border-color .3s ease;
}

/* ── Schwebende Tag-Elemente in F01 und F08: etwas stärkere Glastiefe ── */
.ht-i1-tag,
.ht-i8-tag {
    background:
        linear-gradient(
            148deg,
            rgba(255,255,255,.70) 0%,
            rgba(240,248,255,.52) 100%
        );
    backdrop-filter: blur(14px) saturate(1.6);
    -webkit-backdrop-filter: blur(14px) saturate(1.6);
    border-color: rgba(255,255,255,.72);
    box-shadow:
        0 4px 16px rgba(49,125,255,.08),
        inset 0 1px 0 rgba(255,255,255,.88);
}

/* ── SEO-Karte innen (F03): leichte Glastönung ── */
.ht-i3-card {
    background:
        linear-gradient(
            148deg,
            rgba(255,255,255,.75) 0%,
            rgba(242,248,255,.62) 100%
        );
    backdrop-filter: blur(14px) saturate(1.5);
    -webkit-backdrop-filter: blur(14px) saturate(1.5);
    border-color: rgba(255,255,255,.60);
}

/* ── Bleistift-Kreis (F04 Logo-Design): glasartiger Akzentknopf ── */
.ht-i4-pencil {
    background:
        linear-gradient(
            148deg,
            rgba(255,255,255,.85) 0%,
            rgba(240,248,255,.70) 100%
        );
    backdrop-filter: blur(14px) saturate(1.4);
    -webkit-backdrop-filter: blur(14px) saturate(1.4);
    border: 1px solid rgba(255,255,255,.72);
    box-shadow:
        0 4px 16px rgba(0,0,0,.10),
        inset 0 1px 0 rgba(255,255,255,.90);
}

/* ── Mobile: Eckenradius anpassen ── */
@media (max-width: 767px) {
    .ht-feat-card {
        border-radius: 20px;
    }
}

/* ── Fallback: kein backdrop-filter-Support ── */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
    .ht-feat-card {
        background: rgba(248,251,255,.97);
        border-color: rgba(203,213,225,.5);
    }
    .ht-feat-card::before {
        display: none;
    }
    .ht-i1-tag,
    .ht-i8-tag {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(248,251,255,.95);
    }
    .ht-i3-card {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: rgba(248,252,255,.97);
    }
    .ht-i4-pencil {
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        background: #fff;
    }
}

/* ── Reduzierte Bewegung ── */
@media (prefers-reduced-motion: reduce) {
    .ht-feat-card {
        transition: none;
    }
    .ht-animate .ht-feat-card {
        transition:
            opacity  850ms cubic-bezier(.22,1.25,.36,1),
            transform 850ms cubic-bezier(.22,1.25,.36,1),
            filter   850ms cubic-bezier(.22,1.25,.36,1);
    }
}
