/* EisBerger Google-Bewertungen – Farben laut CD-Manual 2026 */
.eb-gb {
  --eb-weinrot: #6c1534;
  --eb-gold: #d2ad46;
  --eb-beige: #a39261;
  --eb-beige-15: rgba(163, 146, 97, .15);
  --eb-grau: #706f6f;
  font-family: inherit;
  color: var(--eb-grau);
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 16px 48px;
  box-sizing: border-box;
}
.eb-gb *, .eb-gb *::before, .eb-gb *::after { box-sizing: border-box; }

.eb-gb__head { text-align: center; margin-bottom: 32px; }
.eb-gb__title {
  color: var(--eb-weinrot);
  margin: 0 0 8px;
  line-height: 1.15;
}
.eb-gb__subtitle { margin: 0 0 18px; font-size: 1rem; }

.eb-gb__summary {
  display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center;
  padding: 10px 18px;
  border: 1px solid var(--eb-beige);
  border-radius: 999px;
  text-decoration: none !important;
  color: var(--eb-grau);
  transition: background-color .2s ease;
}
.eb-gb__summary:hover { background: var(--eb-beige-15); }
.eb-gb__score { font-size: 1.5rem; font-weight: 700; color: var(--eb-weinrot); line-height: 1; }
.eb-gb__count { font-size: .9rem; }

/* Sterne: graue Basis, goldene Füllung (Teilsterne für Durchschnitt möglich) */
.eb-gb__stars {
  position: relative; display: inline-block;
  font-size: 1.1rem; line-height: 1; letter-spacing: 2px;
  color: #d9d4c6;
}
.eb-gb__stars::before { content: "★★★★★"; }
.eb-gb__stars-fill {
  position: absolute; inset: 0 auto 0 0; overflow: hidden; white-space: nowrap;
  color: var(--eb-gold);
}
.eb-gb__stars-fill::before { content: "★★★★★"; }

/* Karten-Leiste: wischbar auf Mobil, Raster auf großen Bildschirmen */
.eb-gb__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(280px, 1fr);
  gap: 20px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 12px;
  scrollbar-width: thin;
  scrollbar-color: var(--eb-beige) transparent;
}
.eb-gb__track:focus-visible { outline: 2px solid var(--eb-weinrot); outline-offset: 4px; }

.eb-gb__card {
  scroll-snap-align: start;
  display: flex; flex-direction: column; gap: 14px;
  background: #fff;
  border: 1px solid var(--eb-beige);
  border-top: 3px solid var(--eb-weinrot);
  padding: 24px 22px 20px;
  min-height: 100%;
}
.eb-gb__text {
  margin: 0; padding: 0; border: 0;
  flex: 1;
  font-style: normal;
  font-size: .98rem;
  line-height: 1.6;
  color: var(--eb-grau);
  quotes: none;
}
.eb-gb__text::before, .eb-gb__text::after { content: none; }

.eb-gb__author { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--eb-beige-15); }
.eb-gb__avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; display: block; }
.eb-gb__avatar--initial {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--eb-weinrot); color: #fff; font-weight: 700; font-size: 1.1rem;
}
.eb-gb__meta { display: flex; flex-direction: column; min-width: 0; }
.eb-gb__name { color: var(--eb-weinrot) !important; font-weight: 700; text-decoration: none !important; }
.eb-gb__name:hover { text-decoration: underline !important; }
.eb-gb__date { font-size: .82rem; }
.eb-gb__date a { color: var(--eb-grau); }

.eb-gb__nav { display: flex; justify-content: center; gap: 10px; margin-top: 8px; }
.eb-gb__nav[hidden] { display: none; }
.eb-gb__btn {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--eb-weinrot); background: #fff; color: var(--eb-weinrot);
  font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0;
}
.eb-gb__btn:hover, .eb-gb__btn:focus-visible { background: var(--eb-weinrot); color: #fff; }

.eb-gb__foot { display: flex; justify-content: center; align-items: center; gap: 12px 24px; flex-wrap: wrap; margin-top: 28px; }
.eb-gb__cta {
  display: inline-block; padding: 12px 26px;
  background: var(--eb-weinrot); color: #fff !important;
  text-decoration: none !important; font-weight: 700; letter-spacing: .02em;
  border: 1px solid var(--eb-weinrot);
  transition: background-color .2s ease, color .2s ease;
}
.eb-gb__cta:hover { background: #fff; color: var(--eb-weinrot) !important; }
.eb-gb__all { color: var(--eb-weinrot) !important; font-weight: 600; }

.eb-gb__notice {
  margin: 28px auto 0; max-width: 760px;
  font-size: .75rem; line-height: 1.5; text-align: center; color: var(--eb-grau);
}

@media (min-width: 1000px) {
  /* bis zu 3 Karten nebeneinander, Rest per Pfeil/Wischen */
  .eb-gb__track { grid-auto-columns: calc((100% - 40px) / 3); }
}
@media (max-width: 600px) {
  .eb-gb { padding: 40px 16px 36px; }
  .eb-gb__track { grid-auto-columns: 86%; gap: 14px; }
  .eb-gb__card { padding: 20px 18px 18px; }
  .eb-gb__summary { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .eb-gb__track { scroll-behavior: auto; }
}
