/* JUNO · Göttinnen-Rauhnächte 2026 · Stimmen von Teilnehmerinnen (v1.1.3)
   Bis 1023 px: eine ruhige Reihe zum Wischen. Alle Kacheln gleich hoch,
   die nächste schaut hervor. Auf dem Handy läuft die Reihe randlos.
   Ab 1024 px: alle 8 auf einen Blick, 4 × 2, etwas breiter als die Textspalte.
   Schrift und Farben kommen aus .editorial-section, hier nur Anordnung. */

.stimmen-track {
  --tile-h: 260px;
  display: flex;
  gap: 14px;
  margin-top: 28px;
  padding: 4px 2px 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stimmen-track::-webkit-scrollbar { display: none; }
.stimmen-track:focus-visible {
  outline: 1px solid currentColor;
  outline-offset: 6px;
  border-radius: 18px;
}

/* Kachel: weiß wie die Screenshots, damit die Bildränder verschwinden */
.stimme {
  flex: 0 0 auto;
  width: 78%;
  max-width: 340px;
  height: var(--tile-h);
  margin: 0;
  padding: 14px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  scroll-snap-align: start;
}
.stimme img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Feiner Pfeil rechts unter der Reihe, scrollt eine Kachel weiter */
.stimmen-next {
  display: block;
  margin: 2px 0 0 auto;
  padding: 10px 2px 10px 14px;
  background: none;
  border: 0;
  color: inherit;
  opacity: .6;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity .2s ease;
}
.stimmen-next:hover { opacity: 1; }
.stimmen-next:focus-visible { outline: 1px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.stimmen-next svg {
  display: block;
  width: 48px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: stimmen-nudge 2.6s ease-in-out infinite;
}
@keyframes stimmen-nudge {
  0%, 60%, 100% { transform: translateX(0); }
  30% { transform: translateX(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .stimmen-next svg { animation: none; }
}

/* Handy: randlos von Kante zu Kante, mit 16 px Innenabstand */
@media (max-width: 759px) {
  .stimmen-track {
    margin-inline: calc(50% - 50vw);
    padding-inline: 16px;
    scroll-padding-inline: 16px;
  }
}

/* Desktop: alles sichtbar, kein Wischen */
@media (min-width: 1024px) {
  .stimmen-track {
    --tile-h: 270px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    width: min(1120px, calc(100vw - 64px));
    margin-left: 50%;
    transform: translateX(-50%);
    padding: 4px 0 0;
    overflow: visible;
    scroll-snap-type: none;
  }
  .stimme { width: auto; max-width: none; }
  .stimmen-next { display: none; }
}