/* ============================================================
   WG-Digital FX – Overlay-Transition + Sound-Toggle
   CI: Lime #C2F21C auf Dark #141414. Alles scoped mit .wgfx-*.
   ============================================================ */

/* ---- Cover-Overlay (beim Verlassen der Seite, per JS getriggert) ---- */
.wgfx-cover {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  background: #141414;
  transform: translateY(100%);
  pointer-events: none;
  will-change: transform;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .5s cubic-bezier(.76, 0, .24, 1);
}
.wgfx-cover.is-cover {
  transform: translateY(0);
  pointer-events: auto;
}

/* Reveal-Overlay-Grundstil (Animation kommt aus dem Critical-CSS im <head>) */
.wgfx-reveal { background: #141414; }

/* Wolfgang als Ladescreen-Motiv in beiden Overlays.
   (Grundgrößen stehen zusätzlich im Critical-CSS, damit's ab dem 1. Paint sitzt.) */
.wgfx-mascot {
  width: min(46vw, 300px);
  height: auto;
  filter: drop-shadow(0 0 40px rgba(194, 242, 28, .22));
  animation: wgfxFloat 2.6s ease-in-out infinite;
}
@keyframes wgfxFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-10px) scale(1.02); }
}
@media (prefers-reduced-motion: reduce) {
  .wgfx-cover { transition: none; }
  .wgfx-mascot { animation: none; }
}

/* ---- Sound-Toggle ----
   Unten links, ÜBER dem Borlabs-Cookie-Badge gestapelt.
   !important überall, weil Theme/Elementor globale <button>-Styles setzen
   (sonst wird der Button lime, eckig, mit Padding – und die SVG-Breite 0). */
.wgfx-sound-toggle {
  position: fixed !important;
  left: 20px !important;
  bottom: 96px !important;
  right: auto !important;
  top: auto !important;
  z-index: 2147482000 !important;
  width: 46px !important;
  height: 46px !important;
  min-width: 0 !important;
  max-width: 46px !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 50% !important;
  background: #141414 !important;
  background-image: none !important;
  border: 1.5px solid #C2F21C !important;
  color: #C2F21C !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  box-shadow: 0 4px 18px rgba(0, 0, 0, .35) !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  line-height: 1 !important;
  font-size: 0 !important;
  text-shadow: none !important;
  overflow: visible !important;
  transform: none;
  transition: transform .2s ease, border-color .2s ease, color .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.wgfx-sound-toggle:hover { transform: scale(1.08) !important; }
.wgfx-sound-toggle:focus-visible { outline: 2px solid #C2F21C !important; outline-offset: 3px !important; }
.wgfx-sound-toggle svg {
  width: 20px !important;
  height: 20px !important;
  display: block !important;
  flex: 0 0 auto !important;
  box-shadow: none !important;
}
/* Icon-Farbe DIREKT (nicht currentColor) – das Theme erzwingt sonst eine dunkle
   Button-Textfarbe, wodurch das Icon unsichtbar würde. */
.wgfx-sound-toggle svg,
.wgfx-sound-toggle svg * { fill: none !important; stroke: #C2F21C !important; }
.wgfx-sound-toggle.is-muted { border-color: #3a3a3a !important; }
.wgfx-sound-toggle.is-muted svg,
.wgfx-sound-toggle.is-muted svg * { stroke: #8a8a8a !important; }
@media (prefers-reduced-motion: reduce) {
  .wgfx-sound-toggle { transition: none; }
}
@media (max-width: 600px) {
  .wgfx-sound-toggle { width: 42px !important; height: 42px !important; left: 14px !important; bottom: 88px !important; }
}
