/* ===============================
   Floating Sticky Slideout Modul
   =============================== */

.floating-sticky{
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: var(--fs-z-index, 9999);
  font-family: system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
}

.floating-sticky.is-right{ right: 0; }
.floating-sticky.is-left{ left: 0; }

/* Griff */
.floating-sticky__handle{
  width: 38px;
  height: 140px;
  background: var(--fs-handle-color, #c40000);
  color: #fff;

  display: flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;
  user-select: none;

  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;

  box-shadow: 0 6px 18px rgba(0,0,0,.25);
}

/* Abrundung je Seite */
.floating-sticky.is-right .floating-sticky__handle{
  border-radius: 12px 0 0 12px;
}
.floating-sticky.is-left .floating-sticky__handle{
  border-radius: 0 12px 12px 0;
}

/* Panel */
.floating-sticky__panel{
  position: absolute;
  top: 0;
  width: var(--fs-panel-width, 260px);
  padding: 14px 16px;

  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.25);

  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;

  transition: transform .3s ease, opacity .25s ease;
}

/* Panel Position je Seite */
.floating-sticky.is-right .floating-sticky__panel{
  right: 38px;
  border-radius: 12px 0 0 12px;
  transform: translateX(100%);
}
.floating-sticky.is-left .floating-sticky__panel{
  left: 38px;
  border-radius: 0 12px 12px 0;
  transform: translateX(-100%);
}

/* Hover öffnet */
.floating-sticky:hover .floating-sticky__panel{
  opacity: 1;
  pointer-events: auto;
}

.floating-sticky.is-right:hover .floating-sticky__panel{ transform: translateX(0); }
.floating-sticky.is-left:hover .floating-sticky__panel{ transform: translateX(0); }

.floating-sticky__panel strong{
  display: block;
  margin-bottom: 6px;
  font-size: 15px;
}

.floating-sticky__panel p{
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.4;
}

/* Button */
.floating-sticky__btn{
  display: inline-block;
  padding: 10px 14px;
  background: var(--fs-button-color, #111);
  color: #fff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 14px;
}

/* ===============================
   Mobile Optimierung
   =============================== */
@media (max-width: 768px){
  .floating-sticky{
    top: auto;
    bottom: 12px;
    transform: none;
    right: 12px;
    left: auto;
  }

  .floating-sticky.is-left{
    left: 12px;
    right: auto;
  }

  .floating-sticky__handle{
    width: auto;
    height: auto;
    padding: 10px 14px;
    writing-mode: horizontal-tb;
    border-radius: 10px;
  }

  .floating-sticky__panel{
    top: auto;
    bottom: 52px;
    left: 0;
    right: 0;
    width: calc(100vw - 24px);

    transform: translateY(20px);
  }

  .floating-sticky:hover .floating-sticky__panel{
    transform: translateY(0);
  }
}
