/**
 * Kundenbewertungen Styles
 *
 * Deploy: themes/astra-child/assets/css/kundenbewertungen.css
 * Abhaengig von: hybrid-pages.css (Base-Styles, Hero, Fonts)
 *
 * Formsprache: Zentriertes 800px-Layout (wie FAQ, Unsere Idee),
 * luftig, viel Weissraum, dezente Trennlinien statt harte Boxen.
 *
 * Farben:
 *   Honiggelb #FFDC0F (Sterne + Balken, wie Trusted Shops)
 *   Gruen #62BC66 (Brand-Akzente, CTA-Buttons)
 *   Text #333333 (Headings), #374151 (Body), #6b7280 (Muted)
 *
 * @since 1.1
 * @author Claude (Session 2026-02-23)
 */

/* ── Content Container (800px zentriert, wie FAQ) ─────────────────────── */

.bewertungen-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 2rem 30px;
}

/* ── Summary Bar ──────────────────────────────────────────────────────── */

.bewertungen-summary {
    display: flex;
    gap: 2.5rem;
    align-items: flex-start;
    padding: 2rem 0;
    margin-bottom: 2rem;
    border-bottom: 1px solid #e5e7eb;
}

.summary-score {
    text-align: center;
    min-width: 140px;
    flex-shrink: 0;
}

.score-number {
    display: block;
    font-family: 'Nunito', sans-serif;
    font-size: 3.2rem;
    font-weight: 700;
    color: #333333;
    line-height: 1;
}

.score-label {
    display: block;
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 0.4rem;
}

.score-stars {
    display: block;
    margin: 0.4rem 0;
}

.score-stars .star {
    font-size: 1.5rem;
}

.score-count {
    display: block;
    font-size: 0.85rem;
    color: #6b7280;
    margin-top: 0.4rem;
}

.summary-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding-top: 0.25rem;
}

.bar-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.3rem 0.4rem;
    background: none;
    border: 1px solid transparent;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.15s;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    width: 100%;
    text-align: left;
}

.bar-row:hover {
    background: #fefce8;
}

.bar-row:focus-visible {
    outline: 2px solid #FFDC0F;
    outline-offset: 2px;
}

.bar-row.active {
    background: #fef9c3;
    border-color: #FFDC0F;
}

.bar-label {
    min-width: 2.2rem;
    color: #374151;
    font-weight: 600;
    flex-shrink: 0;
}

.bar-track {
    flex: 1;
    height: 8px;
    background: #f3f4f6;
    border-radius: 4px;
    overflow: hidden;
}

.bar-fill {
    display: block;
    height: 100%;
    background: #FFDC0F;
    border-radius: 4px;
    transition: width 0.3s ease;
}

.bar-count {
    min-width: 2rem;
    text-align: right;
    color: #6b7280;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* ── Sterne (Honiggelb) ──────────────────────────────────────────────── */

.star {
    color: #e5e7eb;
    font-style: normal;
}

.star-full {
    color: #FFDC0F;
}

.star-half {
    color: #FFDC0F;
    opacity: 0.6;
}

/* ── Controls Bar ─────────────────────────────────────────────────────── */

.bewertungen-controls {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}

.controls-left {
    flex: 1;
    min-width: 200px;
}

.search-wrapper {
    position: relative;
}

.bewertungen-search {
    width: 100%;
    padding: 0.55rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    transition: border-color 0.15s;
    background: #fff;
}

.bewertungen-search:focus {
    outline: none;
    border-color: #62BC66;
    box-shadow: 0 0 0 2px rgba(98, 188, 102, 0.15);
}

.bewertungen-sort {
    padding: 0.55rem 1.8rem 0.55rem 0.9rem;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    background: #fff;
    cursor: pointer;
    appearance: auto;
}

.bewertungen-sort:focus {
    outline: none;
    border-color: #62BC66;
    box-shadow: 0 0 0 2px rgba(98, 188, 102, 0.15);
}

/* ── Filter Chip ──────────────────────────────────────────────────────── */

.filter-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.7rem;
    background: #fefce8;
    border: 1px solid #FFDC0F;
    border-radius: 20px;
    font-size: 0.82rem;
    color: #854d0e;
    margin-bottom: 1.25rem;
}

