/* Händler-Logoband (Marquee) – reine CSS-Animation, Pause bei Hover. */
.mm_hl { margin: 24px 0; }

/* Kopf: zwei Trennlinien + Zeile mit Titel links, Button rechts. */
.mm_hl_sep { height: 1px; background: rgba(13, 21, 29, .12); }
.mm_hl_sep_bottom { margin-bottom: 6px; }
.mm_hl_head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding: 16px 0;
}
.mm_hl_title {
  color: #16202e;
  font-size: clamp(1.5rem, 2.5vw, 2.2rem);
  font-weight: 800;
  letter-spacing: -.02em;
  margin: 0;
}
.mm_hl_btn {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #e85d26;
  color: #fff;
  text-decoration: none;
  font-weight: 500;
  font-size: 14px;
  padding: 10px 18px;
  border: 1px solid #e85d26;
  border-radius: 10px;
  transition: background .15s ease, border-color .15s ease;
}
.mm_hl_btn:hover { background: #c04b1e; border-color: #c04b1e; color: #fff; }
.mm_hl_btn:focus-visible { outline: 2px solid #e85d26; outline-offset: 2px; }

/* Laufband. Läuft über die GESAMTE Seitenbreite (Full-Bleed) – Kopfzeile
   (Titel/Button/Trennlinien) bleibt bewusst im zentrierten Raster.
   Vertikales Padding schafft Platz, damit der Hover-Effekt der Kacheln
   (translateY + Schatten + Akzent-Rahmen) nicht vom overflow:hidden
   oben/unten abgeschnitten wird. */
.mm_hl_mask {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  padding: 12px 0 26px;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
          mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}
.mm_hl_track {
  display: flex;
  align-items: center;
  gap: 28px;
  width: max-content;
  animation: mm_hl_scroll 55s linear infinite;
}
.mm_hl_mask:hover .mm_hl_track { animation-play-state: paused; }
.mm_hl_item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 190px;
  height: 80px;
  padding: 12px 22px;
  background: #fff;                         /* Logos sind für weißen Grund gemacht */
  border: 1px solid rgba(13, 21, 29, .10);
  border-radius: 12px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.mm_hl_item[href]:hover {
  border-color: #e85d26;
  box-shadow: 0 6px 18px rgba(232, 93, 38, .16);
  transform: translateY(-2px);
}
.mm_hl_item[href]:focus-visible { outline: 2px solid #e85d26; outline-offset: 2px; }
.mm_hl_item img { max-width: 100%; max-height: 52px; width: auto; height: auto; object-fit: contain; }

/* Der Contao-Clearfix „.block { overflow: hidden }" auf .mod_article würde den
   Full-Bleed-Ausbruch des Laufbands abschneiden – wie bei .mm_fullbleed/.mm_how
   (files/css/style.css) für Artikel mit Logoband aufheben. */
.mod_article:has(.mm_hl) { overflow: visible; }

@keyframes mm_hl_scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mm_hl_track { animation: none; flex-wrap: wrap; justify-content: center; }
}

/* Dark-Mode (global via html.mm-dark) – Logo-Kacheln bleiben weiß. */
html.mm-dark .mm_hl_sep { background: rgba(255, 255, 255, .10); }
html.mm-dark .mm_hl_title { color: #f2f6fa; }
html.mm-dark .mm_hl_item { border-color: rgba(255, 255, 255, .14); }
html.mm-dark .mm_hl_btn { background: #e85d26; border-color: #e85d26; }
html.mm-dark .mm_hl_btn:hover { background: #ff7a45; border-color: #ff7a45; }

@media (max-width: 560px) {
  .mm_hl_title { font-size: 1.4rem; }
  .mm_hl_btn { font-size: 13px; padding: 9px 14px; }
  .mm_hl_item { width: 150px; height: 66px; }
}
