.werte-item-wrap {
    display: flex;
    gap: 20px;
    transition: all 0.5s ease;
    --flex-items: 4;
    --flex-gap: 20px;
}

.werte-item-image img {
    width: 100%;
    height: 170px;
    object-fit: cover;
}

.werte-item-header-wrap {
    padding: 20px 0 10px 0;
}

.werte-item {
    flex: 0 0 calc((100% / var(--flex-items)) - (((var(--flex-items) - 1) / var(--flex-items)) * var(--flex-gap)));
    transition: all 0.5s ease;
    overflow: hidden;
}

.werte-item-testimonials {
    transition: opacity 0.3s ease;
}

.werte-item-testimonials.active {
    display: block;
    opacity: 1;
}

.werte-item-testimonials-slide {
    text-align: center;
    padding: 20px;
}

.testimonial-slide-text {
    padding: 0 20px;
}

.testimonial-slide-header-wrap {
    padding: 30px 0 20px 0;
}

.testimonial-slide-image {
    display: flex;
    justify-content: center;
}

.testimonial-slide-image img {
    width: 100px;
    height: auto;
    border-radius: 100%;
    border: solid 1px #fff;
}

/* Aktiver Zustand der Werte-Items */
.werte-element.testimonials-active .werte-item-wrap {
    gap: 0px;
}

.werte-element.testimonials-active .werte-item.active {
    flex-grow: 0;
    flex-shrink: 0;
    flex-basis: 85%;
    transition: flex-basis .5s ease-in-out;
}

/* .werte-element.testimonials-active .werte-item.active .werte-item-inner-wrap {
    display: none;
} */

.werte-item-inner-wrap.hidden .werte-item-image, .werte-item-inner-wrap.hidden .werte-item-text, .werte-item-inner-wrap.hidden .werte-item-button-wrap {
    display: none;
}
.werte-item-inner-wrap.hidden .werte-item-header-wrap {
    text-align: center;
}

.werte-element.testimonials-active .werte-item:not(.active) {
    width: min-content;
    /* min-width: 80px; */
    cursor: pointer;
    flex-basis: 5%;
    background-color: #FEDA17;
    border: 2px solid #fff;
}

.werte-element.testimonials-active .werte-item:not(.active):hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.werte-element.testimonials-active .werte-item:not(.active) .werte-item-inner-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.werte-element.testimonials-active .werte-item:not(.active) .werte-item-image,
.werte-element.testimonials-active .werte-item:not(.active) .werte-item-text,
.werte-element.testimonials-active .werte-item:not(.active) .werte-item-button-wrap {
    display: none;
}

.werte-element.testimonials-active .werte-item:not(.active) .werte-item-header-wrap {
    writing-mode: vertical-lr;
    text-orientation: mixed;
    width: 100%;

    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.werte-element.testimonials-active .werte-item:not(.active) .werte-item-header-wrap h1,
.werte-element.testimonials-active .werte-item:not(.active) .werte-item-header-wrap h2,
.werte-element.testimonials-active .werte-item:not(.active) .werte-item-header-wrap h3,
.werte-element.testimonials-active .werte-item:not(.active) .werte-item-header-wrap h4,
.werte-element.testimonials-active .werte-item:not(.active) .werte-item-header-wrap h5,
.werte-element.testimonials-active .werte-item:not(.active) .werte-item-header-wrap h6 {
    margin: 0;
    font-size: 14px;
    font-weight: bold;
}

/* Slick Slider Anpassungen */

* {
    min-height: 0;
    min-width: 0;
}

.werte-item-testimonials {
    padding: 20px 0;

    min-width: 0;
    min-height: 0;

    overflow: hidden;
}
.werte-item-testimonials-slider .slick-dots {
    bottom: -40px;
}

.werte-item-testimonials-slider .slick-prev,
.werte-item-testimonials-slider .slick-next {
    z-index: 1;
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    border: none;
    color: white;
    font-size: 18px;
    line-height: 1px;

    position: absolute;
    top: 350px;
}

.werte-item-testimonials-slider .slick-prev {
    left: 15px;
}

.werte-item-testimonials-slider .slick-next {
    right: 15px;
}

.werte-item-testimonials-slider .slick-prev:hover,
.werte-item-testimonials-slider .slick-next:hover {
    background: rgba(0, 0, 0, 0.8);
}

.testimonial-slide-button {
    font-size: 40px;
}

.werte-item-testimonials-close {
    text-align: center;
    padding-top: 15px;
    text-decoration: underline;
    font-size: 15px;
    cursor: pointer;
}

/* Responsive Anpassungen */
@media (max-width: 768px) {
    .werte-item-wrap {
        display: block;
    }

    .werte-item:not(:last-child) {
        margin-bottom: 50px;
    }

    .werte-item-testimonials-slide {
        padding: 0;
    }

    .werte-item-testimonials-slider .slick-next {
        right: -15px;
    }
    .werte-item-testimonials-slider .slick-prev {
        left: -15px;
    }

    .werte-item-testimonials-slider .slick-prev, .werte-item-testimonials-slider .slick-next
    {
        background: none;
        color: black;
        font-size: 50px;
    }
    .werte-item-testimonials-slider .slick-prev:hover,
    .werte-item-testimonials-slider .slick-next:hover {
        background: none;
    }

    .werte-item-testimonials-close {
        display: none;
    }
}