.hero-viewport {
    position: relative;
}

/* Sanftes Einblenden beim ersten Anzeigen (statt abruptem Erscheinen) –
   betrifft auch den Fall, in dem das Panel per Hash-Korrektur sofort auf
   die richtige Variante gesetzt wird. */
@media (prefers-reduced-motion: no-preference) {
    .hero-viewport {
        opacity: 0;
        animation: hero-fade-in 0.8s ease forwards;
    }
}

@keyframes hero-fade-in {
    to {
        opacity: 1;
    }
}

/* ─── Hero-Switcher: fixer Badge-Button oben rechts (unabhängig vom Umschalten) ─── */
.hero-badge {
    position: absolute;
    top: 2rem;
    right: 2rem;
    z-index: 3;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 10px 30px rgba(0,0,0,0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-decoration: none;
    padding: 1.5rem;
    transform: rotate(5deg);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hero-badge:hover {
    transform: rotate(5deg) scale(1.05);
    box-shadow: 0 14px 34px rgba(0,0,0,0.3);
}

.hero-badge-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
}

.hero-badge-line,
.hero-badge-cta {
    font-family: "big-shoulders-text-variable", sans-serif;
    font-variation-settings: "wght" 600;
    font-size: 1.1rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    color: var(--lp-text);
}

.hero-badge-cta {
    margin-top: 0.4rem;
}

.hero-badge-highlight {
    font-family: "big-shoulders-text-variable", sans-serif;
    font-variation-settings: "wght" 800;
    font-size: 1.7rem;
    line-height: 1;
    text-transform: uppercase;
    color: var(--lp-red);
    margin-top: 0.35rem;
}

.hero-badge-date {
    font-family: "big-shoulders-text-variable", sans-serif;
    font-variation-settings: "wght" 700;
    font-size: 1.4rem;
    line-height: 1.1;
    color: var(--lp-red);
}

@media (max-width: 991px) {
    .hero-badge {
        width: 150px;
        height: 150px;
        top: 1rem;
        right: 1rem;
        padding: 1rem;
    }

    .hero-badge-line,
    .hero-badge-cta {
        font-size: 0.9rem;
    }

    .hero-badge-highlight {
        font-size: 1.25rem;
    }

    .hero-badge-date {
        font-size: 1.05rem;
    }
}

/* ─── Hero-Switcher: dezente Pfeile zum Umschalten (unten rechts im Bild/Video) ─── */
.hero-switch-arrows {
    position: absolute;
    right: 1.5rem;
    bottom: 1.5rem;
    z-index: 2;
    display: flex;
    gap: 0.5rem;
}

.hero-switch-arrow {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    border: none;
    background: rgba(0,0,0,0.35);
    color: rgba(255,255,255,0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s, color 0.2s;
}

.hero-switch-arrow:hover {
    background: var(--lp-red);
    color: #fff;
}

@media (max-width: 991px) {
    .hero-switch-arrows {
        right: 1rem;
        bottom: 1rem;
    }

    .hero-switch-arrow {
        width: 2.2rem;
        height: 2.2rem;
        font-size: 0.9rem;
    }
}

/* ─── Hero-Switcher: Panels (weiche Überblendung beim Umschalten) ─── */
.hero-panels {
    position: relative;
    flex: 1;
    min-height: 480px; /* Fallback, falls JS die exakte Höhe nicht messen kann (z. B. JS deaktiviert) */
}

.hero-panels .hero-panel {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.8s ease, visibility 0s linear 0.8s;
}

.hero-panels .hero-panel.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition: opacity 0.8s ease, visibility 0s linear 0s;
}

/* ─── Hero: Bilder-Slideshow (überblendend, nicht bedienbar) ─── */
.hero-slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.hero-slideshow img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    opacity: 0;
    transition: opacity 2.5s ease-in-out;
}

.hero-slideshow img.active {
    opacity: 1;
}
