/* Wrapper für das gesamte Karussell */
.video-carousel-container {
    display: block;
    width: 100%;
}

.video-carousel-wrapper {
    width: 100%;
    height:40vh;
    overflow: hidden;
}

/* Karussell-Container */
.video-carousel {
    display: flex;
    transition: transform 0.5s ease-in-out;
    will-change: transform;
    height: 100%; /* Gleiche Höhe wie der Wrapper */
}

/* Jedes einzelne Video */
.video-item {
    flex: 0 0 100%; /* Jedes Video nimmt die gesamte Breite des Containers ein */
    max-width: 100%;
    height: 100%; /* Passt sich der Wrapper-Höhe an */
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Video- oder IFrame-Elemente */
.video-item video,
.video-item iframe {
    width: 100%; /* Automatische Breite */
    height: 100%; /* Höhe füllt den verfügbaren Platz */
    object-fit: cover; /* Video wird zugeschnitten, um den Raum zu füllen */
}

/* Navigationspfeile */
.carousel-nav {
    position: absolute;
    top: 50%; /* Vertikale Zentrierung */
    transform: translateY(-50%);
    color: white;
    border: none;
    font-size: 24px;
    width: 50px;
    height: 86px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10; /* Über dem Karussell positioniert */
}
.carousel-nav:hover {
    background-color: none;
}

/* Linker Navigationspfeil */
.left-nav {
    background-image: url("../img/Arrow_L.png");
    background-size: cover;
    left: -60px;
}


/* Rechter Navigationspfeil */
.right-nav {
    background-image: url("../img/Arrow_R.png");
    background-size: cover;
    right: -60px;
}

/* Pagination (Punkte unter dem Karussell) */
.video-pagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px; /* Abstand zwischen den Punkten */
    z-index: 5; /* Über dem Video positioniert */
}

/* Punkte in der Pagination */
.pagination-dot {
    width: 12px;
    height: 12px;
    background: #cccccc; /* Standardfarbe */
    border-radius: 50%; /* Runde Punkte */
    cursor: pointer;
    transition: background 0.3s;
}

/* Aktiver Punkt */
.pagination-dot.active {
    background: #33deb6; /* Farbe für den aktiven Punkt */
}

/* Responsives Design */
@media (max-width: 768px) {
    .video-carousel-wrapper {
        height: 50vh; /* Auf kleineren Bildschirmen höhere Videos */
    }

    .pagination-dot {
        width: 10px; /* Kleinere Punkte */
        height: 10px;
    }

    .carousel-nav {
        width: 40px; /* Kleinere Pfeile */
        height: 40px;
        font-size: 20px;
    }
}
