/* ==========================================================================
   KOBIL — Company: Numbers (Figma 16578:18547, Instanz der Komponente
   "numbers" 16446:19225 — gleiche Komponente wie auf /products/identity/).
   Weiße Flush-Fläche (581px, keine Rundung — Mitte des Company-Stapels) mit
   vier zentrierten Kennzahlen-Spalten (je 200px), getrennt durch
   0.5px-Hairlines (340px hoch). Mobile (numbers/mobile 16578:18762):
   2x2-Raster mit horizontaler Hairline (277px).
   ========================================================================== */

.sec-company-numbers {
  height: 581px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.sec-company-numbers .cnum-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 120px; /* 60px zu beiden Seiten der Trennlinie */
  transform: translateY(-1px); /* Figma: Reihe sitzt 1px über der Sektionsmitte */
}

.sec-company-numbers .cnum-stat {
  position: relative;
  width: 200px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: center;
}

/* Vertikale Hairline mittig zwischen den Spalten */
.sec-company-numbers .cnum-stat:not(:first-child)::before {
  content: "";
  position: absolute;
  left: -60px;
  top: 50%;
  transform: translateY(-50%);
  height: 340px;
  width: 0;
  /* Figma: 0.5px-Stroke --navy-60 — 1px bei 50% Alpha hat auf 1x- wie
     2x-Displays dieselbe Deckung (Chrome rundet 0.5px-Borders auf 1px auf) */
  border-left: 1px solid color-mix(in srgb, var(--navy-60) 50%, transparent);
}

.sec-company-numbers .cnum-stat__value {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 50px;
  font-weight: 700;
  line-height: 62px;
  color: var(--navy);
}

.sec-company-numbers .cnum-stat__label {
  margin: 0;
  min-height: 52px; /* 2 Zeilen — hält alle Zahlen auf gleicher Höhe */
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 400;
  line-height: 26px;
  color: var(--navy-70);
}

/* Horizontaler Mobile-Trenner — oberhalb 768px ausgeblendet */
.sec-company-numbers .cnum-divider {
  display: none;
}

/* Mobile-Zeilenumbrüche (Figma numbers/mobile) — nur ≤768px sichtbar */
.sec-company-numbers .cnum-br-m {
  display: none;
}

/* ---- Responsive --------------------------------------------------------- */

/* Zwischen 1024 und ~1230px: Reihe schmaler, Linien näher an den Spalten */
@media (max-width: 1260px) {
  .sec-company-numbers .cnum-row {
    gap: 64px;
  }

  .sec-company-numbers .cnum-stat:not(:first-child)::before {
    left: -32px;
  }
}

/* 1025–1120px: Reihe passt sonst nicht in den Container (vw − 80px) */
@media (max-width: 1120px) {
  .sec-company-numbers .cnum-row {
    gap: 40px;
  }

  .sec-company-numbers .cnum-stat:not(:first-child)::before {
    left: -20px;
  }
}

@media (max-width: 1024px) {
  .sec-company-numbers {
    height: auto;
    padding: 72px 40px;
  }

  .sec-company-numbers .cnum-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start; /* Zahlen einer Reihe auf gleicher Höhe */
    gap: 56px 40px;
    width: 100%;
    max-width: 640px;
    transform: none;
  }

  .sec-company-numbers .cnum-stat {
    width: auto;
  }

  .sec-company-numbers .cnum-stat:not(:first-child)::before {
    display: none;
  }

  .sec-company-numbers .cnum-stat__label {
    min-height: 0;
  }
}

/* ---- Mobile (Figma numbers/mobile 16578:18762: 60/16-Padding, 2x2 +
   horizontale Hairline, H1 mobile 32/40, Body M 16/23) ---- */

@media (max-width: 768px) {
  .sec-company-numbers {
    padding: 60px 16px;
  }

  .sec-company-numbers .cnum-row {
    max-width: 345px;
    gap: 32px 4px;
  }

  .sec-company-numbers .cnum-stat {
    gap: 6px;
  }

  .sec-company-numbers .cnum-stat__value {
    font-size: 32px;
    line-height: 40px;
  }

  .sec-company-numbers .cnum-stat__label {
    font-size: 16px;
    line-height: 23px;
  }

  /* Hairline zwischen den beiden Kennzahlen-Reihen (Figma: 277px, 0.5px
     System/%50 #D5D9E3 — kein Token; 1px bei 50% Alpha, s.o.) */
  .sec-company-numbers .cnum-divider {
    display: block;
    grid-column: 1 / -1;
    justify-self: center;
    width: 277px;
    max-width: 100%;
    height: 0;
    border-top: 1px solid color-mix(in srgb, #d5d9e3 50%, transparent);
  }

  .sec-company-numbers .cnum-br-m {
    display: inline;
  }
}
