/* Kennzahlen (handlers/stats.py). Design "Ruhe": Tokens aus style.css.
   Farben bewusst explizit und mit Kontext-Selektoren gesetzt: .cta-section p
   ist weiß, eine helle AppCard darin darf das nicht erben (Fehler vom 29.10.). */

/* --- Zeile "über 30 Länder" --- */
body p.stats-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35rem;
  margin: 0;
  font-size: 14px;
  line-height: 1.45;
  color: var(--color-text-muted);
}
body .stats-inline strong {
  font-weight: 600;
  color: var(--color-text);
}
body .stats-inline .bi {
  color: var(--color-primary);
}
body .stats-inline .stats-as-of {
  white-space: nowrap;
  color: var(--color-text-muted);
}

/* Helle Karte (auch in der Salbei-CTA-Sektion) */
.app-card:not(.app-card--end) .stats-inline {
  margin-top: 0.25rem;
  font-size: 13px;
  color: var(--color-text-muted);
}
.app-card:not(.app-card--end) .stats-inline strong {
  color: var(--color-text);
}
.app-card:not(.app-card--end) .stats-inline .bi {
  color: var(--color-primary);
}
.app-card:not(.app-card--end) .stats-inline .stats-as-of {
  color: var(--color-text-muted);
}

/* In der Karte steht der Stand in einer eigenen Zeile, bündig mit dem Text */
.app-card .stats-inline {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.35rem;
}
.app-card .stats-inline .stats-as-of {
  grid-column: 2;
}
.app-card .stats-inline .stats-sep {
  display: none;
}

/* Salbei-Fläche: End-Karte */
.app-card.app-card--end .stats-inline {
  margin-top: 0.25rem;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.88);
}
.app-card.app-card--end .stats-inline strong,
.app-card.app-card--end .stats-inline .bi,
.app-card.app-card--end .stats-inline .stats-as-of {
  color: var(--color-white);
}

/* --- Kennzahlen-Leiste (App-Seite, unter dem Hero-Inhalt) --- */
.stats-strip {
  margin-top: 2.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--color-card);
  border-radius: var(--radius-lg);
  color: var(--color-text);
  text-align: left;
}
.stats-strip .stats-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem 2rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.stats-strip .stats-item {
  display: flex;
  flex-direction: column;
  gap: 0.125rem;
  min-width: 0;
}
.stats-strip .stats-pre {
  font-size: 14px;
  color: var(--color-text-muted);
}
.stats-strip .stats-num {
  font-family: var(--font-serif);
  font-size: clamp(34px, 3.4vw, 44px);
  font-weight: 350;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--color-primary-deep);
  font-variant-numeric: lining-nums tabular-nums;
}
.stats-strip .stats-label {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--color-text);
}
.stats-strip p.stats-foot {
  margin: 1.25rem 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--color-text-muted);
}
.stats-strip p.stats-foot strong {
  font-weight: 600;
  color: var(--color-text);
}

@media (max-width: 767.98px) {
  .stats-strip {
    margin-top: 2rem;
    padding: 1.25rem;
  }
  .stats-strip .stats-list {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .stats-strip .stats-item {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 0.875rem;
    align-items: center;
  }
  .stats-strip .stats-num {
    grid-row: 1 / span 2;
    grid-column: 1;
    font-size: 34px;
    min-width: 4.2ch;
  }
  .stats-strip .stats-pre,
  .stats-strip .stats-label {
    grid-column: 2;
  }
}
