/* CANIS · „Eure Schule hat jetzt eine Liga" — die Animation dazu
   (assets/liga/rufus-liga.svg)

   Wie bei den Verbbildern greift dieses Stylesheet erst, wenn das SVG INLINE
   im Dokument steht — in einem <img src> bliebe dasselbe Bild stehen, nur
   unbewegt. Eingehängt wird es von Exercises.animateArt (js/exercises.js);
   scheitert das Holen, bleibt das <img> und das Bild ist still. Deshalb
   eigene Klassen mit Vorsatz `lg-`: Die Datei liegt neben
   verb-animations.css, deren `.vb`-Regeln mit `transform-box: fill-box`
   arbeiten — hier sind die Drehpunkte absolute Koordinaten der viewBox.

   Ablauf: Intro 1,8 s (einmalig) — Rufus hüpft hoch, die Standarte fällt in
   seine Pfote, das Banner entrollt sich, der Lorbeerkranz blitzt. Danach eine
   3-s-Schleife: Winken, Banner flattert, Schwanz wedelt. Ein Neustart
   bedeutet, das SVG neu einzuhängen — und genau das tut der Hinweis, weil er
   jedes Mal neu gebaut wird.                                               */
.lg *{transform-box:view-box}
.lg-dog{transform-origin:200px 352px;animation:lgPop .7s cubic-bezier(.3,1.5,.5,1) both}
.lg-armp{transform-origin:200px 352px;animation:lgPop .7s cubic-bezier(.3,1.5,.5,1) both}
.lg-shd{transform-origin:210px 354px;animation:lgShd .7s ease-out both}
.lg-std{animation:lgDrop .55s cubic-bezier(.5,0,.75,0) .45s both}
.lg-std2{transform-origin:250px 262px;animation:lgGrab .35s cubic-bezier(.3,1.6,.5,1) .95s both}
.lg-stdl{transform-origin:322px 352px;animation:lgSway 3s ease-in-out 1.8s infinite}
.lg-du{transform-origin:322px 350px;animation:lgDust .6s ease-out 1s both}
.lg-ban{transform-origin:322px 48px;animation:lgUnf .55s cubic-bezier(.3,1.4,.5,1) 1.1s both}
.lg-banf{transform-origin:322px 48px;animation:lgFlut 1.5s ease-in-out 1.7s infinite}
.lg-wr{transform-origin:322px 22px;animation:lgWr .5s cubic-bezier(.3,1.8,.5,1) 1.45s both}
.lg-sp{opacity:0;animation:lgSp 3s ease-out infinite}
.lg-sp1{transform-origin:60px 108px;animation-delay:1.5s}
.lg-sp2{transform-origin:250px 41px;animation-delay:1.65s}
.lg-sp3{transform-origin:376px 161px;animation-delay:1.8s}
.lg-sp4{transform-origin:112px 58px;animation-delay:2.1s}
.lg-dogl{transform-origin:200px 352px;animation:lgBr 1.5s ease-in-out 1.8s infinite alternate}
.lg-hd{transform-origin:200px 238px;animation:lgHd 3s ease-in-out 1.8s infinite}
.lg-ey{transform-origin:200px 168px;animation:lgBl 3s 1.8s infinite}
.lg-wv{transform-origin:152px 262px;animation:lgWv 3s ease-in-out 1.3s infinite}
.lg-eL{transform-origin:128px 150px;animation:lgEL 3s ease-in-out 1.8s infinite}
.lg-eR{transform-origin:272px 150px;animation:lgER 3s ease-in-out 1.8s infinite}
.lg-tl{transform-origin:124px 326px;animation:lgTl .32s ease-in-out infinite alternate}
.lg-tg{transform-origin:200px 224px;animation:lgTg 1.5s ease-in-out infinite alternate}
@keyframes lgPop{0%{transform:translateY(90px) scale(.85,.7);opacity:0}45%{opacity:1;transform:translateY(-26px) scale(.96,1.06)}75%{transform:translateY(0) scale(1.05,.95)}100%{transform:translateY(0) scale(1)}}
@keyframes lgShd{0%{transform:scaleX(.4);opacity:0}45%{transform:scaleX(.8);opacity:.06}100%{transform:scaleX(1);opacity:.11}}
@keyframes lgDrop{0%{transform:translateY(-420px)}100%{transform:translateY(0)}}
@keyframes lgGrab{0%{transform:rotate(14deg)}100%{transform:rotate(0)}}
@keyframes lgSway{0%,100%{transform:rotate(0)}50%{transform:rotate(1.6deg)}}
@keyframes lgDust{0%{transform:scale(.3);opacity:0}30%{opacity:.9}100%{transform:scale(1.8,1.2) translateY(-6px);opacity:0}}
@keyframes lgUnf{0%{transform:scaleY(0)}100%{transform:scaleY(1)}}
@keyframes lgFlut{0%,100%{transform:skewY(0) scaleX(1)}30%{transform:skewY(3deg) scaleX(.97)}65%{transform:skewY(-2deg) scaleX(1.01)}}
@keyframes lgWr{0%{transform:scale(0) rotate(-90deg)}100%{transform:scale(1) rotate(0)}}
@keyframes lgSp{0%{transform:scale(0) rotate(0);opacity:0}12%{transform:scale(1.2) rotate(30deg);opacity:1}30%,100%{transform:scale(0) rotate(70deg);opacity:0}}
@keyframes lgBr{from{transform:scale(1,1)}to{transform:scale(1.012,1.025)}}
@keyframes lgHd{0%,100%{transform:rotate(0)}30%,55%{transform:rotate(6deg) translateX(3px)}}
@keyframes lgBl{0%,62%,68%,100%{transform:scaleY(1)}65%{transform:scaleY(.1)}}
@keyframes lgWv{0%,50%,100%{transform:rotate(0)}10%,30%{transform:rotate(-16deg)}20%,40%{transform:rotate(8deg)}}
@keyframes lgEL{0%,100%{transform:rotate(0)}30%,55%{transform:rotate(8deg)}}
@keyframes lgER{0%,100%{transform:rotate(0)}30%,55%{transform:rotate(-6deg)}}
@keyframes lgTl{from{transform:rotate(-14deg)}to{transform:rotate(16deg)}}
@keyframes lgTg{from{transform:scaleY(.85)}to{transform:scaleY(1.05)}}
@media (prefers-reduced-motion:reduce){.lg *{animation:none!important;opacity:1}.lg-sp,.lg-du{opacity:0}}

/* Der Platz dafür im Hinweis. Das SVG bringt width/height 400 mit — ohne
   diese Regel sprengte es das Blatt auf einem kleinen Telefon. */
.liga-art { width: 200px; height: 200px; margin: 0 auto 4px; }
.liga-art img, .liga-art svg { width: 100%; height: 100%; display: block; }
