
.hero-slideshow {
    position: relative;
    width: 100vw;
    max-width: none;
    margin-left: calc(50% - 50vw);
    height: var(--hero-height);
    overflow: hidden;
    background: #222;
}

/* Slides übereinander */
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition:
        opacity 2.5s ease-in-out,
        visibility 0s linear 2.5s;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    transition:
        opacity 2.5s ease-in-out,
        visibility 0s;
}

/* Hintergrund */
.hero-slide-image {
    position: absolute;
    inset: 0;

    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

/* Leichter Verlauf für Textlesbarkeit */
.hero-slide-image::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(0,0,0,.50) 0%,
        rgba(0,0,0,.15) 60%,
        transparent 100%
    );
}

/* Text über Hintergrund */
.hero-slide-content {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    height: 100%;
    color: #fff;
}

.hero-slide-content .container {
    width: 100%;
}

.hero-text {
    max-width: 650px;
}

.hero-text h1,
.hero-text h2 {
    color: #fff;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
}

.hero-text p {
    font-size: 16px;
    line-height: 1.6;
}

/* Mobile */
@media (max-width: 767.98px) {
    .hero-text {
        max-width: 100%;
    }

    .hero-text h1,
    .hero-text h2 {
        font-size: clamp(24px, 6vw, 36px);
    }

    .hero-text p {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }
}