/**
 * Produktgruppen – Logo-Grid (dc-c Theme)
 * Eigenständig: keine externen CSS-Variablen.
 * Theme-Root ist 10px (skeleton.css) → feste px-Werte statt rem.
 * Raster an skeleton.css .container: max-width 1200px, padding 0 20px, ab 550px width 90%.
 * Hintergrund: images/verwaltung-big.png
 */

.logo-wrap {
  position: relative;
  isolation: isolate;
  min-height: clamp(380px, 46vh, 720px);
  padding: 0;
  background-color: #e8e8e8;
  background-image: url("../images/verwaltung-big.png");
  background-repeat: no-repeat;
  background-position: center center;
  background-size: cover;
  overflow: hidden;
}

.logo-wrap__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  max-width: 1200px;
  min-height: inherit;
  margin: 0 auto;
  padding: 20px 20px 56px;
  box-sizing: border-box;
}

@media (min-width: 550px) {
  .logo-wrap__inner {
    width: 90%;
  }
}

/* Überschrift oben links, bündig mit Logo-Spalte */
.logo-wrap__title {
  flex: 0 0 auto;
  align-self: flex-start;
  margin: 0 0 12px;
  padding: 0;
  font-size: clamp(15px, 2.2vw, 18px);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  color: #4c4c4c;
}

/* Theme gibt jeder h2 eine Deko-Linie (static.css h2::after) — hier unterdrücken */
.logo-wrap__title::after {
  content: none;
}

/* leichte Aufhellung, damit die Logos gut lesbar bleiben */
.logo-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: rgba(255, 255, 255, 0.72);
  pointer-events: none;
}

.logo-grid {
  position: relative;
  z-index: 1;
  flex: 1 1 auto;
  display: grid;
  align-content: center;
  gap: 16px;
  --logo-label-min-h: 2.5em;
  width: 100%;
  margin: 0;
  list-style: none;
  padding: 0;
  grid-template-columns: repeat(2, 1fr);
}

.logo-grid li {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  min-height: 72px;
  padding: 12px 14px;
}

.logo-grid__item--labeled {
  justify-content: flex-end;
}

.logo-grid__label {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 100%;
  margin: 0 0 12px;
  font-size: clamp(11px, 1.6vw, 13px);
  font-weight: 600;
  line-height: 1.25;
  min-height: var(--logo-label-min-h);
  text-align: center;
  white-space: nowrap;
  color: #4c4c4c;
}

.logo-grid li:not(.logo-grid__item--labeled)::before {
  content: "";
  display: block;
  height: var(--logo-label-min-h);
  margin: 0 0 12px;
}

.logo-grid__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.logo-grid__link:hover,
.logo-grid__link:focus-visible {
  transform: translateY(-2px);
  opacity: 0.85;
}

.logo-grid__link:focus-visible {
  outline: 2px solid #4c4c4c;
  outline-offset: 4px;
}

.logo-grid img {
  width: auto;
  max-width: 100%;
  max-height: 112px;
  height: auto;
  display: block;
  object-fit: contain;
}

@media (min-width: 768px) and (max-width: 1023px) {
  .logo-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .logo-grid img {
    max-height: 120px;
  }
}

@media (min-width: 1024px) {
  .logo-grid {
    grid-template-columns: repeat(8, 1fr);
  }

  /* schmaleres H-Padding → Zelle breit genug, dass alle Logos höhen-begrenzt (96px) sind → exakt gleich groß */
  .logo-grid li {
    padding: 8px 4px;
  }

  .logo-grid img {
    max-height: 96px;
  }

  /*
   * Trennlinie zwischen Produktgruppe 1 (Umreifungsband) und 2 (Faserprodukte)
   * nur Desktop: eine Zeile, Logo 1 | Logo 2 …
   */
  .logo-grid li:nth-child(2) {
    border-left: 2px solid rgba(55, 55, 55, 0.45);
    box-shadow: inset 2px 0 0 rgba(255, 255, 255, 0.35);
  }
}
