@charset "UTF-8";

/* Marquee-Container */
.marquee-container {
    overflow: hidden;
    width: 100%; /* Volle Breite des Containers */
    max-width: 100%; /* Stellt sicher, dass es nicht über die Containergröße hinausgeht */
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    cursor: pointer;
}

/* Marquee */
.marquee {
    display: flex;
    width: calc(200%); /* Doppelte Breite für die Endloslauf */
}

/* Marquee-Content */
.marquee-content {
    display: flex;
    animation: marquee 60s linear infinite; /* Langsame Animation über 60 Sekunden */
    width: calc(200%); /* Marquee-Content nimmt die doppelte Breite ein */
}

/* Einzelne Slides */
.slide {
    position: relative;
    flex: 0 0 16.66%; /* 100% / 6 = 16.66% pro Bild */
    overflow: hidden;
	border: none; /* Entfernt alle Ränder von den Slides */
}

.slide img {
    width: 100%;
	align-content: center;
    display: block;
}

/* Caption */
.caption {
    position: absolute;
    bottom: 0;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    text-align: block;
    padding: 10px;
	margin: 0; /* Keine Abstände zwischen den Captions */
    box-sizing: border-box;
    transform: translateY(0%);
    transition: transform 0.5s ease-in-out;
    white-space: normal;
    overflow: hidden;
    text-overflow: ellipsis;
	border: none; /* keine Ränder um die Caption */
}
.caption h3{
	font-family: "ibm-plex-sans", sans-serif;
            font-weight: 400;
            font-style: normal;
	color: white;
	align-content: left; 
}
/* Hover-Effekt für die Caption */
.slide:hover .caption {
    transform: translateY(100%);
}

/* Keyframes für den Marquee-Effekt */
@keyframes marquee {
    0% {
        transform: translateX(0%);
    }
    100% {
        transform: translateX(-100%); /* Bewegt die gesamte doppelte Bildreihe (16 Bilder) */
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .slide {
        flex: 0 0 25%; /* Vier Bilder gleichzeitig auf Tablets */
    }

    .marquee-content {
        animation: marquee 30s linear infinite; /* Schnelleres Scrollen für Tablets */
    }
}

@media (max-width: 768px) {
    .slide {
        flex: 0 0 50%; /* Zwei Bilder gleichzeitig auf Mobilgeräten */
    }

    .marquee-content {
        animation: marquee 30s linear infinite;
    }
}
