/* ── Google Reviews Slider ─────────────────────────────────────── */

:root {
    --grs-accent: #E8A020;
}

/* ─── Wrapper ───────────────────────────────────────────────────── */

.grs-wrapper {
    width: 100%;
    max-width: 780px;
    margin: 32px auto;
    font-family: 'Georgia', serif;
    box-sizing: border-box;
}

/* ─── Slider Container ──────────────────────────────────────────── */

/* KEIN overflow:hidden hier — Buttons und Schatten werden sonst abgeschnitten */
.grs-slider {
    position: relative;
    /* Platz links/rechts für die Pfeil-Buttons */
    padding: 0 36px;
    box-sizing: border-box;
}

/* Der eigentliche Clip-Bereich — nur der Track wird beschnitten */
.grs-track-wrapper {
    overflow: hidden;
    border-radius: 16px;
    /* Schatten auf dem Track-Wrapper, nicht auf dem Slide */
    box-shadow:
        0 2px 8px rgba(0,0,0,0.06),
        0 12px 40px rgba(0,0,0,0.09);
}

.grs-track {
    display: flex;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

/* ─── Slide ─────────────────────────────────────────────────────── */

.grs-slide {
    flex: 0 0 100%;
    box-sizing: border-box;
}

.grs-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 32px 36px 28px;
    border: 1px solid rgba(0,0,0,0.06);
    min-height: 240px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-sizing: border-box;
}

/* ─── Header ────────────────────────────────────────────────────── */

.grs-card__header {
    display: flex;
    align-items: center;
    gap: 14px;
}

.grs-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--grs-accent), #f0c060);
    display: flex;
    align-items: center;
    justify-content: center;
}

.grs-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grs-avatar__fallback {
    font-size: 22px;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}

.grs-meta {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.grs-author {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.2;
}

.grs-time {
    font-size: 13px;
    color: #888;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    line-height: 1.3;
}

.grs-google-badge {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
    opacity: 0.85;
}

.grs-google-badge svg {
    width: 100%;
    height: 100%;
}

/* ─── Stars ─────────────────────────────────────────────────────── */

.grs-stars {
    display: flex;
    gap: 3px;
    line-height: 1;
}

.grs-star {
    font-size: 22px;
}

.grs-star--filled {
    color: var(--grs-accent);
}

.grs-star--empty {
    color: #ddd;
}

/* ─── Review Text ───────────────────────────────────────────────── */

.grs-text {
    margin: 0;
    padding: 0;
    border: none;
    flex: 1;
}

.grs-text p {
    margin: 0;
    font-size: 17px;
    line-height: 1.75;
    color: #333;
    font-style: italic;
    display: -webkit-box;
    -webkit-line-clamp: 6;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ─── Navigation Buttons ────────────────────────────────────────── */
/* Buttons sitzen im .grs-slider (kein overflow:hidden) → vollständig sichtbar */

.grs-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px solid rgba(0,0,0,0.1);
    background: #fff;
    color: #555;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    z-index: 10;
    padding: 0;
}

.grs-btn svg {
    width: 20px;
    height: 20px;
}

.grs-btn:hover {
    background: var(--grs-accent);
    border-color: var(--grs-accent);
    color: #fff;
    box-shadow: 0 4px 16px rgba(232, 160, 32, 0.45);
    transform: translateY(-50%) scale(1.08);
}

.grs-btn:focus-visible {
    outline: 3px solid var(--grs-accent);
    outline-offset: 2px;
}

/* Links/rechts am Rand des Slider-Paddings */
.grs-btn--prev { left: 0; }
.grs-btn--next { right: 0; }

/* ─── Dots ──────────────────────────────────────────────────────── */

.grs-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 20px;
    padding-bottom: 4px;
}

.grs-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ddd;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.grs-dot.is-active {
    background: var(--grs-accent);
    width: 24px;
    border-radius: 4px;
}

.grs-dot:hover:not(.is-active) {
    background: #bbb;
}

.grs-dot:focus-visible {
    outline: 2px solid var(--grs-accent);
    outline-offset: 2px;
}

/* ─── Footer ────────────────────────────────────────────────────── */

.grs-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 12px;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 36px;
}

.grs-review-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-weight: 600;
    color: var(--grs-accent);
    text-decoration: none;
    border: 2px solid var(--grs-accent);
    border-radius: 20px;
    padding: 6px 16px;
    transition: background 0.2s ease, color 0.2s ease;
    line-height: 1.3;
}

.grs-review-link:hover {
    background: var(--grs-accent);
    color: #fff;
}

.grs-review-link svg {
    flex-shrink: 0;
}

/* ─── Google Branding ───────────────────────────────────────────── */

.grs-powered {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #aaa;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.grs-powered svg {
    height: 16px;
    width: auto;
}

/* ─── Error ─────────────────────────────────────────────────────── */

.grs-error {
    padding: 16px 20px;
    border-left: 4px solid #e53e3e;
    background: #fff5f5;
    color: #742a2a;
    border-radius: 4px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 15px;
}

/* ─── Tablet (max 768px) ────────────────────────────────────────── */

@media (max-width: 768px) {
    .grs-wrapper {
        margin: 24px auto;
    }

    .grs-slider {
        padding: 0 28px;
    }

    .grs-card {
        padding: 24px 28px 22px;
        gap: 14px;
        min-height: 200px;
    }

    .grs-author     { font-size: 16px; }
    .grs-time       { font-size: 13px; }
    .grs-star       { font-size: 20px; }
    .grs-text p     { font-size: 16px; line-height: 1.7; -webkit-line-clamp: 7; }
    .grs-review-link { font-size: 13px; padding: 5px 14px; }

    .grs-footer { padding: 0 28px; }
}

/* ─── Mobile (max 480px) ────────────────────────────────────────── */

@media (max-width: 480px) {
    .grs-wrapper {
        margin: 16px auto;
    }

    .grs-slider {
        padding: 0 22px;
    }

    .grs-card {
        padding: 20px 18px 18px;
        gap: 12px;
        min-height: 180px;
        border-radius: 12px;
    }

    .grs-card__header { gap: 10px; }

    .grs-avatar {
        width: 44px;
        height: 44px;
    }

    .grs-avatar__fallback { font-size: 18px; }
    .grs-author           { font-size: 15px; }
    .grs-time             { font-size: 12px; }
    .grs-google-badge     { width: 22px; height: 22px; }
    .grs-star             { font-size: 18px; }

    .grs-text p {
        font-size: 15px;
        line-height: 1.65;
        -webkit-line-clamp: 8;
    }

    .grs-btn {
        width: 36px;
        height: 36px;
    }

    .grs-btn svg {
        width: 16px;
        height: 16px;
    }

    .grs-dots {
        margin-top: 16px;
        gap: 7px;
    }

    .grs-footer {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
        margin-top: 10px;
        padding: 0 22px;
    }

    .grs-review-link { font-size: 13px; padding: 5px 13px; }
    .grs-powered     { font-size: 12px; }
}

/* ─── Reduced Motion ────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .grs-track,
    .grs-btn,
    .grs-dot,
    .grs-review-link {
        transition: none;
    }
}
