/* =============================================================
   STIMMEN
   Zitat links, Kartenstapel rechts: Die oberste Karte fliegt beim
   Weiterblaettern gedreht hinaus (js/voices.js). Auf dem Telefon
   wischt man durch die Fotos, das Zitat steht darunter.
   ============================================================= */

.voices {
  background: var(--color-bg, #fff);
  padding: 100px 0;
  overflow-x: hidden;
  overflow-x: clip; /* die hinausfliegende Karte erzeugt keinen seitlichen Scrollbalken */
}

/* Nicht overflow: hidden, die Karte darf beim Blaettern ueber den Rand der Box hinausfliegen */
.voices__box {
  padding: 72px 64px 64px;
  border-radius: var(--radius-card, 28px);
  background: var(--color-surface, #f5f3f2);
}

.voices__headline {
  margin-bottom: 88px;
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
}

.voices__copy,
.voices__stack {
  transition: opacity 0.8s ease;
}

.voices--waiting .voices__copy,
.voices--waiting .voices__stack {
  opacity: 0;
}

.voices__layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  align-items: start;
  gap: 72px;
}

/* Alle Zitate im selben Feld: Das laengste bestimmt die Hoehe, beim Wechsel springt nichts */
.voices__quotes {
  display: grid;
}

.voices__quote {
  grid-area: 1 / 1;
  visibility: hidden;
}

.voices__quote.is-active {
  visibility: visible;
}

.voices__text {
  max-width: 640px;
  margin-bottom: 32px;
  font-size: clamp(1.3rem, 1.95vw, 1.625rem);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.02em;
  quotes: '\201C' '\201D';
}

:lang(de) .voices__text {
  quotes: '\201E' '\201C';
}

.voices__text::before {
  content: open-quote;
}

.voices__text::after {
  content: close-quote;
}

.voices__name {
  display: block;
  color: inherit;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-decoration: none;
}

.voices__name:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.voices__role {
  display: block;
  margin-top: 4px;
  color: var(--color-text-muted, #6b6b6b);
  font-size: 0.875rem;
  line-height: 1.4;
}

.voices__controls {
  display: flex;
  gap: 10px;
  margin-top: 32px;
}

/* Bewusst zurueckhaltend, gleich wie die Pfeile der Sportarten-Section */
.voices__button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff; /* liegt auf der grauen Box */
  color: #8a8a8a;
  cursor: pointer;
  transition: color 0.15s ease, transform 0.15s ease;
}

/* Nur mit Maus: Auf dem Telefon bliebe der Zustand nach dem Tippen haengen */
@media (hover: hover) {
  .voices__button:hover {
    color: #191919;
  }
}

.voices__button:active {
  transform: scale(0.96);
}

.voices__button svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.voices__button:focus-visible,
.voices__dot:focus-visible,
.voices__name:focus-visible {
  outline: 2px solid var(--color-text, #000);
  outline-offset: 3px;
}

.voices__live {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.voices__stack {
  position: relative;
  aspect-ratio: 11 / 12;
  cursor: pointer;
}

.voices__card {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: var(--radius-card, 28px);
  background: #e3e3e3;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.1);
  transform-origin: 50% 100%;
  transition: transform 0.41s cubic-bezier(0.22, 1, 0.36, 1), filter 0.41s cubic-bezier(0.22, 1, 0.36, 1);
}

.voices__card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--photo-focus, 50% 20%);
}

.voices__card[data-pos='0'] {
  z-index: 3;
}

.voices__card[data-pos='1'] {
  z-index: 2;
  filter: brightness(0.95);
  transform: translateY(15px) scale(0.94);
}

.voices__card[data-pos='2'] {
  z-index: 1;
  filter: brightness(0.9);
  transform: translateY(30px) scale(0.88);
}

.voices__card.is-flying {
  z-index: 4;
}

.voices__card.is-placed {
  transition: none;
}

.voices__dots {
  display: none;
}

.voices__more {
  margin-top: 56px;
  text-align: center;
}

.voices__more-link {
  padding-bottom: 2px;
  border-bottom: 1px solid currentColor;
  color: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: opacity 0.15s;
}

.voices__more-link:hover {
  opacity: 0.7;
}

@media (max-width: 1000px) {
  .voices__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
    gap: 48px;
  }

  .voices__box {
    padding: 56px 40px 48px;
  }
}

@media (max-width: 800px) {
  .voices {
    padding: 72px 0;
  }

  /* Die Fotoreihe laeuft bis an den Rand der Box und rechnet dafuer mit --gutter */
  .voices__box {
    --gutter: 20px;
    padding: 48px var(--gutter) 40px;
    border-radius: 24px;
  }

  .voices__headline {
    margin-bottom: 40px;
  }

  .voices__layout {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .voices__copy {
    width: 100%;
  }

  .voices__stack {
    order: -1;
    display: flex;
    gap: 12px;
    width: calc(100% + var(--gutter, 24px) * 2);
    margin-inline: calc(var(--gutter, 24px) * -1);
    padding-inline: var(--gutter, 24px);
    aspect-ratio: auto;
    overflow-x: auto;
    scroll-padding-inline: var(--gutter, 24px);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    cursor: auto;
  }

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

  .voices__card,
  .voices__card[data-pos] {
    position: relative;
    inset: auto;
    flex: 0 0 100%;
    aspect-ratio: 3 / 2;
    border-radius: 20px;
    box-shadow: none;
    filter: none;
    scroll-snap-align: center;
    transform: none;
    transition: none;
  }

  .voices__text {
    margin-bottom: 24px;
    font-size: clamp(1.15rem, 4.8vw, 1.35rem);
  }

  .voices__controls {
    display: none;
  }

  .voices__dots {
    display: flex;
    align-self: center;
    gap: 4px;
  }

  .voices__dot {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
  }

  .voices__dot::before {
    content: '';
    width: 9px;
    height: 9px;
    border: 1px solid var(--color-text, #000);
    border-radius: 50%;
  }

  .voices__dot[aria-current='true']::before {
    background: var(--color-text, #000);
  }

  .voices__more {
    margin-top: 40px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .voices__copy,
  .voices__stack,
  .voices__card,
  .voices__button {
    transition: none;
  }
}
