/*
|--------------------------------------------------------------------------
| 2026-10-28
| Author: Claude
| Neuanlage (Kontakt R3). Popup-Rahmen (<dialog>). Das Formular darin
| gestaltet vt-kontakt.css (wird beim Öffnen nachgeladen).
| Desktop: Fenster bis 720px, scrollt innen, Kopf bleibt stehen.
| Bis 600px: Vollbild. Hintergrund #0b1730 mit 60 %.
|--------------------------------------------------------------------------
*/

.vt-kontakt-popup-offen {
    overflow: hidden;
}

dialog.vt-kontakt-popup {
    box-sizing: border-box;
    width: min(720px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 48px);
    margin: auto;
    padding: 0;
    border: 0;
    border-radius: var(--vt-radius-card, 20px);
    background-color: #ffffff;
    color: #34445e;
    font-family: inherit;
    box-shadow: 0 24px 60px rgba(11, 23, 48, .35);
    overflow: hidden;
}

dialog.vt-kontakt-popup[open] {
    display: flex;
    flex-direction: column;
}

dialog.vt-kontakt-popup::backdrop {
    background-color: rgba(11, 23, 48, .6);
}

.vt-kontakt-popup__kopf {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px 16px 28px;
    border-bottom: 1px solid #d4e2f2;
    background-color: #ffffff;
}

.vt-kontakt-popup .vt-kontakt-popup__titel {
    margin: 0;
    color: #0b1730;
    font-size: 23px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: normal;
    text-transform: none;
}

.vt-kontakt-popup .vt-kontakt-popup__titel:focus {
    outline: none;
}

.vt-kontakt-popup .vt-kontakt-popup__zu {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    border: 1px solid #6e83a0;
    border-radius: var(--vt-radius-small, 10px);
    background: #ffffff;
    color: #0b1730;
    font-size: 26px;
    line-height: 1;
    text-transform: none;
    cursor: pointer;
}

.vt-kontakt-popup .vt-kontakt-popup__zu:hover {
    border-color: #1764c4;
    color: #1764c4;
}

.vt-kontakt-popup .vt-kontakt-popup__zu:focus-visible {
    outline: 2px solid #0b3a7a;
    outline-offset: 2px;
}

.vt-kontakt-popup__koerper {
    flex: 1 1 auto;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding: 24px 28px 28px;
}

.vt-kontakt-popup .vt-kontakt-popup__fuss {
    margin: 24px 0 0;
    padding-top: 16px;
    border-top: 1px solid #d4e2f2;
    color: #5a6a82;
    font-size: 15px;
}

.vt-kontakt-popup .vt-kontakt-popup__fuss a {
    color: #1658a8;
    text-decoration: underline;
}

@media (max-width: 600px) {
    dialog.vt-kontakt-popup {
        width: 100vw;
        max-height: none;
        height: 100dvh;
        margin: 0;
        border-radius: 0;
    }

    .vt-kontakt-popup__kopf { padding: 12px 12px 12px 16px; }
    .vt-kontakt-popup__koerper { padding: 20px 16px 24px; }
}
