/*
 * FAQ Section Styles
 * public/css/krypto-boersen-faq.css
 */

.faq-section {
    margin-bottom: 50px;
}

.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.faq-item {
    background: white;
    border: 1px solid var(--kb-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Frage als echte H3 (WAI-ARIA-Akkordeon: Button in Überschrift) – Optik wie vorher */
.faq-question-heading {
    margin: 0;
    padding: 0;
    font: inherit;
    line-height: inherit;
    letter-spacing: inherit;
    text-transform: none;
}

.faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: white;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: var(--kb-text);
    transition: all 0.2s ease;
}

.faq-question:hover {
    background: #f9fafb;
}

.faq-question[aria-expanded="true"] {
    background: #f3f4f6;
    border-bottom: 1px solid var(--kb-border);
}

.faq-question-text {
    flex: 1;
    padding-right: 16px;
}

.faq-toggle-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-toggle-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, padding 0.4s ease;
}

.faq-item.active .faq-answer {
    max-height: 1000px;
}

.faq-answer-content {
    padding: 0 24px 20px 24px;
    color: #374151;
    line-height: 1.6;
    font-size: 0.95rem;
}

.faq-answer-content p {
    margin: 0 0 12px 0;
}

.faq-answer-content p:last-child {
    margin-bottom: 0;
}

/* FAQ Comparison Grid */
.faq-comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

.faq-comparison-column {
    background: #f9fafb;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--kb-border);
}

.faq-column-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--kb-text);
    margin: 0 0 20px 0;
    text-align: center;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--kb-accent);
}

.no-faq-message {
    text-align: center;
    color: #6b7280;
    font-style: italic;
    padding: 40px 20px;
    background: white;
    border-radius: 8px;
    border: 2px dashed var(--kb-border);
}

/* Mobile Anpassungen */
@media (max-width: 768px) {
    .faq-question {
        padding: 16px 18px;
        font-size: 0.9375rem;
    }

    .faq-answer-content {
        padding: 0 18px 16px 18px;
        font-size: 0.875rem;
    }

    .faq-accordion {
        gap: 12px;
    }

    .faq-comparison-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .faq-comparison-column {
        padding: 16px;
    }

    .faq-column-title {
        font-size: 1rem;
    }
}
