/* =============================================================================
   TESTIMONIALS BLOCK
   ============================================================================= */

.testimonials {
    position: relative;
    background-color: var(--color-bt-light);
    padding-inline: var(--padding-x);
    overflow: hidden;
}

/* Hintergrundgrafik Signet */
.testimonials__bg-signet {
    position: absolute;
    top: 12%;
    left: 82%;
    transform: translate(-50%, 0);
    width: 280%;
    pointer-events: none;
    z-index: 0;
    opacity: 0.55;
}
.testimonials__bg-signet img {
    width: 100%;
    height: auto;
    display: block;
    max-height: 680px;
}

.testimonials__inner {
    position: relative;
    z-index: 1;
    max-width: var(--width-container);
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-xl);
    padding: 0 0 80px;
    background-repeat: no-repeat;
}

/* =============================================================================
   LINKE SPALTE
   ============================================================================= */
.testimonials__left {
    display: flex;
    flex-direction: column;
    margin-right: 0;
    gap: var(--space-xl);
    text-align: right;
}

.testimonials__text {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.testimonials__headline {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-size: 48px;
    line-height: 1;
    color: var(--color-white);
}

.testimonials__headline .text-accent {
    color: var(--color-accent);
}

.testimonials__subtext {
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
    font-size: 18px;
    line-height: 1.2;
    color: var(--color-white);
}

/* =============================================================================
   ARROWS
   ============================================================================= */
.testimonials__arrow {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--color-accent);
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    color: var(--color-accent);
    transition: background var(--transition-base), color var(--transition-base);
    flex-shrink: 0;
}

.testimonials__arrow:hover {
    background: var(--color-accent);
    color: var(--color-bt-dark);
}

.testimonials__arrow svg {
    width: 24px;
    height: 24px;
    display: block;
}

.testimonials__arrow.swiper-button-disabled {
    opacity: 0.35;
    cursor: default;
    pointer-events: none;
}

/* =============================================================================
   RECHTE SPALTE — Swiper + Arrows
   ============================================================================= */
.testimonials__right {
    position: relative;
    overflow: hidden; /* slides die links rausslippen verschwinden hier */
}

.testimonials__swiper {
    overflow: visible; /* slides dürfen nach rechts über den container hinausgehen */
}

.testimonials__wrapper {
    display: flex;
}

/* Slide — feste Breite für slidesPerView: auto */
.testimonials__slide {
    flex-shrink: 0;
    width: 354px;
}

/* Arrows — unterhalb des Sliders, in der rechten Spalte */
.testimonials__arrows {
    display: none; /* mobile: versteckt, nur Dots */
    gap: 16px;
    align-items: center;
    margin-top: 16px;
}

/* Pagination Dots — mobile */
.testimonials__pagination {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-top: 16px;
    min-height: 24px;
    position: relative !important;
    left: 0 !important;
    transform: none !important;
}

.testimonials__pagination .swiper-pagination-bullet {
    display: inline-block !important;
    width: 10px !important;
    height: 10px !important;
    border-radius: 0 !important;
    background-color: var(--color-accent) !important;
    opacity: 1 !important;
    margin: 0 4px !important;
    flex-shrink: 0;
    cursor: pointer;
    transition: width 0.2s ease, height 0.2s ease, background-color 0.2s ease;
    transform: none !important;
}

.testimonials__pagination .swiper-pagination-bullet.is-dot-sm {
    width: 5px !important;
    height: 5px !important;
}

.testimonials__pagination .swiper-pagination-bullet.is-dot-xs {
    width: 2px !important;
    height: 2px !important;
}

.testimonials__pagination .swiper-pagination-bullet-active {
    background-color: var(--color-white) !important;
}

/* Fade-Overlay rechts */
.testimonials__fade {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: calc(100% - 24px); /* nur über dem Slider, nicht über den Arrows */
    background: linear-gradient(to right, transparent, var(--color-bt-light));
    pointer-events: none;
    z-index: 2;
}

