/* =================================================================
   OS Kundenstimmen Module
   ================================================================= */

.os-kundenstimmen {
    /* background: #edebe8; */
    padding: 80px 0;
    overflow: visible; /* Allow slider overflow for scaled slides */
}

.os-kundenstimmen-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 30px;
}

.os-kundenstimmen-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 0;
}

/* =================================================================
   Left Column - Static Content & Slider
   ================================================================= */

.os-kundenstimmen-left {
    flex: 1;
    min-width: 300px;
    padding: 64px 64px 2rem 0px;
    overflow: hidden; /* Allow scaled slides to show */
}

.os-kundenstimmen-header h2 {
    color: #575452;
    font-size: 42px;
    font-weight: 700;
    text-transform: uppercase;
    margin: 0 0 30px 0;
    line-height: 1.1;
    -ms-hyphens: auto;
    -webkit-hyphens: auto;
    hyphens: auto;
}

.os-kundenstimmen-text {
    color: #575452;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 50px;
}

.os-kundenstimmen-text p {
    margin-bottom: 20px;
}

/* =================================================================
   Swiper Portrait Slider
   ================================================================= */

.os-portrait-slider {
    width: 100%;
    max-width: 100%;
    padding: 20px 0 40px;
    overflow: hidden; /* Allow scaled slides to be visible */
}

/* Desktop slider visible, mobile slider hidden by default */
.os-portrait-slider-desktop {
    display: block;
    margin-left: 10px; /* Offset for scale overflow */
}

.os-portrait-slider-mobile {
    display: none;
    max-width: 100%;
}

.os-portrait-slider .swiper-wrapper {
    align-items: start;
    justify-content: flex-start;
}

.os-portrait-slider .swiper-slide {
    border-radius: 0;
    overflow: hidden;
    transition: transform 400ms ease, opacity 400ms ease;
    transform: scale(0.8);
    opacity: 0.6;
    cursor: pointer;
}

.os-portrait-slider .swiper-slide-active {
    transform: scale(1);
    opacity: 1;
    z-index: 10;
}

.os-portrait-slider .swiper-slide-prev,
.os-portrait-slider .swiper-slide-next {
    transform: scale(0.8);
    opacity: 0.7;
}

.os-portrait-slider .swiper-slide img {
    /* max-width: 180px; */
    width: 100%;
    height: auto;
    object-fit: contain;
    display: block;
}

/* Pagination Dots */
.os-portrait-slider .swiper-pagination {
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: flex-start;
    gap: 8px;
    padding-left: 5px;
}

.os-portrait-slider .swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background: #ccc;
    opacity: 1;
    border-radius: 50%;
    transition: background 300ms ease;
}

.os-portrait-slider .swiper-pagination-bullet-active {
    background: #f9b000;
}

/* =================================================================
   Right Column - Orange Content Box
   ================================================================= */

.os-kundenstimmen-right {
    flex: 1;
    min-width: 300px;
    display: flex;
    max-width: 100%;
}

.os-content-box {
    background: #f9b000;
    color: #514E4C;
    padding: 64px 64px 2rem 64px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
    text-wrap: balance;
}

.border-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
    width: 100%;

    .border {
        width: 30%;
        margin: unset;
    }
}

/* Mobile slider inside orange box */
.os-portrait-slider-mobile {
    padding: 10px 0 0px;
}

.os-portrait-slider-mobile .swiper-slide img {
    max-width: 180px;
}

.os-portrait-slider-mobile .swiper-slide {
    max-width: 180px;
    opacity: 0.5;
}

.os-portrait-slider-mobile .swiper-slide-active {
    opacity: 1;
}

.os-portrait-slider-mobile .swiper-slide-prev,
.os-portrait-slider-mobile .swiper-slide-next {
    opacity: 0.6;
}

.os-content-inner {
    position: relative;
}

/* Invisible Navigation Buttons */
.os-nav-prev,
.os-nav-next {
    position: absolute;
    top: 0;
    /* height: 100%; */
    bottom: 30px;
    width: 50%;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 100;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    pointer-events: auto;
}

.os-nav-prev {
    left: 0;
}

.os-nav-next {
    right: 0;
}

.os-content-slide {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 400ms ease, transform 400ms ease;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    visibility: hidden;
}

