/* ===== Carousel Container ===== */
.carousel-container {
    position: relative;
    width: 100%;
    max-width: 1200px;
    max-height: 400px;
    margin: 20px auto;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===== Carousel Slides ===== */
.carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    gap: 20px;
}

.carousel-slide {
    flex: 0 0 100%;
    position: relative;
    padding: 0 10px;
    box-sizing: border-box;
    background-color: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.carousel-slide img {
    width: 100%;
    height: 400px;
    min-height: 200px;
    object-fit: cover;
    display: block;
    border-radius: 8px;
}

/* ===== Carousel Buttons ===== */
.carousel-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-button.prev {
    left: 15px;
}

.carousel-button.next {
    right: 15px;
}

/* ===== Carousel Indicators ===== */
.carousel-indicators {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
}

.carousel-indicator.active {
    background: white;
}

/* ===== Responsive Carousel ===== */
@media (min-width: 769px) {
    .carousel-slide {
        flex: 0 0 calc(50% - 10px); /* 50% Breite minus halber Abstand zwischen den Slides */
    }
}

@media (max-width: 768px) {
    .carousel-slide img {
        height: 250px;
    }

    .carousel-button {
        padding: 8px;
        width: 35px;
        height: 35px;
        font-size: 14px;
    }

    .carousel-slide {
        padding: 0 15px;
    }

    .carousel {
        gap: 10px;
    }
}
