/**
* Block Name: faq
*/

section.faq .collapsing {
    transition: height 450ms ease;
}

section.faq .collapsing.collapse-horizontal {
    transition: width 450ms ease;
}


/* Wrapper */
section.faq .faq_wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* Card */
section.faq .card {
    position: relative;
    background: transparent;
    border: 4px solid transparent;
    border-radius: 100px;
    overflow: visible;
    transition:
        background-color 350ms cubic-bezier(.2, .6, .2, 1),
        border-color 350ms cubic-bezier(.2, .6, .2, 1),
        border-radius 300ms cubic-bezier(.2, .6, .2, 1);
}

section.faq .card:hover {
    background: var(--white-alt);
}

section.faq .card:has(.show),
section.faq .card:has(.collapsing) {
    background: var(--white-alt);
    border-color: transparent;
    border-radius: var(--radius-medium);
}

section.faq .card:has(.show):hover {
    border-color: var(--subtle-green);
}

section.faq .card:has(.show)::after {
    opacity: 0;
}

/* Card Header */
section.faq .card .card-header {
    background: transparent;
    border: 0;
    padding: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
}

/* Header Button */
section.faq .card .card-header button {
    position: relative;
    background: transparent;
    color: var(--green);
    border: none;
    text-decoration: none;
    padding: 10px 0;
    padding-right: 10px;
    width: 100%;
    transition:
        color 300ms ease-in-out,
        transform 300ms ease-in-out;
    border-radius: 100px;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, auto) minmax(60px, 1fr) 30px;
    align-items: center;
    column-gap: 15px;
}

section.faq .card .card-header button::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--white-alt);
    opacity: 0;
    transform: scaleY(0.96);
    transform-origin: top;
    transition:
        opacity 220ms cubic-bezier(.2, .6, .2, 1),
        transform 220ms cubic-bezier(.2, .6, .2, 1);
    z-index: -1;
}

section.faq .card:has(.show) .card-header button::before {
    opacity: 1;
    transform: scaleY(1);
}

section.faq .card:has(.show) .card-header button .gradient-line {
    visibility: hidden;
}

/* Button Title (h4) */
section.faq .card .card-header button h4 {
    grid-column: 1;
    text-align: left;
    font-weight: 400;
    font-size: clamp(1.3125rem, 1.2344rem + 0.25vw, 1.375rem);
    transition: transform 300ms ease-in-out;
    color: var(--viridian);
    min-width: 0;
    word-break: auto-phrase;
}

section.faq .card:has(.show) .card-header button h4,
section.faq .card .card-header:hover button h4 {
    transform: translateX(5px);
}

/* Gradient line */
section.faq .card .card-header button .gradient-line {
    grid-column: 2;
    display: block;
    position: relative;
    height: 4px;
    bottom: -15px;
    width: 100%;
    background: linear-gradient(90deg, rgba(237, 247, 243, 0.00) 0%, #EDF7F3 15%);
    opacity: 1;
    transition: opacity 300ms ease-in-out;
    pointer-events: none;
}

/* Question icon */
section.faq .card .card-header button svg.question {
    transition: background-color 300ms ease;
    background-color: var(--white-alt);
    border-radius: 100px;
    flex-shrink: 0;
}

section.faq .card:hover button svg.question,
section.faq .card:has(.show) .card-header button svg.question,
section.faq .card:has(.collapsing) .card-header button svg.question {
    background-color: var(--white);
}

/* Chevron icon */
section.faq .card .card-header button svg.chevron {
    background: var(--green);
    border-radius: 100px;
    flex-shrink: 0;
    transition:
        background-color 300ms ease,
        transform 300ms ease,
        box-shadow 300ms ease-in-out;
}

section.faq .card .card-header button:hover svg.chevron {
    background: var(--viridian);
    -webkit-box-shadow: 0 -1px 2px 0 rgba(58, 12, 57, 0.10) inset, 0 -2px 3px 0 rgba(255, 255, 255, 0.50), 0 0 5px 0 rgba(0, 0, 0, 0.15), 0 3px 6px 0 rgba(144, 25, 142, 0.06), 0 10px 30px 0 rgba(107, 54, 106, 0.08);
    -moz-box-shadow: 0 -1px 2px 0 rgba(58, 12, 57, 0.10) inset, 0 -2px 3px 0 rgba(255, 255, 255, 0.50), 0 0 5px 0 rgba(0, 0, 0, 0.15), 0 3px 6px 0 rgba(144, 25, 142, 0.06), 0 10px 30px 0 rgba(107, 54, 106, 0.08);
    ;
    box-shadow: 0 -1px 2px 0 rgba(58, 12, 57, 0.10) inset, 0 -2px 3px 0 rgba(255, 255, 255, 0.50), 0 0 5px 0 rgba(0, 0, 0, 0.15), 0 3px 6px 0 rgba(144, 25, 142, 0.06), 0 10px 30px 0 rgba(107, 54, 106, 0.08);
}

section.faq .card:has(.show) .card-header button svg.chevron {
    transform: rotate(180deg);
}

section.faq .card .card-header button svg.chevron path {
    transition: transform 300ms ease;
    transform-origin: center;
}

section.faq .card .card-header button:hover svg.chevron path {
    transform: scale(1.15);
}

/* Collapse wrapper */
section.faq .collapse {
    padding: 0 !important;
}

/* Card body */
section.faq .card .card-body {
    padding: 10px 10px 16px;
    background: transparent;
}

section.faq .card .card-body,
section.faq .card .card-body p {
    margin-bottom: 0;
    color: var(--black);
    font-weight: 400;
}

section.faq .card .card-body .verlinkungen .btn-primary {
    color: var(--viridian);
}

section.faq .card .card-body .verlinkungen .btn-primary::after {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M12.175 9H0V7H12.175L6.575 1.4L8 0L16 8L8 16L6.575 14.6L12.175 9Z' fill='%2321875E'/%3E%3C/svg%3E");
}

section.faq .card .card-body .verlinkungen .btn-primary:hover {
    background: var(--white);
}

section.faq .card .card-body .verlinkungen .btn-primary.external svg {
    padding: 0;
    width: 30px;
}

section.faq .card .card-body .verlinkungen .btn-primary.external svg path {
    fill: var(--viridian);
}

section.faq .card .card-body .verlinkungen .btn-primary.external svg rect {
    fill: transparent;
}

/* Motion safety */
@media (prefers-reduced-motion: reduce) {

    section.faq .card,
    section.faq .card::after,
    section.faq .card .card-header button svg,
    section.faq .card .card-header button svg path,
    section.faq .collapsing {
        transition: none !important;
    }
}

@media (max-width: 767px) {
    section.faq .card .card-header button {
        grid-template-columns: minmax(0, 2fr) minmax(0, 0) 30px;

    }

    section.faq .card .card-header button .gradient-line {
        display: none;
    }

    section.faq .card .card-header button svg.chevron {
        margin-left: 15px;
    }

    /* Gradient line */
section.faq .card .card-header  .d-block.d-md-none.gradient-line {
    grid-column: 2;
    display: block;
    position: absolute;
    height: 4px;
    bottom: 0px;
    width: 100%;
    background: linear-gradient(90deg, rgba(237, 247, 243, 0.00) 0%, #EDF7F3 15%);
    opacity: 1;
    transition: opacity 300ms ease-in-out, transform 300ms ease-in-out;
    pointer-events: none;
}

section.faq .card:has(.show) .d-block.d-md-none.gradient-line,
section.faq .card:hover .d-block.d-md-none.gradient-line
 {
    visibility: hidden;
    opacity: 1;
    transform: scaleY(1);
}}