/* FEAT-7: Statistik & Berichte — seitenspezifische Stile
   (Standing-Rule-2-Muster: eigene Datei statt index.css). */

.statistik-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 1rem;
}

@media (min-width: 900px) {
  .statistik-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.statistik-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 0.6rem;
  padding: 1rem;
}

.statistik-card h3 {
  margin: 0 0 0.25rem;
  font-size: 1rem;
}

.statistik-card__hint {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* ── Horizontale Balken (Farbschlag-Verteilung) ── */

.hbar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.hbar {
  display: grid;
  grid-template-columns: minmax(6rem, 10rem) 1fr 2.25rem;
  align-items: center;
  gap: 0.6rem;
}

.hbar__label {
  font-size: 0.82rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hbar__track {
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 1rem;
  height: 0.85rem;
  overflow: hidden;
}

.hbar__fill {
  display: block;
  height: 100%;
  border-radius: 1rem;
  background: var(--color-accent);
  min-width: 2px;
}

.hbar__count {
  font-size: 0.82rem;
  font-weight: 600;
  text-align: right;
}
