/* =========================================================
   Coverflow — 3D-Behandlungs-Karussell (vanilla port)
   Eigenständige Komponente, dunkle Bühne für maximalen Kontrast
   zu den hellen Leistungs-Kacheln auf der Startseite.
   ========================================================= */

.coverflow {
  position: relative;
  width: 100%;
  min-height: 760px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 5rem 0;
  background: #14231d;
  color: #FFFFFF;
  user-select: none;
}

.coverflow-ambience {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}
.coverflow-ambience img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(.22) blur(32px);
  transform: scale(1.15);
  transition: opacity 1000ms ease, filter 1000ms ease;
}
.coverflow-ambience::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(20,35,29,.3) 0%, rgba(15,25,20,.94) 100%);
}

.coverflow-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1152px;
  margin-inline: auto;
  padding-inline: 1.25rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.coverflow-eyebrow {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 2rem;
}
.coverflow-eyebrow span.line { width: 36px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold, #C79A3E)); }
.coverflow-eyebrow span.line.right { background: linear-gradient(90deg, var(--gold, #C79A3E), transparent); }
.coverflow-eyebrow h3 {
  font-family: 'Inter', sans-serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold, #C79A3E);
  margin: 0;
}

.coverflow-stage {
  position: relative;
  width: 100%;
  height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 2rem;
  perspective: 1400px;
}

.coverflow-card {
  position: absolute;
  width: 330px;
  height: 500px;
  border-radius: 18px;
  overflow: hidden;
  background: #171311;
  border: 1px solid rgba(255,255,255,.12);
  transform-origin: center center;
  transition: transform 800ms cubic-bezier(.25,1,.5,1), opacity 800ms cubic-bezier(.25,1,.5,1), filter 800ms cubic-bezier(.25,1,.5,1), box-shadow 800ms ease;
  will-change: transform, opacity, filter;
}
.coverflow-card.is-center { cursor: default; box-shadow: 0 25px 60px rgba(0,0,0,.9), 0 0 35px rgba(197,168,128,.25); }
.coverflow-card:not(.is-center) { cursor: pointer; box-shadow: 0 15px 35px rgba(0,0,0,.5); }

.coverflow-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.coverflow-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.4) 0%, rgba(0,0,0,.1) 25%, rgba(0,0,0,.68) 60%, rgba(0,0,0,.96) 100%);
  z-index: 1;
  pointer-events: none;
}

.coverflow-content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  padding: 1.25rem 1.1rem 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-align: center;
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 500ms ease, transform 500ms ease;
  pointer-events: none;
}
.coverflow-card.is-center .coverflow-content { opacity: 1; transform: translateY(0); pointer-events: auto; }

.coverflow-tag {
  text-align: right;
  width: 100%;
  padding-right: .25rem;
}
.coverflow-tag span {
  display: inline-block;
  font-size: .78rem;
  font-weight: 600;
  letter-spacing: .06em;
  color: rgba(255,255,255,.9);
  text-shadow: 0 2px 6px rgba(0,0,0,.8);
}

.coverflow-body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .2rem;
  margin-top: auto;
  padding-bottom: .25rem;
}
.coverflow-body h2 {
  font-family: 'Playfair Display', serif;
  font-size: 1.55rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .03em;
  color: #fff;
  margin: 0;
  line-height: 1.1;
  text-shadow: 0 3px 12px rgba(0,0,0,.95);
}
.coverflow-body .line2 {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #f3f0ea;
  line-height: 1.2;
  text-shadow: 0 3px 10px rgba(0,0,0,.9);
}
.coverflow-rule {
  width: 34px;
  height: 2px;
  background: var(--gold, #C79A3E);
  border-radius: 2px;
  margin: .4rem auto .3rem;
  box-shadow: 0 0 8px rgba(197,168,128,.7);
}
.coverflow-body p {
  font-size: .84rem;
  font-style: italic;
  color: rgba(255,255,255,.9);
  max-width: 280px;
  margin: 0 0 .7rem;
  line-height: 1.35;
  text-shadow: 0 2px 8px rgba(0,0,0,.9);
}
.coverflow-cta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .5rem 1.15rem;
  border-radius: 9999px;
  background: linear-gradient(135deg, #C79A3E 0%, #A4823A 100%);
  color: #14231d;
  font-family: 'Inter', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,.4), 0 0 15px rgba(197,168,128,.3);
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.coverflow-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,.45), 0 0 18px rgba(197,168,128,.45); }
.coverflow-cta svg { width: 13px; height: 13px; flex-shrink: 0; }

.coverflow-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.4);
  z-index: 5;
  transition: background 200ms ease, transform 200ms ease;
}
.coverflow-nav:hover { background: rgba(0,0,0,.75); transform: translateY(-50%) scale(1.06); }
.coverflow-nav.prev { left: clamp(.5rem, 3vw, 1.5rem); }
.coverflow-nav.next { right: clamp(.5rem, 3vw, 1.5rem); }

.coverflow-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  z-index: 3;
}
.coverflow-dot {
  height: 8px;
  width: 8px;
  border-radius: 9999px;
  background: rgba(255,255,255,.25);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: width 300ms ease, background 300ms ease, box-shadow 300ms ease;
}
.coverflow-dot.is-active {
  width: 28px;
  background: var(--gold, #C79A3E);
  box-shadow: 0 0 10px rgba(197,168,128,.7);
}

@media (max-width: 860px) {
  .coverflow { min-height: 640px; padding: 3.5rem 0; }
  .coverflow-stage { height: 440px; }
  .coverflow-card { width: 250px; height: 400px; }
  .coverflow-nav { width: 40px; height: 40px; }
}
@media (max-width: 560px) {
  .coverflow-stage { height: 400px; }
  .coverflow-card { width: 210px; height: 350px; }
  .coverflow-nav.prev { left: .25rem; }
  .coverflow-nav.next { right: .25rem; }
  .coverflow-body h2 { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .coverflow-card, .coverflow-content, .coverflow-ambience img { transition: none !important; }
}