/* =============================================================================
   CARD
   ============================================================================= */
.testimonials__card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 450px;
    overflow: hidden;
    width: 354px;
}

/* Foto — Hintergrund oben */
.testimonials__photo {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center top;
    z-index: 0;
}

.testimonials__photo--empty {
    background-color: var(--color-bt-dark);
}

/* Card Content — flex über volle Höhe */
.testimonials__card-content {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

/* Meta oben — max 178px breit wie im Figma */
.testimonials__meta {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.testimonials__meta-top {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.testimonials__role {
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
    font-size: 16px;
    line-height: 1;
    color: var(--color-white);
    display: block;
}

.testimonials__name,
.testimonials__titel {
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
    font-size: 16px;
    line-height: 1;
    color: var(--color-accent);
    display: block;
    text-transform: capitalize;
    white-space: nowrap;
}
.testimonials__titel {
    color: var(--color-white);
}

.testimonials__company {
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
    font-size: 12px;
    line-height: 1;
    color: var(--color-white);
    display: block;
}

/* Bottom: Quote + Divider + Link */
.testimonials__bottom {
    background-color: rgba(21, 57, 62, 0.8);
    padding: 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.testimonials__quote {
    font-family: var(--font-primary);
    font-weight: var(--font-weight-bold);
    font-size: 24px;
    line-height: 1.1;
    color: var(--color-white);
    margin: 0;
}

/* „ und " sind cyan, Text weiß */
.testimonials__quote-mark {
    color: var(--color-accent);
}

.testimonials__divider {
    height: 2px;
    background-color: var(--color-accent);
    width: 100%;
}

.testimonials__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    text-decoration: none;
}

.testimonials__link-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
    min-width: 0;
}

.testimonials__link-pre {
    font-family: var(--font-body);
    font-weight: var(--font-weight-regular);
    font-size: 12px;
    line-height: 1.2;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--color-white);
}

.testimonials__link-label {
    font-family: var(--font-body);
    font-weight: var(--font-weight-bold);
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 3.5px;
    text-transform: uppercase;
    color: var(--color-accent);
}

.testimonials__link-icon {
    flex-shrink: 0;
    width: 43px;
    height: 43px;
    color: var(--color-accent);
    display: flex;
    align-items: center;
    justify-content: center;
}

.testimonials__link-icon svg {
    width: 100%;
    height: 100%;
}

/* =============================================================================
   DESKTOP ab 768px
   ============================================================================= */
/* 768px – 899px: padding reduziert, column bleibt */
@media (min-width: 768px) and (max-width: 899px) {
    .testimonials__inner {
        padding: 80px 0;
    }
}

/* ab 900px: row-Layout */
@media (min-width: 900px) {
    .testimonials {
        padding-inline: var(--padding-x-desktop);
    }

    .testimonials__inner {
        flex-direction: row;
        align-items: flex-start;
        gap: 0;
        padding: 160px 0;
    }

    .testimonials__bg-signet {
        top: 0;
        left: 50%;
        width: 75%;
    }

    .testimonials__left {
        flex-shrink: 0;
        width: 50%;
        gap: var(--space-xl);
        margin-top: auto;
        margin-bottom: auto;
        margin-right: 48px;
        text-align: left;
    }

    .testimonials__headline {
        font-size: 48px;
    }

    .testimonials__right {
        flex: 1;
        min-width: 0;
        overflow: hidden; /* slides links weg, rechts durch fade */
    }

    .testimonials__arrows {
        display: flex; /* ab 900px: Arrows sichtbar */
    }

    .testimonials__pagination {
        display: none; /* ab 900px: Dots versteckt */
    }

    .testimonials__swiper {
        overflow: visible;
    }

    .testimonials__fade {
        width: 120px;
        height: calc(100% - 66px);
    }
}

@media screen and (min-width: 1140px) {
    .testimonials__left {
        width: 602px;
    }
}

@media screen and (max-width: 400px) {
    h2.testimonials__headline {
        word-break: break-word;
    }
}
