/* Leistungen-Menü: klappt unter der Navigation auf, wenn man über „Leistungen“ fährt.
   Fünf Kacheln mit kleiner Animation, Lichtkegel folgt der Maus. Am Handy: Liste im Menü-Blatt. */
.mega{ --mx:50%; --my:50%; position:fixed; z-index:59; top:74px; left:50%; width:min(1220px, calc(100vw - 40px)); transform:translateX(-50%);
  padding:12px; border-radius:30px; background:rgba(12,13,20,.82); -webkit-backdrop-filter:blur(26px) saturate(1.5); backdrop-filter:blur(26px) saturate(1.5);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.09), 0 40px 90px -30px rgba(0,0,0,.9), 0 30px 120px -50px rgba(46,91,255,.55);
  clip-path:inset(0 38% 100% 38% round 30px); opacity:0; visibility:hidden; pointer-events:none;
  transition:clip-path .55s cubic-bezier(.16,1,.3,1), opacity .35s, visibility 0s linear .55s; }
.mega.open{ clip-path:inset(0 0 0 0 round 30px); opacity:1; visibility:visible; pointer-events:auto; transition:clip-path .7s cubic-bezier(.16,1,.3,1), opacity .3s; }
.mega::before{ content:""; position:absolute; inset:0; border-radius:inherit; pointer-events:none; background:radial-gradient(420px circle at var(--mx) var(--my), rgba(46,91,255,.16), transparent 60%); opacity:0; transition:opacity .4s; }
.mega:hover::before{ opacity:1; }
.nav.away ~ .mega, .menu-open .mega{ opacity:0; visibility:hidden; pointer-events:none; }

.mega-grid{ position:relative; display:grid; grid-template-columns:repeat(6, minmax(0,1fr)); gap:8px; margin:0; padding:0; list-style:none; }
.mega-t{ --d:0ms; position:relative; display:flex; flex-direction:column; height:100%; padding:10px 10px 16px; border-radius:22px; color:#EEECE8; text-decoration:none;
  background:rgba(255,255,255,.025); box-shadow:inset 0 0 0 1px rgba(255,255,255,.05);
  opacity:0; transform:translateY(14px) scale(.97); filter:blur(6px);
  transition:opacity .5s var(--d), transform .7s cubic-bezier(.16,1,.3,1) var(--d), filter .6s var(--d), background .35s, box-shadow .35s; }
