/* ═══════════════════════════════════════════════════════════════════
   BEWERTUNGEN — Umsetzung von „Bewertungen.dc.html" (Claude Design)
   Stand 05.08.2026

   3D-Coverflow statt des bisherigen CSS-Marquees. Die Daten kommen
   unverändert aus bsd_reviews() / bsd_reviews_meta() — die Zitate im
   Entwurf waren wortidentisch mit dem Bestand.

   Wird von bsd_render_reviews_section() ausgegeben und damit auch auf
   page-leistungen.php mitgenutzt.
   ═══════════════════════════════════════════════════════════════════ */

.bd-rev {
  --bdr-gold:    #D9AC5C;
  --bdr-gold-hi: #F0CC8A;
  --bdr-green:   #7BC98A;

  position: relative; isolation: isolate; overflow: hidden;
  background: #07080A; color: #FFFFFF;
  padding: 96px 24px 110px;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ── Bühne im Hintergrund ───────────────────────────────────────── */
.bd-rev-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.bd-rev-blob { position: absolute; border-radius: 50%; }
.bd-rev-blob--a {
  width: 900px; height: 900px; left: -18%; top: -22%;
  background: radial-gradient(closest-side, rgba(217,172,92,0.13), transparent 70%);
  filter: blur(40px); animation: bdrDrift 24s ease-in-out infinite;
}
.bd-rev-blob--b {
  width: 780px; height: 780px; right: -16%; bottom: -26%;
  background: radial-gradient(closest-side, rgba(217,172,92,0.09), transparent 70%);
  filter: blur(50px); animation: bdrDrift2 30s ease-in-out infinite;
}
.bd-rev-beam {
  position: absolute; left: 50%; top: -30%;
  width: 1100px; height: 1100px; margin-left: -550px;
  background: conic-gradient(from 0deg, rgba(217,172,92,0) 0deg,
              rgba(217,172,92,0.07) 40deg, rgba(217,172,92,0) 80deg);
  animation: bdrBeam 26s linear infinite;
}
.bd-rev-grid {
  position: absolute; left: -20%; right: -20%; bottom: -10%; height: 60%;
  transform: perspective(700px) rotateX(64deg); transform-origin: bottom center;
  background-image: linear-gradient(rgba(217,172,92,0.10) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(217,172,92,0.10) 1px, transparent 1px);
  background-size: 46px 46px;
  animation: bdrGrid 3s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.8) 40%, transparent 95%);
          mask-image: linear-gradient(180deg, transparent, rgba(0,0,0,0.8) 40%, transparent 95%);
}
.bd-rev-star {
  position: absolute; color: rgba(217,172,92,0.35); font-size: 14px;
  animation: bdrFloat 9s ease-in-out infinite;
}

/* ── Kopf ───────────────────────────────────────────────────────── */
.bd-rev-inner { position: relative; z-index: 3; max-width: 1240px; margin: 0 auto; }
.bd-rev-head {
  display: flex; justify-content: space-between; align-items: flex-end;
  gap: 40px; flex-wrap: wrap;
}
.bd-rev-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 13px; font-weight: 700; letter-spacing: 3.5px;
  text-transform: uppercase; color: var(--bdr-gold);
}
.bd-rev-eyebrow i { width: 36px; height: 1px; background: var(--bdr-gold); flex: none; }
.bd-rev h2.bd-rev-h2 {
  margin: 16px 0 0; max-width: 720px;
  font-size: clamp(34px, 4.4vw, 56px); line-height: 1.12;
  font-weight: 800; letter-spacing: -0.02em; color: #FFFFFF; text-wrap: balance;
}
.bd-rev .bd-rev-sub {
  margin: 14px 0 0; max-width: 620px;
  font-size: 17px; line-height: 1.6; color: rgba(255,255,255,0.55); text-wrap: pretty;
}

