/* BV-2611c P-rondell: Paketdatei (Ownership siehe REGELN-2611c.md). */
/* DA6: Rondell „So fühlen sich die Best Version Days an“. Alles unter .bv-ron-section, die Datei lädt auf allen Seiten.
   --ron-w ist die Breite des Mittelbildes; Lage, Größe und Bogen der Nachbarn rechnen sich daraus (data-o = Abstand zur Mitte). */
/* clip statt hidden: hidden ist per Skript scrollbar (scrollIntoView eines Randbildes schob die ganze Fläche seitlich, gemessen bei 390). */
.bv-ron-section {
  overflow: hidden;
  overflow: clip;
}

.bv-ron-section .bv-ron {
  --ron-w: clamp(180px, 52vw, 300px);
  --ron-h: calc(var(--ron-w) * 5 / 4);
  position: relative;
  border-radius: 20px;
  outline: none;
}

.bv-ron-section .bv-ron:focus-visible {
  outline: 3px solid var(--cyan, #00b7f4);
  outline-offset: 8px;
}

.bv-ron-section .bv-ron-stage {
  position: relative;
  height: var(--ron-h);
  margin: 0;
  padding: 0;
  list-style: none;
  container-type: inline-size;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
}

.bv-ron-section .bv-ron-item {
  --tx: 0px;
  --side: 1;
  --y: 0;
  --s: 1;
  --dim: 0;
  --ron-edge: calc(50cqw - var(--ron-w) * .32);
  position: absolute;
  top: 0;
  left: 50%;
  z-index: var(--z, 1);
  width: var(--ron-w);
  margin: 0;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 20px;
  background: #0d1b24;
  box-shadow: 0 24px 48px rgba(0, 0, 0, .38);
  transform: translate3d(calc(-50% + var(--side) * var(--tx)), calc(var(--y) * var(--ron-w)), 0) scale(var(--s));
  transform-origin: 50% 100%;
  transition: transform .6s cubic-bezier(.22, 1, .36, 1), opacity .32s linear;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.bv-ron-section .bv-ron-item.is-center {
  cursor: default;
}

/* Abdunkeln der Nachbarn über eine Deckfläche (nur opacity wird animiert, kein filter). */
.bv-ron-section .bv-ron-item::after {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #071117;
  opacity: var(--dim);
  content: "";
  transition: opacity .45s ease-out;
  pointer-events: none;
}

.bv-ron-section .bv-ron-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}

/* Lage je Platz. --tx in cqw der Bühne: die äußerste sichtbare Karte endet bündig an der Inhaltskante, nichts ragt über den Rand
   (auch versteckte Karten parken hinter der äußersten, damit keine Fläche seitlich überläuft). */
.bv-ron-section .bv-ron-item[data-o="0"] { --z: 5; }
.bv-ron-section .bv-ron-item:is([data-o="1"], [data-o="-1"]) { --tx: calc(var(--ron-edge) * .58); --y: -.035; --s: .8; --z: 4; --dim: .38; }
.bv-ron-section .bv-ron-item:is([data-o="2"], [data-o="-2"]) { --tx: var(--ron-edge); --y: -.09; --s: .64; --z: 3; --dim: .6; }
.bv-ron-section .bv-ron-item:is([data-o="3"], [data-o="-3"]) { --tx: var(--ron-edge); --y: -.12; --s: .5; --z: 1; --dim: .7; opacity: 0; pointer-events: none; }
.bv-ron-section .bv-ron-item:is([data-o="-1"], [data-o="-2"], [data-o="-3"]) { --side: -1; }
.bv-ron-section .bv-ron-item.is-park { transition: none; }

@media (hover: hover) and (pointer: fine) {
  .bv-ron-section .bv-ron-item:not(.is-center):hover::after {
    opacity: calc(var(--dim) * .45);
  }
}

/* DA6/GL8 Runde 2: Kopf in der Seitengröße der Eventseiten (--bv2611c-ev-h2 auf .bv2511-event-page), vorher 60 px bei 1920.
   Die Steuerung schrumpft nie und endet an der rechten Inhaltskante; die Textspalte gibt nach (vorher schob der nowrap-Kopf die Pfeile bei 1920 um 132 px aus der Achse). */
.bv-ron-section .event-gallery-head > div {
  min-width: 0;
}

.bv-ron-section .event-gallery-head > div > h2 {
  font-size: var(--bv2611c-ev-h2);
}

.bv-ron-section .event-gallery-head > .bv-ron-controls {
  flex-shrink: 0;
}

/* Ohne Skript bleiben die Pfeile unsichtbar, ihr Platz bleibt (kein Sprung im Kopf). */
.bv-ron-section:not(.is-ron-ready) .bv-ron-controls {
  visibility: hidden;
}

/* Handy: eine Nachbarkarte je Seite, bündig an der Inhaltskante; die übrigen warten unsichtbar dahinter. */
@media (max-width: 759px) {
  .bv-ron-section .bv-ron-item {
    --ron-edge: calc(50cqw - var(--ron-w) * .4);
  }

  .bv-ron-section .bv-ron-item:is([data-o="1"], [data-o="-1"]) {
    --tx: var(--ron-edge);
  }

  .bv-ron-section .bv-ron-item:is([data-o="2"], [data-o="-2"]) {
    --y: -.035;
    --s: .64;
    --z: 2;
    opacity: 0;
    pointer-events: none;
  }
}

@media (min-width: 760px) {
  .bv-ron-section .bv-ron {
    --ron-w: clamp(260px, 30vw, 420px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .bv-ron-section .bv-ron-item,
  .bv-ron-section .bv-ron-item::after {
    transition: none;
  }
}
