/* =====================================================
   Trust Marquee CSS
   ===================================================== */

.trust-marquee {
  position: relative;
  overflow: hidden;
  padding: 1.6rem 0;
  background: rgba(255, 255, 255, 0.02);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
[data-scope="light"] .trust-marquee,
.section-light .trust-marquee {
  background: var(--bg-light, #F4F1EB);
  border-color: rgba(0,0,0,0.06);
}

/* ---------- Edge Fade ---------- */
.tm-fade {
  position: absolute;
  top: 0; bottom: 0;
  width: 120px;
  z-index: 2;
  pointer-events: none;
}
.tm-fade-left  { left: 0;  background: linear-gradient(to right, var(--bg-deep, #060b18) 0%, transparent 100%); }
.tm-fade-right { right: 0; background: linear-gradient(to left,  var(--bg-deep, #060b18) 0%, transparent 100%); }
[data-scope="light"] .tm-fade-left,  .section-light .tm-fade-left  { background: linear-gradient(to right, var(--bg-light, #F4F1EB) 0%, transparent 100%); }
[data-scope="light"] .tm-fade-right, .section-light .tm-fade-right { background: linear-gradient(to left,  var(--bg-light, #F4F1EB) 0%, transparent 100%); }

/* ---------- Track ---------- */
.tm-track {
  --tm-duration: 32s;
  display: flex;
  width: max-content;
  animation: tm-scroll var(--tm-duration) linear infinite;
  will-change: transform;
}
.tm-track.is-paused { animation-play-state: paused; }

@keyframes tm-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---------- Row ---------- */
.tm-row {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  padding: 0 clamp(1rem, 2vw, 2rem);
  margin: 0;
  list-style: none;
  flex-shrink: 0;
}
.tm-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  min-width: 130px;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s;
}
.tm-item:hover { opacity: 1; transform: translateY(-2px); }

.tm-logo {
  font-family: 'Inter', system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
  color: rgba(255, 255, 255, 0.92);
  white-space: nowrap;
}
[data-scope="light"] .tm-logo,
.section-light .tm-logo { color: #1e293b; }

.tm-sub {
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  font-weight: 600;
}
[data-scope="light"] .tm-sub,
.section-light .tm-sub { color: rgba(0, 0, 0, 0.5); }

/* ---------- Brand-spezifisches Color-Hinting (optional) ---------- */
.tm-logo[data-logo="bafa"]      { color: #d62028; }
.tm-logo[data-logo="kfw"]       { color: #007a4d; }
.tm-logo[data-logo="tuv"]       { color: #003d7a; }
.tm-logo[data-logo="daikin"]    { color: #0067b1; }
.tm-logo[data-logo="sungrow"]   { color: #ff5722; }
.tm-logo[data-logo="vaillant"]  { color: #006633; }
.tm-logo[data-logo="trina"]     { color: #d50000; }
.tm-logo[data-logo="pylontech"] { color: #1976d2; }
[data-scope="dark"] .tm-logo,
.section-dark .tm-logo { filter: brightness(1.4) saturate(0.85); }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .tm-fade { width: 60px; }
  .tm-row { gap: 2rem; padding: 0 1rem; }
  .tm-item { min-width: 100px; }
  .tm-logo { font-size: 0.95rem; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  .tm-track { animation: none; transform: translateX(0); }
}
