/*
 * Homepage "Kundenstimmen" (Trustami reviews, design 2026-11-23).
 * Template: Magento_Cms::home/trustami-reviews.phtml. Builds on the product slider container (.tps).
 * The rating panel is always dark (like the Showroom block); the heading follows the light/dark theme.
 */
.tkr {
    --tps-items: 3;
    --tps-gap: 16px;
    --tkr-display: var(--tps-display, 'TPS Display', 'Space Grotesk', 'TPS Inter', Inter, system-ui, sans-serif);
}

.tkr-panel {
    background: #0b0e12;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 28px;
    box-sizing: border-box;
    color: #f5f5f5;
    display: grid;
    gap: 40px;
    grid-template-columns: 360px minmax(0, 1fr);
    margin-top: 40px;
    overflow: hidden;
    padding: 40px;
    position: relative;
}

body.light-mode .tkr-panel {
    border-color: #0b0e12;
}

.tkr-glow {
    background: radial-gradient(closest-side, rgba(63, 176, 242, .16), rgba(63, 176, 242, 0));
    border-radius: 999px;
    height: 560px;
    left: -120px;
    pointer-events: none;
    position: absolute;
    top: -160px;
    width: 560px;
}

/* ---------- Summary ---------- */
.tkr-summary {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
}

.tkr-seal {
    align-items: center;
    background: rgba(255, 255, 255, .04);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 999px;
    color: #f5f5f5;
    display: inline-flex;
    font-size: 14px;
    font-weight: 600;
    gap: 10px;
    height: 40px;
    padding: 0 16px 0 12px;
    width: max-content;
}

.tkr-score {
    align-items: flex-end;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-top: 28px;
}

.tkr .tkr-big {
    --toneart-font-family: var(--tkr-display);
    align-items: baseline;
    color: #ffffff;
    display: flex;
    font-family: var(--tkr-display);
    gap: 10px;
    margin: 0;
}

.tkr-big b {
    font-size: 112px;
    font-weight: 700;
    letter-spacing: -.045em;
    line-height: .85;
}

.tkr-big span {
    color: #8a93a3;
    font-size: 24px;
    font-weight: 300;
}

.tkr-verdict {
    align-items: flex-end;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding-bottom: 6px;
}

.tkr-stars {
    color: #3a3a42;
    display: inline-block;
    font-size: 20px;
    letter-spacing: 2px;
    line-height: 1;
    position: relative;
    white-space: nowrap;
}

.tkr-stars__fill {
    color: #fbbf24;
    left: 0;
    overflow: hidden;
    position: absolute;
    top: 0;
}

.tkr-verdict__label {
    font-family: var(--tkr-display);
    font-size: 18px;
    font-weight: 600;
}

.tkr .tkr-count {
    color: #a6aebb;
    font-size: 14px;
    line-height: 1.45;
    margin: 14px 0 0;
}

.tkr-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    list-style: none;
    margin: 24px 0 0;
    padding: 0;
}

.tkr .tkr-pill {
    align-items: center;
    background: #141417;
    border: 1px solid #27272c;
    border-radius: 999px;
    color: #f5f5f5;
    display: inline-flex;
    font-size: 13px;
    font-weight: 600;
    gap: 8px;
    height: 36px;
    margin: 0;
    padding: 0 14px 0 6px;
}

.tkr-pill .tkr-logo {
    font-size: 12px;
    height: 24px;
    width: 24px;
}

.tkr .tkr-cta {
    align-items: center;
    background: #f5f5f5;
    border-radius: 999px;
    color: #0b0e12;
    display: inline-flex;
    font-size: 15px;
    font-weight: 700;
    gap: 12px;
    height: 56px;
    justify-content: space-between;
    margin-top: auto;
    padding: 0 8px 0 24px;
    text-decoration: none;
    transition: background .2s;
    width: max-content;
}

.tkr-summary .tkr-cta {
    margin-top: 32px;
}

.tkr .tkr-cta:hover {
    background: #ffffff;
    color: #0b0e12;
}

.tkr-cta__icon {
    align-items: center;
    background: #0b0e12;
    border-radius: 999px;
    color: #f5f5f5;
    display: flex;
    height: 40px;
    justify-content: center;
    transition: transform .2s;
    width: 40px;
}

.tkr-cta:hover .tkr-cta__icon {
    transform: translate(2px, -2px);
}

