﻿/* home.css */

#home {
    background-color: black;
}

.carousel {
    position: relative;
    /*width: 100vw; /* Passt sich der Breite des Viewports an */
    /*max-width: 100%; /* Verhindert Überlauf */
    height: 100vh;
    max-height: 67vw;
}

.carousel-images img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%; /* weil es 2:3 Bilder sind, sollen sie 67% der Breite hoch sein*/
    max-height: 67vw;  /* ... aber nicht höher als das Display*/
    object-fit: cover;
    opacity: 0; /* Standardmäßig unsichtbar */
}

.carousel-images img.active {
    opacity: 1; /* Sichtbar, wenn aktiv */
}

.carousel .prev, .carousel .next {
    cursor: pointer;
    position: absolute;
    top: 50%; /* Setzt die vertikale Position auf 50% der Höhe des übergeordneten Containers */
    transform: translateY(-50%) scaleY(3); /* Vertikale Zentrierung und Skalierung */
    width: auto;
    padding-left: 16px;
    padding-right: 16px;
    color: white;
    font-size: 24px;
    user-select: none;
    -webkit-user-select: none;
    background-color: transparent;
    opacity: 0.6;
    transition: 0.6s ease;
}

.carousel .next {
    right: 0;
}

.carousel .prev:hover, .carousel .next:hover {
    opacity: 1;
}

.carousel-dots {
    text-align: center;
    position: absolute;
    top: 8px; /* Position oben mit 8px Abstand zum Rand */
    width: 100%;
}

.carousel-dots .dot {
    cursor: pointer;
    height: 10px;
    width: 10px;
    margin: 0 6px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    display: inline-block;
}

.carousel-dots .dot.active, .carousel-dots .dot:hover {
    background-color: #fff;
}
