/* =========================================
   GOOGLE-BEWERTUNGEN – Screenshot-Kacheln
   ========================================= */

.google-reviews-section {
  background: var(--gray);
  padding: 2.4rem 1rem 2.8rem;
}

.google-reviews-inner {
  max-width: 1200px;
  margin: 0 auto;
}

/* Überschrift + Beschreibung */
.google-reviews-header {
  text-align: center;
  margin-bottom: 1.6rem;
}

.google-reviews-title {
  font-size: 1.4rem;
  color: var(--primary);
  margin-bottom: 0.3rem;
}

.google-reviews-subtitle {
  font-size: 0.95rem;
  color: #444;
  max-width: 620px;
  margin: 0 auto;
  line-height: 1.5;
}

/* Grid: 3 / 2 / 1 Spalten wie Leistungen (Desktop / Tablet) */
.google-reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 0.2rem;
}

/* Kachel – flach, Screenshot + Sterne */
.google-review-card {
  position: relative;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 9 / 4;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(112, 0, 70, 0.09); /* zarter --accent-Rand */
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

/* Hover: feiner Schatten in Akzentfarbe */
@media (hover:hover) {
  .google-review-card:hover {
    transform: translateY(-2px);
    box-shadow:
      0 8px 22px rgba(112, 0, 70, 0.25),  /* #700046 weich */
      0 0 0 1px var(--accent);
    border-color: rgba(112, 0, 70, 0.5);
    background-color: #fcf8fb;
  }
}

/* Screenshotbereich */
.google-review-image {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  background: #ffffff;
}

.google-review-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* kompletter Screenshot sichtbar */
  display: block;
}

/* Sterne direkt unter dem Bild */
.google-review-stars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 80%;
  margin: 0.35rem auto 0.5rem;
  padding: 0.1rem 0;
}

/* Einzelner Stern – deine Farbe #d38219 */
.google-review-star {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  fill: #d38219; /* --accentthird */
}

/* Footer-CTA unter dem Grid */
.google-reviews-footer {
  margin-top: 1.6rem;
  text-align: center;
}

.google-reviews-link {
  font-size: 0.95rem;
  color: var(--accentsecond);
  font-weight: 600;
  text-decoration: none;
}

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

/* =========================================
   Scroll-Hinweis (wird nur mobil gezeigt)
   ========================================= */

.google-reviews-scroll-hint {
  display: none; /* Standard: versteckt, wird auf Mobile angezeigt */
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: #666;
}

.google-reviews-scroll-hint-arrow {
  font-size: 0.9rem;
  opacity: 0.9;
}

.google-reviews-scroll-hint-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: rgba(112, 0, 70, 0.4); /* leicht in Akzentfarbe */
}

/* =========================================
   Responsive
   ========================================= */

/* Tablet: 2 Spalten */
@media (max-width: 1024px) {
  .google-reviews-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.9rem;
  }

  .google-review-card {
    aspect-ratio: 9 / 4;
  }

  .google-review-stars {
    width: 85%;
  }

  .google-review-star {
    width: 28px;
    height: 28px;
  }
}

/* Mobile: Slider mit Wischen statt Grid */
@media (max-width: 600px) {
  .google-reviews-section {
    padding: 2.1rem 0.8rem 2.3rem;
  }

  .google-reviews-title {
    font-size: 1.3rem;
  }

  /* 👉 Slider: horizontales Scrolling */
  .google-reviews-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    gap: 0.8rem;
    padding: 0.2rem 0.2rem 0.4rem;
  }

  .google-reviews-grid::-webkit-scrollbar {
    height: 4px;
  }

  .google-reviews-grid::-webkit-scrollbar-track {
    background: transparent;
  }

  .google-reviews-grid::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
    border-radius: 999px;
  }

  /* Jede Karte nimmt ~85% der Breite ein → klarer Slider-Effekt */
  .google-review-card {
    flex: 0 0 85%;
    max-width: 85%;
    scroll-snap-align: start;
    border-radius: 9px;
  }

  .google-review-stars {
    width: 88%;
    margin: 0.3rem auto 0.45rem;
  }

  .google-review-star {
    width: 26px;
    height: 26px;
  }

  /* Hinweis "Wischen" nur auf Mobile sichtbar */
  .google-reviews-scroll-hint {
    display: flex;
  }
}
