/* Flowlee · Kundenstimmen, Fassung 3 (19.10.2026; Fassung 2: stimmen-v2.css)
   Violette Fläche #641AFF (= Hero-Button), reines Weiß. Fläche und Inhalt steigen beim Scrollen aus dem Anthrazit auf
   (stimmen.js, --aufstieg). Einrasten der Seite am Block ENTFERNT (Dennis, 19.10.: hakt beim Scrollen).
   Nur EINE Stimme sichtbar, nichts ragt herein. Zitat groß, dünn, viel Zeilenabstand; lange Stimmen zeigen sechs Zeilen
   mit weichem Auslauf und „Weiterlesen“. Unten Firma (dicker) + Leistungen, darunter „01 / 04“ und zwei dünne Pfeile. */

.stimmen {
  --s-pad: clamp(20px, 5.6vw, 40px);
  --s-violett: #641AFF;
  --s-weiss: #FFFFFF;
  --s-hell: rgb(255 255 255 / .72);
  --s-zeilen: 6;
  --s-zitat: clamp(21px, 5.9vw, 25px);
  --aufstieg: 1;
  position: relative;
  background: #202124;
  color: var(--s-weiss);
  font-family: "Onest", system-ui, sans-serif;
  overflow: hidden;
}

.stimmen__flaeche {
  position: absolute;
  inset: 0;
  background: var(--s-violett);
  transform: translateY(calc((1 - var(--aufstieg)) * 40%));
  will-change: transform;
}

.stimmen__inhalt {
  position: relative;
  padding: 44px 0 44px;
  transform: translateY(calc((1 - var(--aufstieg)) * 40%));
  will-change: transform;
}

/* kompakter als Fassung 2 (41 → 32px), bleibt schwer und dreizeilig */
.stimmen__titel {
  margin: 0 var(--s-pad) 32px;
  font-weight: 900;
  font-size: clamp(28px, 8.2vw, 34px);
  line-height: 1.04;
  letter-spacing: -0.02em;
  max-width: 12em;
}

/* ---------- Die Spur: genau eine Stimme je Bildschirm ---------- */

.stimmen__spur {
  list-style: none;
  margin: 0;
  padding: 0 var(--s-pad);
  display: flex;
  gap: calc(2 * var(--s-pad));          /* Lücke = beide Ränder → die nächste Stimme bleibt außerhalb */
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: var(--s-pad);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}

.stimmen__spur::-webkit-scrollbar {
  display: none;
}

/* 100 % = Inhaltsbreite der Spur (ohne deren Innenabstand); mit Lücke = 2 × Rand bleibt die nächste Stimme komplett draußen */
.stimme {
  flex: 0 0 100%;
  scroll-snap-align: start;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Das Zitat: groß, dünn, luftig – kein Fließtext */
.stimme__zitat {
  margin: 0;
  position: relative;
}

.stimme__zitat p {
  margin: 0;
  font-weight: 300;
  font-size: var(--s-zitat);
  line-height: 1.55;
  letter-spacing: -0.005em;
}

/* gekürzt: sechs Zeilen, weicher Auslauf ins Violett (nur wenn das Zitat wirklich länger ist – stimmen.js) */
.hat-skript .stimme:not(.ist-offen) .stimme__zitat {
  max-height: calc(var(--s-zeilen) * 1.55 * var(--s-zitat));
  overflow: hidden;
}

.ist-gekuerzt .stimme__zitat::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2.2em;
  background: linear-gradient(to bottom, rgb(100 26 255 / 0), var(--s-violett));
  pointer-events: none;
}

/* 44 px Tippfläche: Unterstreichung als Textdekoration, Höhe über Innenabstand (Upload-Prüfung 20.10.2026) */
.stimme__mehr {
  align-self: flex-start;
  margin: 0;
  padding: 11px 0;
  min-height: 44px;
  border: 0;
  text-decoration: underline;
  text-decoration-color: rgb(255 255 255 / .5);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  background: none;
  color: var(--s-weiss);
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  cursor: pointer;
}

.stimme__mehr:focus-visible,
.stimmen__pfeil:focus-visible {
  outline: 3px solid var(--s-weiss);
  outline-offset: 4px;
  border-radius: 2px;
}

/* unten: Firma dicker, darunter die Leistungen */
.stimme__wer {
  margin: 24px 0 0;
  font-size: 14px;
  line-height: 1.4;
}

.stimme__firma {
  display: block;
  font-weight: 700;
  font-size: 16px;
}

.stimme__bereich {
  display: block;
  margin-top: 2px;
  color: var(--s-hell);
}

/* ---------- Navigation: 01 / 04 und zwei dünne Pfeile in der Linie der Kette ---------- */

.stimmen__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 28px var(--s-pad) 0;
}

.stimmen__zaehler {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--s-hell);
  font-variant-numeric: tabular-nums;
}

.stimmen__nr {
  color: var(--s-weiss);
}

.stimmen__pfeile {
  display: flex;
  gap: 8px;
}

.stimmen__pfeil {
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgb(255 255 255 / .35);
  border-radius: 50%;
  background: none;
  color: var(--s-weiss);
  cursor: pointer;
  transition: background-color .18s ease, border-color .18s ease;
}

.stimmen__pfeil svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.stimmen__pfeil--zurueck svg {
  transform: scaleX(-1);
}

.stimmen__pfeil:hover,
.stimmen__pfeil:active {
  background: rgb(255 255 255 / .12);
  border-color: rgb(255 255 255 / .6);
}

/* ohne Skript: alles ausgeklappt, Pfeile weg, Wischen bleibt */
.stimmen:not(.hat-skript) .stimmen__pfeile,
.stimmen:not(.hat-skript) .stimme__mehr {
  display: none;
}

/* ---------- Tablet / Desktop ---------- */

@media (min-width: 768px) {
  .stimmen {
    --s-zeilen: 5;
    --s-zitat: 30px;
  }

  .stimmen__inhalt {
    max-width: 1040px;
    margin: 0 auto;
    padding: 112px 0 96px;
  }

  .stimmen__titel {
    font-size: clamp(44px, 5.4vw, 64px);
    margin-bottom: 56px;
  }

  .stimme__zitat p {
    max-width: 24em;
  }

  .stimme__wer {
    font-size: 16px;
  }

  .stimme__firma {
    font-size: 18px;
  }

  .stimmen__nav {
    margin-top: 40px;
  }

  .stimmen__zaehler {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .stimmen__flaeche,
  .stimmen__inhalt {
    transform: none;
  }

  .stimmen__pfeil {
    transition: none;
  }
}
