/* Kennzahlen-Modul "Stats" (handlers/stats.py). Farben stehen hier explizit
   je Untergrund, damit die Komponente in farbigen Sektionen (lila Hero,
   graue Sektion) nicht die Textfarbe der Umgebung erbt. */

.stats p,
.stats ul {
  margin: 0;
}

/* ---- Leiste: weiße Karte mit 3 Zahlen ---- */
.stats--strip {
  background: var(--color-white, #fff);
  border: 1px solid var(--color-parchment, #dcd7d3);
  border-radius: var(--radius-lg, 16px);
  padding: 1.25rem 1.5rem;
  color: var(--color-charcoal, #292827);
  text-align: left;
  max-width: 960px;
  margin: 0 auto;
}
.stats-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem 1.5rem;
  padding: 0;
}
.stats-item {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  padding-left: 1rem;
  border-left: 3px solid var(--color-lavender, #af73e6);
}
.stats--strip .stats-num {
  font-size: 32px;
  font-weight: 540;
  line-height: 1.05;
  letter-spacing: -0.5px;
  color: var(--color-charcoal, #292827);
  white-space: nowrap;
}
.stats--strip .stats-over {
  font-size: 16px;
  font-weight: 460;
  letter-spacing: 0;
  color: var(--color-text-muted, #6b6966);
}
.stats--strip .stats-label {
  font-size: 15px;
  font-weight: 460;
  line-height: 1.35;
  color: var(--color-charcoal, #292827);
}
.stats--strip .stats-asof {
  margin-top: 1rem;
  font-size: 13px;
  color: var(--color-text-muted, #6b6966);
}

@media (max-width: 767.98px) {
  .stats--strip {
    padding: 1rem 1.125rem;
  }
  .stats-list {
    grid-template-columns: 1fr;
    gap: 0.875rem;
  }
  .stats-item {
    gap: 0.25rem;
  }
  .stats--strip .stats-num {
    font-size: 26px;
  }
}

/* ---- Eine Zeile ---- */
.stats--inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  font-size: 14px;
  font-weight: 460;
  line-height: 1.4;
}
.stats--inline .stats-text {
  font-weight: 540;
}
.stats--inline.stats--on-light,
.stats--inline.stats--on-light .stats-text {
  color: var(--color-charcoal, #292827);
}
.stats--inline.stats--on-light .stats-asof,
.stats--inline.stats--on-light .bi {
  color: var(--color-text-muted, #6b6966);
}
.stats--inline.stats--on-dark,
.stats--inline.stats--on-dark .stats-text,
.stats--inline.stats--on-dark .bi {
  color: rgba(255, 255, 255, 0.95);
}
.stats--inline.stats--on-dark .stats-asof {
  color: rgba(255, 255, 255, 0.8);
}

/* Abschnitt direkt nach dem Hero der App-Seite */
.stats-band {
  padding: 40px 0 0;
}

/* Produktseiten: Leiste zwischen Einleitung und Bewertungen */
.stats-reviews {
  margin: 0 0 2rem;
}

/* Startseite: Zeile unter dem App-Hinweis im lila Hero */
.hub-hero .stats--inline {
  margin-top: 0.75rem;
}

/* Trenner nur, wenn beides in eine Zeile passt; schmal steht der Stand darunter */
@media (min-width: 576px) {
  .stats--inline .stats-asof::before {
    content: "· ";
  }
}
@media (max-width: 575.98px) {
  .stats--inline .stats-asof {
    flex-basis: 100%;
    text-align: center;
  }
}
