/* JURiAL Bewertungs-Badge — Ersatz fuer Elfsight Google Reviews
   Nachbau des Layouts "Card Badge" (Bewertungszusammenfassung, Light Theme) */

.jurial-badge {
  /* Farben/Masse aus dem Original-Widget */
  --jbd-bg: #f8f8f8;
  --jbd-stroke: transparent;
  --jbd-text: #111111;
  --jbd-muted: rgba(17, 17, 17, 0.5);
  --jbd-star: #fcbf02;
  --jbd-star-empty: rgba(17, 17, 17, 0.2);
  --jbd-radius: 8px;

  display: flex;
  justify-content: center;
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
}

.jurial-badge *,
.jurial-badge *::before,
.jurial-badge *::after {
  box-sizing: border-box;
}

/* ---- Karte ---- */

.jbd-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: var(--jbd-bg);
  border: 1px solid var(--jbd-stroke);
  border-radius: var(--jbd-radius);
  padding: 14px 20px 16px;
  text-decoration: none;
  cursor: pointer;
}

div.jbd-card {
  cursor: default;
}

.jbd-glogo {
  display: block;
  width: 28px;
  height: 28px;
}

.jbd-glogo svg {
  width: 28px;
  height: 28px;
  display: block;
}

/* ---- Wertung ---- */

.jbd-rating {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.jbd-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.jbd-value {
  color: var(--jbd-text);
  font-size: 22px;
  font-weight: 700;
  line-height: 28px;
}

.jbd-stars {
  display: flex;
}

.jbd-star {
  position: relative;
  display: block;
  width: 22px;
  height: 22px;
}

.jbd-star svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: var(--jbd-star-empty);
}

/* Teilfuellung: Overlay-Breite in % = Anteil des Sterns */
.jbd-star-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  overflow: hidden;
}

.jbd-star-fill svg {
  fill: var(--jbd-star);
}

.jbd-count {
  color: var(--jbd-muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
  white-space: nowrap;
}

.jbd-card:hover .jbd-count {
  text-decoration: underline;
}
