/*
 * Kundenreferenzen für die ICT-Berlin-Startseite
 *  1) Logo-Bandleiste direkt unter dem Hero (kachellos, echte Logo-Bilder)
 *  2) Testimonial-Slider (Kundenstimmen) zwischen Services und Blog
 * Farb- und Typo-Basis: Screenr-Theme (Primär #e86240, Montserrat/Open Sans)
 */

:root {
  --ict-primary: #e86240;
  --ict-dark: #222222;
  --ict-text: #777777;
  --ict-border: #e9e9e9;
  --ict-bg-gray: #f8f9f9;
}

/* =========================================================
   Logo-Bandleiste (unter dem Hero)
   ========================================================= */
.section-referenzen-logoband {
  background: #fff;
  border-bottom: 1px solid var(--ict-border);
  padding: 34px 0 30px;
}

/* Alleinstehende Zeile: Titel-DNA des Themes (Montserrat 600 uppercase
   wie .section-title), aber moderat skaliert statt 28px */
.section-referenzen-logoband .ref-band-title {
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #777777;
  text-align: center;
  margin-bottom: 26px;
}

@media screen and (min-width: 940px) {
  .section-referenzen-logoband .ref-band-title {
    font-size: 18px;
  }
}

/* Band läuft über die volle Seitenbreite (liegt außerhalb des .container) */
.ref-band-viewport {
  overflow: hidden;
  width: 100%;
}

/* Weiche Kanten im Laufband-Modus */
.section-referenzen-logoband.marquee .ref-band-viewport {
  -webkit-mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(to right, transparent, #000 7%, #000 93%, transparent);
}

.ref-band-track {
  display: flex;
  justify-content: center;
}

.ref-band-group {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 24px 56px;
  padding: 0 12px;
}

/* Zweite Logo-Gruppe nur im Laufband-Modus sichtbar */
.ref-band-group.ref-band-dup {
  display: none;
}

.ref-band-group img {
  height: 40px;
  width: auto;
  filter: grayscale(1);
  opacity: 0.62;
  transition: opacity 0.25s ease, filter 0.25s ease;
}

.ref-band-group img:hover {
  filter: grayscale(0);
  opacity: 1;
}

/* ---- Farb-Modus (optional, per Umschalter): Logos in Originalfarbe ---- */
.section-referenzen-logoband.color .ref-band-group img {
  filter: none;
  opacity: 1;
}

/* ---- Laufband-Modus (optional, per Umschalter) ---- */
.section-referenzen-logoband.marquee .ref-band-track {
  width: max-content;
  justify-content: flex-start;
  animation: refMarquee 36s linear infinite;
}

.section-referenzen-logoband.marquee .ref-band-group {
  flex-wrap: nowrap;
  gap: 0 56px;
  padding: 0 28px;
}

.section-referenzen-logoband.marquee .ref-band-group.ref-band-dup {
  display: flex;
}

.section-referenzen-logoband.marquee .ref-band-viewport:hover .ref-band-track {
  animation-play-state: paused;
}

/* -25% = exakt eine von vier identischen Logo-Gruppen im Track;
   danach setzt die Schleife nahtlos wieder auf */
@keyframes refMarquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-25%); }
}

@media (prefers-reduced-motion: reduce) {
  .section-referenzen-logoband.marquee .ref-band-track {
    animation: none;
  }
}

@media (max-width: 767px) {
  .ref-band-group {
    gap: 18px 34px;
  }

  .ref-band-group img {
    height: 30px;
  }
}

/* =========================================================
   Testimonial-Slider (Kundenstimmen, dunkel)
   ========================================================= */
/* Titel-Typografie & -Farben kommen komplett vom Theme:
   .section-title-area / .section-subtitle / .section-title + .section-inverse */
.section-referenzen-slider {
  background: #23282d;
}

.ref-slider {
  position: relative;
  max-width: 820px;
  margin: 0 auto;
  text-align: center;
  padding: 0 60px;
}

.ref-slider .ref-slide {
  display: none;
  animation: refFadeIn 0.5s ease;
}

.ref-slider .ref-slide.active {
  display: block;
}

@keyframes refFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}

.ref-slide .ref-quote-icon {
  font-size: 26px;
  color: var(--ict-primary);
  margin-bottom: 22px;
}

.ref-slide blockquote {
  margin: 0 0 26px;
  padding: 0;
  border: 0;
  font-size: 20px;
  line-height: 1.8;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.92);
}

.ref-slide .ref-person {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-align: left;
}

.ref-slide .ref-logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.6);
  font-size: 20px;
  flex-shrink: 0;
}

/* Kundenlogo im Slider statt Icon-Badge */
.ref-slide .ref-logo-img {
  height: 34px;
  width: auto;
  filter: grayscale(1) brightness(3.5);
  opacity: 0.85;
}

.ref-slide cite {
  font-style: normal;
}

.ref-slide .ref-name {
  display: block;
  font-family: "Montserrat", Helvetica, Arial, sans-serif;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.ref-slide .ref-role {
  display: block;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.55);
  margin-top: 2px;
}

.ref-slider .ref-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50%;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.ref-slider .ref-nav:hover {
  background: var(--ict-primary);
  border-color: var(--ict-primary);
  color: #fff;
}

.ref-slider .ref-nav.prev { left: 0; }
.ref-slider .ref-nav.next { right: 0; }

.ref-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 34px;
}

.ref-dots button {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: background 0.25s ease, transform 0.25s ease;
}

.ref-dots button.active {
  background: var(--ict-primary);
  transform: scale(1.25);
}

@media (max-width: 991px) {
  .ref-slider {
    padding: 0 8px;
  }

  .ref-slider .ref-nav {
    display: none;
  }

  .ref-slide blockquote {
    font-size: 17px;
  }
}

