/* SIMMELADEN – passgenaue blinkende Lichter am kleinen Baum neben dem Schneemann. */
.hero-tree-lights {
  position:absolute;
  /* Die Ebene besitzt dieselben Originalmaße wie das Foto (1672 × 940).
     JavaScript setzt die exakte Skalierung samt Bildbeschnitt (object-fit:cover).
     So bleiben die Leuchtpunkte bei jeder Fenstergröße auf dem Baum. */
  inset:auto;
  left:0;
  top:0;
  width:1672px;
  height:940px;
  transform-origin:0 0;
  z-index:2;
  pointer-events:none;
}
html:not(.advent-active) .hero-tree-lights {display:none!important;}
.hero-tree-lights .tree-bulb {
  position:absolute;
  /* Abgleich mit den drei unveränderten 1672×940-Winterfotos:
     Die Stern-/Baumspitze liegt auf dem Originalbild bei ca.
     x=62,75 %, y=65,85 %, die ältere LED-Referenz jedoch
     bei x=61,65 %, y=67,65 %. Diesen Versatz *innerhalb der
     Fotoebene* korrigieren, bevor das JS object-fit:cover skaliert.
     Dadurch bleibt die Position unabhängig von der Fenstergröße. */
  left:calc(var(--x) + 1.10%);
  top:calc(var(--y) - 1.80%);
  width:var(--size);
  height:var(--size);
  transform:translate(-50%,-50%);
}
.hero-tree-lights .tree-bulb::before,
.hero-tree-lights .tree-bulb::after {
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
}
/* dunkelt die vorhandene Lampe im Foto in der Aus-Phase leicht ab */
.hero-tree-lights .tree-bulb::before {
  inset:-2px;
  background:radial-gradient(circle, rgba(19,22,20,.72) 0 45%, rgba(19,22,20,.35) 60%, rgba(19,22,20,0) 100%);
  opacity:0;
  filter:blur(.3px);
}
/* Zusatzglühen für die Ein-Phase */
.hero-tree-lights .tree-bulb::after {
  background:radial-gradient(circle,
    rgba(255,250,229,.98) 0 28%,
    rgba(255,232,166,.98) 29% 48%,
    rgba(255,193,86,.9) 49% 63%,
    rgba(255,160,46,.35) 64% 100%);
  box-shadow:
    0 0 6px 2px rgba(255,200,102,.65),
    0 0 12px 4px rgba(255,176,69,.28);
  opacity:.82;
}
.hero-tree-lights .tree-bulb.always-on::before {display:none;}
.hero-tree-lights .tree-bulb.always-on::after {
  opacity:.72;
  animation:tree-steady 5.6s ease-in-out infinite;
}
.hero-tree-lights .tree-bulb.blink-a::before {animation:tree-mask-a 4.8s ease-in-out infinite;}
.hero-tree-lights .tree-bulb.blink-a::after {animation:tree-glow-a 4.8s ease-in-out infinite;}
.hero-tree-lights .tree-bulb.blink-b::before {animation:tree-mask-b 5.1s ease-in-out infinite;}
.hero-tree-lights .tree-bulb.blink-b::after {animation:tree-glow-b 5.1s ease-in-out infinite;}
@keyframes tree-steady {
  0%,100% {opacity:.68;}
  50% {opacity:.82;}
}
@keyframes tree-glow-a {
  0%,17%,48%,68%,100% {opacity:.95;}
  24%,39%,79%,92% {opacity:.10;}
}
@keyframes tree-mask-a {
  0%,17%,48%,68%,100% {opacity:0;}
  24%,39%,79%,92% {opacity:.86;}
}
@keyframes tree-glow-b {
  0%,14%,27%,58%,73%,100% {opacity:.12;}
  20%,50%,67%,90% {opacity:.96;}
}
@keyframes tree-mask-b {
  0%,14%,27%,58%,73%,100% {opacity:.84;}
  20%,50%,67%,90% {opacity:0;}
}
@media (max-width:520px) {
  .photo-hero > .hero-tree-lights {display:none!important;}
  .mobile-start-photo .hero-tree-lights {z-index:3;}
}
@media (prefers-reduced-motion:reduce) {
  .hero-tree-lights .tree-bulb::before,
  .hero-tree-lights .tree-bulb::after {animation:none!important;}
  .hero-tree-lights .tree-bulb.always-on::after,
  .hero-tree-lights .tree-bulb.blink-a::after,
  .hero-tree-lights .tree-bulb.blink-b::after {opacity:.75!important;}
  .hero-tree-lights .tree-bulb::before {opacity:0!important;}
}
