/* ═══════════════════════════════════════════════════════
   WP News Manager v2 – Komplettes Frontend CSS
   ═══════════════════════════════════════════════════════ */
:root {
    --wnm-primary:      #e67e22;
    --wnm-primary-dark: #cf6d17;
    --wnm-text:         #2d3748;
    --wnm-text-light:   #718096;
    --wnm-border:       #e2e8f0;
    --wnm-bg:           #f7fafc;
    --wnm-bg-card:      #ffffff;
    --wnm-radius:       10px;
    --wnm-shadow:       0 2px 8px rgba(0,0,0,.08);
}
*, *::before, *::after { box-sizing: border-box; }

/* ── Widget Wrapper ─────────────────────────────────── */
.wnm-widget-wrap,
.wnm-feed-wrap,
.wnm-submit-wrap {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    color: var(--wnm-text);
    max-width: 100%;
}

/* ── Widget Header ──────────────────────────────────── */
.wnm-widget-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}
.wnm-widget-icon {
    width: 38px; height: 38px;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}
.wnm-widget-title {
    margin: 0; font-size: 18px; font-weight: 700; flex: 1;
    color: var(--wnm-text);
}
.wnm-widget-empty {
    text-align: center;
    padding: 40px 20px;
    color: var(--wnm-text-light);
}
.wnm-widget-empty p { margin-bottom: 16px; font-size: 15px; }

/* ── Pending Bar ────────────────────────────────────── */
.wnm-pending-bar {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--wnm-radius);
    padding: 10px 14px;
    font-size: 13px;
    color: #856404;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Notice ─────────────────────────────────────────── */
.wnm-notice {
    padding: 12px 16px;
    background: var(--wnm-bg);
    border-radius: var(--wnm-radius);
    color: var(--wnm-text-light);
    text-align: center;
    font-size: 14px;
}

