/* --- WRAPPER ---------------------------------------------------- */

.psgr-wrapper {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px;
    margin: 20px 0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.05);
}


/* --- HEADER ------------------------------------------------------ */

.psgr-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.psgr-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 6px;
}

#left-column .psgr-title {
    font-size: 1.2rem !important;
    white-space: nowrap !important;
}

.psgr-subtitle {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.3;
}

.psgr-link-google a {
    font-size: 0.85rem;
    font-weight: 500;
    color: #4285f4;
    text-decoration: none;
}

.psgr-link-google a:hover {
    text-decoration: underline;
}


/* --- RATING BLOCK (4.8 + Sterne + Anzahl) ----------------------- */

.rating-block {
    display: flex;
    flex-direction: column;
    background: #f7f8fb;
    padding: 10px 14px;
    border-radius: 14px;
}

/* Zeile: 4.8 + Sterne */
.rating-top-line {
    display: flex;
    align-items: center;
    gap: 6px;
}

/* 4.8 kleiner */
.psgr-rating-value {
    font-size: 0.9rem !important;
    line-height: 1 !important;
}

/* Sterne korrekt in einer Linie */
.psgr-stars-inline {
    display: inline-flex;
    gap: 3px;
    margin-bottom: 0 !important;
}

/* Anzahl Bewertungen */
.psgr-total-reviews {
    font-size: 0.9rem;
    color: #777;
}


/* --- REVIEW CARDS ---------------------------------------------- */

.psgr-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    gap: 18px;
}

.psgr-carousel {
    display: flex;
    overflow-x: auto;
    gap: 18px;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
}

.psgr-carousel .psgr-review {
    min-width: 280px;
    max-width: 340px;
    scroll-snap-align: start;
}

.psgr-review {
    border-radius: 14px;
    border: 1px solid #eceff3;
    background: #fff;
    padding: 18px;
    box-shadow: 0 5px 16px rgba(0,0,0,0.04);
}

.psgr-review-header {
    display: flex;
    gap: 12px;
    margin-bottom: 8px;
}

.psgr-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    overflow: hidden;
    background: #ddd;
    flex-shrink: 0;
}

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

.psgr-author-name {
    font-size: 0.95rem;
    font-weight: 600;
}

.psgr-review-date {
    font-size: 0.8rem;
    color: #888;
}

.psgr-stars {
    display: inline-flex;
    gap: 2px;
}

.psgr-star svg {
    width: 18px;
    height: 18px;
}

.psgr-review-text {
    margin-top: 8px;
    white-space: pre-line;
    font-size: 0.9rem;
    color: #333;
    line-height: 1.45;
}


/* --- ERROR BOX --------------------------------------------------- */

.psgr-error {
    padding: 14px 18px;
    border-radius: 8px;
    background: #fff4e5;
    border: 1px solid #f9d7a7;
    color: #8a6d3b;
}


/* --- RESPONSIVE -------------------------------------------------- */

@media (max-width: 991px) {
    .psgr-reviews-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .rating-block {
        width: 100%;
        align-items: flex-start;
    }
}
