/* LST Geräte-Scroller: Laptop -> Tablet -> Smartphone, die Seite scrollt im Bildschirm mit. */
.lst-devices {
  --lst-dev-length: calc(var(--lst-dev-count, 3) * 170vh);
  position: relative;
  height: var(--lst-dev-length);
}
.lst-devices-stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 2.5vh, 28px);
  padding: clamp(76px, 11vh, 112px) 0 clamp(18px, 4vh, 40px);
  box-sizing: border-box;
  overflow: hidden;
}
.lst-devices-box {
  position: relative;
  width: min(1100px, 92vw);
  flex: 1 1 auto;
  min-height: 0;
  container-type: size;
}
.lst-dev {
  position: absolute;
  inset: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  will-change: opacity, transform;
}
.lst-dev + .lst-dev {
  opacity: 0;
  visibility: hidden;
}
.lst-dev-body {
  position: relative;
  width: min(100cqw, calc(100cqh * var(--ar)));
  aspect-ratio: var(--ar);
  box-sizing: border-box;
}
.lst-dev-screen {
  position: relative;
  overflow: hidden;
  background: #fff;
}
.lst-dev-page {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  will-change: transform;
  user-select: none;
  -webkit-user-drag: none;
}

/* Laptop: Bild mit transparentem Bildschirm liegt über der Seite */
.lst-dev--laptop .lst-dev-body { --ar: 2560 / 1685; }
.lst-dev--laptop .lst-dev-screen { position: absolute; border-radius: 1.2% / 1.8%; }
.lst-dev-shell {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  user-select: none;
}

/* Tablet und Smartphone: Rahmen per CSS */
.lst-dev--tablet .lst-dev-body,
.lst-dev--phone .lst-dev-body {
  background: #1d1d1f;
  box-shadow: 0 0 0 1.5px #b9b9be, 0 0 0 3px #e4e4e7, 0 40px 70px -32px rgba(20, 20, 30, .45);
}
.lst-dev--tablet .lst-dev-body,
.lst-dev--phone .lst-dev-body {
  display: flex;
}
.lst-dev--tablet .lst-dev-screen,
.lst-dev--phone .lst-dev-screen {
  flex: 1 1 auto;
}
.lst-dev--tablet .lst-dev-body { --ar: 0.745; border-radius: 5.5% / 4.1%; padding: 2.6%; }
.lst-dev--tablet .lst-dev-screen { border-radius: 2.6% / 1.9%; }
.lst-dev--phone .lst-dev-body { --ar: 0.485; border-radius: 14% / 6.8%; padding: 2.4%; }
.lst-dev--phone .lst-dev-screen { border-radius: 11.5% / 5.4%; }
.lst-dev-island {
  position: absolute;
  top: 2.6%;
  left: 50%;
  width: 26%;
  height: 2.7%;
  transform: translateX(-50%);
  background: #000;
  border-radius: 999px;
}

/* Anzeige, welches Gerät gerade läuft */
.lst-devices-steps {
  display: flex;
  gap: clamp(18px, 3vw, 36px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.lst-devices-steps li {
  position: relative;
  padding-bottom: 6px;
  color: var(--color-muted, #7a7a7a);
  font-size: var(--text-sm, 14px);
  line-height: 1.4;
  transition: color .3s;
}
.lst-devices-steps li::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: calc(var(--fill, 0) * 100%);
  height: 2px;
  background: var(--color-accent, #007194);
  border-radius: 2px;
}
.lst-devices-steps li.is-active { color: var(--color-text, #1a1a1f); }

@media (max-width: 767px) {
  .lst-devices { --lst-dev-length: calc(var(--lst-dev-count, 3) * 140vh); }
  .lst-devices-stage { padding-top: 76px; }
}

/* Desktop: schmalere Rahmen */
@media (min-width: 768px) {
  .lst-dev--tablet .lst-dev-body { --ar: 0.745; border-radius: 5.5% / 4.1%; padding: 1.6%; }
  .lst-dev--tablet .lst-dev-screen { border-radius: max(0px, min(100cqw, 100cqh * 0.745) * 0.055 - 1.6cqw); }
  .lst-dev--phone .lst-dev-body { --ar: 0.485; border-radius: 14% / 6.8%; padding: 1.4%; }
  .lst-dev--phone .lst-dev-screen { border-radius: max(0px, min(100cqw, 100cqh * 0.485) * 0.14 - 1.4cqw); }
  .lst-dev--phone .lst-dev-island { top: 2.2%; }
}

/* Ohne Bewegung: alle Geräte nebeneinander, Seite oben */
.lst-devices.is-static { height: auto; }
.lst-devices.is-static .lst-devices-stage { position: relative; height: auto; padding: 0; }
.lst-devices.is-static .lst-devices-box {
  container-type: normal;
  display: grid;
  grid-template-columns: 2.2fr 1fr .62fr;
  align-items: end;
  gap: 4%;
}
.lst-devices.is-static .lst-dev { position: relative; inset: auto; opacity: 1; visibility: visible; transform: none; }
.lst-devices.is-static .lst-dev-body { width: 100%; }
.lst-devices.is-static .lst-devices-steps { display: none; }