/* Score-Karte */
.bd-rev-score {
  position: relative; flex: none;
  display: flex; align-items: center; gap: 20px;
  padding: 24px 30px; border-radius: 20px;
  border: 1px solid rgba(217,172,92,0.28);
  background: rgba(255,255,255,0.02);
}
.bd-rev-score::after {
  content: ''; position: absolute; inset: -1px; border-radius: 20px;
  border: 1px solid rgba(217,172,92,0.4); pointer-events: none;
  animation: bdrPulseRing 3s ease-out infinite;
}
.bd-rev-score-num {
  font-size: 54px; line-height: 1; font-weight: 800;
  background: linear-gradient(180deg, #F0CC8A, #C89A4B);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.bd-rev-score-stars { display: flex; gap: 3px; font-size: 17px; color: var(--bdr-gold); }
.bd-rev-score-stars i { font-style: normal; animation: bdrStarPop .6s cubic-bezier(.2,.8,.2,1) backwards; }
.bd-rev-score-stars i:nth-child(1) { animation-delay: .2s; }
.bd-rev-score-stars i:nth-child(2) { animation-delay: .35s; }
.bd-rev-score-stars i:nth-child(3) { animation-delay: .5s; }
.bd-rev-score-stars i:nth-child(4) { animation-delay: .65s; }
.bd-rev-score-stars i:nth-child(5) { animation-delay: .8s; }
.bd-rev-score-txt { margin-top: 6px; font-size: 13px; color: rgba(255,255,255,0.55); }

/* ── Karussell ──────────────────────────────────────────────────── */
.bd-rev-stage {
  position: relative; z-index: 3;
  max-width: 1400px; margin: 56px auto 0; height: 540px;
  perspective: 1300px;
  touch-action: pan-y;
}
.bd-rev-card {
  --off: 0;
  position: absolute; left: 50%; top: 0;
  width: 520px; max-width: 86vw; height: 440px;
  box-sizing: border-box; padding: 34px 38px;
  border-radius: 22px;
  background: linear-gradient(165deg, rgba(20,21,26,0.92), rgba(12,13,16,0.94) 60%);
  border: 1px solid rgba(255,255,255,0.09);
  box-shadow: 0 30px 70px rgba(0,0,0,0.55);
  display: flex; flex-direction: column;
  cursor: pointer;
  transform: translateX(-50%) translateX(calc(var(--off) * 330px))
             translateZ(calc(var(--off) * var(--off) * -150px))
             rotateY(calc(var(--off) * -22deg))
             scale(calc(1 - min(0.28, var(--off) * var(--off) * 0.14)));
  opacity: .55;
  filter: saturate(.75) brightness(.8);
  transition: transform .6s cubic-bezier(.2,.8,.2,1), opacity .5s, filter .5s,
              border-color .5s, box-shadow .5s;
}
.bd-rev-card.is-active {
  opacity: 1; filter: none; cursor: default;
  border-color: rgba(217,172,92,0.55);
  box-shadow: 0 40px 90px rgba(0,0,0,0.65), 0 0 60px -20px rgba(217,172,92,0.35);
  z-index: 5;
}
.bd-rev-card.is-far { opacity: 0; pointer-events: none; }

.bd-rev-quotemark {
  position: absolute; left: 26px; top: 4px;
  font-family: Georgia, serif; font-size: 110px; line-height: 1;
  color: rgba(217,172,92,0.28); pointer-events: none; user-select: none;
}
.bd-rev-card-top {
  position: relative; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; flex-wrap: wrap;
}
.bd-rev-card-stars { font-size: 17px; color: var(--bdr-gold); text-shadow: 0 0 14px rgba(217,172,92,0.5); }
.bd-rev-verified {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  border: 1px solid rgba(123,201,138,0.35);
  font-size: 11.5px; font-weight: 600; color: rgba(255,255,255,0.7);
  white-space: nowrap;
}
.bd-rev-verified b { color: var(--bdr-green); }

.bd-rev .bd-rev-text {
  position: relative; margin: 22px 0 0; flex: 1;
  font-size: 16px; line-height: 1.66; color: rgba(255,255,255,0.86);
  overflow: hidden;
}
.bd-rev-text b { color: var(--bdr-gold-hi); font-weight: 600; }

.bd-rev-card-foot {
  display: flex; align-items: center; gap: 14px;
  margin-top: 20px; padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.bd-rev-avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, #E8C67E, #A87B32);
  color: #14100A; font-size: 18px; font-weight: 800;
}
.bd-rev-author { font-size: 15.5px; font-weight: 700; color: #FFFFFF; }
.bd-rev-meta { margin-top: 2px; font-size: 13px; color: rgba(255,255,255,0.5); }

/* ── Steuerung ──────────────────────────────────────────────────── */
.bd-rev-ctrl {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 30px;
}
.bd-rev-arrow {
  width: 52px; height: 52px; border-radius: 50%; flex: none;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(217,172,92,0.4);
  background: rgba(255,255,255,0.02);
  color: var(--bdr-gold); font-size: 17px; cursor: pointer;
  transition: background .25s, border-color .25s, box-shadow .25s, color .25s;
}
.bd-rev-arrow:hover {
  background: rgba(217,172,92,0.12); border-color: var(--bdr-gold);
  color: var(--bdr-gold-hi); box-shadow: 0 0 24px -6px rgba(217,172,92,0.6);
}
.bd-rev-arrow:focus-visible { outline: 2px solid var(--bdr-gold); outline-offset: 3px; }
.bd-rev-dots { display: flex; align-items: center; gap: 8px; }
.bd-rev-dot {
  position: relative; width: 8px; height: 8px; border-radius: 999px;
  border: 0; padding: 0; overflow: hidden; cursor: pointer;
  background: rgba(255,255,255,0.22);
  transition: width .5s cubic-bezier(.2,.8,.2,1), background .4s;
}
.bd-rev-dot.is-active { width: 42px; background: rgba(217,172,92,0.25); }
.bd-rev-dot-fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0; border-radius: 999px;
  background: linear-gradient(90deg, var(--bdr-gold), var(--bdr-gold-hi));
}
.bd-rev-dot.is-active .bd-rev-dot-fill { animation: bdrProgress var(--bdr-int, 5s) linear forwards; }
.bd-rev-dot:focus-visible { outline: 2px solid var(--bdr-gold); outline-offset: 3px; }

.bd-rev-swipe {
  display: none; margin-top: 16px; text-align: center;
  font-size: 11px; font-weight: 600; letter-spacing: .12em;
  text-transform: uppercase; color: rgba(217,172,92,0.6);
}

/* ── Abschluss ──────────────────────────────────────────────────── */
.bd-rev-cta {
  position: relative; z-index: 3;
  display: flex; align-items: center; justify-content: center;
  gap: 22px; flex-wrap: wrap; margin-top: 44px;
}
.bd-rev .bd-rev-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 15px 30px; border-radius: 999px;
  background: linear-gradient(180deg, #F0CC8A, #C89A4B);
  color: #14100A; font-size: 15.5px; font-weight: 700; text-decoration: none;
  box-shadow: 0 12px 30px rgba(217,172,92,0.28);
  transition: transform .25s, box-shadow .25s;
}
.bd-rev .bd-rev-cta-btn:hover {
  transform: translateY(-2px); color: #14100A;
  box-shadow: 0 18px 40px rgba(217,172,92,0.42);
}
.bd-rev .bd-rev-cta-link {
  font-size: 14.5px; font-weight: 600; color: var(--bdr-gold); text-decoration: none;
}
.bd-rev .bd-rev-cta-link:hover { color: var(--bdr-gold-hi); }

/* ── Mobil ──────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .bd-rev { padding: 64px 16px 76px; }
  .bd-rev-head { display: block; }
  .bd-rev-score { margin-top: 26px; padding: 18px 22px; gap: 16px; }
  .bd-rev-score-num { font-size: 42px; }
  .bd-rev h2.bd-rev-h2 { font-size: 30px; }
  .bd-rev .bd-rev-sub { font-size: 15px; }

  .bd-rev-stage { height: 490px; margin-top: 36px; perspective: 900px; }
  .bd-rev-card {
    width: 86vw; height: 460px; padding: 26px 24px; border-radius: 18px;
    /* Auf Mobil flacher gestaffelt — die Nachbarn dürfen nicht stören */
    transform: translateX(-50%) translateX(calc(var(--off) * 92vw))
               rotateY(0deg) scale(1);
  }
  .bd-rev-card:not(.is-active) { opacity: 0; pointer-events: none; }
  .bd-rev-quotemark { font-size: 84px; left: 18px; }
  .bd-rev .bd-rev-text { font-size: 15px; line-height: 1.6; }
  .bd-rev-swipe { display: block; }
  .bd-rev-arrow { width: 46px; height: 46px; }
  .bd-rev-cta { gap: 14px; margin-top: 32px; }
  .bd-rev .bd-rev-cta-btn { width: 100%; justify-content: center; }
  .bd-rev .bd-rev-cta-btn:hover { transform: none; }
}

