/* === LAUDINELLA TO-TOP BUTTON === */
/* Optimiert für Performance & Caching */

.laudinella-to-top {
    position: fixed;
    bottom: 100px;
    right: 50px;
    width: 60px !important;
    height: 60px !important;
    background: var(--color-primary-medium) !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer;
    z-index: 9999;
    
    /* Elementor Button Reset - WICHTIG! */
    padding: 0 !important;
    margin: 0 !important;
    outline: none !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-align: center !important;
    white-space: normal !important;
    color: inherit !important;
    user-select: none !important;
    
    /* Animation: Kommt von rechts rein */
    transform: translateX(120px);
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    
    /* Flexbox für Icon-Zentrierung */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    
    /* GPU-Beschleunigung für smooth Animationen */
    will-change: transform, opacity;
}

/* Button sichtbar */
.laudinella-to-top.visible {
    transform: translateX(0);
    opacity: 1;
    visibility: visible;
}

/* Hover-Effekt */
.laudinella-to-top:hover {
    background: var(--color-secondary) !important;
}

/* Focus-State für Barrierefreiheit */
.laudinella-to-top:focus {
    outline: 2px solid var(--color-secondary);
    outline-offset: 2px;
}

/* Icon Styling */
.laudinella-to-top-icon {
    width: 42px !important;
    height: 42px !important;
    stroke: var(--color-secondary);
    stroke-width: 1;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.3s ease;
}

/* Icon Hover */
.laudinella-to-top:hover .laudinella-to-top-icon {
    stroke: var(--color-primary-medium);
}

/* === MOBILE RESPONSIVE === */
@media (max-width: 768px) {
    .laudinella-to-top {
        bottom: 80px;
        right: 20px;
        width: 45px !important;
        height: 45px !important;
    }
    
    .laudinella-to-top-icon {
        width: 23px !important;
        height: 23px !important;
    }
}

/* === ACCESSIBILITY - REDUCED MOTION === */
/* Respektiert Benutzereinstellungen für reduzierte Bewegung */
@media (prefers-reduced-motion: reduce) {
    .laudinella-to-top {
        transition: opacity 0.1s ease;
    }
    
    .laudinella-to-top.visible {
        transform: translateX(0);
    }
}