/* scroll-to-top.css */
/**
 * Scroll-to-Top Button Component
 * Following CLAUDE.md: Custom styling, CSS variables, RTL support
 */

/* ========== Scroll-to-Top Button ========== */
.scroll-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px; /* ✅ Rechts positioniert */
    width: 50px;
    height: 50px;
    background-color: var(--brown-medium);
    color: white;
    border: 3px solid var(--brown-dark);
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: bold;
}

.scroll-to-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-to-top:hover {
    background-color: var(--brown-dark);
    transform: translateY(-5px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.scroll-to-top:active {
    transform: translateY(-2px);
}

/* ========== RTL Support ========== */
[dir="rtl"] .scroll-to-top {
    right: auto;
    left: 30px;
}

/* ========== Responsive Design ========== */
@media (max-width: 768px) {
    .scroll-to-top {
        bottom: 20px;
        right: 20px;
        width: 45px;
        height: 45px;
        font-size: var(--text-lg, 1.25rem);
    }

    [dir="rtl"] .scroll-to-top {
        right: auto;
        left: 20px;
    }
}

@media (max-width: 480px) {
    .scroll-to-top {
        bottom: 15px;
        right: 15px;
        width: 40px;
        height: 40px;
        font-size: var(--text-lg, 1.25rem);
    }

    [dir="rtl"] .scroll-to-top {
        right: auto;
        left: 15px;
    }
}
