.testimonial {
    font-family: Arial, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #d9e4e9;
    margin: 0;
    padding: 25px 0;
}

.testimonial-section {
    display: flex;
    flex-direction: row-reverse; /* Bild rechts auf Desktop */
    align-items: center;
    justify-content: left;
    max-width: 1170px;
    height: 100%; /* Passt sich dann an */
    background: white;
    padding: 20px 40px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    gap: 20px;
}

/* Bild */
.testimonial-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 400px; /* Maximalgröße */
}

.testimonial-image img {
    width: 100%;
    height: auto;
    max-width: 400px;
    max-height: 288px;
    object-fit: cover;
    border-radius: 5px;
}

/* Textbereich */
.testimonial-text {
    flex: 2;
    max-width: 800px;
}

.quote {
    font-size: 20px;
    font-style: italic;
    color: #006069;
}

.author {
    font-size: 16px;
    margin-top: 10px;
}

/* Responsives Verhalten */
@media (max-width: 999px) {
    .testimonial {
        background-size: contain; /* Falls das Bild zu groß ist */
        background-position: top; /* Falls Text auf einem Bildbereich liegt */
    }
    .testimonial-section {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
    .testimonial-image {
        order: -1; /* Bild nach oben */
        max-width: 100%;
    }
    .testimonial-text {
        max-width: 100%;
        padding: 0 15px;
    }
}

/* Karussell */
.testimonial-carousel {
    position: relative;
    min-height: 330px;
    height: auto;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonial-container {
    max-width: 1200px; /* Oder deine gewünschte Breite */
    margin: 0 auto; /* Zentriert den Inhalt */
    padding: 0 15px;
    text-align: center;
    box-sizing: border-box;
    overflow: hidden;
}

.testimonial-slide {
    width: 100%;
    height: auto;
    flex-direction: column;
    display: none;
    justify-content: center;
    align-items: center;
    text-align: center;
    opacity: 0;
    transform: translateY(50px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
.testimonial-slide.active {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 1000px) {
    .testimonial-slide {
        flex-direction: row;
        text-align: left;
    }
}

@media (max-width: 600px) {
    .prev, .next {
        padding: 5px;
        font-size: 18px;
    }
    .testimonial-section {
        margin: 0 10px;
    }
}

.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.3);
    color: white;
    border: none;
    padding: 10px;
    cursor: pointer;
}
.prev { left: 10px; }
.next { right: 10px; }
.dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
}
.dot {
    height: 10px;
    width: 10px;
    margin: 5px;
    background-color: #bbb;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}
.dot.active { background-color: #717171; }