/* =========================================================
   TTC ST. LEON-ROT – NEWS-MODAL
   Eigenständige Darstellung des News-Modals
   ========================================================= */

/* Der gemeinsame Grundaufbau (.event-modal) bleibt in style.css,
   damit andere Modals davon nicht beeinflusst werden. */

@media (max-width:700px) {
    .news-modal {
        height:100vh;
        height:100dvh;
        padding:0;
        align-items:stretch;
        justify-items:stretch;
    }

    .news-modal .event-modal-dialog {
        display:flex;
        flex-direction:column;
        width:100%;
        height:100%;
        max-height:100%;
        min-height:0;
        overflow:hidden;
        padding:22px 24px 0;
        border-radius:0;
    }

    .news-modal .news-modal-body {
        flex:1 1 auto;
        min-height:0;
        overflow-y:auto;
        overscroll-behavior:contain;
        -webkit-overflow-scrolling:touch;
        padding-bottom:16px;
    }

    .news-modal-footer {
        position:sticky;
        bottom:0;
        z-index:3;
        flex:0 0 auto;
        margin:0 -24px 0;
        padding:0 0 env(safe-area-inset-bottom);
        background:inherit;
        border-top:1px solid rgba(8,40,95,.12);
    }

    .news-modal-close-bottom {
        display:flex;
        align-items:center;
        justify-content:space-between;
        width:100%;
        min-height:44px;
        padding:8px 20px;
        border:0;
        border-radius:0;
        background:inherit;
        color:inherit;
        font:inherit;
        font-size:14px;
        font-weight:500;
        cursor:pointer;
    }

    .news-modal-close-bottom span:last-child {
        font-size:20px;
        line-height:1;
    }
}

@media (min-width:701px) {
    .news-modal-footer {
        display:none;
    }
}

/* Dark Mode: dezente Trennlinie passend zum dunklen Dialog */
html[data-theme="dark"] .news-modal-footer {
    border-top-color:rgba(255,255,255,.12);
}
