.section-head{ align-items: center; justify-content: center; text-align: center; }

/* Add these styles (clean “service detail” blocks) */
.service-detail{
  border-radius: 1.5rem;
  padding: 1.25rem;
  border: 1px solid rgba(2,6,23,.08);
  background: #fff;
  box-shadow: 0 10px 26px rgba(0,0,0,.06);
  margin-bottom: 1.25rem;
}

.service-detail-alt{
  background: rgba(2,6,23,.02);
}

.service-detail-media{
  width: 100%;
  min-height: 500px;
  border-radius: 1.35rem;
  background-size: cover;
  background-position: center;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.22);
  overflow: hidden;
  position: relative;
}


.service-detail-content{
  padding: .25rem 0;
}

.service-detail-kicker{
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .78rem;
  color: var(--p2);
  margin-bottom: .6rem;
}

.service-detail-title{
  font-weight: 900;
  margin: 0 0 .5rem;
}

.service-detail-text{
  color: rgba(15,23,42,.68);
  margin: 0 0 1rem;
  max-width: 70ch;
}

/* clean bullets with blue dots */
.bullet-list{
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: .55rem;
}

.bullet-list li{
  position: relative;
  padding-left: 1.25rem;
  color: rgba(15,23,42,.82);
}

.bullet-list li::before{
  content:"";
  position:absolute;
  left: 0;
  top: .55em;
  width: .55rem;
  height: .55rem;
  border-radius: 999px;
  background: var(--p2);
  box-shadow: 0 0 0 4px rgba(98,155,206,.18);
}

@media (max-width: 991px){
  .service-detail{ padding: 1rem; }
  .service-detail-media{ min-height: 240px; }
}


.parallax-overlay{
  background: linear-gradient(90deg, rgba(2,6,23,.48), rgba(2,6,23,.28));
}

.parallax-text{
  color: rgba(255,255,255);
  font-size: clamp(1rem, 2vw, 1.8rem);
}


/* Before/After slider */
/* Before/After slider (improved) */
.before-after{
  --pos: 50%;
  background: none !important;
  position: relative;
  overflow: hidden;
  border-radius: 1.35rem;
  box-shadow: 0 12px 30px rgba(0,0,0,.12);
  border: 1px solid rgba(255,255,255,.22);
  min-height: clamp(240px, 40vw, 520px);
  user-select: none;

  /* allow vertical scroll on mobile while we handle horizontal drag */
  touch-action: pan-y;
}

.before-after__img{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-user-drag: none;
  pointer-events: none;
}

/* IMPORTANT: clip container stays FULL size; we mask instead of changing width */
.before-after__clip{
  position: absolute;
  inset: 0;
  overflow: hidden;

  /* show LEFT side of "before" image up to --pos */
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
  will-change: clip-path;

  transition: clip-path 180ms ease;
}

/* Range covers the whole area for accessibility, but we also support drag-anywhere */
.before-after__range{
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
}

/* Handle */
.before-after__handle{
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--pos);
  transform: translateX(-50%);
  width: 2px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 0 0 1px rgba(2,6,23,.12), 0 10px 26px rgba(0,0,0,.18);
  pointer-events: none;

  transition: left 180ms ease;
}

.before-after__handle::after{
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 46px;
  height: 46px;
  transform: translate(-50%,-50%);
  border-radius: 999px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 26px rgba(0,0,0,.18);
  border: 1px solid rgba(2,6,23,.12);
}

/* optional: little arrows in the knob */
.before-after__handle::before{
  content: "↔";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  font-weight: 900;
  font-size: 16px;
  color: rgba(2,6,23,.65);
}

/* Labels */
.before-after__label{
  position: absolute;
  top: 12px;
  padding: .35rem .6rem;
  font-weight: 800;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.95);
  background: rgba(2,6,23,.45);
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  backdrop-filter: blur(6px);
  pointer-events: none;
}
.before-after__label--before{ left: 12px; }
.before-after__label--after{ right: 12px; }

/* While dragging, remove easing so it feels “locked” to finger */
.before-after.is-dragging .before-after__clip,
.before-after.is-dragging .before-after__handle{
  transition: none;
}

@media (max-width: 991px){
  .before-after{ min-height: 240px; }
}


/* Video hero for inner pages (garten/reinigung) */
.page-hero-video{
  position: relative;
  min-height: 100vh;          /* slightly shorter than home, tweak as you like */
  display: flex;
  align-items: center;
  overflow: hidden;
}

/* Overlay tuned for readable text on different videos */
.page-hero-overlay{
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
    rgba(2,6,23,.82),
    rgba(2,6,23,.50) 45%,
    rgba(2,6,23,.22)
  );
  z-index: 1;
}

/* Ensure text sits above overlay/video */
.page-hero-video .hero-content{
  position: relative;
  z-index: 2;
}
