/* Container für das gesamte Rating */
.gbr-rating-wrapper {
  display: block;
  margin: 10px 0;
  width: 100%;
  font-family: inherit;
}

/* Der Link als klickbare Einheit */
.gbr-rating-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
  transition:
    opacity 0.2s ease-in-out,
    outline-offset 0.2s ease-in-out;
}

/* Fokus-Stile für Tastaturnavigation */
.gbr-rating-link:focus {
  outline: none; /* Entfernt den Standard-Browser-Ring */
}

.gbr-rating-link:focus-visible {
  outline: 2px solid #0073aa; /* WordPress Blau oder Gold passend zu den Sternen */
  outline-offset: 6px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.3);
}

.gbr-rating-link:hover {
  opacity: 0.8;
}

/* Sterne-Container */
.gbr-stars {
  display: flex;
  margin-right: 10px;
}

/* Einzelner Stern */
.gbr-star {
  margin-right: 2px;
  display: block;
}

/* Text-Teil (4.8/5 bei...) */
.gbr-text {
  font-size: 0.95rem;
  line-height: 1.2;
}

.gbr-text strong {
  font-size: 1.1rem;
  color: inherit;
}

/* Responsive Anpassung für sehr kleine Bildschirme */
@media (max-width: 480px) {
  .gbr-rating-link {
    flex-direction: column;
    /* Nutzt die Variable vom Inline-Style oder Fallback flex-start */
    align-items: var(--gbr-mobile-align, flex-start);
  }
  .gbr-stars {
    margin-bottom: 5px;
    margin-right: 0; /* Abstand entfernen für saubere Zentrierung */
  }
}