.os-content-slide.active {
    opacity: 1;
    transform: translateY(0);
    position: relative;
    visibility: visible;
}

.os-content-box h3 {
    color: #fff;
    margin: 0 0 40px 0;
}

.os-qa-item {
    margin-bottom: 25px;
}

.os-qa-item .question {
    font-weight: 700;
    font-size: 15px;

    /* margin-bottom: 8px; */
    line-height: 1.4;
}

.os-qa-item .answer {
    font-size: 15px;
    line-height: 1.6;
    font-weight: 300;
}

.os-author {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.3);
}

.os-author-name {
    font-weight: 700;
    font-size: 18px;
    margin-bottom: 5px;
}

.os-author-company {
    font-size: 14px;
    opacity: 0.9;
}

.os-author-link {
    color: #514E4C;
    text-decoration: underline;
    font-size: 14px;
    display: inline-block;
    margin-top: 5px;
    transition: opacity 300ms ease;
}

.os-author-link:hover {
    opacity: 0.8;
    color: #fff;
}

/* Box Footer with Pagination and CTA */
.os-content-box-footer {
    margin-top: 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-flow: column;
    gap: 2rem;
}

.os-box-pagination {
    display: flex;
    gap: 8px;
}

.os-box-pagination-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 1);
    cursor: pointer;
    transition: background 300ms ease;
}

.os-box-pagination-dot.active {
    background: #575452;
}

.os-cta-button {
    background: #575452;
    color: #fff;
    padding: 12px 25px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    border-radius: 0;
    transition: background 300ms ease;
    white-space: nowrap;
}

.os-cta-button:hover {
    background: #3d3b39;
    color: #fff;
    text-decoration: none;
}

.os-cta-button:focus {
    background: #3d3b39;
    color: #fff;
    text-decoration: none;
}

/* =================================================================
   Responsive Styles
   ================================================================= */

@media (max-width: 1200px) {
    .os-kundenstimmen-left {
        padding-right: 30px;
    }

    .os-content-box {
        padding: 50px 40px;
    }

    .os-content-box h3 {
        font-size: 24px;
    }
}

@media (max-width: 991px) {
    .os-kundenstimmen {
        padding: 60px 0;
    }

    .os-kundenstimmen-wrapper {
        flex-direction: column;
    }

    .os-kundenstimmen-left {
        padding-right: 0;

        /* margin-bottom: 40px; */
        order: 1;
    }

    .os-kundenstimmen-right {
        order: 2;
        margin-bottom: 40px;
    }

    /* Mobile: Hide desktop slider, show mobile slider in orange box */
    .os-portrait-slider-desktop {
        display: none;
    }

    .os-portrait-slider-mobile {
        display: block;
    }

    .os-kundenstimmen-header h2 {
        font-size: 36px;
    }

    .os-portrait-slider {
        max-width: 100%;
    }
}

@media (max-width: 767px) {
    .os-kundenstimmen {
        padding: 40px 0;
    }

    .os-kundenstimmen-container {
        padding: 0 15px;
    }

    /* .os-kundenstimmen-header h1 {
        font-size: 22px;
    } */

    /* .os-kundenstimmen-header h2 {
        font-size: 28px;
        margin-bottom: 20px;
    } */

    .os-kundenstimmen-text {
        font-size: 15px;
        margin-bottom: 30px;
    }

    .os-content-box {
        padding: 35px 25px;
    }

    .os-content-box h3 {
        font-size: 20px;
        margin-bottom: 25px;
    }

    .os-qa-item .question,
    .os-qa-item .answer {
        font-size: 14px;
    }

    .os-author-name {
        font-size: 16px;
    }

    .os-portrait-slider .swiper-slide img {
        /* width: 180px !important;
        height: 180px !important; */
    }

    .os-portrait-slider .swiper-slide {
        /* width: 180px !important;
        height: 180px !important; */
    }

    .os-portrait-slider .swiper-slide-active {
        transform: scale(1.1);
    }

    .os-content-box-footer {
        flex-direction: column;
        align-items: center;
    }

    .os-cta-button {
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .os-kundenstimmen-header h2 {
        font-size: 24px;
    }

    .os-portrait-slider .swiper-slide {
        width: 100px;
        height: 100px;
    }
}

@media (min-width: 992px) {
    .os-box-pagination {
        margin-bottom: 3.3rem;
    }
}
