/**
 * FAQ-Akkordeon.
 *
 * Gestaltet Elementors verschachteltes Akkordeon (nested-accordion, <details>
 * und <summary>) um. Wirkt nur, wenn das Widget unter Erweitert > CSS-Klassen
 * die Klasse mhb-faq bekommt, damit andere Akkordeons unberuehrt bleiben.
 */

.mhb-faq .e-n-accordion {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.mhb-faq .e-n-accordion-item {
    border: 0;
    background: none;
}

/* Kopfzeile: graue Flaeche mit angeschnittener rechter Kante. */
.mhb-faq .e-n-accordion-item-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin: 0;
    padding: 15px 56px 15px 24px;
    border: 0;
    border-radius: 0;
    background-color: #f2f2f2;
    cursor: pointer;
    list-style: none;
    clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%);
}

/* Das Dreieck, das der Browser von sich aus vor <summary> setzt. */
.mhb-faq .e-n-accordion-item-title::-webkit-details-marker,
.mhb-faq .e-n-accordion-item-title::marker {
    display: none;
    content: '';
}

/* Elementor stellt das Symbol mit order: -1 nach vorn. Hier steht der Text
   links und der Pfeil rechts. */
.mhb-faq .e-n-accordion-item-title-header {
    order: 0;
    flex: 1 1 auto;
    text-align: left;
}

.mhb-faq .e-n-accordion-item-title-header,
.mhb-faq .e-n-accordion-item-title-header > div {
    margin: 0;
}

.mhb-faq .e-n-accordion-item-title-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.4;
    color: #333333;
}

/* Statt Plus und Minus die Markenpfeile: zu = nach rechts, offen = nach unten.
   Die SVGs liegen seit jeher in den Uploads und sind bereits rot. */
.mhb-faq .e-n-accordion-item-title-icon {
    order: 1;
    flex: 0 0 auto;
}

.mhb-faq .e-n-accordion-item-title-icon svg {
    display: none;
}

.mhb-faq .e-n-accordion-item-title-icon .e-opened,
.mhb-faq .e-n-accordion-item-title-icon .e-closed {
    width: 18px;
    height: 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}

.mhb-faq .e-n-accordion-item-title-icon .e-closed {
    background-image: url('/wp-content/uploads/2024/09/mhb-arrow.svg');
}

.mhb-faq .e-n-accordion-item-title-icon .e-opened {
    background-image: url('/wp-content/uploads/2024/10/mhb-arrow-down.svg');
}

/* Antworttext buendig unter der Frage, ohne eigene Flaeche. */
/* Elementor rahmt den Inhaltsbereich mit 1px solid #d5d8dc ein. */
.mhb-faq .e-n-accordion-item > [role='region'] {
    padding: 18px 24px 4px;
    border: 0;
    background: none;
}

.mhb-faq .e-n-accordion-item > [role='region'] p:last-child {
    margin-bottom: 0;
}

@media (max-width: 880px) {
    .mhb-faq .e-n-accordion {
        gap: 14px;
    }

    .mhb-faq .e-n-accordion-item-title {
        padding: 13px 44px 13px 16px;
        gap: 14px;
    }

    .mhb-faq .e-n-accordion-item-title-text {
        font-size: 16px;
    }

    .mhb-faq .e-n-accordion-item > [role='region'] {
        padding: 14px 16px 4px;
    }
}
