
.cxffc-wrapper{
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  position: relative;
}

.cxffc-carousel{
  position: relative;
  width: 100%;
  padding: 40px 0 80px;
  overflow: visible;
}

.cxffc-track{
  position: relative;
  width: 100%;
  min-height: 420px;
}

/* Slides absolut gestapelt, wir verteilen sie per JS mit Klassen */
.cxffc-slide{
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  pointer-events: none;
  transition:
    transform .6s ease,
    opacity .4s ease,
    filter .4s ease;
  z-index: 1;
}

/* Basis-Karte */
.cxffc-card{
  max-width: var(--cxffc-card-max-width, 430px);
  width: 100%;
  border-radius: 18px;
  overflow: hidden;
  background: #050811;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 20px 40px rgba(0,0,0,.7);
  transform-origin: center center;
}

.cxffc-image img{
  width: 100%;
  display: block;
  border-radius: 18px 18px 0 0;
}

.cxffc-content{
  padding: 18px 20px 22px;
  color: #fff;
  font-family: inherit;
}

.cxffc-title{
  margin: 0 0 6px;
  font-size: 1.1rem;
}

.cxffc-text{
  margin: 0;
  font-size: .95rem;
  opacity: .8;
}

/* Zustand: aktiv (Mitte) */
.cxffc-slide.is-active{
  opacity: 1;
  pointer-events: auto;
  z-index: 5;
  transform: translate(-50%, -50%) scale(1);
}

.cxffc-slide.is-active .cxffc-card{
  box-shadow:
    0 0 20px rgba(0,0,0,.8),
    0 0 30px var(--cxffc-primary, #007caf),
    0 0 60px color-mix(in srgb, var(--cxffc-primary, #007caf) 40%, transparent);
  border-color: color-mix(in srgb, var(--cxffc-primary, #007caf) 60%, #ffffff 10%);
}

/* Linke / rechte Nachbarn (Fächer) */
.cxffc-slide.is-left,
.cxffc-slide.is-right{
  opacity: .65;
  pointer-events: auto;
  z-index: 3;
}

.cxffc-slide.is-left{
  transform: translate(-70%, -55%) scale(.86) rotate(-6deg);
  filter: blur(.2px);
}

.cxffc-slide.is-right{
  transform: translate(-30%, -55%) scale(.86) rotate(6deg);
  filter: blur(.2px);
}

/* Weiter außen liegende Slides – kleiner & weiter weg */
.cxffc-slide.is-far-left,
.cxffc-slide.is-far-right{
  opacity: .3;
  z-index: 2;
}

.cxffc-slide.is-far-left{
  transform: translate(-95%, -55%) scale(.75) rotate(-10deg);
  filter: blur(.6px);
}

.cxffc-slide.is-far-right{
  transform: translate(-5%, -55%) scale(.75) rotate(10deg);
  filter: blur(.6px);
}

/* Nicht sichtbare Slides */
.cxffc-slide.is-out{
  opacity: 0;
  pointer-events: none;
}

/* Navigation */
.cxffc-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.3);
  background: radial-gradient(circle at 30% 0%, rgba(255,255,255,.15), transparent),
              rgba(3,8,20,.9);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition:
    background .2s ease,
    transform .2s ease,
    box-shadow .3s ease;
}

.cxffc-prev{
  left: 10px;
}

.cxffc-next{
  right: 10px;
}

.cxffc-nav:hover{
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.25), transparent),
              var(--cxffc-primary, #007caf);
  box-shadow:
    0 0 12px rgba(0,0,0,.8),
    0 0 20px color-mix(in srgb, var(--cxffc-primary, #007caf) 40%, transparent);
  transform: translateY(-50%) scale(1.05);
}

/* Mobile: weniger Fächer-Effekt, eher Stack */
@media (max-width: 768px){
  .cxffc-carousel{
    padding: 20px 0 60px;
  }

  .cxffc-track{
    min-height: 380px;
  }

  .cxffc-slide{
    transform: translate(-50%, -50%) scale(.9);
  }

  .cxffc-slide.is-left,
  .cxffc-slide.is-right,
  .cxffc-slide.is-far-left,
  .cxffc-slide.is-far-right{
    transform: translate(-50%, -50%) scale(.8);
    opacity: .35;
    filter: none;
  }

  .cxffc-prev{
    left: 6px;
  }

  .cxffc-next{
    right: 6px;
  }
}

/* Barrierefreiheit – Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .cxffc-slide{
    transition: none !important;
  }
}