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

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

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

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

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

.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: 32px;
    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: flex;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
}

/* Fade-Overlay rechts */
.testimonials__fade {
    position: absolute;
    top: 0;
    right: 0;
    width: 80px;
    height: calc(100% - 66px); /* 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;
    width: 178px;
}

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

.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 {
    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__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: 8px;
    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%;
}

/* =============================================================================
   RECHTE SPALTE — Swiper + Arrows
   ============================================================================= */
.testimonials__right {
    position: relative;
    overflow: hidden;
}

.testimonials__swiper {
    overflow: visible;
}

.testimonials__wrapper {
    display: flex;
}

/* Slide: width auto → Swiper übernimmt die natürliche Breite der Card */
.testimonials__slide {
    width: auto !important;
    flex-shrink: 0;
}

/* Arrows — unterhalb des Sliders */
.testimonials__arrows {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 16px;
}

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

/* =============================================================================
   CARD — feste Breite 354px
   ============================================================================= */
.testimonials__card {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 450px;
    overflow: hidden;
    width: 354px;
}
/* =============================================================================
   DESKTOP ab 768px
   ============================================================================= */
@media (min-width: 768px) {
    .testimonials {
        padding-inline: var(--padding-x-desktop);
        padding-block: 160px;
    }

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

    .testimonials__left {
        flex-shrink: 0;
        width: 602px;
        padding-right: 48px;
        gap: var(--space-xl);
    }

    .testimonials__headline {
        font-size: 48px;
    }

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

    .testimonials__swiper {
        overflow: visible;
    }

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