/* Kontakt-Sidebar. Typografie wird geerbt. */
#stance-contact {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(100%, 520px);
    max-width: 100%;
    height: 100%;
    height: 100dvh;
    max-height: 100%;
    padding: 0;
    border: 0;
    background: white;
    box-sizing: border-box;
    overflow-y: auto;
    overscroll-behavior: contain;
    box-shadow: -8px 0 35px #0002;
}

#stance-contact::backdrop {
    background: #10182088;
}

#stance-contact[open] {
    animation: stance-contact-in .25s ease-out;
}

@keyframes stance-contact-in {
    from {
        transform: translateX(100%);
    }

    to {
        transform: translateX(0);
    }
}

html:has(#stance-contact[open]) {
    overflow: hidden;
}

#stance-contact .sc-inner {
    padding: clamp(20px, 5vw, 36px);
}

#stance-contact .sc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

#stance-contact .sc-close {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    background: white;
    cursor: pointer;
}

#stance-contact h2 {
    margin: 18px 0 12px;
}

#stance-contact p {
    margin: 0 0 18px;
}

#stance-contact form {
    display: grid;
    gap: 16px;
}

#stance-contact .sc-field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

#stance-contact :is(input:not([type=checkbox]), select, textarea) {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid #d5dce5;
    border-radius: 8px;
    background: #fff;
}

#stance-contact textarea {
    resize: vertical;
    min-height: 110px;
}

#stance-contact .sc-row {
    display: grid;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 12px;
}

#stance-contact .sc-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#stance-contact .sc-consent input {
    flex-shrink: 0;
    margin-top: 5px;
}

#stance-contact .sc-submit {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 18px;
    border: 1px solid #21539b;
    border-radius: 10px;
    background: #eaf2ff;
    cursor: pointer;
}

#stance-contact :focus-visible {
    outline: 2px solid #21539b;
    outline-offset: 3px;
}

@media (max-width: 420px) {
    #stance-contact .sc-row {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    #stance-contact[open] {
        animation: none;
    }
}

#stance-contact .sc-status:empty {
    margin: 0;
}

#stance-contact .sc-submit:disabled {
    cursor: wait;
    opacity: .7;
}
