/* ==========================================================
   Content Block: FAQ
========================================================== */

.faq-section {
    width: 100%;
    padding: 4.25rem 0 4.5rem;
    color: #292929;
    background: #f6f6f6;
}

/* ==========================================================
   Einleitung oberhalb des Accordions
========================================================== */

.faq-section__intro {
    max-width: 38rem;
    margin-bottom: 2.125rem;
}

.faq-section__eyebrow {
    margin: 0 0 0.75rem;
    color: var(--color-primary, #c12030);
    font-family: var(--font-monospace, monospace);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.14rem;
    line-height: 1.4;
    text-transform: uppercase;
}

.faq-section__title {
    max-width: 19ch;
    margin: 0;
    color: #292929;
    font-size: clamp(1.75rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03125rem;
    line-height: 1.16;
    text-wrap: balance;
}

.faq-section__text {
    max-width: 44rem;
    margin: 1.125rem 0 0;
    color: #555;
    font-size: 1rem;
    line-height: 1.65;
}

/* ==========================================================
   Accordion
========================================================== */

.faq-accordion {
    width: 100%;
    border-top: 1px solid #d4d4d4;
}

.faq-item {
    width: 100%;
    border-bottom: 1px solid #d4d4d4;
}

/* Browser-Marker entfernen */

.faq-item > summary {
    list-style: none;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

/* ==========================================================
   Frage
========================================================== */

.faq-item__question {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 1.75rem;
    align-items: center;
    gap: 1.25rem;
    min-height: 4.25rem;
    padding: 1.05rem 0;
    color: #292929;
    cursor: pointer;
    transition: color 150ms ease;
}

.faq-item__question:hover,
.faq-item__question:focus-visible {
    color: var(--color-primary, #c12030);
}

.faq-item__question:focus-visible {
    border-radius: 0.25rem;
    outline: 2px solid var(--color-primary, #c12030);
    outline-offset: 0.25rem;
}

.faq-item__question-text {
    font-size: 1rem;
    font-weight: 750;
    line-height: 1.4;
}

/* ==========================================================
   Plus-/Minus-Symbol
========================================================== */

.faq-item__icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.5rem;
    height: 1.5rem;
    justify-self: end;
    color: var(--color-primary, #c12030);
}

.faq-item__icon::before,
.faq-item__icon::after {
    position: absolute;
    width: 0.8rem;
    height: 1.5px;
    content: "";
    background: currentColor;
    border-radius: 999px;
    transition: transform 180ms ease;
}

.faq-item__icon::after {
    transform: rotate(90deg);
}

.faq-item[open] .faq-item__icon::after {
    transform: rotate(0deg);
}

/* ==========================================================
   Antwort
========================================================== */

.faq-item__answer {
    max-width: 58rem;
    padding: 0 3rem 1.35rem 0;
    color: #555;
    font-size: 0.9375rem;
    line-height: 1.7;
}

.faq-item__answer > :first-child {
    margin-top: 0;
}

.faq-item__answer > :last-child {
    margin-bottom: 0;
}

/* ==========================================================
   Animation
========================================================== */

@media (prefers-reduced-motion: no-preference) {
    .faq-item[open] .faq-item__answer {
        animation: faq-answer-fade 180ms ease-out;
    }

    @keyframes faq-answer-fade {
        from {
            opacity: 0;
            transform: translateY(-0.25rem);
        }

        to {
            opacity: 1;
            transform: translateY(0);
        }
    }
}

/* ==========================================================
   Mobil
========================================================== */

@media (max-width: 48rem) {
    .faq-section {
        padding: 3.5rem 0;
    }

    .faq-section__intro {
        margin-bottom: 1.75rem;
    }

    .faq-section__title {
        max-width: 18ch;
    }

    .faq-item__question {
        grid-template-columns: minmax(0, 1fr) 1.5rem;
        gap: 1rem;
        min-height: 4rem;
        padding: 0.95rem 0;
    }

    .faq-item__question-text {
        font-size: 0.9375rem;
    }

    .faq-item__answer {
        padding-right: 0;
        padding-bottom: 1.2rem;
        line-height: 1.65;
    }
}