/* ==========================================================================
   Anderles Floating Elements Manager Stylesheet
   ========================================================================== */

/* 1. Weiche Animationen für beide Elemente */
#sidebuchen-menu,
#anderles-top-button {
    transition: opacity 0.4s ease, visibility 0.4s ease, transform 0.4s ease, background 0.25s ease !important;
}

/* 2. Versteckter Zustand (Wenn der Header im Bild ist) */
#sidebuchen-menu.is-hidden-by-header {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(65%) translateX(10%) !important; 
}

#anderles-top-button.is-hidden-by-header {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
    transform: translateY(20px) !important; /* Rutscht sanft nach unten weg */
}

/* 3. Design & Positionierung Top-Button (Desktop) */
#anderles-top-button {
    position: fixed;
    bottom: 40px;
    right: calc((100vw - 1350px) / 2 + 15px);;
    z-index: 9999;
    width: 50px;
    height: 50px;
    cursor: pointer;
    background-color: var(--orange2, orange);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

#anderles-top-button img {
  width: 38px;
  height: auto;
  display: block;
  margin: auto;
}

#anderles-top-button:hover {
    transform: scale(1.08); /* Minimaler Zoom beim Drüberfahren */
}

@media (max-width: 1615px) {
    #anderles-top-button {
        bottom: 100px;

    }
}

@media (max-width: 1350px) {
    #anderles-top-button {
        right: 15px;

    }
}

@media (max-width: 750px) {
    #anderles-top-button {
        bottom: 0px;

    }
}

@media (max-width: 550px) {
    #anderles-top-button {
        bottom: 80px;
        right: calc((100vw - 50px) / 2) ;
    }
}

@media (min-width: 1920px) {
    #anderles-top-button {
        right: calc(((100vw - (1350 * 100vw) / 1920) / 2) + 15px) !important;
    }
}
