/* =============================================================
   HHB Testimonials Slider
   EXT:hhb_testimonials/Resources/Public/Css/kundenstimmen-slider.css
   ============================================================= */

/* Declare standard color for the slider */
.hhb-testimonials {
    --hhb-color-primary: #5b4824;
    --hhb-color-secondary: #5b4824b0;

}

/* ---- Grundstruktur ---- */

.hhb-testimonials {
    background: linear-gradient(180deg, rgba(245, 240, 232, 1) 0%, rgba(245, 240, 232, 0) 100%, rgba(245, 240, 232, 1) 51%);
    padding: 10px 0 10px;
    overflow: hidden;
    box-sizing: border-box;
    width: 100%;
}

.hhb-testimonials__inner {
    max-width: 1700px;
    margin: 0 auto;
    padding: 0 24px;
    box-sizing: border-box;
}

.hhb-testimonials__header {
    text-align: center;
    margin-bottom: 0;
}

.hhb-testimonials__label {
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--hhb-color-primary);;
    margin: 0 0 8px;
    font-weight: 700;
}

.hhb-testimonials__title {
    font-size: 30px;
    font-weight: 700;
    color: #2a2018;
    margin: 0;
    line-height: 1.3;
}

/* ---- Viewport & Track ---- */

.hhb-testimonials__viewport {
    overflow: hidden;
    width: 100%;
}

.hhb-testimonials__track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    align-items: stretch;
}

/* ---- Slides: Desktop >= 1900px → 4 Karten ---- */

.hhb-testimonials__slide {
    flex: 0 0 calc(25% - 16px);
    margin: 0 8px;
    box-sizing: border-box;
    line-height: 1.2;
}

/* ---- Desktop HD 1024-1900px → 3 Karten ---- */

@media (max-width: 1900px) {
    .hhb-testimonials__slide {
        flex: 0 0 calc(33.333% - 16px);
        margin: 0 8px;
    }
}

/* ---- Tablet Hochformat 560px–1023px → 2 Karten ---- */

@media (max-width: 1023px) {
    .hhb-testimonials__slide {
        flex: 0 0 calc(50% - 12px);
        margin: 0 6px;
    }
}

/* ---- Smartphone < 560px → 1 Karte ---- */

@media (max-width: 559px) {
    .hhb-testimonials__slide {
        flex: 0 0 calc(100% - 32px);
        margin: 0 16px;
    }

    .hhb-testimonials__title {
        font-size: 23px;
    }
}

/* ---- Karte ---- */

.hhb-card {
    background: #ffffff;
    border-radius: 3px;
    padding: 36px 30px 28px;
    height: 100%;
    box-sizing: border-box;
    position: relative;
    border-left: 3px solid var(--hhb-color-primary);;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.hhb-card__quote-mark {
    font-size: 110px;
    line-height: 0.7;
    color: var(--hhb-color-primary);;
    opacity: 0.15;
    font-family: Georgia, 'Times New Roman', serif;
    position: absolute;
    top: 16px;
    left: 22px;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
}

.hhb-card__text {
    font-size: 15px;
    line-height: 1.75;
    color: #3a2e22;
    margin: 0 0 22px;
    padding-top: 32px;
    position: relative;
    z-index: 1;
    font-style: italic;
}

.hhb-card__author {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.hhb-card__author-icon {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--hhb-color-primary);;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.hhb-card__author-name {
    font-size: 13px;
    font-weight: 700;
    color: #2a2018;
    letter-spacing: 0.4px;
}

.hhb-card__author-location {
    font-size: 12px;
    color: #7a6a55;
    margin-top: 1px;
}

/* ---- Steuerung ---- */

.hhb-testimonials__controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 38px;
}

.hhb-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid var(--hhb-color-primary);;
    background: transparent;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--hhb-color-primary);;
    transition: background 0.2s, color 0.2s;
    padding: 0;
    line-height: 1;
}

.hhb-btn:hover,
.hhb-btn:focus-visible {
    background: var(--hhb-color-primary);;
    color: #ffffff;
    outline: none;
}

.hhb-btn svg {
    pointer-events: none;
    display: block;
}

.hhb-dots {
    display: flex;
    gap: 8px;
    align-items: center;
}

.hhb-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--hhb-color-secondary);;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.hhb-dot.is-active {
    background: var(--hhb-color-primary);;
    transform: scale(1.35);
}

.hhb-dot:focus-visible {
    outline: 2px solid var(--hhb-color-primary);;
    outline-offset: 2px;
}
