/* FAQ Widget Styles */
.faq-widget {
    --faq-bg: #fff;
    --faq-border: #e5ddd0;
    --faq-text: #2c2c2c;
    --faq-accent: #c49b63;
    --faq-accent-dark: #a67c52;
    --faq-light-bg: #faf8f5;
    position: fixed;
    z-index: 999;
    bottom: auto;
    right: 0;
    top: 80px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    pointer-events: none;
}

.faq-widget.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.faq-widget.is-closing {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

@media (max-width: 1024px) {
    .faq-widget {
        top: auto;
        bottom: 0;
        right: 0;
        left: 0;
    }
    
    .faq-widget .faq-widget__container {
        position: relative;
    }
}

.faq-widget__container {
    background-color: var(--faq-bg);
    border: 1px solid var(--faq-border);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.12);
    padding: 1.5rem;
    max-width: 360px;
    width: 100%;
    margin: 0 1rem;
    position: relative;
}

@media (max-width: 1024px) {
    .faq-widget__container {
        border-radius: 16px 16px 0 0;
        max-width: 100%;
        margin: 0;
        max-height: 70vh;
        overflow-y: auto;
        box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    }
}

.faq-widget__close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--faq-text);
    font-size: 20px;
    font-weight: 600;
    opacity: 0.6;
    transition: opacity 0.2s ease;
    padding: 0;
    line-height: 1;
}

.faq-widget__close:hover {
    opacity: 1;
}

@media (max-width: 1024px) {
    .faq-widget__close {
        display: none;
    }
}

.faq-widget__header {
    text-align: center;
    margin-bottom: 1.5rem;
}

.faq-widget__title {
    font-family: "Playfair Display", serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--faq-text);
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.faq-widget__subtitle {
    font-size: 0.9rem;
    color: var(--faq-accent);
    font-weight: 600;
    margin: 0;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.faq-widget__content {
    margin-bottom: 1.5rem;
}

.faq-widget__qa {
    margin-bottom: 1rem;
    padding: 0.75rem;
    background-color: var(--faq-light-bg);
    border-radius: 6px;
}

.faq-widget__question {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--faq-text);
    margin: 0;
    line-height: 1.4;
}

.faq-widget__notice {
    background: linear-gradient(135deg, rgba(196, 155, 99, 0.08), rgba(196, 155, 99, 0.04));
    border: 1px solid rgba(196, 155, 99, 0.15);
    border-radius: 6px;
    padding: 0.875rem;
    margin-bottom: 1rem;
}

.faq-widget__notice p {
    font-size: 0.85rem;
    margin: 0;
    color: var(--faq-text);
    line-height: 1.5;
}

.faq-widget__notice strong {
    color: var(--faq-accent-dark);
    font-weight: 600;
}

.faq-widget__footer {
    border-top: 1px solid var(--faq-border);
    padding-top: 1rem;
}

.faq-widget__question-short {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--faq-text);
    text-align: center;
    margin: 0 0 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.faq-widget__buttons {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
}

.faq-widget__btn {
    flex: 1;
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    font-weight: 600;
    border: 1px solid var(--faq-border);
    border-radius: 4px;
    background-color: var(--faq-light-bg);
    color: var(--faq-text);
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    line-height: 1.2;
}

.faq-widget__btn:hover {
    border-color: var(--faq-accent);
    background-color: #fff;
}

.faq-widget__btn:active,
.faq-widget__btn.is-selected {
    background-color: var(--faq-accent);
    color: #fff;
    border-color: var(--faq-accent);
}

.faq-widget__btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.faq-widget__thank-you {
    text-align: center;
    padding: 1rem 0;
}

.faq-widget__thank-you p {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--faq-accent);
    margin: 0;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Responsive: Desktop - oben rechts dezent */
@media (min-width: 1025px) {
    .faq-widget {
        right: 20px;
        top: 100px;
    }

    .faq-widget__container {
        max-width: 340px;
    }
}

/* Responsive: Mobile - unten als Sheet */
@media (max-width: 1024px) {
    .faq-widget {
        bottom: 0;
    }

    .faq-widget.is-visible {
        animation: slideUp 0.3s ease;
    }

    .faq-widget.is-closing {
        animation: slideDown 0.3s ease;
    }

    @keyframes slideUp {
        from {
            transform: translateY(100%);
        }
        to {
            transform: translateY(0);
        }
    }

    @keyframes slideDown {
        from {
            transform: translateY(0);
        }
        to {
            transform: translateY(100%);
        }
    }
}

/* Chat widget visibility toggle when FAQ is open */
#chatWidget {
    transition: opacity 0.3s ease;
}

#chatWidget.faq-widget-open {
    opacity: 0;
    pointer-events: none;
}