.mega.open .mega-t{ opacity:1; transform:none; filter:none; }
.mega-t:hover, .mega-t:focus-visible{ background:rgba(46,91,255,.1); box-shadow:inset 0 0 0 1px rgba(143,166,255,.28); transform:translateY(-3px); }
.mega-t:focus-visible{ outline:none; }
.mega-v{ position:relative; aspect-ratio:16 / 11; border-radius:15px; overflow:hidden; display:grid; place-items:center;
  background:radial-gradient(120% 90% at 50% 110%, rgba(46,91,255,.32), rgba(20,22,34,.9) 60%), #0c0d14; box-shadow:inset 0 0 0 1px rgba(255,255,255,.06); }
.mega-v svg{ width:62%; height:auto; overflow:visible; }
.mega-n{ display:flex; align-items:center; gap:8px; margin:14px 6px 0; font-size:16px; font-weight:600; letter-spacing:-.015em; }
.mega-s{ margin:4px 6px 0; font-size:13px; line-height:1.4; color:rgba(238,236,232,.6); }
.mega-p{ margin:auto 6px 0; padding-top:12px; font-size:12.5px; font-weight:600; color:#8FA6FF; }
.mega-b{ padding:3px 8px; border-radius:999px; font-size:10.5px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:#fff; background:#2E5BFF; box-shadow:0 6px 16px -6px rgba(46,91,255,.9); }
.mega-b.soon{ background:rgba(255,255,255,.1); color:#C9D3FF; box-shadow:inset 0 0 0 1px rgba(201,211,255,.25); }
.mega-foot{ position:relative; display:flex; align-items:center; justify-content:space-between; gap:16px; margin-top:10px; padding:12px 8px 4px 14px;
  opacity:0; transition:opacity .5s .28s; }
.mega.open .mega-foot{ opacity:1; }
.mega-foot span{ font-size:13.5px; color:rgba(238,236,232,.55); }
.mega-foot .acts{ display:flex; gap:6px; }
.mega-foot a{ display:inline-flex; align-items:center; gap:8px; padding:10px 16px; border-radius:999px; font-size:13.5px; font-weight:600; color:#EEECE8; text-decoration:none; transition:background .3s, gap .35s cubic-bezier(.16,1,.3,1); }
.mega-foot a:hover{ background:rgba(255,255,255,.07); gap:12px; }
.mega-foot a.pri{ background:#2E5BFF; color:#fff; }
.mega-foot a.pri:hover{ box-shadow:0 0 0 5px rgba(46,91,255,.16); }

/* „Leistungen“ in der Leiste: kleiner Pfeil, der sich beim Öffnen dreht */
.nav .links a.has-mega{ display:inline-flex; align-items:center; gap:6px; }
.nav .links a.has-mega::before{ content:""; order:2; width:6px; height:6px; margin-top:-3px; border-right:1.5px solid currentColor; border-bottom:1.5px solid currentColor; transform:rotate(45deg); opacity:.7; transition:transform .45s cubic-bezier(.34,1.45,.64,1), margin .45s; }
.nav .links a.has-mega[aria-expanded="true"]{ color:#EEECE8; }
.nav .links a.has-mega[aria-expanded="true"]::before{ transform:rotate(225deg); margin-top:3px; }

/* kleine Animationen in den Kacheln */
.mv-stroke{ fill:none; stroke:#8FA6FF; stroke-width:2.2; stroke-linejoin:round; stroke-linecap:round; }
.mv-soft{ fill:none; stroke:rgba(201,211,255,.28); stroke-width:1.4; }
.mv-fill{ fill:#2E5BFF; }
.mv-ink{ fill:#EEECE8; }
/* Marke: das V zeichnet sich */
.mv-draw{ stroke-dasharray:150; stroke-dashoffset:150; animation:mvDraw 3.6s cubic-bezier(.65,0,.35,1) infinite; }
.mv-pt{ fill:#0c0d14; stroke:#C9D3FF; stroke-width:1.4; animation:mvPop 3.6s cubic-bezier(.34,1.45,.64,1) infinite; transform-box:fill-box; transform-origin:center; }
@keyframes mvDraw{ 0%{ stroke-dashoffset:150; } 45%,80%{ stroke-dashoffset:0; } 100%{ stroke-dashoffset:-150; } }
@keyframes mvPop{ 0%,8%{ transform:scale(0); } 18%,80%{ transform:scale(1); } 95%,100%{ transform:scale(0); } }
/* Website: Zeilen bauen sich auf */
.mv-bar{ transform-box:fill-box; transform-origin:left; animation:mvBar 3.2s cubic-bezier(.16,1,.3,1) infinite; }
@keyframes mvBar{ 0%{ transform:scaleX(0); } 30%,85%{ transform:scaleX(1); } 100%{ transform:scaleX(0); opacity:0; } }
.mv-cur{ animation:mvCur 3.2s cubic-bezier(.65,0,.35,1) infinite; }
@keyframes mvCur{ 0%{ transform:translate(0,0); } 50%{ transform:translate(-26px,-14px); } 100%{ transform:translate(0,0); } }
/* Foto & Video: Sucher fokussiert, Aufnahme blinkt */
.mv-focus{ transform-box:fill-box; transform-origin:center; animation:mvFocus 2.8s cubic-bezier(.34,1.45,.64,1) infinite; }
@keyframes mvFocus{ 0%{ transform:scale(1.35); opacity:.3; } 30%,100%{ transform:scale(1); opacity:1; } }
.mv-rec{ animation:mvRec 1.4s steps(2) infinite; }
@keyframes mvRec{ 50%{ opacity:.15; } }
/* KI & Apps: Kern pulsiert, Punkte kreisen */
.mv-core{ transform-box:fill-box; transform-origin:center; animation:mvCore 2.6s cubic-bezier(.65,0,.35,1) infinite alternate; }
@keyframes mvCore{ to{ transform:scale(1.18); } }
.mv-orbit{ transform-origin:50px 36px; animation:mvSpin 7s linear infinite; }
.mv-orbit.b{ animation-duration:11s; animation-direction:reverse; }
@keyframes mvSpin{ to{ transform:rotate(360deg); } }
.mv-dot{ animation:mvDot 1.2s cubic-bezier(.65,0,.35,1) infinite; }
.mv-dot:nth-child(2){ animation-delay:.15s; } .mv-dot:nth-child(3){ animation-delay:.3s; }
@keyframes mvDot{ 0%,100%{ opacity:.25; } 40%{ opacity:1; } }
/* Spiele: Pixel-Figur hüpft, START blinkt */
.mv-hop{ animation:mvHop 1s steps(4) infinite; }
@keyframes mvHop{ 50%{ transform:translateY(-6px); } }
.mv-blink{ animation:mvRec 1.1s steps(2) infinite; }
.mega-t:hover .mv-draw, .mega-t:hover .mv-pt, .mega-t:hover .mv-bar, .mega-t:hover .mv-cur{ animation-duration:2.2s; }

/* Handy: Leistungen als Liste im Menü-Blatt */
.sheet-svc{ display:flex; flex-direction:column; gap:2px; margin:2px 0 14px; padding:6px; border-radius:22px; background:rgba(255,255,255,.04); box-shadow:inset 0 0 0 1px rgba(255,255,255,.07);
  opacity:0; transform:translateY(14px); transition:transform .7s cubic-bezier(.16,1,.3,1) .05s, opacity .7s .05s; }
.menu-open .sheet-svc{ opacity:1; transform:none; }
.sheet-svc a{ display:flex; align-items:center; gap:12px; min-height:48px; padding:6px 10px; border-radius:16px; font-size:16px; font-weight:500; color:#EEECE8; }
.sheet-svc a:active{ background:rgba(46,91,255,.14); }
.sheet-svc i{ width:30px; height:30px; border-radius:10px; display:grid; place-items:center; font-style:normal; font-size:13px; color:#8FA6FF; background:rgba(46,91,255,.12); box-shadow:inset 0 0 0 1px rgba(143,166,255,.2); }
.sheet-svc small{ margin-left:auto; font-size:12.5px; font-weight:600; color:rgba(238,236,232,.45); }
.sheet-svc small.new{ color:#8FA6FF; }
.sheet{ overflow-y:auto; }
.sheet a.big + .sheet-svc{ margin-top:4px; }

@media (max-width:1100px){ .mega{ display:none; } }
@media (prefers-reduced-motion: reduce){
  .mega, .mega.open{ clip-path:none; transition:opacity .2s; }
  .mega-t, .mega.open .mega-t{ transform:none; filter:none; transition:background .3s; }
  .mega [class^="mv-"], .mega [class*=" mv-"]{ animation:none !important; stroke-dashoffset:0; }
}
