/* Pro Tier — Statische Logo-Wand (.logo-wall)
   ------------------------------------------------------------
   Für Sponsoren-/Partner-Grids im CMS-Fließtext (zwei Kategorien:
   Bande + Partner). Markup: <ul class="logo-wall"><li><img …></li>…</ul>
   — die class-Attribute überleben nur, wenn der CMS-Inhalt im
   CKEditor-Quellcode-Modus eingefügt wird. */

.logo-wall {
  list-style: none;
  margin: var(--space-6) 0;
  padding: var(--space-2);
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr));
  gap: var(--space-5) var(--space-6);
  align-items: center;
  background-color: var(--color-bg-alt);
}

.logo-wall > li {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.logo-wall img {
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 4.5rem;          /* einheitliche optische Höhe, unabhängig vom Seitenverhältnis */
  object-fit: contain;
  /* dezent vereinheitlichen: leicht entsättigt, bei Hover volle Farbe */
  filter: grayscale(100%);
  opacity: 0.85;
  transition: filter var(--transition), opacity var(--transition);
  border-radius: var(--radius-lg);
}

.logo-wall img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* Schmale Smartphones: kleinere Kacheln, damit 2 Spalten passen. */
@media (max-width: 30rem) {
  .logo-wall {
    grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
    gap: var(--space-4);
  }
  .logo-wall img { max-height: 3.5rem; }
}
