/* ─────────────────────────────────────────────────────────────────────────────
   Benefits — vertikales 3D-Karussell (Claims als Pill-Boxen)
   3 feste Stufen (Breite + Schriftgröße + Opacity), je Reihe:
     1. Reihe (aktiv/vorne):  --bc-w1 / --bc-f1 / Opacity 100 %  (breiteste, größte Schrift)
     2. Reihe:                --bc-w2 / --bc-f2 / Opacity 60 %   (schmaler, kleinere Schrift)
     3. Reihe:                --bc-w3 / --bc-f3 / Opacity 80 %   (schmalste, kleinste Schrift)
   Die drei Breiten werden von benefits-carousel.js anhand des LÄNGSTEN Textes
   gemessen (DE/RU getrennt) und als CSS-Variablen gesetzt; die Werte hier sind Fallbacks.
   ───────────────────────────────────────────────────────────────────────────── */

#programm .benefits-carousel {
  position: relative;
  width: 100%;
  max-width: 860px;
  height: 470px;
  margin: 0 auto;
  perspective: 1200px;
  --bc-f1: 17px;  --bc-f2: 15px;  --bc-f3: 13px;
  --bc-chrome: 116px;                 /* Icon 48 + Gap 16 + Padding 2×26 */
  --bc-w1: 470px; --bc-w2: 418px; --bc-w3: 372px;
}
#programm .benefits-carousel:focus { outline: none; }
#programm .benefits-carousel:focus-visible {
  outline: 2px solid var(--mint);
  outline-offset: 6px;
  border-radius: 18px;
}

.bc-track {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  cursor: grab;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}
.bc-track.is-dragging { cursor: grabbing; }
/* beim Ziehen schneller reagieren, damit die Karten der Hand folgen */
.bc-track.is-dragging .bc-card {
  transition: transform 0.22s ease, opacity 0.22s ease, width 0.22s ease;
}

.bc-card {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--bc-w1);
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 26px;
  border-radius: 22px;
  background: linear-gradient(100deg, #edf2f1 0%, #f9d9ec 100%);
  box-shadow: 0 14px 30px rgba(18, 28, 31, 0.07);
  transform: translate(-50%, -50%);
  transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              opacity 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94),
              width 0.5s ease,
              box-shadow 0.7s ease;
  box-sizing: border-box;
  will-change: transform, opacity;
}

.bc-ic {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #fff;
  display: grid;
  place-items: center;
  color: #5e9b95;
  box-shadow: 0 3px 10px rgba(18, 28, 31, 0.06);
}
.bc-ic svg { width: 24px; height: 24px; }

.bc-text {
  margin: 0;
  line-height: 1.35;
  color: #4f5b63;
  font-weight: 500;
  font-size: var(--bc-f1);
}

/* ── 3 Stufen ── */
.bc-card.is-center {
  width: var(--bc-w1);
  opacity: 1;
  z-index: 10;
  transform: translate(-50%, -50%);
  box-shadow: 0 24px 48px rgba(18, 28, 31, 0.14);
}
.bc-card.is-center .bc-text { font-size: var(--bc-f1); }

.bc-card.is-up-1, .bc-card.is-down-1 { width: var(--bc-w2); opacity: 0.6; z-index: 6; }
.bc-card.is-up-1   { transform: translate(-50%, calc(-50% - 96px)); }
.bc-card.is-down-1 { transform: translate(-50%, calc(-50% + 96px)); }
.bc-card.is-up-1 .bc-text, .bc-card.is-down-1 .bc-text { font-size: var(--bc-f2); }

.bc-card.is-up-2, .bc-card.is-down-2 { width: var(--bc-w3); opacity: 0.8; z-index: 2; }
.bc-card.is-up-2   { transform: translate(-50%, calc(-50% - 170px)); }
.bc-card.is-down-2 { transform: translate(-50%, calc(-50% + 170px)); }
.bc-card.is-up-2 .bc-text, .bc-card.is-down-2 .bc-text { font-size: var(--bc-f3); }

.bc-card.is-hidden {
  width: var(--bc-w3);
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

/* ── Pfeile: Desktop links (hoch) / rechts (runter), vertikal zentriert ── */
.bc-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid rgba(18, 28, 31, 0.06);
  box-shadow: 0 6px 16px rgba(18, 28, 31, 0.10);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 20;
  color: var(--heading);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.bc-arrow:hover {
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 10px 22px rgba(18, 28, 31, 0.16);
}
.bc-arrow svg { width: 20px; height: 20px; }
.bc-arrow.up   { left: 0;  right: auto; }
.bc-arrow.down { right: 0; left: auto; }

@media (max-width: 760px) {
  #programm .benefits-carousel {
    height: 360px;
    max-width: 440px;
    --bc-f1: 15px; --bc-f2: 13.5px; --bc-f3: 12px;
    --bc-chrome: 95px;            /* Icon 42 + Gap 13 + Padding 2×20 */
    --bc-w1: 300px; --bc-w2: 270px; --bc-w3: 244px;
  }
  .bc-card { padding: 13px 20px; gap: 13px; min-height: 56px; }
  .bc-ic { width: 42px; height: 42px; }
  .bc-ic svg { width: 21px; height: 21px; }
  .bc-card.is-up-1   { transform: translate(-50%, calc(-50% - 78px)); }
  .bc-card.is-down-1 { transform: translate(-50%, calc(-50% + 78px)); }
  .bc-card.is-up-2   { transform: translate(-50%, calc(-50% - 138px)); }
  .bc-card.is-down-2 { transform: translate(-50%, calc(-50% + 138px)); }

  /* Pfeile mobil: oben/unten, horizontal zentriert */
  .bc-arrow { top: auto; transform: translateX(-50%); left: 50%; right: auto; }
  .bc-arrow:hover { transform: translateX(-50%) scale(1.12); }
  .bc-arrow.up   { top: 0;    bottom: auto; left: 50%; right: auto; }
  .bc-arrow.down { bottom: 0; top: auto;    left: 50%; right: auto; }
}
