/* Popup zur Kanzleipartnerschaft - unabhängig von style1.css */
.knupfer-popup-overlay,
.knupfer-popup-overlay * {
    box-sizing: border-box;
}

.knupfer-popup-overlay[hidden] {
    display: none !important;
}

.knupfer-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(0, 0, 0, 0.33);
}

.knupfer-popup {
    position: relative;
    width: 100%;
    max-width: 780px;
    max-height: calc(100vh - 48px);
    max-height: calc(100dvh - 48px);
    overflow-y: auto;
    background: #f1ede4;
    color: #252e35;
    padding: 33px 44px 26px;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    text-align: left;
    font-style: normal;
    -webkit-font-smoothing: antialiased;
}

/* Fokus liegt beim Öffnen auf dem Dialog, ohne sichtbaren Rahmen. */
.knupfer-popup:focus {
    outline: none;
}

.knupfer-popup-heading {
    margin: 0 45px 24px 0;
    font-family: inherit;
    font-size: 29px;
    font-weight: 500;
    line-height: 1.38;
    letter-spacing: -0.35px;
    text-transform: none;
}

.knupfer-popup-description {
    margin: 0 0 31px 0;
    max-width: 600px;
    font-family: inherit;
    font-size: 22px;
    font-weight: 400;
    line-height: 1.45;
    letter-spacing: -0.2px;
}

.knupfer-popup-close {
    position: absolute;
    top: 18px;
    right: 17px;
    width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: #252e35;
    cursor: pointer;
}

.knupfer-popup-close span,
.knupfer-popup-close span::after {
    display: block;
    width: 36px;
    height: 2px;
    background: currentColor;
    border-radius: 1px;
}

.knupfer-popup-close span {
    transform: rotate(45deg);
}

.knupfer-popup-close span::after {
    content: "";
    transform: rotate(90deg);
}

.knupfer-popup-close:hover {
    color: #778617;
}

.knupfer-popup-close:focus-visible,
.knupfer-popup-cta:focus-visible {
    outline: 3px solid #778617;
    outline-offset: 4px;
}

.knupfer-popup-cta {
    display: inline-block;
    width: auto;
    min-height: 47px;
    border: 2px solid #252e35;
    border-radius: 0;
    padding: 9px 14px 8px;
    background: transparent;
    color: #252e35;
    font-family: inherit;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.25;
    text-align: center;
    text-transform: uppercase;
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}

/* Solange das Linkziel unbekannt ist, bleibt der Button deaktiviert. */
.knupfer-popup-cta:disabled {
    opacity: 1;
    cursor: default;
}

.knupfer-popup-cta:not(:disabled):hover {
    background: #252e35;
    color: #f1ede4;
}

html.knupfer-popup-open,
body.knupfer-popup-open {
    overflow: hidden;
}

@media (min-width: 701px) and (min-height: 700px) {
    .knupfer-popup {
        transform: translateY(70px);
    }
}

@media (max-width: 700px) {
    .knupfer-popup-overlay {
        padding: 16px;
    }

    .knupfer-popup {
        max-height: calc(100vh - 32px);
        max-height: calc(100dvh - 32px);
        padding: 30px 24px 25px;
    }

    .knupfer-popup-heading {
        margin: 0 42px 21px 0;
        font-size: 24px;
        line-height: 1.32;
    }

    .knupfer-popup-desktop-break {
        display: none;
    }

    .knupfer-popup-description {
        margin-bottom: 25px;
        font-size: 17px;
        line-height: 1.48;
        letter-spacing: 0;
    }

    .knupfer-popup-cta {
        font-size: 16px;
        min-height: 43px;
        padding: 9px 13px;
    }

    .knupfer-popup-close {
        top: 12px;
        right: 11px;
        width: 36px;
        height: 36px;
    }

    .knupfer-popup-close span,
    .knupfer-popup-close span::after {
        width: 29px;
    }
}

@media (max-width: 380px) {
    .knupfer-popup {
        padding-left: 20px;
        padding-right: 20px;
    }
    .knupfer-popup-heading {
        font-size: 21px;
    }
    .knupfer-popup-description {
        font-size: 16px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .knupfer-popup-cta {
        transition: none;
    }
}
