:root {
  --strahl-yellow: #ffc400;
  --strahl-dark: #050608;
}

.strahl-ba-wrapper {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
}

.strahl-ba-warning {
  padding: 16px 18px;
  border: 1px solid #ffc400;
  background: #15181f;
  color: #fff;
  border-radius: 10px;
  font-family: Inter, Arial, sans-serif;
}

.strahl-ba-slider {
  position: relative;
  width: 100%;
  height: var(--strahl-ba-height, 420px);
  overflow: hidden;
  border-radius: 18px;
  background: #111;
  border: 1px solid rgba(255,255,255,0.12);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
  user-select: none;
  isolation: isolate;
}

.strahl-ba-img {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover;
  object-position: center center;
  display: block;
  pointer-events: none;
}

.strahl-ba-after {
  z-index: 1;
}

.strahl-ba-before {
  z-index: 2;
  clip-path: inset(0 50% 0 0);
  -webkit-clip-path: inset(0 50% 0 0);
}

.strahl-ba-line {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 3px;
  transform: translateX(-50%);
  background: var(--strahl-yellow);
  z-index: 4;
  box-shadow: 0 0 18px rgba(255,196,0,0.55);
}

.strahl-ba-handle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(-50%, -50%);
  border-radius: 999px;
  border: 2px solid var(--strahl-yellow);
  background: rgba(5,6,8,0.78);
  z-index: 5;
  cursor: ew-resize;
  box-shadow: 0 0 22px rgba(255,196,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0;
}

.strahl-ba-arrow {
  display: block;
  width: 0;
  height: 0;
  border-top: 7px solid transparent;
  border-bottom: 7px solid transparent;
}

.strahl-ba-arrow.left {
  border-right: 8px solid var(--strahl-yellow);
}

.strahl-ba-arrow.right {
  border-left: 8px solid var(--strahl-yellow);
}

.strahl-ba-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: ew-resize;
  z-index: 6;
  margin: 0;
}

.strahl-ba-slider::before,
.strahl-ba-slider::after {
  position: absolute;
  top: 16px;
  z-index: 3;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(5,6,8,0.72);
  border: 1px solid rgba(255,196,0,0.45);
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  pointer-events: none;
}

.strahl-ba-slider::before {
  content: attr(data-before-label);
  left: 16px;
}

.strahl-ba-slider::after {
  content: attr(data-after-label);
  right: 16px;
}

@media (max-width: 767px) {
  .strahl-ba-slider {
    height: var(--strahl-ba-height-mobile, 280px);
    border-radius: 14px;
  }

  .strahl-ba-handle {
    width: 38px;
    height: 38px;
  }
}