.chip-clear {
    background: none;
    border: none;
    font-size: 1rem;
    cursor: pointer;
    color: #854d0e;
    padding: 0;
    line-height: 1;
    font-weight: 700;
}

.chip-clear:hover {
    color: #991b1b;
}

/* ── Review Cards (leicht, dezent, keine schweren Rahmen) ─────────────── */

.bewertungen-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.review-card {
    border: none;
    border-bottom: 1px solid #f3f4f6;
    border-radius: 0;
    padding: 1.5rem 0;
    background: transparent;
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-stars .star {
    font-size: 1.1rem;
}

.review-date {
    font-size: 0.82rem;
    color: #9ca3af;
}

.review-title {
    font-family: 'Nunito', sans-serif;
    font-size: 1rem;
    font-weight: 700;
    color: #333333;
    margin: 0 0 0.35rem 0;
}

.review-comment {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.7;
    margin: 0 0 0.6rem 0;
}

.review-reply {
    background: #f9fafb;
    border-left: 3px solid #62BC66;
    padding: 0.7rem 1rem;
    margin: 0.6rem 0;
    border-radius: 0 4px 4px 0;
}

.review-reply-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #62BC66;
    margin-bottom: 0.25rem;
}

.review-reply-text {
    font-size: 0.88rem;
    color: #374151;
    line-height: 1.6;
    margin: 0;
}

.review-footer {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.review-name {
    font-weight: 600;
    color: #374151;
    font-size: 0.88rem;
}

.verified-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: #166534;
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-radius: 20px;
    padding: 0.1rem 0.5rem;
}

/* ── Mehr laden ───────────────────────────────────────────────────────── */

.load-more-wrapper {
    text-align: center;
    padding: 2rem 0 1rem;
}

.load-more-btn {
    padding: 0.65rem 2.5rem;
    background: #62BC66;
    color: #fff;
    border: none;
    border-radius: 4px;
    font-family: 'Nunito', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.load-more-btn:hover {
    background: #4fa853;
}

.load-more-btn:focus-visible {
    outline: 2px solid #62BC66;
    outline-offset: 2px;
}

/* ── Leerer Zustand ───────────────────────────────────────────────────── */

.bewertungen-empty {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-size: 0.95rem;
}

.bewertungen-loading {
    text-align: center;
    padding: 3rem 1rem;
    color: #6b7280;
    font-size: 0.95rem;
}

/* ── Echtheit-Abschnitt ──────────────────────────────────────────────── */

.bewertungen-echtheit {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px solid #e5e7eb;
}

.bewertungen-echtheit h2 {
    font-family: 'Nunito', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: #333333;
    margin-bottom: 0.75rem;
}

.bewertungen-echtheit p {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.7;
    margin-bottom: 0.75rem;
}

/* ── Responsive ───────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .bewertungen-content {
        padding: 1.5rem 20px;
    }

    .bewertungen-summary {
        flex-direction: column;
        gap: 1.5rem;
        align-items: center;
    }

    .summary-score {
        min-width: auto;
    }

    .score-number {
        font-size: 2.8rem;
    }

    .summary-bars {
        width: 100%;
    }

    .bewertungen-controls {
        flex-direction: column;
    }

    .controls-left,
    .controls-right {
        width: 100%;
    }

    .bewertungen-sort {
        width: 100%;
    }

    .review-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
    }
}

@media (max-width: 480px) {
    .bewertungen-content {
        padding: 1rem 15px;
    }

    .score-number {
        font-size: 2.4rem;
    }

    .review-card {
        padding: 1.2rem 0;
    }

    .bar-row {
        gap: 0.4rem;
        font-size: 0.82rem;
    }
}
