/* =============================================
   BEQIRI CLEAN – VIDEO-HERO (Scroll-Video)
   Ersetzt nur den Hero, Rest der Seite bleibt style.css
   ============================================= */

:root {
    --vh-navy: #001a33;
    --vh-accent: #6fb1ff;            /* helles Blau, lesbar auf dunklem Video */
}

/* Header liegt über dem Video: erst durchsichtig, nach dem Hero langsam weiß */
body.has-video-hero header {
    position: fixed;
    top: 32px;
    left: 0;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    transition: background 0.9s ease, box-shadow 0.9s ease,
                backdrop-filter 0.9s ease, -webkit-backdrop-filter 0.9s ease;
}
body.has-video-hero header.is-over-hero {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
}
body.has-video-hero header .header-logo,
body.has-video-hero header .header-nav a:not(.nav-cta-btn),
body.has-video-hero header .ham-menu span {
    transition: filter 0.9s ease, color 0.9s ease, background 0.9s ease;
}
body.has-video-hero header.is-over-hero .header-logo { filter: brightness(0) invert(1); }
body.has-video-hero header.is-over-hero .header-nav a:not(.nav-cta-btn) { color: #fff; }
body.has-video-hero header.is-over-hero .ham-menu span { background: #fff; }
body.has-video-hero header.is-over-hero .ham-menu.active span { background: var(--blue); }

/* Solange im Hero geblättert wird, kann die Seite nicht scrollen */
html { scrollbar-gutter: stable; }   /* kein Springen, wenn die Scrollbar verschwindet */
html.vhero-locked,
html.vhero-locked body {
    overflow: hidden;
    overscroll-behavior: none;
}

/* Hero: genau ein Bildschirm, geblättert wird per JS */
.vhero {
    position: relative;
    height: 100vh;
    height: 100svh;
    background: var(--vh-navy);
}

.vhero-sticky {
    position: relative;
    height: 100%;
    overflow: hidden;
}

.vhero-video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Abdunkelung, damit Text immer lesbar ist */
.vhero-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(0,26,51,0.55) 0%, rgba(0,26,51,0.25) 40%, rgba(0,26,51,0.75) 100%);
    pointer-events: none;
}

/* ---- Checkpoint-Texte ---- */
.vhero-cp {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 104px 24px 0;          /* Platz für Topbar + Header */
    opacity: 0;
    transform: translateY(24px);
    /* Ausblenden: zügig, damit der alte Text nicht übers neue Bild hängt */
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
}
.vhero-cp.is-active {
    opacity: 1;
    transform: none;
    pointer-events: auto;
    /* Einblenden: langsam und weich */
    transition: opacity 1.2s cubic-bezier(0.22, 0.61, 0.36, 1),
                transform 1.4s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.vhero-cp .hero-inner { max-width: 760px; }

/* Bestehende Hero-Klassen für dunklen Hintergrund anpassen */
.vhero .hero-eyebrow {
    display: inline-block;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.25);
    padding: 6px 14px;
    border-radius: var(--radius-pill);
}
.vhero .hero-h1 { color: #fff; text-shadow: 0 2px 24px rgba(0,0,0,0.35); }
.vhero .hero-accent { color: var(--vh-accent); }
.vhero .hero-sub { color: rgba(255,255,255,0.88); }
.vhero .btn-secondary {
    color: #fff;
    border-color: rgba(255,255,255,0.7);
}
.vhero .btn-secondary:hover { background: rgba(255,255,255,0.12); }
.vhero .trust-pill {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.22);
    color: #fff;
}

/* Story-Checkpoints (nach dem Intro) */
.vhero-cp.cp-story {
    align-items: flex-start;
    justify-content: flex-end;
    text-align: left;
    padding: 0 max(24px, calc((100% - 1100px) / 2 + 24px)) 72px;
}
.cp-count {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--vh-accent);
    margin-bottom: 12px;
}
.cp-title {
    font-size: clamp(30px, 5vw, 56px);
    font-weight: 700;
    line-height: 1.1;
    color: #fff;
    margin-bottom: 14px;
    text-shadow: 0 2px 24px rgba(0,0,0,0.35);
}
.cp-text {
    font-size: 18px;
    line-height: 1.6;
    color: rgba(255,255,255,0.88);
    max-width: 480px;
}
.cp-story .btn-primary { margin-top: 24px; }

/* ---- Fortschritt + Hinweise ---- */
.vhero-progress {
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 3px;
    background: rgba(255,255,255,0.15);
}
.vhero-progress span {
    display: block;
    height: 100%;
    width: 0;
    background: var(--vh-accent);
    transition: width 0.8s ease;
}

.vhero-hint {
    position: absolute;
    left: 50%;
    bottom: 22px;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.75);
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    transition: opacity 0.4s ease;
    pointer-events: none;
}
.vhero-hint::after {
    content: '';
    width: 12px; height: 12px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg);
    animation: vheroBounce 1.6s ease-in-out infinite;
}
@keyframes vheroBounce {
    0%, 100% { translate: 0 0; }
    50% { translate: 0 5px; }
}
.vhero-hint.is-hidden { opacity: 0; }

.vhero-skip {
    position: absolute;
    left: 20px;
    bottom: 18px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(255,255,255,0.12);
    border: 1px solid rgba(255,255,255,0.3);
    padding: 8px 16px;
    border-radius: var(--radius-pill);
    transition: background var(--transition);
}
.vhero-skip:hover { background: rgba(255,255,255,0.22); }

/* ---- Mobile ---- */
@media (max-width: 768px) {
    body.has-video-hero header { top: 0; }   /* Topbar ist mobil ausgeblendet */
    .vhero-cp { padding-top: 72px; }
    .vhero .hero-btns { flex-direction: column; align-items: center; }
    .vhero .hero-trust { display: none; }
    .vhero-cp.cp-story { padding: 0 20px 64px; }
    .cp-text { font-size: 16px; }
    .vhero-skip { left: auto; right: 12px; top: 84px; bottom: auto; font-size: 12px; padding: 6px 12px; }
    .vhero-hint { display: none; }
}

/* ---- Wer Bewegung reduziert hat: kein Scroll-Video ---- */
@media (prefers-reduced-motion: reduce) {
    .vhero-cp, .vhero-cp.is-active { transition: none; }
    .cp-story, .vhero-hint, .vhero-progress, .vhero-skip { display: none; }
}
