.contactFormDK {
    .contentElementWrapper {
        p.bodytext {
            color: #433;
            display: block;
            font-size: .9375rem;
            font-weight: 400;
            line-height: 1.8;
        }

    }
    .mainpadding {
        padding-left: .875rem;
        padding-right: .875rem;
    }
    fieldset {
        background-color: #fcedd8;
        > fieldset {
            padding-left: .875rem;
            padding-right: .875rem;
        }
        legend {
            &.visually-hidden {
                display: none;
            }
            background-color: #fadfbb;
            font-size: 1rem;
            font-weight: 700;
            width: 100%;
            padding: .625rem 1.125rem;
            display: inline-block;
        }
    }
    .checkboxTop {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Zwei gleichgroße Spalten */
        gap: 10px;
        > .bigSelection {
            margin-bottom: 0;
        }
    }
    .contentWrapper {
        padding: 0 1.125rem 0.625rem 1.125rem;
    }
    fieldset+fieldset {
        margin-top: .9375rem;
    }
    fieldset+input[aria-hidden="true"]+fieldset {
        margin-top: .9375rem;
    }
    .contact-form-button {
        display: flex;
        align-items: center;
        background-color: #fcedd8;
        gap: 0.8125rem;
        button {
        }
    }
    .disabled {
        pointer-events: none;
        opacity: 0.6;
        cursor: not-allowed;
        tab-index: -1;
    }
}

.contactFormDK.extendContactFormDK {

    textarea {
        min-height: 6rem;
        margin-bottom: 10px;
    }

    input[type='checkbox'],
    input[type='radio'],
    .check-visually-hidden {
        position: absolute;
        width: 1.25rem;
        height: 1.25rem;
        margin: 0;
        opacity: 0;
        z-index: 2;
    }
    .invalid-feedback {
        color: #e30613;
        width: 100%;
        display: inline-block;
        padding: 2px 0;
    }
    select:has(+.invalid-feedback),
    textarea:has(+.invalid-feedback),
    input:has(+.invalid-feedback){
        background-color: #fde1e1;
        border: 1px solid #e30613;
        box-shadow: inset 0 0 .3125rem 0 rgba(226, 0, 26, .5);
    }
}

#allErrors.allErrors {
    padding-inline: 10px;
    padding-top: 5px;
    border: 1px solid #e30613;
    background-color: #fde1e1;
    margin-bottom: 5px;
    &:empty {
        display: none;
    }
    > a {
        display: block;
        color: #e30613;
        margin-bottom: 5px;
    }
}

.contactFormDK {
    button[type="submit"] {
        position: relative;
        transition: padding-right .2s ease;
    }
    &.is-submitting button[type="submit"] {
        pointer-events: none;
        opacity: .6;
    }
    button[type="submit"].is-loading {
        padding-right: 3.25em;
        &::after {
            content: '';
            position: absolute;
            top: 50%;
            right: 1.125em;
            width: 1.125em;
            height: 1.125em;
            margin-top: -.5625em;
            border: 2px solid currentColor;
            border-right-color: transparent;
            border-radius: 50%;
            animation: contactFormDK-spin .75s linear infinite;
        }
    }
}

@keyframes contactFormDK-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (prefers-reduced-motion: reduce) {
    .contactFormDK button[type="submit"] {
        transition: none;
    }
    .contactFormDK button[type="submit"].is-loading::after {
        animation-duration: 2s;
    }
}
