.cs-faq-group {
    margin: 2rem 0;
}

.cs-faq-group-title {
    margin-bottom: 1rem;
}

.cs-faq-list,
.entry-content .cs-faq-list {
    display: grid;
    gap: 12px;
}

.cs-faq-item {
    overflow: hidden;
    border: 1px solid #f2caca;
    border-left: 4px solid #f44647;
    border-radius: 8px;
    background: #fffafa;
    box-shadow: 0 2px 7px rgba(0, 0, 0, 0.045);
}

.cs-faq-question,
.entry-content .cs-faq-question {
    margin: 0;
    padding: 0;
    font-size: inherit;
    line-height: inherit;
}

/* Die Schriftgrößen für H1-H5 werden über die Plugin-Einstellungen gesetzt. */
.cs-faq-question,
.entry-content .cs-faq-question {
    line-height: 1.42;
}

.cs-faq-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    width: 100%;
    margin: 0;
    padding: 15px 18px;
    border: 0;
    border-radius: 0;
    background: #fff2f2;
    color: inherit;
    font: inherit;
    font-weight: 700;
    line-height: 1.42;
    text-align: left;
    cursor: pointer;
    transition: background-color .18s ease, color .18s ease;
}

.cs-faq-item.is-open .cs-faq-toggle {
    background: #ffeaea;
}

.cs-faq-toggle:hover,
.cs-faq-toggle:focus-visible {
    background: #ffe3e3;
    color: #c93536;
}

.cs-faq-toggle:focus-visible {
    outline: 2px solid #f44647;
    outline-offset: -2px;
}

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

/* Darstellung, falls das Akkordeon in den Einstellungen deaktiviert ist. */
.cs-faq-question > .cs-faq-question-text {
    display: block;
    padding: 15px 18px;
    background: #fff2f2;
    color: inherit;
    font-weight: 700;
}

.cs-faq-icon {
    position: relative;
    flex: 0 0 18px;
    width: 18px;
    height: 18px;
}

.cs-faq-icon::before,
.cs-faq-icon::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 14px;
    height: 2px;
    background: #f44647;
    transform: translate(-50%, -50%);
    transition: transform .18s ease;
}

.cs-faq-icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.cs-faq-item.is-open .cs-faq-icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

body.cs-faq-icon-chevron .cs-faq-icon::before,
body.cs-faq-icon-chevron .cs-faq-icon::after {
    width: 9px;
}

body.cs-faq-icon-chevron .cs-faq-icon::before {
    left: 35%;
    transform: translate(-50%, -50%) rotate(45deg);
}

body.cs-faq-icon-chevron .cs-faq-icon::after {
    left: 65%;
    transform: translate(-50%, -50%) rotate(-45deg);
}

body.cs-faq-icon-chevron .cs-faq-item.is-open .cs-faq-icon::before {
    transform: translate(-50%, -50%) rotate(-45deg);
}

body.cs-faq-icon-chevron .cs-faq-item.is-open .cs-faq-icon::after {
    transform: translate(-50%, -50%) rotate(45deg);
}

.cs-faq-answer {
    background: #fff;
}

.cs-faq-answer-inner {
    padding: 16px 18px 18px;
    color: inherit;
}

.cs-faq-answer-inner > :first-child {
    margin-top: 0;
}

.cs-faq-answer-inner > :last-child {
    margin-bottom: 0;
}

.cs-faq-answer-inner a {
    color: #f44647;
}

.cs-faq-answer-inner ul,
.cs-faq-answer-inner ol {
    margin-bottom: 1em;
}

.cs-faq-answer[hidden] {
    display: none;
}

.cs-faq-js .cs-faq-answer.cs-faq-animating {
    display: block;
    overflow: hidden;
    transition: height .22s ease;
}

@media (max-width: 600px) {
    .cs-faq-toggle {
        gap: 12px;
        padding: 14px 15px;
    }

    .cs-faq-question > .cs-faq-question-text {
        padding: 14px 15px;
    }

    .cs-faq-answer-inner {
        padding: 14px 15px 16px;
    }
}
