/* ── MARQUEE — endloses Laufband ────────────────────────────────────
   Inhalt im Track zweimal hintereinander einfügen (nahtloser Loop).
   Varianten:
   .marquee            Text-Stichworte auf dunklem Streifen
   .marquee--logos     Logos auf weißem Streifen: <span class="marquee-logo"><img …></span>
                       optional mit Tooltip (data-tip, data-tip-sub, s. unten und marquee.js)
   Platzhalter ohne Bild (aktuell nicht im Einsatz): .marquee-logo-icon--circle | square | triangle | hexagon | diamond | ring | half
   Schrift: marquee-item label t-small · marquee-logo-text t-lead        */
.marquee {
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  overflow: hidden; padding: clamp(14px,1.5vw,22px) 0;
  background: var(--bg2);
}
.marquee-track {
  display: flex; align-items: center; white-space: nowrap;
  width: max-content;
  animation: marquee 40s linear infinite;
}
.marquee-track:hover { animation-play-state: paused; }
.marquee-item {
  display: inline-flex; align-items: center; gap: clamp(12px,2vw,24px);
  padding: 0 clamp(16px,2.5vw,36px);
}
.marquee-sep { color: var(--line); font-size: .6em; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Variante: Logos */
.marquee--logos {
  background: var(--light-bg); border: none;
  padding: clamp(26px,3.6vw,40px) 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
}
.marquee--logos .marquee-track { animation-duration: 45s; }
.marquee-logo {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 0 clamp(26px,3vw,48px);
  opacity: .8; transition: opacity .25s ease;
}
.marquee-logo:hover { opacity: 1; }
/* echte Logos/Siegel (<img>, Dateien in assets/logos, doppelte Auflösung): 60px, mobil 48px */
.marquee-logo img { height: 60px; width: auto; display: block; }
@media (max-width: 860px) { .marquee-logo img { height: 48px; } }
/* mit echten Logos: Streifen oben/unten 5px weniger Innenabstand (die Logos sind höher) */
.marquee--logos:has(.marquee-logo img) { padding: clamp(21px,3.6vw - 5px,35px) 0; }

/* Platzhalter-Logos (Icon + Wortmarke) — werden durch echte <img> ersetzt */
.marquee-logo-text { font-weight: 700; color: #a8a8a8; }
.marquee-logo-icon { flex-shrink: 0; width: 24px; height: 24px; background: #c9c9c9; }
.marquee-logo-icon--circle   { border-radius: 50%; }
.marquee-logo-icon--square   { border-radius: 6px; }
.marquee-logo-icon--diamond  { width: 18px; height: 18px; border-radius: 4px; transform: rotate(45deg); }
.marquee-logo-icon--triangle { clip-path: polygon(50% 0%, 0% 100%, 100% 100%); }
.marquee-logo-icon--hexagon  { clip-path: polygon(25% 6%, 75% 6%, 100% 50%, 75% 94%, 25% 94%, 0% 50%); }
.marquee-logo-icon--ring     { background: transparent; width: 18px; height: 18px; border: 4px solid #c9c9c9; border-radius: 50%; }
.marquee-logo-icon--half     { border-radius: 50%; clip-path: inset(0 50% 0 0); }

/* Tooltip an Logos (marquee.js): data-tip (Titel) + data-tip-sub (Zeile) am .marquee-logo.
   Dunkle Blase über dem Logo, hängt am body. Schrift: marquee-tip-title t-small · -sub t-xs */
.marquee-track.is-holding { animation-play-state: paused; } /* mobil: steht, solange der Tooltip offen ist */
.marquee-tip {
  position: fixed; top: 0; left: 0; z-index: 600;
  display: flex; flex-direction: column; gap: 2px;
  max-width: min(340px, calc(100vw - 24px)); padding: 10px 14px;
  background: var(--bg); color: var(--ink); border-radius: 10px; box-shadow: var(--shadow-sm);
  pointer-events: none; opacity: 0; transform: translateY(4px);
  transition: opacity .18s ease, transform .18s ease;
}
.marquee-tip.is-open { opacity: 1; transform: none; }
.marquee-tip::after { /* UI: Zipfel */
  content: ''; position: absolute; top: 100%; left: var(--tip-arrow, 50%); transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--bg);
}
.marquee-tip-title { font-weight: 600; line-height: var(--lh-title); }
.marquee-tip-sub   { color: var(--mute); line-height: var(--lh-text); }
.marquee-tip-sub[hidden] { display: none; }
