/* Konfigurator Deferred Styles - Non-critical CSS loaded async */

/* Animations */
.animate-pulse-light {
    animation: pulse-light 2s ease-in-out infinite;
    opacity: 0.2;
}

@keyframes pulse-light {
    0%, 100% { opacity: 0; }
    50% { opacity: 0.2; }
}

.animate-shake {
    animation: shake 2.5s ease-in-out infinite;
}

@keyframes shake {
    0%, 20%, 50%, 80%, 100% { transform: translateX(0); }
    40% { transform: translateX(-5px); }
    60% { transform: translateX(5px); }
}

/* Produktauswahl-Animation */
@keyframes product-added {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.product-added-animation {
    animation: product-added 0.3s ease-in-out;
}

@keyframes box-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.box-pulse-animation {
    animation: box-pulse 0.5s ease-in-out;
}

/* Button Hover Effects */
.button-hover-lift {
    transition: all 0.2s ease-in-out;
}

.button-hover-lift:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

.button-hover-lift:active {
    transform: translateY(0);
}

/* Sticky Support Bar */
.sticky-support-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 102;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .sticky-support-bar {
        bottom: 90px;
        right: 15px;
    }

    .mobile-support-banner {
        position: fixed;
        top: 50%;
        right: 0;
        transform: translateY(-50%);
        z-index: 102;
        writing-mode: vertical-rl;
        text-orientation: mixed;
    }

    .mobile-support-banner-content {
        background: linear-gradient(135deg, #71c68a, #5fb579);
        color: white;
        padding: 12px 8px;
        border-radius: 8px 0 0 8px;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        cursor: pointer;
        transition: all 0.3s ease;
        font-size: 14px;
        font-weight: 600;
        letter-spacing: 1px;
    }

    .mobile-support-banner-content:hover {
        background: linear-gradient(135deg, #5fb579, #4da568);
        transform: translateX(-2px);
    }

    .mobile-support-expanded {
        position: fixed;
        top: 50%;
        right: 15px;
        transform: translateY(-50%);
        z-index: 102;
        width: calc(100vw - 30px);
        max-width: 320px;
    }
}

/* FAQ Accordion */
.faq-accordion {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-in-out;
    border-top: 1px solid transparent;
}

.faq-accordion.open {
    max-height: 300px;
    border-top: 1px solid #e5e7eb;
}

.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    background: white;
}

.faq-button {
    width: 100%;
    padding: 1rem;
    text-align: left;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.faq-button:hover {
    background-color: #f9fafb;
}

.faq-content {
    padding: 0 1rem 1rem 1rem;
    background: #fafafa;
}

/* Video Player */
.video-overlay {
    background: linear-gradient(45deg, rgba(113, 198, 138, 0.1), rgba(113, 198, 138, 0.05));
}

.video-controls {
    background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
}

/* Language Switcher */
.language-switcher {
    position: relative;
    display: inline-block;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 101;
    min-width: 140px;
    margin-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease;
}

.language-dropdown.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    display: flex;
    align-items: center;
    padding: 10px 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    border-bottom: 1px solid #f3f4f6;
}

.language-option:last-child {
    border-bottom: none;
}

.language-option:hover {
    background-color: #f9fafb;
}

.language-option.active {
    background-color: #f0fdf4;
    color: #71c68a;
}

.flag-icon {
    width: 20px;
    height: 14px;
    margin-right: 8px;
    border-radius: 2px;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.1);
}

/* Spinner Animation */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.animate-spin {
    animation: spin 1s linear infinite;
}

/* Image Zoom */
.zoom-container {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.zoom-container img {
    transition: transform 0.3s ease;
    transform-origin: center center;
}

.zoom-container:hover img {
    transform: scale(2);
}

.zoom-on-hover {
    position: relative;
    overflow: hidden;
    cursor: zoom-in;
}

.zoom-on-hover img {
    transition: none;
    transform-origin: var(--mouse-x, center) var(--mouse-y, center);
}

.zoom-on-hover:hover img {
    transform: scale(2.5);
}