/* ── Widget List ─────────────────────────────────────── */
.wnm-widget-list { display: flex; flex-direction: column; gap: 10px; }
.wnm-widget-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    background: var(--wnm-bg-card);
    border: 1px solid var(--wnm-border);
    border-radius: var(--wnm-radius);
    padding: 14px;
    transition: box-shadow .15s, border-color .15s;
}
.wnm-widget-item:hover {
    box-shadow: var(--wnm-shadow);
    border-color: var(--wnm-primary);
}
.wnm-widget-item-icon {
    width: 40px; height: 40px;
    border-radius: 8px;
    background: var(--wnm-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.wnm-widget-item-body { flex: 1; min-width: 0; }
.wnm-widget-item-title {
    font-size: 14px; font-weight: 600;
    color: var(--wnm-text);
    text-decoration: none;
    display: block;
    margin-bottom: 6px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.wnm-widget-item-title:hover { color: var(--wnm-primary); }
.wnm-widget-item-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.wnm-widget-item-actions {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex-shrink: 0;
}

/* ── Widget Footer ──────────────────────────────────── */
.wnm-widget-footer { margin-top: 16px; text-align: center; }

/* ── Chips & Badges ─────────────────────────────────── */
.wnm-chip {
    display: inline-flex;
    align-items: center;
    font-size: 11px;
    padding: 2px 8px;
    background: var(--wnm-bg);
    border: 1px solid var(--wnm-border);
    border-radius: 20px;
    color: var(--wnm-text-light);
    gap: 4px;
}
.wnm-chip-date { color: var(--wnm-text-light); }
.wnm-status-badge {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .4px;
    padding: 2px 8px;
    border-radius: 20px;
}
.wnm-badge-publish { background: #d4edda; color: #155724; }
.wnm-badge-pending { background: #fff3cd; color: #856404; }
.wnm-badge-draft   { background: #e2e3e5; color: #383d41; }
.wnm-role-pill {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    background: rgba(230,126,34,.1);
    color: var(--wnm-primary);
    border: 1px solid rgba(230,126,34,.3);
    border-radius: 20px;
}

/* ── Rollen-Auswahl im Submit-Formular ─────────────────── */
.wnm-vis-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}
.wnm-vis-grid .wnm-role-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 600;
    padding: 6px 12px;
    background: #f8fafc;
    color: #374151;
    border: 1.5px solid #e4e4e7;
    border-radius: 100px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
}
.wnm-vis-grid .wnm-role-pill:hover {
    border-color: var(--wnm-primary, #e67e22);
    background: #fff9f5;
}
.wnm-vis-grid .wnm-role-pill input[type="checkbox"] {
    accent-color: var(--wnm-primary, #e67e22);
    width: 14px;
    height: 14px;
    margin: 0;
    flex-shrink: 0;
}
.wnm-vis-grid .wnm-role-pill:has(input:checked) {
    background: rgba(230,126,34,.1);
    border-color: var(--wnm-primary, #e67e22);
    color: var(--wnm-primary, #e67e22);
}

/* ── Buttons ────────────────────────────────────────── */
.wnm-btn-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: var(--wnm-primary);
    color: #fff !important;
    border: none;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background .15s, transform .1s;
    white-space: nowrap;
}
.wnm-btn-pill:hover { background: var(--wnm-primary-dark); transform: translateY(-1px); color: #fff !important; }
.wnm-btn-outline {
    background: transparent;
    color: var(--wnm-primary) !important;
    border: 1.5px solid var(--wnm-primary);
}
.wnm-btn-outline:hover { background: var(--wnm-primary); color: #fff !important; }
.wnm-btn-outline-sm {
    padding: 5px 12px; font-size: 12px;
    background: transparent;
    color: var(--wnm-primary) !important;
    border: 1px solid var(--wnm-primary);
    border-radius: 50px; cursor: pointer;
    text-decoration: none;
}
.wnm-icon-btn {
    width: 30px; height: 30px;
    border: 1px solid var(--wnm-border);
    background: var(--wnm-bg);
    border-radius: 6px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all .15s;
}
.wnm-edit-btn:hover  { border-color: var(--wnm-primary); color: var(--wnm-primary); }
.wnm-delete-btn:hover{ border-color: #dc3545; color: #dc3545; }

/* ── Feed Grid ──────────────────────────────────────── */
.wnm-feed-wrap { }
.wnm-feed-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.wnm-feed-title { margin: 0; font-size: 22px; font-weight: 700; flex: 1; }

/* Filter Bar */
.wnm-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}
.wnm-filter-btn {
    padding: 6px 14px;
    border: 1.5px solid var(--wnm-border);
    background: var(--wnm-bg-card);
    border-radius: 50px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    color: var(--wnm-text-light);
    text-decoration: none;
    transition: all .15s;
}
.wnm-filter-btn:hover,
.wnm-filter-btn.active {
    border-color: var(--wnm-primary);
    color: var(--wnm-primary);
    background: rgba(230,126,34,.07);
}

/* Card Grid */
.wnm-feed-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 18px;
}
.wnm-layout-list .wnm-feed-grid {
    grid-template-columns: 1fr;
}
.wnm-card-item {
    background: var(--wnm-bg-card);
    border: 1px solid var(--wnm-border);
    border-radius: var(--wnm-radius);
    overflow: hidden;
    position: relative;
    transition: box-shadow .15s, transform .15s;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}
.wnm-card-item:hover {
    box-shadow: 0 6px 20px rgba(0,0,0,.10);
    transform: translateY(-2px);
}
.wnm-card-thumb {
    aspect-ratio: 16/9;
    overflow: hidden;
    background: var(--wnm-bg);
    display: flex; align-items: center; justify-content: center;
    font-size: 36px; color: #ddd;
}
.wnm-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.wnm-card-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.wnm-card-cat-badge {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: .5px;
    color: var(--wnm-primary);
    margin-bottom: 6px;
}
.wnm-card-title {
    font-size: 15px; font-weight: 700;
    color: var(--wnm-text);
    text-decoration: none;
    margin-bottom: 8px;
    display: block;
    line-height: 1.35;
}
.wnm-card-title:hover { color: var(--wnm-primary); }
.wnm-card-excerpt { font-size: 13px; color: var(--wnm-text-light); line-height: 1.5; flex: 1; margin-bottom: 10px; }
.wnm-card-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }

/* List layout overrides */
.wnm-layout-list .wnm-card-item {
    flex-direction: row;
}
.wnm-layout-list .wnm-card-thumb {
    width: 100px; aspect-ratio: 1; flex-shrink: 0;
}

/* ── Pagination ─────────────────────────────────────── */
.wnm-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    margin-top: 24px;
    flex-wrap: wrap;
}
.wnm-page-btn {
    min-width: 36px; height: 36px;
    border: 1.5px solid var(--wnm-border);
    background: var(--wnm-bg-card);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 13px; font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    color: var(--wnm-text);
    transition: all .15s;
}
.wnm-page-btn:hover, .wnm-page-btn.active {
    border-color: var(--wnm-primary);
    background: var(--wnm-primary);
    color: #fff;
}

/* ── Modal ──────────────────────────────────────────── */
.wnm-modal { display: none; }
.wnm-modal.is-open { display: block; }
.wnm-modal-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,.5);
    z-index: 10000;
    backdrop-filter: blur(2px);
}
.wnm-modal-box {
    position: fixed;
    top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    background: #fff;
    border-radius: 14px;
    width: 90%; max-width: 540px;
    max-height: 90vh; overflow-y: auto;
    z-index: 10001;
    box-shadow: 0 20px 60px rgba(0,0,0,.2);
}
.wnm-modal-header {
    display: flex; align-items: center;
    justify-content: space-between;
    padding: 20px 24px 16px;
    border-bottom: 1px solid var(--wnm-border);
    position: sticky; top: 0; background: #fff;
    z-index: 1;
}
.wnm-modal-header h3 { margin: 0; font-size: 18px; }
.wnm-modal-close {
    width: 30px; height: 30px;
    border: none; background: var(--wnm-bg);
    border-radius: 50%; cursor: pointer;
    font-size: 16px; display: flex; align-items: center; justify-content: center;
}
.wnm-modal-body { padding: 20px 24px 24px; }

/* ── Form ───────────────────────────────────────────── */
.wnm-form-group { margin-bottom: 18px; }
.wnm-form-group label {
    display: block; font-size: 13px;
    font-weight: 600; margin-bottom: 6px;
    color: var(--wnm-text);
}
.wnm-form-group input[type="text"],
.wnm-form-group input[type="email"],
.wnm-form-group textarea,
.wnm-form-group select {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--wnm-border);
    border-radius: 8px;
    font-size: 14px;
    background: #fff;
    color: var(--wnm-text);
    transition: border-color .15s;
}
.wnm-form-group input:focus,
.wnm-form-group textarea:focus,
.wnm-form-group select:focus {
    outline: none;
    border-color: var(--wnm-primary);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--dca-primary,#e67e22) 40%, transparent);
}
.wnm-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wnm-required { color: #dc3545; }
.wnm-hint { font-size: 11px; color: var(--wnm-text-light); margin-top: 4px; }
.wnm-form-footer { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--wnm-border); }
.wnm-form-msg { padding: 10px 14px; border-radius: 8px; font-size: 13px; margin-top: 12px; }
.wnm-form-msg.success { background: #d4edda; color: #155724; }
.wnm-form-msg.error   { background: #f8d7da; color: #721c24; }
.wnm-info { font-size: 13px; color: var(--wnm-text-light); padding: 12px; background: var(--wnm-bg); border-radius: 8px; }

/* ── File Attach ─────────────────────────────────────── */
.wnm-file-wrap { margin-top: 8px; }
.wnm-file-btn {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 6px 14px;
    border: 1.5px dashed var(--wnm-border);
    border-radius: 8px; background: var(--wnm-bg);
    cursor: pointer; font-size: 13px; color: var(--wnm-text-light);
    transition: all .15s;
}
.wnm-file-btn:hover { border-color: var(--wnm-primary); color: var(--wnm-primary); }
.wnm-file-name { font-size: 12px; margin-top: 6px; color: var(--wnm-text-light); }

/* ── Submit Form Widget ──────────────────────────────── */
.wnm-submit-wrap { }

/* ── Responsive ─────────────────────────────────────── */
@media (max-width: 600px) {
    .wnm-widget-header { gap: 8px; }
    .wnm-feed-grid { grid-template-columns: 1fr; }
    .wnm-form-row { grid-template-columns: 1fr; }
    .wnm-layout-list .wnm-card-item { flex-direction: column; }
    .wnm-layout-list .wnm-card-thumb { width: 100%; aspect-ratio: 16/9; }
    .wnm-modal-box { width: 95%; }
}

/* ── View Switch ──────────────────────────────────────────── */
.wnm-feed-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 18px;
}

/* wnm-view-btn - unified in shared section below */

/* List-Layout Karten */
.wnm-layout-list .wnm-card-item {
    display: flex !important;
    flex-direction: row !important;
    min-height: 110px;
    max-height: 130px;
}
.wnm-layout-list .wnm-card-thumb {
    width: 140px !important;
    min-width: 140px;
    height: auto !important;
    border-radius: 12px 0 0 12px !important;
}
.wnm-layout-list .wnm-card-body { padding: 14px 18px !important; }
.wnm-layout-list .wnm-card-excerpt { display: none; }

/* Card click-overlay link */
.wnm-card-link {
    position: absolute;
    inset: 0;
    z-index: 1;
    border-radius: inherit;
}
.wnm-card-item .wnm-card-cat-badge,
.wnm-card-item .wnm-btn-actions { position: relative; z-index: 2; }
.wnm-card-readmore {
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
    position: relative;
    z-index: 2;
    transition: opacity .15s;
}
.wnm-card-readmore:hover { opacity: .75; }



/* ═══════════════════════════════════════════════════════
   KOMMENTARE  –  Mobile-First, klar, lesbar
   ═══════════════════════════════════════════════════════ */

.wnm-comments {
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid #e9edf2;
}
.wnm-cc-title {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: #9aa3b2;
    margin: 0 0 24px;
}

/* ── Kommentar-Liste ── */
.wnm-cc-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* ── Einzelner Kommentar ── */
.wnm-c {
    display: grid;
    grid-template-columns: 38px 1fr;
    column-gap: 12px;
    padding: 16px 0;
    border-bottom: 1px solid #f1f4f8;
}
.wnm-c:last-child { border-bottom: none; }

/* Antworten: eingerückt, subtile Trennlinie */
.wnm-c-replies {
    margin-left: 50px;
    border-left: 2px solid #f1f4f8;
    padding-left: 14px;
}
.wnm-c-replies .wnm-c {
    padding: 12px 0;
    border-bottom: 1px solid #f8f9fb;
}
.wnm-c-replies .wnm-c:last-child { border-bottom: none; }

/* Avatar */
.wnm-c-av { padding-top: 1px; }
.wnm-c-av img {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    object-fit: cover;
    display: block;
}
.wnm-c-initial {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--wnm-c, #e67e22);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: 700;
    flex-shrink: 0;
}

/* Inhalt */
.wnm-c-main { min-width: 0; }
.wnm-c-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 4px;
    flex-wrap: wrap;
}
.wnm-c-name {
    font-size: 13px;
    font-weight: 700;
    color: #18181b;
    line-height: 1;
}
.wnm-c-tag {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #9aa3b2;
    line-height: 1;
}
.wnm-c-tag--author { color: var(--wnm-c, #e67e22); }
.wnm-c-time {
    font-size: 11px;
    color: #c3c9d4;
    margin-left: auto;
    white-space: nowrap;
}
.wnm-c-text {
    font-size: 14px;
    line-height: 1.65;
    color: #3d4550;
    word-break: break-word;
}
.wnm-c-text p { margin: 0 0 .3em; }
.wnm-c-text p:last-child { margin: 0; }
.wnm-mention {
    color: var(--wnm-c, #e67e22);
    font-weight: 600;
}
.wnm-c-reply-btn {
    display: inline-block;
    margin-top: 6px;
    background: none;
    border: none;
    padding: 0;
    font-size: 12px;
    font-weight: 600;
    color: #c3c9d4;
    cursor: pointer;
    font-family: inherit;
    letter-spacing: .01em;
    transition: color .15s;
}
.wnm-c-reply-btn:hover { color: var(--wnm-c, #e67e22); }

/* ── Kommentar-Formular ── */
.wnm-cc-form {
    margin-top: 28px;
    padding: 20px;
    border-radius: 14px;
    border: 1.5px solid #e9edf2;
    background: #fcfcfd;
}

/* Angemeldet als */
.wnm-cc-who {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    padding-bottom: 14px;
    border-bottom: 1px solid #f1f4f8;
}
.wnm-cc-who img {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.wnm-cc-who-name { font-size: 13px; color: #3d4550; font-weight: 500; }

/* Gast Name + E-Mail */
.wnm-cc-guest-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 12px;
}
@media (max-width: 480px) {
    .wnm-cc-guest-fields { grid-template-columns: 1fr; }
    .wnm-c-replies { margin-left: 30px; padding-left: 10px; }
}
.wnm-cc-guest-fields input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    font-size: 13px;
    font-family: inherit;
    color: #1a202c;
    outline: none;
    transition: border-color .18s;
}
.wnm-cc-guest-fields input::placeholder { color: #a0adb8; }
.wnm-cc-guest-fields input:focus {
    border-color: var(--wnm-c, #e67e22);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wnm-c, #e67e22) 10%, transparent);
}

/* Textarea */
.wnm-cc-input-wrap { position: relative; }
#wnm-cf-text {
    width: 100%;
    box-sizing: border-box;
    display: block;
    padding: 10px 12px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    background: #fff;
    font-size: 14px;
    font-family: inherit;
    line-height: 1.6;
    color: #1a202c;
    resize: none;
    outline: none;
    overflow: hidden;
    min-height: 46px;
    transition: border-color .18s, min-height .2s;
}
#wnm-cf-text::placeholder { color: #a0adb8; }
#wnm-cf-text:focus {
    border-color: var(--wnm-c, #e67e22);
    min-height: 96px;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--wnm-c, #e67e22) 10%, transparent);
}

/* Aktionszeile */
.wnm-cc-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}
.wnm-cc-reply-hint {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #9aa3b2;
    background: #f1f4f8;
    padding: 4px 10px 4px 8px;
    border-radius: 50px;
    flex-shrink: 0;
}
.wnm-cc-reply-hint strong { color: #3d4550; font-weight: 600; }
#wnm-cc-cancel-reply {
    background: none;
    border: none;
    font-size: 14px;
    color: #c3c9d4;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    font-family: inherit;
    transition: color .15s;
}
#wnm-cc-cancel-reply:hover { color: #3d4550; }
.wnm-cc-submit {
    margin-left: auto;
    padding: 9px 20px;
    background: var(--wnm-c, #e67e22);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .01em;
    cursor: pointer;
    font-family: inherit;
    transition: opacity .15s;
    white-space: nowrap;
}
.wnm-cc-submit:hover { opacity: .88; }
.wnm-cc-submit:disabled { opacity: .45; cursor: not-allowed; }

/* Statusmeldung */
.wnm-cc-msg {
    margin-top: 10px;
    font-size: 13px;
    padding: 9px 12px;
    border-radius: 8px;
}
.wnm-cc-msg.ok  { background: #f0fdf4; color: #15803d; }
.wnm-cc-msg.err { background: #fef2f2; color: #dc2626; }

/* Login-Hinweis */
.wnm-cc-login {
    margin-top: 20px;
    font-size: 14px;
    color: #9aa3b2;
    text-align: center;
    padding: 16px;
    background: #f8fafc;
    border-radius: 10px;
    border: 1px solid #e9edf2;
}
.wnm-cc-login a { color: var(--wnm-c, #e67e22); font-weight: 600; text-decoration: none; }

/* @Mention Dropdown */
.wnm-cc-mention-list {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1.5px solid #e9edf2;
    border-radius: 12px;
    box-shadow: 0 8px 28px rgba(0,0,0,.09);
    z-index: 200;
    overflow: hidden;
    max-height: 220px;
    overflow-y: auto;
}
.wnm-cc-mention-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    font-size: 13px;
    color: #18181b;
    cursor: pointer;
    transition: background .1s;
}
.wnm-cc-mention-item:hover,
.wnm-cc-mention-item.is-active { background: #f8fafc; }
.wnm-cc-mention-item img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: #e9edf2;
}
.wnm-cc-mention-item strong { font-weight: 600; }


/* Reset / Filter zurücksetzen buttons */
.na-btn-text, .da-btn-text, .wnm-btn-text {
    background: none; border: 1.5px solid #e2e8f0;
    color: #64748b; font-size: 12px; font-weight: 600;
    padding: 5px 12px; border-radius: 7px;
    cursor: pointer; font-family: inherit; transition: all .15s;
    display: inline-flex; align-items: center; gap: 5px;
    text-decoration: none;
}
.na-btn-text:hover, .da-btn-text:hover, .wnm-btn-text:hover {
    border-color: var(--dca-primary, #e67e22);
    color: var(--dca-primary, #e67e22); background: #fff;
}

/* ── Unified View Switch & Reset Button ─────────────────────────────────────── */
.na-view-switch, .da-view-switch, .wnm-view-switch {
    display: flex; gap: 4px; background: #f0f2f5; padding: 3px; border-radius: 9px;
}
.na-view-btn, .da-view-btn, .wnm-view-btn {
    width: 32px; height: 32px; display: flex; align-items: center; justify-content: center;
    border-radius: 7px; border: none; background: transparent; color: #aaa; cursor: pointer;
    font-size: 15px; transition: all .15s; -webkit-tap-highlight-color: transparent;
}
.na-view-btn:hover:not(.active), .da-view-btn:hover:not(.active), .wnm-view-btn:hover:not(.active) {
    background: rgba(255,255,255,.7); color: #555;
}
.na-view-btn.active, .da-view-btn.active, .wnm-view-btn.active {
    background: #fff; color: var(--dca-primary, #e67e22); box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.na-btn-text, .da-btn-text, .wnm-btn-text {
    background: none; border: 1.5px solid #e2e8f0; color: #64748b; font-size: 12px; font-weight: 600;
    padding: 5px 12px; border-radius: 7px; cursor: pointer; font-family: inherit; transition: all .15s;
    display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
}
.na-btn-text:hover, .da-btn-text:hover, .wnm-btn-text:hover {
    border-color: var(--dca-primary, #e67e22); color: var(--dca-primary, #e67e22); background: #fff;
}

/* ── News Engagement Widget ─────────────────────────────────────────────────── */
.wnm-engage-widget {
    display: flex;
    align-items: center;
    gap: 16px;
    background: linear-gradient(135deg, rgba(var(--wnm-c-rgb, 230,126,34), .06), rgba(var(--wnm-c-rgb, 230,126,34), .02));
    border: 1.5px solid rgba(230,126,34,.2);
    border-radius: 16px;
    padding: 18px 20px;
    margin: 28px 0 12px;
    font-family: inherit;
}
.wnm-engage-icon { font-size: 32px; flex-shrink: 0; }
.wnm-engage-body { flex: 1; min-width: 0; }
.wnm-engage-body strong { display: block; font-size: 15px; font-weight: 700; color: #18181b; margin-bottom: 3px; }
.wnm-engage-sub { font-size: 12px; color: #94a3b8; font-weight: 500; }
.wnm-engage-btn {
    flex-shrink: 0;
    padding: 10px 20px;
    background: var(--wnm-c, #e67e22); color: #fff;
    border: none; border-radius: 100px;
    font-size: 13px; font-weight: 700; font-family: inherit;
    cursor: pointer; white-space: nowrap;
    box-shadow: 0 3px 12px rgba(230,126,34,.3);
    transition: filter .15s, transform .1s;
    -webkit-tap-highlight-color: transparent;
}
.wnm-engage-btn:hover { filter: brightness(.92); transform: translateY(-1px); }
.wnm-engage-btn:active { transform: translateY(0); }
.wnm-engage-done {
    flex-shrink: 0;
    padding: 8px 16px;
    background: #f0fdf4; color: #16a34a;
    border: 1.5px solid #86efac; border-radius: 100px;
    font-size: 13px; font-weight: 700; white-space: nowrap;
}

/* Poll variant */
.wnm-engage-poll {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
}
.wnm-poll-header { display: flex; align-items: center; gap: 12px; }
.wnm-poll-icon { font-size: 24px; flex-shrink: 0; }
.wnm-poll-q { font-size: 15px; font-weight: 700; color: #18181b; }

.wnm-poll-options { display: flex; flex-direction: column; gap: 8px; }
.wnm-poll-opt {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    background: #fff;
    border: 1.5px solid #e4e4e7;
    border-radius: 10px;
    cursor: pointer;
    transition: border-color .15s, background .15s;
    -webkit-tap-highlight-color: transparent;
}
.wnm-poll-opt:hover { border-color: var(--wnm-c, #e67e22); background: #fff9f5; }
.wnm-poll-opt--chosen { border-color: var(--wnm-c, #e67e22); background: rgba(230,126,34,.07); }
.wnm-poll-opt-label { flex: 1; font-size: 14px; font-weight: 500; color: #18181b; }
.wnm-poll-bar-wrap { width: 80px; height: 6px; background: #f1f5f9; border-radius: 3px; overflow: hidden; flex-shrink: 0; }
.wnm-poll-bar-fill { height: 100%; border-radius: 3px; background: var(--wnm-c, #e67e22); transition: width .4s; }
.wnm-poll-pct { font-size: 12px; font-weight: 700; color: #64748b; min-width: 36px; text-align: right; flex-shrink: 0; }
.wnm-poll-footer { font-size: 12px; color: #94a3b8; text-align: right; }

/* ── Engagement Widget – Mobile komplett überarbeitet ───────────────────────── */
@media (max-width: 640px) {
    /* ── Lesebestätigung ── */
    .wnm-engage-widget {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border-radius: 14px;
        overflow: hidden;
    }
    /* Farbiger Header-Streifen */
    .wnm-engage-widget::before {
        content: '📋 Lesebestätigung erforderlich';
        display: block;
        background: var(--wnm-c, #e67e22);
        color: #fff;
        font-size: 11px;
        font-weight: 800;
        text-transform: uppercase;
        letter-spacing: .06em;
        padding: 8px 16px;
    }
    .wnm-engage-widget .wnm-engage-icon { display: none; }
    .wnm-engage-body {
        padding: 14px 16px 12px;
        text-align: left;
    }
    .wnm-engage-body strong { font-size: 14px; line-height: 1.4; }
    .wnm-engage-sub {
        font-size: 11px;
        margin-top: 4px;
        display: block;
    }
    .wnm-engage-btn {
        display: block;
        width: 100%;
        box-sizing: border-box;
        text-align: center;
        padding: 14px 16px;
        border-radius: 0;
        border-bottom-left-radius: 12px;
        border-bottom-right-radius: 12px;
        font-size: 15px;
        box-shadow: none;
        margin: 0;
    }
    .wnm-engage-done {
        display: block;
        text-align: center;
        margin: 0;
        border-radius: 0 0 12px 12px;
        padding: 12px 16px;
    }

    /* ── Umfrage ── */
    .wnm-engage-poll {
        padding: 0;
        gap: 0;
        border-radius: 14px;
        overflow: hidden;
    }
    /* Farbiger Poll-Header */
    .wnm-poll-header {
        background: var(--wnm-c, #e67e22);
        padding: 12px 16px;
        gap: 10px;
        border-radius: 0;
    }
    .wnm-poll-icon { font-size: 20px; filter: brightness(10); }
    .wnm-poll-q {
        font-size: 14px;
        color: #fff;
        font-weight: 700;
        line-height: 1.35;
    }
    .wnm-poll-options {
        padding: 12px 14px;
        gap: 8px;
    }
    .wnm-poll-opt {
        padding: 13px 14px;
        border-radius: 10px;
        min-height: 48px;
    }
    .wnm-poll-opt-label { font-size: 14px; }
    .wnm-poll-bar-wrap { width: 44px; }
    .wnm-poll-pct { min-width: 30px; font-size: 11px; }
    .wnm-poll-footer {
        padding: 0 14px 12px;
        text-align: left;
    }

    /* ── Engage-Box Shortcode ── */
    .wnm-engage-box-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 12px 14px;
    }
    .wnm-ebi-title { font-size: 13px; }
    .wnm-ebi-btn {
        width: 100%;
        text-align: center;
        padding: 12px;
        font-size: 13px;
        border-radius: 8px;
    }
}

@media (max-width: 380px) {
    .wnm-poll-bar-wrap { display: none; }
    .wnm-poll-pct { min-width: 28px; }
}

/* ── Engagement-Badge auf News-Karten ───────────────────────────────────────── */
.wnm-engage-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 100px;
    margin-bottom: 8px;
    background: #fff7ed;
    color: #c2410c;
    border: 1px solid #fed7aa;
    white-space: nowrap;
    -webkit-tap-highlight-color: transparent;
}
.wnm-engage-badge--done {
    background: #f0fdf4;
    color: #15803d;
    border-color: #86efac;
}
/* Karten-Rahmen: Engagement-News optisch hervorheben */
.wnm-card-has-engage {
    border-color: rgba(230,126,34,.35) !important;
    border-width: 2px !important;
}
.wnm-card-has-engage:not(.wnm-card-acted) {
    box-shadow: 0 0 0 3px rgba(230,126,34,.1), 0 2px 12px rgba(0,0,0,.06) !important;
}
/* Kleines Dot-Indikator oben-rechts auf Karte (Mobile-sichtbar auch ohne Badge-Text) */
.wnm-card-has-engage:not(.wnm-card-acted)::after {
    content: '';
    position: absolute;
    top: 10px; right: 10px;
    width: 10px; height: 10px;
    border-radius: 50%;
    background: #e67e22;
    box-shadow: 0 0 0 2px #fff, 0 0 0 4px rgba(230,126,34,.3);
    z-index: 3;
}
/* Mobile: Badge immer volle Breite, grösser tap-target */
@media (max-width: 600px) {
    .wnm-engage-badge {
        font-size: 12px;
        padding: 5px 12px;
        width: 100%;
        justify-content: center;
        margin-bottom: 10px;
        box-sizing: border-box;
    }
    .wnm-card-has-engage:not(.wnm-card-acted)::after {
        width: 12px; height: 12px;
        top: 8px; right: 8px;
    }
}
