/* Boxenshop – Licht an */
.bx-licht-stage { position: relative; display: inline-block; max-width: 100%; vertical-align: top; z-index: 1; margin-bottom: .75rem; }
.bx-licht-stage > a { position: relative; display: inline-block; max-width: 100%; vertical-align: top; }
.bx-licht-stage > a > img:first-child { margin-bottom: 0 !important; }
/* Bildbereich der Produktseite: Rahmen nicht wie die Vorschaubilder (Raster) behandeln –
   Themes setzen hier oft Regeln mit ID (#product-info), daher !important */
.magnific-popup > .bx-licht-stage { display: inline-block !important; grid-template-columns: none !important; gap: 0 !important; margin-bottom: .75rem !important; }
.magnific-popup > .bx-licht-stage > a > img:first-child { display: block !important; max-width: 100% !important; max-height: min(600px, 75vh) !important; width: auto !important; height: auto !important; border-radius: 10px; }
.magnific-popup > .bx-licht-stage img.bx-licht-on { width: 100% !important; height: 100% !important; max-height: none !important; border-radius: 10px; }
.bx-licht-stage > a > img:first-child { transition: opacity 1.4s ease; }
.bx-licht-stage.bx-lit > a > img:first-child { opacity: 0; }
.bx-licht-stage.bx-lit .bx-licht-on { border-color: transparent !important; background: transparent !important; box-shadow: none !important; }
/* Kerzenfoto mit klaren Kanten und runden Ecken */
.bx-licht-stage .bx-licht-on { border-radius: 10px; }
/* Fotos in anderem Format: Kerzenfoto auf dunklem Grund statt helles Foto am Rand */
.bx-licht-stage .bx-licht-on { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; background: transparent; opacity: 0; pointer-events: none; transition: opacity 1.4s ease; margin: 0 !important; }
.bx-licht-stage .bx-licht-glow { position: absolute; inset: 0; pointer-events: none; opacity: 0; mix-blend-mode: screen; border-radius: inherit;
  background: radial-gradient(ellipse var(--bx-glow-w, 22%) var(--bx-glow-h, 30%) at var(--bx-glow-x, 50%) var(--bx-glow-y, 52%), rgba(255, 170, 70, var(--bx-glow-a, .55)), rgba(255, 140, 40, var(--bx-glow-b, .18)) 55%, transparent 75%); transition: opacity 1.4s ease; }
.bx-licht-stage.bx-lit .bx-licht-on { opacity: 1; animation: bx-licht-flame 3.1s infinite; }
.bx-licht-stage.bx-lit .bx-licht-glow { opacity: 1; animation: bx-licht-flicker 2.6s infinite; }
@keyframes bx-licht-flicker { 0%, 100% { opacity: .85 } 12% { opacity: 1 } 20% { opacity: .7 } 33% { opacity: .95 } 47% { opacity: .78 } 60% { opacity: 1 } 72% { opacity: .82 } 85% { opacity: .96 } }
@keyframes bx-licht-flame { 0%, 100% { filter: brightness(1) } 18% { filter: brightness(1.06) } 30% { filter: brightness(.96) } 52% { filter: brightness(1.04) } 70% { filter: brightness(.98) } 88% { filter: brightness(1.05) } }

.bx-licht-dim { position: fixed; inset: 0; background: rgba(12, 9, 6, .86); opacity: 0; pointer-events: none; transition: opacity 1.4s ease; z-index: 1040; }
body.bx-licht-night .bx-licht-dim { opacity: 1; pointer-events: auto; cursor: pointer; }
body.bx-licht-night .bx-licht-stage { z-index: 1041; }

.bx-licht-switch { position: absolute; right: 14px; bottom: 26px; z-index: 3; display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer;
  padding: 9px 16px 9px 12px; border-radius: 999px; font-weight: 600; font-size: .95rem; line-height: 1;
  background: rgba(255, 255, 255, .92); color: #2D2419; box-shadow: 0 2px 10px rgba(0, 0, 0, .18); transition: background .4s, color .4s; }
.bx-licht-switch:focus-visible { outline: 3px solid #D4A574; outline-offset: 2px; }
.bx-licht-switch svg { width: 20px; height: 20px; flex: none; }
.bx-licht-switch .bx-flame { fill: #6B5D4A; transition: fill .4s; }
.bx-lit .bx-licht-switch { background: rgba(45, 36, 25, .85); color: #ffd9a8; }
.bx-lit .bx-licht-switch .bx-flame { fill: #ffb347; }

/* Produktlisten: beim Darüberfahren weich auf das beleuchtete Foto */
.bx-licht-hover { position: relative; display: block; }
.bx-licht-hover .bx-licht-hover-off, .bx-licht-hover .bx-licht-hover-on { position: absolute !important; top: 0; left: 0; width: 100% !important; height: 100% !important; object-fit: cover; pointer-events: none; border-radius: inherit; margin: 0 !important; }
.bx-licht-hover .bx-licht-hover-on { opacity: 0; transition: opacity .7s ease; }
.product-thumb:hover .bx-licht-hover .bx-licht-hover-on { opacity: 1; }

@media (prefers-reduced-motion: reduce) {
  .bx-licht-stage.bx-lit .bx-licht-on, .bx-licht-stage.bx-lit .bx-licht-glow { animation: none; }
}
