/* =====================================================================
   Magical-Moments-Knopf
   =====================================================================
   Himmelblauer Kreis mit Zauberstab, rechts unten auf allen Seiten,
   fuehrt zur Magical-Moments-Landingpage. Sitewide-Himmelblau ist eine
   ausdrueckliche Entscheidung (11.11.2026), Ausnahme zur CI-Regel.
   Handy: links unten, auf gleicher Hoehe wie der rote Ticket-Knopf rechts.

   Takt alle 5 s: Stab holt aus und schwingt, der Funkelbogen zeichnet
   sich, Funken spruehen aus der Spitze, ein Lichtring loest sich vom
   Kreis. Dazwischen glitzern die Sterne leise.
   --------------------------------------------------------------------- */
.wro-mm-knopf{
  --wro-mm-takt:5s;
  position:fixed;
  right:32px;
  bottom:calc(32px + env(safe-area-inset-bottom, 0px));
  z-index:90;
  display:flex;
  align-items:center;
  justify-content:center;
  width:64px;
  height:64px;
  border-radius:50%;
  background:#BFE6FF;
  color:#1A1416;
  box-shadow:0 12px 28px -10px rgba(26,20,22,.45), 0 2px 6px rgba(26,20,22,.16);
  text-decoration:none;
  -webkit-tap-highlight-color:transparent;
  animation:wro-mm-auf .6s cubic-bezier(.34,1.5,.64,1) .9s both;
  transition:transform .2s ease, box-shadow .2s ease;
}
/* Lichtring */
.wro-mm-knopf::after{
  content:"";
  position:absolute;
  inset:0;
  border-radius:50%;
  border:2px solid #BFE6FF;
  opacity:0;
  pointer-events:none;
  animation:wro-mm-ring var(--wro-mm-takt) ease-out 1.6s infinite;
}
.wro-mm-knopf svg{
  width:40px;
  height:40px;
  overflow:visible;
}
.wro-mm-stab{
  transform-box:view-box;
  transform-origin:4.5px 19.5px;
  animation:wro-mm-schwung var(--wro-mm-takt) cubic-bezier(.45,0,.3,1) 1.6s infinite;
}
.wro-mm-stab-koerper{ fill:none; stroke:#1A1416; stroke-width:2.1; stroke-linecap:round; }
.wro-mm-stab-spitze{ fill:none; stroke:#fff; stroke-width:1.05; stroke-linecap:round; }
.wro-mm-bogen{
  fill:none;
  stroke:#fff;
  stroke-width:.6;
  stroke-linecap:round;
  stroke-dasharray:1;
  stroke-dashoffset:0;
  animation:wro-mm-bogen var(--wro-mm-takt) ease-out 1.6s infinite;
}
.wro-mm-stern{
  fill:#941116;
  transform-box:fill-box;
  transform-origin:center;
  animation:wro-mm-funkeln var(--wro-mm-takt) ease-out 1.6s infinite, wro-mm-glitzer 1.8s ease-in-out 3s infinite alternate;
}
.wro-mm-stern--2{ animation-delay:1.85s, 3.6s; }
.wro-mm-stern--3{ animation-delay:2.05s, 4.1s; }
.wro-mm-funken circle{
  fill:#941116;
  opacity:0;
  transform-box:fill-box;
  transform-origin:center;
  animation:wro-mm-funke-1 var(--wro-mm-takt) ease-out 1.6s infinite;
}
.wro-mm-funken circle:nth-child(2){ fill:#fff; animation-name:wro-mm-funke-2; }
.wro-mm-funken circle:nth-child(3){ animation-name:wro-mm-funke-3; }
.wro-mm-funken circle:nth-child(4){ fill:#fff; animation-name:wro-mm-funke-4; }
.wro-mm-funken circle:nth-child(5){ animation-name:wro-mm-funke-5; }

.wro-mm-knopf:hover,
.wro-mm-knopf:focus-visible{
  transform:translateY(-3px) scale(1.06);
  box-shadow:0 18px 34px -10px rgba(26,20,22,.5), 0 2px 6px rgba(26,20,22,.16);
}
.wro-mm-knopf:active{ transform:scale(.94); }
.wro-mm-knopf:focus-visible{ outline:2px solid #941116; outline-offset:3px; }

@media (max-width:781px){
  .wro-mm-knopf{
    right:auto;                     /* links, gegenueber dem Ticketknopf */
    left:20px;
    bottom:calc(20px + env(safe-area-inset-bottom, 0px));
    width:56px;
    height:56px;
  }
  .wro-mm-knopf svg{ width:34px; height:34px; }
  body:has(.main-navigation.toggled) .wro-mm-knopf{ display:none; }
}

@keyframes wro-mm-auf{
  from{ transform:translateY(28px) scale(.6); opacity:0; }
  to{   transform:none;                       opacity:1; }
}
/* Ausholen, kraeftig schwingen, nachfedern (ca. 1,2 s), dann Ruhe. */
@keyframes wro-mm-schwung{
  0%,26%,100%{ transform:rotate(0); }
  7%{  transform:rotate(-38deg); }
  13%{ transform:rotate(22deg); }
  18%{ transform:rotate(-9deg); }
  22%{ transform:rotate(4deg); }
}
/* Bogen verschwindet beim Ausholen und zeichnet sich mit dem Schwung neu. */
@keyframes wro-mm-bogen{
  0%{ stroke-dashoffset:0; opacity:1; }
  6%{ stroke-dashoffset:0; opacity:0; }
  11%{ stroke-dashoffset:-1; opacity:0; }
  12%{ stroke-dashoffset:-1; opacity:1; }
  26%,100%{ stroke-dashoffset:0; opacity:1; }
}
@keyframes wro-mm-funkeln{
  0%{ transform:scale(1) rotate(0); opacity:1; }
  5%,10%{ transform:scale(.2) rotate(-90deg); opacity:0; }
  17%{ transform:scale(1.45) rotate(0); opacity:1; }
  24%,100%{ transform:scale(1) rotate(0); opacity:1; }
}
@keyframes wro-mm-glitzer{
  from{ opacity:1; }
  to{ opacity:.45; }
}
@keyframes wro-mm-ring{
  0%,12%{ transform:scale(1); opacity:0; }
  13%{ opacity:.9; }
  40%,100%{ transform:scale(1.7); opacity:0; }
}
@keyframes wro-mm-funke-1{ 0%,12%{opacity:0;transform:none} 14%{opacity:1} 34%,100%{opacity:0;transform:translate(9px,-7px) scale(.3)} }
@keyframes wro-mm-funke-2{ 0%,12%{opacity:0;transform:none} 14%{opacity:1} 36%,100%{opacity:0;transform:translate(4px,-11px) scale(.3)} }
@keyframes wro-mm-funke-3{ 0%,13%{opacity:0;transform:none} 15%{opacity:1} 36%,100%{opacity:0;transform:translate(10px,3px) scale(.3)} }
@keyframes wro-mm-funke-4{ 0%,13%{opacity:0;transform:none} 15%{opacity:1} 38%,100%{opacity:0;transform:translate(-3px,-10px) scale(.3)} }
@keyframes wro-mm-funke-5{ 0%,14%{opacity:0;transform:none} 16%{opacity:1} 38%,100%{opacity:0;transform:translate(7px,8px) scale(.3)} }

@media (prefers-reduced-motion:reduce){
  .wro-mm-knopf,.wro-mm-knopf::after,.wro-mm-knopf *{ animation:none !important; }
  .wro-mm-funken{ display:none; }
}
@media print{
  .wro-mm-knopf{ display:none !important; }
}
