/* Kretsch · Vorher-Nachher-Regler (22.10.2026). Vorher immer links.
   Ohne Skript steht der Regler fest in der Mitte, beide Hälften sind sichtbar. */
/* Seit 22.10.2026 (Ansage): nur ein Bad, direkt unter den SHK-Leistungen, kein eigener Abschnitt */
.vn__fall { margin: 0; }
.vn__fall--leistung { max-width: 560px; margin: clamp(24px, 3vw, 36px) auto 0; }
.vn__buehne {
  --pos: 50%;
  position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line);
  background: var(--surface); touch-action: pan-y; cursor: ew-resize; user-select: none; -webkit-user-select: none;
}
.vn__bild { display: block; width: 100%; height: auto; }
.vn__bild--vorher {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  clip-path: inset(0 calc(100% - var(--pos)) 0 0);
}
.vn__marke {
  position: absolute; top: 12px; z-index: 2; pointer-events: none;
  font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; padding: 6px 12px; border-radius: 4px;
}
.vn__marke--vorher { left: 12px; background: var(--blue-700); }
.vn__marke--nachher { right: 12px; background: var(--red-700); }
.vn__griff {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; z-index: 2;
  background: #fff; pointer-events: none; box-shadow: 0 0 0 1px rgba(10,31,68,.18);
}
.vn__griff::after {
  content: ""; position: absolute; top: 50%; left: 50%; width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%; background: #fff; box-shadow: var(--shadow-md);
}
.vn__griff::before {
  content: ""; position: absolute; top: 50%; left: 50%; z-index: 1; width: 20px; height: 12px; margin: -6px 0 0 -10px;
  background: var(--ink);
  clip-path: polygon(0 50%, 7px 0, 7px 100%, 0 50%, 100% 50%, calc(100% - 7px) 0, calc(100% - 7px) 100%, 100% 50%);
}
/* Unsichtbarer Regler für Tastatur und Vorleseprogramme, liegt über dem Bild */
.vn__regler { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; z-index: 3; touch-action: pan-y; }
.vn__regler:focus-visible ~ .vn__griff::after { outline: 3px solid var(--blue); outline-offset: 3px; }
