/* Die Startseite bleibt im Hintergrund sichtbar, das Popup selbst liegt darüber. */
#jam2027-popup.jam2027-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    display: none;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    padding: 20px;
    background: rgba(20, 31, 35, 0.70);
}
#jam2027-popup.jam2027-overlay.is-visible { display: flex; }
#jam2027-popup, #jam2027-popup * { box-sizing: border-box; }
#jam2027-popup .jam2027-dialog {
    position: relative;
    width: min(100%, 600px);
    max-height: calc(100dvh - 40px);
    overflow-y: auto;
    padding: 30px 22px 24px;
    border: 1px solid rgba(255, 255, 255, 0.85);
    border-radius: 18px;
    background: #fffdfa;
    box-shadow: 0 24px 75px rgba(0, 0, 0, 0.30);
    text-align: center;
    color: #294641;
    font-family: inherit;
}
#jam2027-popup .jam2027-heading {
    margin: 0 36px 18px;
    color: #557f77;
    font-size: clamp(1.25rem, 3.5vw, 1.7rem);
    line-height: 1.25;
    font-weight: 700;
}
#jam2027-popup .jam2027-banner {
    display: block;
    width: 100%;
    max-width: 530px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
}
#jam2027-popup .jam2027-note {
    margin: 18px 0 20px;
    color: #455d58;
    font-size: 1rem;
    line-height: 1.5;
}
#jam2027-popup .jam2027-ok {
    display: inline-flex;
    min-width: 150px;
    min-height: 46px;
    padding: 10px 30px;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 10px;
    background: #679a90;
    color: #ffffff;
    font: inherit;
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    transition: background .15s ease;
}
#jam2027-popup .jam2027-ok:hover { background: #527e76; }
#jam2027-popup .jam2027-close {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: transparent;
    color: #607a75;
    font: inherit;
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}
#jam2027-popup .jam2027-close:hover { background: #f2ebe8; }
#jam2027-popup button:focus-visible,
#jam2027-popup .jam2027-dialog:focus-visible {
    outline: 3px solid #28564e;
    outline-offset: 3px;
}
@media (max-width: 480px) {
    #jam2027-popup.jam2027-overlay { padding: 12px; }
    #jam2027-popup .jam2027-dialog { padding: 34px 12px 20px; border-radius: 14px; max-height: calc(100dvh - 24px); }
    #jam2027-popup .jam2027-heading { margin-bottom: 16px; }
    #jam2027-popup .jam2027-note { margin: 16px 0; font-size: .94rem; }
}
