/* Testimonial — Überschrift links, Zitat + Avatare rechts */

.testimonial-split {
    padding: 80px var(--content-padding) 96px;
}

.testimonial-split__inner {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    align-items: start;
    gap: clamp(40px, 6vw, 72px);
    max-width: var(--content-max);
    margin: 0 auto;
}

.testimonial-split__title {
    text-align: left;
}

.testimonial-split__title span {
    display: block;
}

.testimonial-split__content {
    text-align: left;
}

.testimonial-avatars {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    margin-bottom: 28px;
}

.testimonial-avatars__item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    padding: 0;
    border: 3px solid transparent;
    border-radius: 14px;
    background: #e8e4f8;
    overflow: hidden;
    opacity: 0.45;
    transform: scale(0.92);
    cursor: pointer;
    font: inherit;
    color: inherit;
    transition:
        opacity 0.35s ease,
        transform 0.35s ease,
        border-color 0.35s ease,
        box-shadow 0.35s ease;
}

.testimonial-avatars__photo {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    pointer-events: none;
}

.testimonial-avatars__item:nth-child(1) {
    border-color: rgba(144, 92, 232, 0.28);
}

.testimonial-avatars__item:nth-child(2) {
    border-color: rgba(37, 118, 199, 0.28);
}

.testimonial-avatars__item:nth-child(3) {
    border-color: rgba(104, 177, 85, 0.28);
}

.testimonial-avatars__item:nth-child(4) {
    border-color: rgba(242, 71, 70, 0.28);
}

.testimonial-avatars__item:nth-child(5) {
    border-color: rgba(253, 200, 55, 0.28);
}

.testimonial-avatars__item--focus {
    width: 64px;
    height: 64px;
    border-radius: 16px;
    opacity: 1;
    transform: scale(1);
}

.testimonial-avatars__item:nth-child(1).testimonial-avatars__item--focus {
    border-color: #905ce8;
    box-shadow: 0 8px 28px rgba(144, 92, 232, 0.38);
}

.testimonial-avatars__item:nth-child(2).testimonial-avatars__item--focus {
    border-color: #2576c7;
    box-shadow: 0 8px 28px rgba(37, 118, 199, 0.38);
}

.testimonial-avatars__item:nth-child(3).testimonial-avatars__item--focus {
    border-color: #68b155;
    box-shadow: 0 8px 28px rgba(104, 177, 85, 0.38);
}

.testimonial-avatars__item:nth-child(4).testimonial-avatars__item--focus {
    border-color: #f24746;
    box-shadow: 0 8px 28px rgba(242, 71, 70, 0.38);
}

.testimonial-avatars__item:nth-child(5).testimonial-avatars__item--focus {
    border-color: #fdc837;
    box-shadow: 0 8px 28px rgba(253, 200, 55, 0.38);
}

.testimonial-split__quote {
    margin: 0 0 20px;
    transition: opacity 0.32s ease;
}

.testimonial-split__quote.is-fading {
    opacity: 0;
}

.testimonial-split__quote-text {
    margin: 0;
}

.testimonial-split__cite {
    display: block;
    font-style: normal;
    line-height: 1.5;
}

@media (max-width: 960px) {
    .testimonial-split__inner {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .testimonial-avatars {
        justify-content: center;
    }

    .testimonial-split__content {
        text-align: center;
    }

    .testimonial-split__title {
        text-align: center;
    }
}

@media (max-width: 520px) {
    .testimonial-split {
        padding: 56px var(--content-padding) 72px;
    }

    .testimonial-avatars__item {
        width: 44px;
        height: 44px;
    }

    .testimonial-avatars__item--focus {
        width: 56px;
        height: 56px;
    }
}
