/* ═══════════════════════════════════════════════════════════════════════════
   Component: Certifications v2 — 1px gap grid, unified orange icons
   ═══════════════════════════════════════════════════════════════════════════ */

.c-certifications {
  display: grid;
  /* minmax(0, 1fr) statt 1fr: sonst hebt die automatische Mindestbreite der
     Karten (langer, unteilbarer Titel + Innenabstand) die Spalten über den
     verfügbaren Platz und die Karten laufen aus dem Viewport. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background-color: var(--color-border-default);
  border: 1px solid var(--color-border-default);
}

.c-cert-card {
  padding: var(--space-xl);
  background: var(--color-surface-light);
  border-radius: var(--radius-sm);
  text-align: left;
  transition: background-color var(--motion-duration-fast) var(--motion-ease-out);
}

.c-cert-card:hover {
  background-color: var(--color-surface-muted);
}

/* ── Icon — Unified orange ──────────────────────────────────────────── */

.c-cert-card__icon {
  width: 32px;
  height: 32px;
  color: var(--color-orange-500);
  margin-bottom: var(--space-sm);
}

/* ── Content ────────────────────────────────────────────────────────── */

.c-cert-card__title {
  font-family: var(--font-family-heading);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  color: var(--color-text-primary);
  margin-bottom: var(--space-2xs);
  /* Lange Komposita ("Installateurverzeichnis") dürfen trennen bzw. umbrechen,
     damit die Karte auch bei 320px nicht breiter als ihre Spalte wird. */
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
}

.c-cert-card__text {
  font-size: var(--font-size-xs);
  color: var(--color-text-secondary);
  line-height: var(--line-height-relaxed);
  hyphens: auto;
  -webkit-hyphens: auto;
  overflow-wrap: anywhere;
}

/* ── Responsive ─────────────────────────────────────────────────────── */
/* Gemessen (Startseite + /betrieb/, 23.09.2026):
   - 4 Spalten bei 769px  -> Karte 175px, Textbreite nur 111px (Tablet-Band zu eng)
   - 2 Spalten bei 320px  -> Karte 135px, Textbreite nur 71px, Karte 288-324px hoch
   Deshalb: Tablet-Band auf 2 Spalten, Kleinphone auf 1 Spalte. */

@media (max-width: 1023px) {
  .c-certifications {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 480px) {
  .c-certifications {
    grid-template-columns: 1fr;
  }

  .c-cert-card {
    padding: var(--space-lg);
  }
}
