/* Walnaro FX – gemeinsame Effekte */
.fx-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 100; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, #22d3ee, #8b5cf6, #ec4899); box-shadow: 0 0 12px rgba(139, 92, 246, .7); pointer-events: none; }

/* Seiten-Menue */
.wl-btn { width: 40px; height: 40px; flex: none; display: inline-grid !important; grid-template-columns: repeat(3, 5px); grid-auto-rows: 5px; gap: 3px; place-content: center; padding: 0 !important; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(34, 29, 58, .6); cursor: pointer; transition: transform .25s cubic-bezier(.2, .8, .2, 1), border-color .2s; }
.wl-btn i { width: 5px; height: 5px; border-radius: 2px; background: #c4b5fd; transition: transform .3s cubic-bezier(.2, .8, .2, 1), background .3s; }
.wl-btn:hover { border-color: rgba(139, 92, 246, .8); transform: translateY(-1px); }
.wl-btn:hover i:nth-child(odd) { background: #22d3ee; }
.wl-btn[aria-expanded="true"] i { background: #ec4899; transform: scale(1.15); }
.wl-panel { position: fixed; z-index: 90; width: min(340px, calc(100vw - 24px)); padding: 10px; border-radius: 20px; background: rgba(16, 13, 28, .94); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); box-shadow: 0 30px 80px rgba(0, 0, 0, .6); display: grid; grid-template-columns: 1fr 1fr; gap: 6px; opacity: 0; transform: translateY(-8px) scale(.97); transform-origin: top right; pointer-events: none; transition: opacity .2s, transform .25s cubic-bezier(.2, .8, .2, 1); font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
.wl-panel.open { opacity: 1; transform: none; pointer-events: auto; }
.wl-h { grid-column: 1 / -1; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #a39cbf; padding: 4px 8px 2px; }
.wl-i { display: flex; gap: 10px; align-items: center; padding: 10px; border-radius: 14px; color: #f4f1fd; text-decoration: none; transition: background .2s; }
.wl-i:hover { background: rgba(255, 255, 255, .07); }
.wl-i.cur { background: linear-gradient(135deg, rgba(34, 211, 238, .14), rgba(139, 92, 246, .18)); box-shadow: inset 0 0 0 1px rgba(139, 92, 246, .45); }
.wl-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 10px; background: rgba(255, 255, 255, .07); font-size: 17px; }
.wl-i b { display: block; font-size: 14px; line-height: 1.2; }
.wl-i small { display: block; font-size: 11.5px; color: #a39cbf; line-height: 1.3; }

/* Lichtkegel, der der Maus folgt */
.fx-spot { position: relative; }
.fx-spot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .08), transparent 45%); z-index: 0; }
.fx-spot:hover::after { opacity: 1; }
.fx-tilt { transition: transform .35s cubic-bezier(.2, .8, .2, 1); will-change: transform; transform-style: preserve-3d; }

/* Einblenden */
.fx-reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); }
.fx-reveal.fx-in { opacity: 1; transform: none; }
html:not(.fx-ready) .fx-reveal { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fx-reveal { opacity: 1; transform: none; transition: none; }
  .fx-tilt, .wl-panel, .wl-btn, .wl-btn i { transition: none; }
}
@media (max-width: 420px) { .wl-panel { grid-template-columns: 1fr; } }

/* ================= Walnaro FX v2 ================= */
/* Aurora-Hintergrund + Sternenfeld (liegen hinter allem, klicken geht durch) */
.fx2-aurora { position: fixed; inset: -20vmax; z-index: -2; pointer-events: none; opacity: .55; filter: blur(60px) saturate(140%);
  background:
    radial-gradient(40vmax 30vmax at 20% 25%, rgba(139, 92, 246, .45), transparent 60%),
    radial-gradient(35vmax 28vmax at 80% 20%, rgba(34, 211, 238, .30), transparent 60%),
    radial-gradient(45vmax 30vmax at 60% 85%, rgba(236, 72, 153, .28), transparent 60%);
  animation: fx2-aurora 28s ease-in-out infinite alternate; }
@keyframes fx2-aurora {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  33% { transform: translate3d(4vmax, -3vmax, 0) rotate(8deg) scale(1.08); }
  66% { transform: translate3d(-5vmax, 2vmax, 0) rotate(-6deg) scale(1.04); }
  100% { transform: translate3d(2vmax, 4vmax, 0) rotate(4deg) scale(1.1); }
}
.fx2-stars { position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .8; contain: strict; }