/* ── Keyframes ──────────────────────────────────────────────────── */
@keyframes bdrDrift    { 0%,100% { transform: translate3d(0,0,0) scale(1); }
                         33%     { transform: translate3d(60px,-40px,0) scale(1.12); }
                         66%     { transform: translate3d(-50px,30px,0) scale(.94); } }
@keyframes bdrDrift2   { 0%,100% { transform: translate3d(0,0,0) scale(1.05); }
                         50%     { transform: translate3d(-80px,40px,0) scale(.9); } }
@keyframes bdrBeam     { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes bdrGrid     { from { background-position: 0 0; } to { background-position: 0 46px; } }
@keyframes bdrFloat    { 0%,100% { transform: translateY(0); opacity: .35; }
                         50%     { transform: translateY(-14px); opacity: .7; } }
@keyframes bdrStarPop  { from { opacity: 0; transform: scale(.4) translateY(6px); }
                         to   { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes bdrProgress { from { width: 0; } to { width: 100%; } }
@keyframes bdrPulseRing{ 0%   { opacity: .5; transform: scale(1); }
                         100% { opacity: 0; transform: scale(1.06); } }

/* Außerhalb des Sichtbereichs alles stilllegen (bsd-bewertungen.js schaltet
   die Klasse). Betrifft Blobs, Lichtkegel, Raster, Sterne, Punkt-Fortschritt
   und Pulsring — sonst laufen sie unsichtbar weiter (analog bsd-hero.css). */
.bd-rev.is-offscreen,
.bd-rev.is-offscreen *,
.bd-rev.is-offscreen *::before,
.bd-rev.is-offscreen *::after { animation-play-state: paused !important; }

/* ── Reduzierte Bewegung ────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .bd-rev, .bd-rev *, .bd-rev *::before, .bd-rev *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
