/* =====================================================
   WEG-News v5 – Cards + PDF.js Modal
   ===================================================== */

.com-content-category-blog .blog-items .items-row.row {
    margin-left: 0;
    margin-right: 0;
}
.com-content-category-blog .blog-items [class*="col-"] {
    padding-bottom: 20px;
}

/* ── Card ── */
.weg-news-card {
    background: #fff;
    border-radius: 12px;
    border-top: 4px solid #07a1e2;
    padding: 24px 24px 20px;
    box-shadow: 0 2px 14px rgba(0,0,0,.07);
    transition: box-shadow .25s, transform .25s;
    display: flex;
    flex-direction: column;
    height: 100%;
    word-break: break-word;
    overflow-wrap: break-word;
}
.weg-news-card:hover {
    box-shadow: 0 8px 30px rgba(7,161,226,.18);
    transform: translateY(-3px);
}
.weg-news-meta {
    font-size: .75rem;
    color: #07a1e2;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 5px;
}
.weg-news-title {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0 0 12px;
    line-height: 1.4;
}
.weg-news-title a { color: #1a1a2e; text-decoration: none; transition: color .2s; }
.weg-news-title a:hover { color: #07a1e2; }
.weg-news-excerpt {
    color: #666;
    font-size: .9rem;
    line-height: 1.65;
    flex: 1;
    margin-bottom: 20px;
}
.weg-news-footer { margin-top: auto; }
.weg-news-btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    background: #07a1e2;
    color: #fff !important;
    text-decoration: none !important;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: .82rem;
    font-weight: 600;
    transition: background .2s, transform .15s;
}
.weg-news-btn:hover { background: #0591cc; transform: translateX(2px); }

/* ── PDF Modal Overlay ── */
#weg-pdf-modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.6);
    z-index: 99999;
    align-items: center;
    justify-content: center;
    padding: 0;
}
#weg-pdf-modal.active {
    display: flex;
}
.weg-pdf-inner {
    position: relative;
    width: 92vw;
    height: 95vh;
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0,0,0,.5);
}
#weg-pdf-frame {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}
.weg-pdf-close {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 10;
    background: rgba(0,0,0,.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    font-size: 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.weg-pdf-close:hover { background: rgba(0,0,0,.85); }

/* Mobile: Modal vollbild */
@media (max-width: 767px) {
    #weg-pdf-modal .weg-pdf-inner {
        width: 100vw !important;
        height: 100dvh !important;
        border-radius: 0 !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        position: fixed !important;
    }
    #weg-pdf-modal #weg-pdf-frame {
        -webkit-overflow-scrolling: touch;
    }
    #weg-pdf-modal .weg-pdf-close {
        top: 8px !important;
        right: 12px !important;
        font-size: 22px !important;
        z-index: 100001 !important;
    }
}