/* ---------- Platform logos ---------- */
.tkr-logo {
    align-items: center;
    background: linear-gradient(135deg, #8ed8fb, #1690e0);
    border-radius: 999px;
    color: #06243a;
    display: flex;
    flex: none;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 17px;
    font-weight: 700;
    height: 42px;
    justify-content: center;
    line-height: 1;
    width: 42px;
}

/* Real brand marks (inline SVG) on a white disc; Trusted Shops sits on its own yellow. */
.tkr-logo svg {
    display: block;
    height: 56%;
    width: 56%;
}

.tkr-logo--amazon,
.tkr-logo--ebay,
.tkr-logo--google,
.tkr-logo--trustpilot,
.tkr-logo--facebook {
    background: #ffffff;
}

.tkr-logo--ebay svg { height: 72%; width: 72%; }
.tkr-logo--amazon svg { height: 60%; margin-top: 8%; width: 60%; }
.tkr-logo--facebook svg { height: 100%; width: 100%; }
.tkr-logo--trustedshops { background: #ffdc0f; }
.tkr-logo--trustedshops svg { height: 74%; width: 74%; }
.tkr-logo--idealo { background: #0a3761; color: #ffffff; }

/* ---------- Review cards ---------- */
.tkr-reviews {
    display: flex;
    flex-direction: column;
    gap: 24px;
    min-width: 0;
    position: relative;
}

.tkr-card {
    background: #141417;
    border: 1px solid #27272c;
    border-radius: 20px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin: 0;
    min-height: 100%;
    min-width: 0;
    overflow: hidden;
    padding: 28px 24px 24px;
    position: relative;
    width: 100%;
}

.tkr-card__qm {
    color: rgba(255, 255, 255, .06);
    font-family: var(--tkr-display);
    font-size: 96px;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    position: absolute;
    right: 18px;
    top: 6px;
}

.tkr-card__quote {
    flex: 1;
    margin: 0;
    position: relative;
}

.tkr .tkr-card__quote p {
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 7;
    color: #d7dce3;
    display: -webkit-box;
    font-size: 17px;
    font-weight: 500;
    line-height: 1.55;
    margin: 0;
    overflow: hidden;
}

.tkr-card__meta {
    align-items: center;
    border-top: 1px solid #27272c;
    display: flex;
    gap: 12px;
    padding-top: 18px;
}

.tkr-card__who {
    flex: 1;
    min-width: 0;
}

.tkr-card__name {
    color: #f5f5f5;
    display: block;
    font-size: 15px;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tkr-card__sub {
    align-items: center;
    color: #8a93a3;
    display: flex;
    font-size: 12.5px;
    gap: 6px;
    margin-top: 3px;
    white-space: nowrap;
}

.tkr-card__check {
    align-items: center;
    color: #5ee08f;
    display: inline-flex;
    flex: none;
    font-size: 12.5px;
    font-weight: 600;
    gap: 5px;
}

/* Dots and arrows sit on the always-dark panel. */
body .tkr .tkr-reviews .tps-dots.tps-dots--interactive {
    --tps-dot-on: #f5f5f5;
    --tps-dot-off: #3a3a42;
    --tps-dot-quiet: rgba(255, 255, 255, .28);
    --tps-dot-pill: #5cbbf8;
    justify-content: flex-start;
    margin-top: 0;
}

.tkr:not(.has-overflow) .tps-nav,
.tkr:not(.has-overflow) .tps-dots {
    display: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 1279px) {
    .tkr {
        --tps-items: 2;
    }

    .tkr-panel {
        grid-template-columns: 320px minmax(0, 1fr);
        gap: 32px;
        padding: 32px;
    }

    .tkr-big b {
        font-size: 96px;
    }
}

@media (max-width: 1023px) {
    .tkr-panel {
        grid-template-columns: minmax(0, 1fr);
    }

    .tkr-summary .tkr-cta {
        margin-top: 28px;
    }
}

@media (max-width: 639px) {
    .tkr-panel {
        border-radius: 24px;
        gap: 22px;
        margin-top: 28px;
        padding: 24px 18px 22px;
    }

    .tkr-glow {
        height: 360px;
        left: -90px;
        top: -120px;
        width: 360px;
    }

    .tkr-seal {
        font-size: 12.5px;
        height: 34px;
    }

    .tkr-score {
        margin-top: 18px;
    }

    .tkr-big b {
        font-size: 80px;
    }

    .tkr-big span {
        font-size: 20px;
    }

    .tkr-stars {
        font-size: 18px;
    }

    .tkr-verdict__label {
        font-size: 16px;
    }

    .tkr .tkr-count {
        font-size: 13px;
    }

    .tkr-summary .tkr-cta {
        height: 54px;
        margin-top: 22px;
        padding: 0 7px 0 20px;
        width: 100%;
    }

    /* Cards bleed to the panel edge and swipe; the next card peeks in. */
    .tkr .tkr-reviews .tps-viewport {
        margin: 0 -18px;
        max-width: none;
        padding: 0;
        width: auto;
    }

    .tkr .tkr-reviews .tps-track {
        margin: 0 0 -26px;
        padding: 6px 18px 26px;
        scroll-padding-inline: 18px;
    }

    .tkr .tps-slide {
        flex: 0 0 280px;
    }

    .tkr-card {
        gap: 14px;
        padding: 22px 18px 18px;
    }

    .tkr-card__qm {
        font-size: 80px;
        right: 14px;
        top: 2px;
    }

    .tkr .tkr-card__quote p {
        font-size: 15.5px;
    }

    .tkr-card .tkr-logo {
        font-size: 15px;
        height: 38px;
        width: 38px;
    }

    body .tkr .tkr-reviews .tps-dots.tps-dots--interactive {
        justify-content: center;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tkr-cta__icon {
        transition: none;
    }
}
