/**
 * s002 ("Bild mit Statistiken") — clean stats grid redesign.
 * Dark is this site's baseline; light-mode.css overrides the muted
 * description color and divider color for light mode.
 */
.s002-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  width: 100%;
  gap: 1.5rem;
}

.s002-stat {
  background-color: #1c1e26;
  border-radius: .5em;
  padding: 2.5rem 2rem;
}

.s002-stat__number {
  font-family: Spectral, serif;
  font-size: 3rem;
  line-height: 1;
  font-weight: 400;
  margin-bottom: 1rem;
}

.s002-stat__accent {
  width: 2rem;
  height: 2px;
  background-color: var(--secondary-color);
  margin-bottom: 1.25rem;
}

/* Number Odometer (stellae) mechanics — scroll-triggered digit roll.
   Ported as-is; .odometer-h1's own font sizing skipped since
   .s002-stat__number above already covers font/size/weight for this element. */
[data-odometer-element] {
  display: inline-flex;
  align-items: center;
  font-variant-numeric: tabular-nums;
}

[data-odometer-part="mask"],
[data-odometer-part="static"] {
  display: inline-block;
  overflow: clip;
  padding: 0.05em;
  margin: -0.05em;
  /* BUG FIX: static spans whose entire content is a single space character
     (e.g. the gap in "USD 10,2 Milliarden") were getting whitespace-collapsed
     by the browser since they're the sole content of an inline-block —
     visually disappearing and running the surrounding words together. */
  white-space: pre;
}

[data-odometer-part="roller"] {
  display: block;
  white-space: pre;
  text-align: center;
  will-change: transform;
}

.s002-stat__body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.s002-stat__title {
  font-family: Spectral, serif;
  font-size: 1.4rem;
  font-weight: 600;
  line-height: 1.3;
}

.s002-stat__desc {
  font-family: Karla, sans-serif;
  font-size: 1rem;
  line-height: 1.5;
  color: var(--w80);
}

@media screen and (max-width: 1023px) {
  .s002-stats-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}
