/*
 * vfm-news — Fenster mit ungelesenen News.
 *
 * Im Kern-Dialog (.vfm-news-modal) nur der Inhalt: Farben erbt er vom Dialog,
 * damit der Dunkelmodus (vfm-dark) greift. Das eigene Fenster (.vfm-news-ov,
 * mobiles Portal) bringt alles selbst mit.
 */

/* ---------- Inhalt (beide Fenster) ---------- */

.vfm-news {
    padding: 18px 22px 20px;
    font-size: 14px;
    line-height: 1.6;
    word-wrap: break-word;
}

.vfm-news-heading {
    margin: 0 0 4px;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.35;
}

.vfm-news-date {
    font-size: 12.5px;
    opacity: .6;
    margin-bottom: 12px;
}

.vfm-news-divider {
    margin: 26px 0;
    border: 0;
    border-top: 1px solid rgba(127, 127, 127, .25);
}

.vfm-news-content p { margin: 0 0 12px; }
.vfm-news-content p:last-child { margin-bottom: 0; }
.vfm-news-content h1, .vfm-news-content h2, .vfm-news-content h3, .vfm-news-content h4 {
    margin: 18px 0 8px;
    line-height: 1.3;
    font-weight: 600;
}
.vfm-news-content h1 { font-size: 20px; }
.vfm-news-content h2 { font-size: 18px; }
.vfm-news-content h3 { font-size: 16px; }
.vfm-news-content h4 { font-size: 14px; }
.vfm-news-content > :first-child { margin-top: 0; }
.vfm-news-content ul, .vfm-news-content ol { margin: 0 0 12px; padding-left: 24px; }
.vfm-news-content ul { list-style: disc; }
.vfm-news-content ol { list-style: decimal; }
.vfm-news-content li { margin-bottom: 4px; }
.vfm-news-content img { max-width: 100%; height: auto; border-radius: 4px; }
.vfm-news-content iframe { max-width: 100%; }
.vfm-news-content a { text-decoration: underline; }
.vfm-news-content blockquote {
    margin: 0 0 12px;
    padding: 4px 0 4px 14px;
    border-left: 3px solid rgba(127, 127, 127, .35);
}
.vfm-news-content pre, .vfm-news-content code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 12.5px;
}
.vfm-news-content pre {
    padding: 10px 12px;
    border-radius: 6px;
    background: rgba(127, 127, 127, .1);
    overflow: auto;
}
.vfm-news-content table { border-collapse: collapse; margin: 0 0 12px; }
.vfm-news-content td, .vfm-news-content th { border: 1px solid rgba(127, 127, 127, .3); padding: 4px 8px; }
.vfm-news-content .notes-block {
    margin: 0 0 12px;
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(255, 193, 7, .14);
    border-left: 3px solid rgba(255, 193, 7, .8);
}
.vfm-news-content .spoiler-title { font-weight: 600; }

/* ---------- Kern-Dialog ---------- */

.vfm-news-modal .modalFooter.vfm-news-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}
.vfm-news-modal .vfm-news-footer button {
    float: none;
    margin: 0;
}
.vfm-news-preview-note {
    margin-right: auto;
    font-size: 12.5px;
    opacity: .65;
}

/* ---------- Eigenes Fenster (mobiles Portal) ---------- */

html.vfm-news-lock, html.vfm-news-lock body { overflow: hidden; }

.vfm-news-ov {
    position: fixed;
    inset: 0;
    z-index: 2147483000;
    background: rgba(17, 24, 39, .55);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    box-sizing: border-box;
}
.vfm-news-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 760px;
    max-height: 100%;
    background: #fff;
    color: #1f2937;
    border-radius: 10px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, .3);
    overflow: hidden;
}
.vfm-news-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.vfm-news-title { flex: 1; font-size: 16px; font-weight: 600; line-height: 1.3; }
.vfm-news-x {
    border: 0;
    background: none;
    font-size: 26px;
    line-height: 1;
    color: #9ca3af;
    cursor: pointer;
    padding: 0 4px;
}
.vfm-news-x:hover { color: #111827; }
.vfm-news-scroll { overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1 1 auto; }
.vfm-news-foot {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid #e5e7eb;
    flex-shrink: 0;
}
.vfm-news-foot .vfm-news-close {
    height: 38px;
    padding: 0 20px;
    border: 0;
    border-radius: 6px;
    background: var(--color, #2e3e4e);
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}

/* ---------- Startseiten-Box (rechte Spalte) ---------- */

.vfm-news-wlist { list-style: none; margin: 0; padding: 0; }
.vfm-news-witem { padding: 12px 0; border-bottom: 1px solid rgba(127, 127, 127, .2); }
.vfm-news-witem:first-child { padding-top: 4px; }
.vfm-news-witem:last-child { border-bottom: 0; padding-bottom: 0; }
.vfm-news-whead { display: flex; align-items: baseline; gap: 8px; }
.vfm-news-wtitle { font-weight: 600; line-height: 1.35; word-break: break-word; }
.vfm-news-wnew {
    display: none;
    flex-shrink: 0;
    padding: 0 7px;
    border-radius: 9px;
    font-size: 11px;
    line-height: 17px;
    font-weight: 600;
    color: #fff;
    background: var(--color, #2e3e4e);
}
.vfm-news-witem.is-unread .vfm-news-wnew { display: inline-block; }
.vfm-news-wdate { font-size: 12px; opacity: .6; margin-top: 2px; }
.vfm-news-wexcerpt { font-size: 13px; line-height: 1.5; margin-top: 6px; word-break: break-word; }
.vfm-news-wmore {
    margin: 8px 0 0;
    padding: 0;
    border: 0;
    background: none;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--color, #0072bc);
    cursor: pointer;
}
.vfm-news-wmore:hover { text-decoration: underline; }
.vfm-news-wmore::after { content: " →"; }