/* Seitenstart & -wechsel */
html.fx2-on body { animation: fx2-pagein .7s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes fx2-pagein { from { opacity: 0; transform: translateY(10px); filter: blur(4px); } to { opacity: 1; transform: none; filter: none; } }
/* Sicherheitsnetz: falls die Start-Animation haengt (Hintergrund-Tab, Energiesparmodus), Seite trotzdem zeigen */
html.fx2-shown body { animation: none; opacity: 1; filter: none; transform: none; }
html.fx2-leave body { opacity: 0; transform: translateY(-8px); filter: blur(3px); transition: opacity .28s, transform .28s, filter .28s; }

/* Automatisches Einblenden (gestaffelt) */
.fx2-rv { opacity: 0; transform: translateY(28px) scale(.985); transition: opacity .9s cubic-bezier(.2, .8, .2, 1), transform .9s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--fx2d, 0ms); }
.fx2-rv.fx2-in { opacity: 1; transform: none; }
html:not(.fx2-on) .fx2-rv { opacity: 1; transform: none; }

/* Karten: Glanzrand beim Hover */
.fx2-card { position: relative; transition: transform .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s; }
.fx2-card:hover { box-shadow: 0 18px 50px -12px rgba(139, 92, 246, .45), 0 0 0 1px rgba(196, 181, 253, .25); }
.fx2-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: conic-gradient(from var(--fx2a, 0deg), #22d3ee, #8b5cf6, #ec4899, #22d3ee);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; z-index: 1; }
.fx2-card:hover::before { opacity: .9; animation: fx2-spin 3s linear infinite; }
@property --fx2a { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes fx2-spin { to { --fx2a: 360deg; } }

/* Buttons: Glanz-Wisch + Klick-Welle */
.fx2-btn { position: relative; overflow: hidden; isolation: isolate; transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .25s, filter .2s; }
.fx2-btn::after { content: ""; position: absolute; top: 0; left: -150%; width: 60%; height: 100%; z-index: 1; pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent); transform: skewX(-20deg); }
.fx2-btn:hover::after { animation: fx2-shine .9s ease; }
.fx2-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 28px -8px rgba(139, 92, 246, .6); }
.fx2-btn:active { transform: translateY(0) scale(.97); }
@keyframes fx2-shine { to { left: 160%; } }
.fx2-ripple { position: absolute; border-radius: 50%; pointer-events: none; z-index: 2; transform: scale(0); opacity: .55; background: radial-gradient(circle, rgba(255, 255, 255, .7), rgba(255, 255, 255, 0) 70%); animation: fx2-ripple .7s ease-out forwards; }
@keyframes fx2-ripple { to { transform: scale(4); opacity: 0; } }

/* Ueberschriften schimmern */
.fx2-h1 { background-image: linear-gradient(100deg, currentColor 0 40%, #c4b5fd 48%, #67e8f9 52%, currentColor 60% 100%); background-size: 300% 100%; -webkit-background-clip: text; background-clip: text; animation: fx2-shimmer 7s ease-in-out infinite; }
@supports (-webkit-background-clip: text) { .fx2-h1 { -webkit-text-fill-color: transparent; } }
@keyframes fx2-shimmer { 0%, 60% { background-position: 100% 0; } 100% { background-position: 0 0; } }

/* Maus-Glow */
.fx2-glow { position: fixed; z-index: 9998; width: 420px; height: 420px; margin: -210px 0 0 -210px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle, rgba(139, 92, 246, .10), rgba(34, 211, 238, .035) 40%, transparent 70%); will-change: transform; contain: strict; }
.fx2-glow.on { opacity: 1; }
.fx2-dot { position: fixed; z-index: 9999; width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; pointer-events: none; background: #fff; box-shadow: 0 0 12px #a78bfa, 0 0 24px #22d3ee; opacity: 0; transition: opacity .3s, width .2s, height .2s, margin .2s; will-change: transform; }
.fx2-dot.on { opacity: .9; }
.fx2-dot.big { width: 34px; height: 34px; margin: -17px 0 0 -17px; background: rgba(255, 255, 255, .08); box-shadow: 0 0 0 1px rgba(196, 181, 253, .6), 0 0 22px rgba(139, 92, 246, .5); }

/* Konfetti */
.fx2-confetti { position: fixed; inset: 0; z-index: 10000; pointer-events: none; }

/* Live-Punkte pulsieren, Bilder schweben sanft */
.fx2-pulse { animation: fx2-pulse 2s ease-in-out infinite; }
@keyframes fx2-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .55); } 50% { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); } }
.fx2-float { animation: fx2-float 6s ease-in-out infinite; }
@keyframes fx2-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

@media (prefers-reduced-motion: reduce) {
  .fx2-aurora, .fx2-h1, .fx2-pulse, .fx2-float, html.fx2-on body { animation: none !important; }
  .fx2-rv { opacity: 1; transform: none; transition: none; }
  .fx2-stars, .fx2-glow, .fx2-dot { display: none; }
}
@media (pointer: coarse) { .fx2-glow, .fx2-dot { display: none; } }
