/* v7: LED nur auf der Aussenkontur, Rahmen weg, sauberer Strahl */
.pm-stage{width:fit-content;max-width:100%;display:block}
.s3-vis-pm .pm-stage .s3-pmimg{position:relative!important;left:auto!important;bottom:auto!important;transform:none!important;height:100%!important;width:auto!important;display:block!important;line-height:0}
.s3-vis-pm .pm-stage .s3-pmimg img{height:100%;width:auto;display:block}

/* SVG deckt exakt das Maschinenbild ab; Strich darf rausragen */
.pm-ol{position:absolute;left:0;top:0;width:100%;height:100%;z-index:5;pointer-events:none;overflow:visible}
.pm-ol path{fill:none;stroke-linejoin:round;stroke-linecap:round}

/* Laufender weisser LED-Strahl: weicher Glow + knackiger Kern, nahtloser Loop */
.pm-ol .ol-run{
  stroke:#fff;
  stroke-width:9;
  stroke-dasharray:90 70;
  animation:ol-flow 2.4s linear infinite;
  filter:drop-shadow(0 0 2px #fff) drop-shadow(0 0 5px rgba(255,255,255,.9));
  will-change:stroke-dashoffset
}
.pm-ol .ol-core{
  stroke:#fff;
  stroke-width:4;
  stroke-dasharray:90 70;
  animation:ol-flow 2.4s linear infinite;
  filter:none;
  will-change:stroke-dashoffset
}
/* pathLength=1600, Muster 160 -> Offset -1600 ist ein exakter Loop ohne Ruckler */
@keyframes ol-flow{to{stroke-dashoffset:-1600}}

/* Statischen Rechteck-Rahmen vollständig ausblenden (Markup bleibt) */
.pm-led,.pm-led::before,.pm-led::after{
  display:none!important;
  content:none!important;
  background:none!important;
  animation:none!important;
  opacity:0!important;
  visibility:hidden!important;
  filter:none!important
}

.pm-stage,.s3-vis,.s3-card,.s3-vis-pm{overflow:visible!important}

/* Popcorn-Burst unverändert aus v6 */
.pm-pop{inset:0!important;left:0!important;top:0!important;width:100%!important;height:100%!important;transform:none!important;z-index:6;overflow:visible!important}
.pm-pop i{left:50%!important;top:20%!important;width:var(--s,40px)!important;height:var(--s,40px)!important;margin-left:calc(var(--s,40px)/-2);margin-top:calc(var(--s,40px)/-2);
 background:var(--k) center/contain no-repeat!important;opacity:0;filter:drop-shadow(0 3px 4px rgba(0,0,0,.45));
 animation:pm-arc 2.7s linear infinite!important;animation-delay:var(--d,0s)!important;will-change:transform,opacity}
@keyframes pm-arc{
 0%{opacity:0;transform:translate3d(0,0,0) scale(.4) rotate(0);animation-timing-function:cubic-bezier(.2,.7,.3,1)}
 6%{opacity:1}
 38%{transform:translate3d(calc(var(--dx)*.55),var(--pk),0) scale(1.15) rotate(calc(var(--r)*.5));animation-timing-function:cubic-bezier(.5,0,.9,.6)}
 85%{opacity:1}
 100%{opacity:0;transform:translate3d(var(--dx),calc(var(--pk)*-.25 + var(--fl) + 160px),0) scale(.9) rotate(var(--r))}
}
@media(max-width:760px){
  .pm-ol .ol-run{stroke-width:11}
  .pm-ol .ol-core{stroke-width:5}
}
@media (prefers-reduced-motion:reduce){
  .pm-ol .ol-run,.pm-ol .ol-core{animation:none!important;stroke-dasharray:none}
  .pm-ol .ol-run{stroke-width:7}
  .pm-ol .ol-core{stroke-width:3.5}
  .pm-pop i{animation:none!important;opacity:0!important}
}
.pm-pop i:nth-child(1){--s:57px;--dx:60px;--pk:-148px;--fl:-27px;--d:0.00s;--r:362deg;--k:url(../img/v4/kernel-1.webp)}
.pm-pop i:nth-child(2){--s:36px;--dx:-91px;--pk:-129px;--fl:-29px;--d:0.19s;--r:-170deg;--k:url(../img/v4/kernel-2.webp)}
.pm-pop i:nth-child(3){--s:58px;--dx:81px;--pk:-180px;--fl:-3px;--d:0.38s;--r:190deg;--k:url(../img/v4/kernel-3.webp)}
.pm-pop i:nth-child(4){--s:45px;--dx:-58px;--pk:-176px;--fl:28px;--d:0.57s;--r:-301deg;--k:url(../img/v4/kernel-1.webp)}
.pm-pop i:nth-child(5){--s:42px;--dx:129px;--pk:-132px;--fl:-27px;--d:0.76s;--r:269deg;--k:url(../img/v4/kernel-2.webp)}
.pm-pop i:nth-child(6){--s:42px;--dx:-150px;--pk:-113px;--fl:-7px;--d:0.95s;--r:-259deg;--k:url(../img/v4/kernel-3.webp)}
.pm-pop i:nth-child(7){--s:54px;--dx:51px;--pk:-149px;--fl:-3px;--d:1.14s;--r:350deg;--k:url(../img/v4/kernel-1.webp)}
.pm-pop i:nth-child(8){--s:55px;--dx:-41px;--pk:-187px;--fl:3px;--d:1.33s;--r:-358deg;--k:url(../img/v4/kernel-2.webp)}
.pm-pop i:nth-child(9){--s:41px;--dx:94px;--pk:-141px;--fl:-18px;--d:1.52s;--r:402deg;--k:url(../img/v4/kernel-3.webp)}
.pm-pop i:nth-child(10){--s:43px;--dx:-65px;--pk:-121px;--fl:30px;--d:1.71s;--r:-163deg;--k:url(../img/v4/kernel-1.webp)}
.pm-pop i:nth-child(11){--s:56px;--dx:146px;--pk:-147px;--fl:33px;--d:1.90s;--r:319deg;--k:url(../img/v4/kernel-2.webp)}
.pm-pop i:nth-child(12){--s:40px;--dx:-138px;--pk:-207px;--fl:25px;--d:2.09s;--r:-371deg;--k:url(../img/v4/kernel-3.webp)}
.pm-pop i:nth-child(13){--s:47px;--dx:84px;--pk:-186px;--fl:-4px;--d:2.28s;--r:391deg;--k:url(../img/v4/kernel-1.webp)}
.pm-pop i:nth-child(14){--s:42px;--dx:-50px;--pk:-139px;--fl:-1px;--d:2.47s;--r:-182deg;--k:url(../img/v4/kernel-2.webp)}
