.hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    aspect-ratio: 16 / 6;
    max-height: 500px;   /* verhindert, dass der Slider auf breiten Bildschirmen zu hoch/gezoomt wird */
    min-height: 260px;   /* verhindert, dass er auf schmalen Bildschirmen zu flach wird */
    background: #10B045;
}

@media (max-width: 767px) {
    .hero-slider {
        aspect-ratio: 4 / 3;
        max-height: 360px;
    }
}

.hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

.hero-slider__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.8s ease-in-out;
}

.hero-slider__slide.is-active {
    opacity: 1;
    visibility: visible;
}

.hero-slider__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    background: rgba(0, 0, 0, 0.35);
    color: #fff;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 1.1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.hero-slider__arrow:hover {
    background: rgba(0, 0, 0, 0.6);
}

.hero-slider__arrow--prev {
    left: 16px;
}

.hero-slider__arrow--next {
    right: 16px;
}

.hero-slider__dots {
    position: absolute;
    bottom: 16px;
    left: 0;
    right: 0;
    z-index: 2;
    display: flex;
    justify-content: center;
    gap: 8px;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid #fff;
    background: transparent;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s ease;
}

.hero-slider__dot.is-active {
    background: #fff;
}
