
/* =========================================
   IUNIXX – FAQ
   Fragen und Antworten
========================================= */

/* =========================================
   1. SECTION
========================================= */

.faq-section {
    --faq-blue: #1499FE;
    --faq-navy: #071725;
    --faq-muted: #52677D;
    --faq-border: #E5EDF5;

    width: 100%;
    padding: 110px 0 120px;

    background: #FFFFFF;
    color: var(--faq-navy);
}

.faq-section *,
.faq-section *::before,
.faq-section *::after {
    box-sizing: border-box;
}

.faq-container {
    width: calc(100% - 48px);
    max-width: 1200px;
    margin-inline: auto;
}

/* =========================================
   2. ÜBERSCHRIFT
========================================= */

.faq-header {
    max-width: 900px;
    margin: 0 0 60px;
    text-align: left;
}

.faq-eyebrow {
    display: block;
    margin-bottom: 18px;

    color: var(--faq-blue);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: var(
        --letter-spacing-label,
        0.12em
    );
    text-transform: uppercase;
}

.faq-title {
    margin: 0;

    color: var(--faq-navy);
    font-size: clamp(2.1rem, 3.6vw, 3.5rem);
    font-weight: 700;
    line-height: 1.16;
    letter-spacing: var(
        --letter-spacing-heading,
        0.005em
    );
}

.faq-title span {
    color: var(--faq-blue);
}

.faq-description {
    max-width: 720px;
    margin: 24px 0 0;

    color: var(--faq-muted);
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.75;
}

/* =========================================
   3. FAQ-LISTE
========================================= */

.faq-list {
    width: 100%;
    max-width: 900px;
    display: flex;
    flex-direction: column;
}

/* =========================================
   4. EINZELNE FRAGE
========================================= */

.faq-item {
    width: 100%;
    margin: 0;
    padding: 0;

    border: none;
    border-bottom: 1px solid var(--faq-border);

    background: transparent;
}

.faq-item:first-child {
    border-top: 1px solid var(--faq-border);
}

/* =========================================
   5. FRAGE / SUMMARY
========================================= */

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    width: 100%;
    min-height: 82px;
    padding: 23px 6px;

    color: var(--faq-navy);
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.5;

    cursor: pointer;
    list-style: none;

    transition: color 0.25s ease;
}

/* Standard-Dreieck entfernen */

.faq-question::-webkit-details-marker {
    display: none;
}

.faq-question::marker {
    content: "";
}

.faq-question:hover {
    color: var(--faq-blue);
}

.faq-question:focus-visible {
    outline: 2px solid var(--faq-blue);
    outline-offset: -2px;
    border-radius: 6px;
}

.faq-question-text {
    flex: 1;
    min-width: 0;
}

/* =========================================
   6. PLUS / MINUS SYMBOL
========================================= */

.faq-icon {
    position: relative;
    display: block;
    flex: 0 0 22px;

    width: 22px;
    height: 22px;

    color: var(--faq-blue);
}

/* Waagerechter Strich */

.faq-icon::before {
    content: "";
    position: absolute;

    top: 50%;
    left: 2px;

    width: 18px;
    height: 2px;

    background: currentColor;
    border-radius: 2px;

    transform: translateY(-50%);
}

/* Senkrechter Strich */

.faq-icon::after {
    content: "";
    position: absolute;

    top: 2px;
    left: 50%;

    width: 2px;
    height: 18px;

    background: currentColor;
    border-radius: 2px;

    transform: translateX(-50%);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

/* Geöffnet: Plus wird Minus */

.faq-item[open] .faq-icon::after {
    opacity: 0;
    transform:
        translateX(-50%)
        rotate(90deg);
}

.faq-item[open] .faq-question {
    color: var(--faq-blue);
}

/* =========================================
   7. ANTWORT
========================================= */

.faq-answer {
    padding: 0 48px 28px 6px;

    color: var(--faq-muted);
    font-size: 1rem;
    font-weight: 300;
    line-height: 1.8;

    animation: faq-fade-in 0.3s ease both;
}

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

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

.faq-answer a {
    color: var(--faq-blue);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.faq-answer a:hover {
    text-decoration: none;
}

@keyframes faq-fade-in {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   8. TABLET
========================================= */

@media (max-width: 1024px) {

    .faq-section {
        padding: 85px 0 95px;
    }

    .faq-header {
        margin-bottom: 48px;
    }

    .faq-question {
        min-height: 76px;
    }
}

/* =========================================
   9. MOBILE
========================================= */

@media (max-width: 768px) {

    .faq-section {
        padding: 70px 0 80px;
    }

    .faq-container {
        width: calc(100% - 36px);
    }

    .faq-header {
        margin-bottom: 40px;
    }

    .faq-title {
        font-size: clamp(2rem, 7.5vw, 2.8rem);
    }

    .faq-description {
        margin-top: 20px;
        font-size: 1rem;
    }

    .faq-question {
        min-height: 72px;
        padding: 21px 2px;

        gap: 18px;

        font-size: 1rem;
        font-weight: 500;
    }

    .faq-icon {
        flex-basis: 20px;
        width: 20px;
        height: 20px;
    }

    .faq-answer {
        padding: 0 32px 25px 2px;
        font-size: 0.95rem;
        line-height: 1.75;
    }
}

/* =========================================
   10. KLEINE SMARTPHONES
========================================= */

@media (max-width: 420px) {

    .faq-question {
        font-size: 0.96rem;
        gap: 14px;
    }

    .faq-answer {
        padding-right: 20px;
    }
}

/* =========================================
   11. REDUZIERTE BEWEGUNG
========================================= */

@media (prefers-reduced-motion: reduce) {

    .faq-question,
    .faq-icon::after {
        transition: none;
    }

    .faq-answer {
        animation: none;
    }
}
