/*
 * components/kommuner.css
 * Kommune-logoer: forsiden, Løsninger-siden og blokken digirehab/kommune-logoer.
 * Flyttet uændret fra pages/loesninger.css. Logoerne tegnes af assets/js/kommune-logos.js.
 */

/* ============================================================
   KOMMUNER LOGO GRID
   ============================================================ */

.kommuner-section {
  background: var(--color-bg-inactive);
  padding: var(--space-3xl) var(--space-xl);
}

.kommuner-section__inner {
  max-width: var(--max-width-content);
  margin: 0 auto;
}

.kommuner-section__text {
  text-align: left;
  max-width: 680px;
  margin: 0 0 var(--space-xl);
}

.kommuner-section__text h2 {
  font-size: var(--font-size-h2);
  font-weight: 600;
  color: var(--color-text-primary);
  margin-bottom: var(--space-sm);
  line-height: 1.15;
}

.kommuner-section__text p {
  font-size: var(--font-size-body);
  color: var(--color-text-secondary);
  line-height: 1.6;
}

.kommuner-section__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: var(--space-md);
}

.kommuner-logo-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-md);
  min-height: 120px;
  transition: opacity 2400ms ease;
}

.kommuner-logo-cell.is-fading {
  opacity: 0;
}

.kommuner-logo-cell img {
  max-width: 240px;
  max-height: 112px;
  width: 100%;
  height: auto;
  object-fit: contain;
  filter: grayscale(1);
}

/* Matcher base.css heading-skala — klassen overstyrer ellers element-reglen */
@media (max-width: 1024px) {
  .kommuner-section__text h2 {
    font-size: 32px;
  }
}

@media (max-width: 899px) {
  .kommuner-section__grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media (max-width: 599px) {
  .kommuner-section__grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .kommuner-section__text h2 {
    font-size: var(--font-size-h3);
  }
}
