* {
    margin: 0;
    box-sizing: border-box;
}

.slider {
    font-family: Helvetica, sans-serif;
    background: #111;
    color: white;
    position: relative;
    width: 100%;
    overflow: hidden;
    /* Höhe entfernt – wird durch Inhalte bestimmt */
}

.slides-container {
    display: flex;
    transition: transform 0.6s ease-in-out;
    width: 300%; /* 3 Slides = 3 x 100% */
}

.slide {
    flex: 0 0 33.333333%;
    position: relative;
    background-size: cover;
    background-position: center;

    /* Höhe durch Seitenverhältnis definieren */
    aspect-ratio: 16 / 4.5;

    display: flex;
    align-items: center;
    justify-content: center;
}

.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.slide:hover > .slide-content {
    background: rgba(19, 19, 19, 0.6);
    box-shadow: 0 4px 12px rgba(85, 255, 255, 0.6);
}

.slide-content {
    position: relative;
    z-index: 1;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 30px;
    border-radius: 12px;
    max-width: 600px;
    text-align: center;
}


.slide h1 {
    font-size: 2rem;
    margin-bottom: 12px;
}

.slide p {
    font-size: 1rem;
    margin-bottom: 8px;
}

.date {
    font-size: 0.85rem;
    color: #ccc;
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 2rem;
    background: rgba(0,0,0,0.4);
    color: white;
    padding: 1px 16px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 2;
    user-select: none;
    width: 50px;
    height: 50px;
}

.arrow:hover {
    background: rgba(255,255,255,0.2);
}

.arrow.left { left: 20px; }
.arrow.right { right: 20px; }

.dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 14px;
    height: 14px;
    background-color: white;
    opacity: 0.5;
    border-radius: 50%;
    cursor: pointer;
}

.dot.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .slide h1 { font-size: 1.5rem; }
    .slide p { font-size: 0.9rem; }
}
