/* Google Business Reviews Carousel Styles */

/* Base Container */
.gbrc-container {
    display: flex;
    flex-wrap: nowrap; /* ERZWINGT, dass beides nebeneinander bleibt */
    gap: 20px;
    align-items: stretch;
    margin: 40px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: #333;
}

/* Left Sidebar: Summary */
.gbrc-summary {
    flex: 0 0 250px; /* Reduziert auf 250px, damit mehr Platz für Carousel bleibt */
    max-width: 250px;
    background: #fff;
    border-radius: 12px;
    padding: 30px 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    border: 1px solid #eaeaea;
}

.gbrc-summary-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}

.gbrc-logo {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0; /* Verhindert Verzerrung durch Flexbox */
}

.gbrc-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
    color: #1a1a1a;
}

.gbrc-rating-overview {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 15px;
}

.gbrc-rating-number {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 5px;
    color: #ffb400;
}

.gbrc-stars {
    display: flex;
    align-items: center;
    gap: 2px;
}

.gbrc-star-colored {
    color: #ffb400; /* Google Sterne Gelb */
}

.gbrc-star-empty {
    color: #d1d5db;
}

.gbrc-total-reviews {
    font-size: 0.9rem;
    color: #6b7280;
    margin-bottom: 25px;
}

.gbrc-total-reviews strong {
    color: #374151;
}

.gbrc-cta-btn {
    display: inline-block;
    background-color: #1a73e8; /* Google Blau */
    color: #ffffff !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.gbrc-cta-btn:hover {
    background-color: #1557b0;
    transform: translateY(-2px);
}

/* Right Content: Carousel */
.gbrc-carousel-wrapper {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
    max-width: 100%;
    min-width: 0; /* Hindert Flex-Kind am überlaufen */
}

.swiper.gbrc-swiper {
    width: 100%;
    height: 100%;
    padding: 20px 5px; /* Platz für Box-Shadow der Cards */
    overflow: hidden;
}

.swiper-slide.gbrc-slide {
    height: auto;
}

.gbrc-review-card {
    background: #fff;
    border-radius: 12px;
    padding: 25px;
    height: auto; /* Erlaubt Box, mit Inhalten mitzuwachsen, anstelle von Verzerrung bei height 100% */
    min-height: 100%;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid #f3f4f6;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gbrc-review-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.1);
}

.gbrc-review-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    position: relative;
}

.gbrc-reviewer-photo {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    flex-shrink: 0; /* Verhindert Verzerrung durch Flexbox */
}

.gbrc-reviewer-info {
    display: flex;
    flex-direction: column;
}

.gbrc-reviewer-name {
    font-weight: 600;
    font-size: 1rem;
    color: #1f2937;
}

.gbrc-review-time {
    font-size: 0.8rem;
    color: #9ca3af;
}

.gbrc-small-logo {
    position: absolute;
    top: 0;
    right: 0;
    width: 20px;
    height: 20px;
}

.gbrc-review-stars {
    margin-bottom: 12px;
}

.gbrc-review-text {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #4b5563;
    /* Max. 5 Zeilen via webkit line-clamp */
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

/* Swiper Navigation Anpassungen */
.gbrc-nav-prev,
.gbrc-nav-next {
    color: #000;
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transform: translateY(-5px);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Verhindere, dass Swiper von sich aus doppelte Pfeile über ':after' einfügt */
.gbrc-nav-prev:after,
.gbrc-nav-next:after {
    display: none !important;
    content: none !important;
}

.gbrc-nav-prev svg,
.gbrc-nav-next svg {
    stroke: #000;
}

.gbrc-nav-prev {
    left: -20px;
}

.gbrc-nav-next {
    right: -20px;
}

/* Responsiveness */
@media screen and (max-width: 767px) {
    .gbrc-container {
        flex-direction: column;
    }
    .gbrc-summary {
        flex: 0 0 auto;
        max-width: 400px; /* Zentriert es auf dem Handy etwas schöner */
        margin: 0 auto;
    }
    .gbrc-nav-prev {
        left: -5px;
    }
    .gbrc-nav-next {
        right: -5px;
    }
}
