/* =========================================
   WEIHNACHTSMANN-ANIMATION 2026/2027
   WebSite X5 – Splashbox

   - Schneller Einflug von rechts
   - Langsamer horizontaler Hauptflug
   - Stark beschleunigter Ausflug nach links
   - Responsive Fluggeschwindigkeit
   - Darstellung 70% bis 768px
   ========================================= */

/* Close-Button der Splashbox entfernen */
.imCloseInn {
    display: none !important; }

/* Splashbox Cursor-Hover-Funktion deaktivieren */
#splashbox-advcorner,
#splashbox-advcorner * {
    cursor: default !important; }

/* =========================================
   DESKTOP – Standardanimation
   ========================================= */

#splashbox-advcorner {
    left: auto !important;
    right: 0 !important;
    scale: 1;
    transform: none !important;
    transform-origin: right bottom;
    animation: santa-fly 40s linear infinite !important;
    pointer-events: none !important;
    will-change: translate; }

/* Horizontale Flugbewegung – Desktop */
@keyframes santa-fly {
    /* Schneller Einflug von rechts */
    0% {
        translate: 100% 0;
        animation-timing-function: ease-out; }
    /* Einflug abgeschlossen */
    11.7647% {
        translate: -10vw 0;
        animation-timing-function: linear; }
    /* Hauptflug bis kurz vor den linken Bildschirmrand */
    95.5882% {
        translate: calc(-90vw + 100%) 0;
        animation-timing-function:
            cubic-bezier(0.40, 0.10, 0.75, 0.40); }
    /* Stark beschleunigter Ausflug ohne Abbremsen */
    100% {
        translate: -100vw 0; }
}

/* =========================================
   TABLETS – bis 1024px
   Darstellung 100%
   Beschleunigter Haupt- und Ausflug
   ========================================= */

@media (max-width: 1024px) {
    #splashbox-advcorner {
        animation-name: santa-fly-tablet !important;
        animation-duration: 22s !important; }
}

@keyframes santa-fly-tablet {
    0% {
        translate: 100% 0;
        animation-timing-function: ease-out; }
    18% {
        translate: -10vw 0;
        animation-timing-function: linear; }
    88% {
        translate: calc(-85vw + 100%) 0;
        animation-timing-function:
            cubic-bezier(0.35, 0, 0.6, 1); }
    100% {
        translate: -100vw 0; }
}

/* =========================================
   SMARTPHONES UND KLEINE TABLETS
   Bis einschließlich 768px
   Darstellung 70%
   Stark beschleunigter Ausflug
   ========================================= */

@media (max-width: 768px) {
    #splashbox-advcorner {
        scale: 0.7 !important;
        animation-name: santa-fly-mobile !important;
        animation-duration: 12s !important; }
}

@keyframes santa-fly-mobile {
    0% {
        translate: 70% 0;
        animation-timing-function: ease-out; }
    20% {
        translate: -10vw 0;
        animation-timing-function: linear; }
    90% {
        translate: calc(-90vw + 70%) 0;
        animation-timing-function:
            cubic-bezier(0.35, 0, 0.6, 1); }
    100% {
        translate: -100vw 0; }
}

/* =========================================
   BARRIEREFREIHEIT
   Reduzierte Bewegungen berücksichtigen
   ========================================= */

@media (prefers-reduced-motion: reduce) {
    #splashbox-advcorner {
        animation: none !important;
        transform: none !important;
        translate: none !important;
        will-change: auto; }
}