/* ============================================
   FAQ ACCORDION — Dexter VPN
   Mobile-First
   ============================================ */

.faq-section {
    margin: 2rem 0;
    padding: 0;
}

.faq-headline {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #1a1a2e;
}

/* ---- Accordion Container ---- */
.faq-accordion {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

/* ---- Einzelnes FAQ Item ---- */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;
    overflow: hidden;
    transition: box-shadow 0.2s ease;
}

.faq-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

/* ---- Frage / Button ---- */
.faq-question {
    display: flex;
    justify-content: space-between;  /* Text links, Icon rechts */
    align-items: center;
    width: 100%;
    padding: 1.1rem 1.25rem;
    background: transparent;
    border: none;
    cursor: pointer;
    text-align: left;
    font-size: 1rem;
    font-weight: 600;
    color: #1a1a2e;
    gap: 1rem;
    transition: background 0.2s ease;
}

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

/* Aktiver Zustand — wenn Antwort offen */
.faq-question[aria-expanded="true"] {
    color: #f97316; /* Deine Orange-Farbe */
    background: #fff7ed;
}

/* ---- Plus/Minus Icon ---- */
.faq-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;          /* Icon nicht stauchen */
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f97316;
    color: #ffffff;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1;
    transition: background 0.2s ease, transform 0.2s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    background: #ea580c;    /* Etwas dunkleres Orange wenn offen */
    transform: rotate(45deg); /* + dreht sich zu × */
}

/* Standardmäßig versteckt */
.faq-answer {
    display: none;
}

/* ✅ Sichtbar sobald hidden entfernt wird */
.faq-answer:not([hidden]) {
    display: block;
    padding: 12px 16px;
    animation: faqFadeIn 0.25s ease;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to   { opacity: 1; transform: translateY(0);    }
}

.faq-answer p {
    margin: 0.75rem 0 0 0;
    font-size: 0.95rem;
    line-height: 1.7;
    color: #4b5563;
}

/* ============================================
   RESPONSIVE — ab 768px (Tablet/Desktop)
   ============================================ */
@media (min-width: 768px) {
    .faq-question {
        padding: 1.25rem 1.5rem;
        font-size: 1.05rem;
    }

    .faq-answer {
        padding: 0 1.5rem 1.25rem 1.5rem;
    }

    .faq-answer p {
        font-size: 1rem;
    }
}