/* Section: Google Reviews — horizontal scroll strip */

.google-reviews {
  overflow: hidden;
  contain: inline-size;
  padding-inline: var(--padding-page);
  margin-block-end: var(--gap-block);
}

/* Legal-Hinweis "Rezensionen werden nicht überprüft" + Info-Tooltip */
.google-reviews .reviews-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  margin-block-start: var(--gap-block);
  font-size: var(--text-sm);
  color: var(--color-text-muted);
}

/* Review container — horizontal scroll strip */
.google-reviews #ginject {
  display: flex;
  justify-content: center;
  gap: var(--gap-block);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-block: var(--space-2);
}

.google-reviews #ginject::-webkit-scrollbar {
  display: none;
}

/* Individual review cards */
.google-reviews #ginject > div {
  display: flex;
  flex-direction: column;
  scroll-snap-align: start;
  flex: 0 0 80vw;
  max-width: 22rem;
  height: 18rem;
  border: 0.0625rem solid var(--color-border);
  border-radius: var(--radius);
  padding: var(--padding-card);
  background: var(--color-bg);
}

@media (min-width: 45rem) {
  .google-reviews #ginject > div {
    flex: 0 0 40vw;
  }
}

@media (min-width: 79.5rem) {
  .google-reviews #ginject > div {
    flex: 0 0 22rem;
  }
}

/* User header — avatar left, name + date right */
.google-reviews .user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-block-end: var(--space-3);
}

.google-reviews .profil img {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  object-fit: cover;
}

.google-reviews .autor {
  font-size: var(--text-sm);
  font-weight: 600;
}

.google-reviews .datum {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Star rating — gold fill animation on scroll */
.google-reviews .sterne span,
.google-reviews [class*="sterne"] span {
  display: inline-block;
  color: #ddd;
  transition: color 400ms ease;
}

.google-reviews #ginject > div.in-view .sterne span,
.google-reviews #ginject > div.in-view [class*="sterne"] span {
  color: #f5a623;
}

.google-reviews #ginject > div.in-view .sterne span:nth-child(1),
.google-reviews #ginject > div.in-view [class*="sterne"] span:nth-child(1) { transition-delay: 0ms; }
.google-reviews #ginject > div.in-view .sterne span:nth-child(2),
.google-reviews #ginject > div.in-view [class*="sterne"] span:nth-child(2) { transition-delay: 100ms; }
.google-reviews #ginject > div.in-view .sterne span:nth-child(3),
.google-reviews #ginject > div.in-view [class*="sterne"] span:nth-child(3) { transition-delay: 200ms; }
.google-reviews #ginject > div.in-view .sterne span:nth-child(4),
.google-reviews #ginject > div.in-view [class*="sterne"] span:nth-child(4) { transition-delay: 300ms; }
.google-reviews #ginject > div.in-view .sterne span:nth-child(5),
.google-reviews #ginject > div.in-view [class*="sterne"] span:nth-child(5) { transition-delay: 400ms; }


/* Review text */
.google-reviews .bewertung {
  overflow-y: auto;
  padding-right: var(--space-2);
  max-height: 16rem;
  margin-block-end: var(--space-3);
}

.google-reviews .bewertung p {
  font-size: var(--text-sm);
  line-height: var(--leading);
  color: var(--color-text-muted);
  margin: 0;
}

/* "Bewertungen auf Google ansehen" link */
.google-reviews .link {
  margin-block-start: auto;
}

.google-reviews .link a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}

.google-reviews .link a:hover {
  color: var(--color-primary);
}

/* CTA button — centered below cards */
.google-reviews > p {
  text-align: center;
  margin-block-start: var(--gap-block);
  margin-block-end: var(--gap-block);
}

/* Mobile only: 5-Sterne-SVG im CTA-Button ausblenden (Platz/Optik). */
@media (max-width: 44.999rem) {
  .google-reviews .btn svg {
    display: none;
  }
}
