/* ==================== NEWSLETTER MODULE ==================== */
:root {
    --nl-primary: #003c8f;
    --nl-accent: #5b9bd5;
    --nl-bg: #f0f2f5;
    --nl-text: #1a1a2e;
    --nl-sidebar-w: 220px;
}

/* Shell Layout */
.nl-shell {
    display: flex;
    height: calc(100vh - 56px);
    background: var(--nl-bg);
    margin: -12px -12px 0 -12px;
    overflow: hidden;
}

/* Sidebar */
.nl-sidebar {
    width: var(--nl-sidebar-w);
    min-width: var(--nl-sidebar-w);
    background: var(--nl-primary);
    color: white;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
}

.nl-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 20px 18px;
    font-size: 1.1rem;
    font-weight: 700;
    border-bottom: 1px solid rgba(255,255,255,0.15);
}

.nl-sidebar-brand i { font-size: 1.4rem; }

.nl-nav { padding: 12px 0; flex: 1; }

.nl-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 18px;
    color: rgba(255,255,255,0.75);
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.2s;
    border-left: 3px solid transparent;
}

.nl-nav-item:hover { background: rgba(255,255,255,0.1); color: white; }
.nl-nav-item.active { background: rgba(255,255,255,0.15); color: white; border-left-color: var(--nl-accent); font-weight: 600; }
.nl-nav-item i { font-size: 1.1rem; width: 20px; text-align: center; }

/* Main Area */
.nl-main {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* Views */
.nl-view { display: none; }
.nl-view.active { display: block; }

/* Header */
.nl-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 24px;
}
.nl-title { font-size: 1.5rem; font-weight: 700; color: var(--nl-text); margin: 0; }
.nl-subtitle { color: #6c757d; margin: 2px 0 0 0; font-size: 0.9rem; }

/* KPI Grid */
.nl-kpi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}

.nl-kpi-card {
    background: white;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

.nl-kpi-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.nl-kpi-val { font-size: 1.5rem; font-weight: 700; color: var(--nl-text); }
.nl-kpi-label { font-size: 0.75rem; color: #6c757d; }

/* Dropzone */
.nl-dropzone {
    border: 2px dashed #c9d3e0;
    border-radius: 12px;
    background: white;
    padding: 40px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
}
.nl-dropzone:hover { border-color: var(--nl-accent); background: #f0f7ff; }

/* Kampagnen Cards */
.nl-kampagne-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
    height: 100%;
}

.nl-kamp-status {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}
.nl-kamp-status.Entwurf { background: #e9ecef; color: #6c757d; }
.nl-kamp-status.Geplant { background: #fff3cd; color: #856404; }
.nl-kamp-status.Versendet { background: #d1e7dd; color: #0a3622; }

/* Tracking Mini Bar */
.nl-track-bar { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.nl-track-item { font-size: 0.75rem; color: #6c757d; }
.nl-track-item strong { color: var(--nl-text); }

/* Gruppe Buttons */
.nl-gruppe-btn { border-radius: 20px; }

/* Editor Area */
.nl-editor-area {
    min-height: 500px;
    padding: 20px;
    outline: none;
    font-family: Arial, sans-serif;
    font-size: 14px;
    line-height: 1.6;
    border: none;
}

/* Versand Summary */
.nl-versand-summary {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 16px;
    font-size: 0.9rem;
}
.nl-versand-summary .row { margin: 0; }
.nl-vs-label { color: #6c757d; font-size: 0.8rem; }
.nl-vs-val { font-weight: 600; }

/* Empfängerlisten-Karten */
.nl-liste-card {
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 10px;
    padding: 12px 14px;
    min-width: 180px;
    max-width: 240px;
}
.nl-liste-card:hover { border-color: var(--nl-accent); background: #f0f7ff; }
.btn-xs { padding: 1px 6px; font-size: 0.75rem; }

/* Status Dot */
.nl-status-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    flex-shrink: 0;
}
.nl-status-dot.green { background: #28a745; }
.nl-status-dot.red { background: #dc3545; }
.nl-status-dot.yellow { background: #ffc107; }

/* Template Cards */
.nl-template-card {
    border: 2px solid #dee2e6;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
}
.nl-template-card:hover {
    border-color: var(--nl-primary);
    box-shadow: 0 4px 16px rgba(0,60,143,0.15);
    transform: translateY(-2px);
}
.nl-template-preview {
    height: 80px;
    overflow: hidden;
    background: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    border-bottom: 1px solid #dee2e6;
}
.nl-template-name {
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px 12px 2px;
    color: var(--nl-text);
}
.nl-template-desc {
    font-size: 0.78rem;
    color: #6c757d;
    padding: 0 12px 10px;
}

/* Toast Animation */
@keyframes nl-slidein {
    from { transform: translateX(100%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

/* Abgemeldete Empfänger */
.table-secondary td { color: #999; }

/* Kampagne Geplant Badge */
.nl-kamp-status.Geplant { background: #fff3cd; color: #856404; }

/* ==================== ANALYSE ==================== */
#analyse-kpis .card { transition: box-shadow .15s; }
#analyse-kpis .card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.12) !important; }

#analyse-perf-banner {
    border-radius: 12px;
    transition: background .3s;
}

/* Funnel chart container */
#chart-funnel,
#chart-benchmark { min-height: 280px; }
