/* Floating Contact Button Styles */

.fcb-container {
    position: fixed;
    bottom: 30px;
    z-index: 9999;
    transition: all 0.3s ease;
}

.fcb-container.fcb-right {
    right: 30px;
}

.fcb-container.fcb-left {
    left: 30px;
}

.fcb-button {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background-color: #835332;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 10001;
}

.fcb-button:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
}

.fcb-button:active {
    transform: scale(0.95);
}

.fcb-icon {
    transition: all 0.3s ease;
}

.fcb-menu {
    position: absolute;
    bottom: 75px;
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    min-width: 250px;
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(10px);
}

.fcb-container.fcb-right .fcb-menu {
    right: 0;
}

.fcb-container.fcb-left .fcb-menu {
    left: 0;
}

.fcb-menu.fcb-active {
    opacity: 1;
    transform: translateY(0);
}

.fcb-menu-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    text-decoration: none;
    color: #333333;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f0f0f0;
    gap: 12px;
}

.fcb-menu-item:last-child {
    border-bottom: none;
}

.fcb-menu-item:hover {
    background-color: #835332;
    color: #ffffff;
}

.fcb-menu-item svg {
    flex-shrink: 0;
}

.fcb-menu-item span {
    font-size: 15px;
    font-weight: 500;
    white-space: nowrap;
}

/* Animation für das Icon-Wechsel */
.fcb-button.fcb-open .fcb-icon-contact {
    opacity: 0;
    transform: rotate(90deg);
}

.fcb-button.fcb-open .fcb-icon-close {
    opacity: 1;
    transform: rotate(0deg);
}

.fcb-icon-close {
    position: absolute;
    opacity: 0;
    transform: rotate(-90deg);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .fcb-container {
        bottom: 20px;
    }
    
    .fcb-container.fcb-right {
        right: 20px;
    }
    
    .fcb-container.fcb-left {
        left: 20px;
    }
    
    .fcb-button {
        width: 56px;
        height: 56px;
    }
    
    .fcb-menu {
        min-width: 220px;
        bottom: 70px;
    }
    
    .fcb-menu-item {
        padding: 14px 16px;
    }
    
    .fcb-menu-item span {
        font-size: 14px;
    }
}

@media screen and (max-width: 480px) {
    .fcb-container {
        bottom: 15px;
    }
    
    .fcb-container.fcb-right {
        right: 15px;
    }
    
    .fcb-container.fcb-left {
        left: 15px;
    }
    
    .fcb-button {
        width: 52px;
        height: 52px;
    }
    
    .fcb-menu {
        min-width: 200px;
        bottom: 65px;
    }
}

/* Accessibility */
.fcb-button:focus {
    outline: 2px solid #835332;
    outline-offset: 2px;
}

.fcb-button:focus:not(:focus-visible) {
    outline: none;
}

/* Dark Mode Support (optional) */
@media (prefers-color-scheme: dark) {
    .fcb-menu {
        background: #2a2a2a;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    }
    
    .fcb-menu-item {
        color: #e0e0e0;
        border-bottom-color: #404040;
    }
    
    .fcb-menu-item:hover {
        color: #ffffff;
    }
}
