/* CSS Variablen - müssen hier definiert sein damit FAQ funktioniert */
:root {
    --primary: #7c3aed;
    --card:    #1e293b;
    --dark:    #0f172a;
}

.faq-container { width: 100%; }

.faq-item {
    background-color: #1e293b;
    border-radius: 16px;
    margin-bottom: 16px;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    overflow: hidden;
}

.faq-item:hover {
    border-color: #7c3aed;
    box-shadow: 0 10px 25px rgba(124, 58, 237, 0.2);
    transform: translateY(-2px);
}

.faq-question {
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    color: white;
    font-size: 1.1rem;
    transition: background-color 0.2s;
    background-color: #1e293b;
    user-select: none;
}

.faq-question i {
    color: #7c3aed;
    font-size: 1.2rem;
    transition: transform 0.4s ease;
    flex-shrink: 0;
    margin-left: 15px;
}

.faq-item.active .faq-question i {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    padding: 0 25px;
    background-color: rgba(0, 0, 0, 0.2);
    color: #487d49;
    line-height: 1.7;
    overflow: hidden;
    transition: max-height 0.4s ease-out, padding 0.3s ease;
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}

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

.faq-answer p  { color: #cbd5e1; margin-bottom: 8px; }
.faq-answer ul { color: #cbd5e1; padding-left: 20px; margin-top: 8px; }
.faq-answer li { margin-bottom: 5px; }

/* FAQ Hintergrund */
#faq { background-color: #0f172a !important; }

@media (max-width: 768px) {
    .faq-question { padding: 16px 18px; font-size: 1rem; }
    .faq-item.active .faq-answer { padding: 15px 18px 20px; }
}
