/* ============================================================
   Newsdesk 2.0 – Design-System
   Wird NACH app.css geladen und überschreibt dessen Look.
   Farben laufen über CSS-Variablen → Hell/Dunkel ohne Seitenumbau.
   ============================================================ */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('../fonts/Inter-Variable.woff2') format('woff2'); }
@font-face { font-family: 'Space Grotesk'; font-style: normal; font-weight: 300 700; font-display: swap; src: url('../fonts/SpaceGrotesk-Variable.woff2') format('woff2'); }

/* ── Farben ──────────────────────────────────────────────────── */
:root, [data-theme="dark"] {
  --bg:         #0b0e13;
  --bg-card:    #12171e;
  --bg-card2:   #1a212a;
  --border:     #232c37;
  --text:       #e9edf2;
  --text-muted: #9ba6b5;
  --soft:       #6f7b8b;
  --live:       #f59e0b;
  --ok:         #34d399;
  --danger:     #f87171;
  --warn-bg:    rgba(245,158,11,.12);
  --ok-bg:      rgba(52,211,153,.12);
  --danger-bg:  rgba(248,113,113,.12);
  --shadow:     0 12px 40px rgba(0,0,0,.45);
  --radius:     14px;
  --radius-sm:  10px;
  --side-w:     248px;
  --top-h:      68px;
  --font:       'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-head:  'Space Grotesk', 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg:         #f3f5f8;
  --bg-card:    #ffffff;
  --bg-card2:   #eef1f5;
  --border:     #dde3ea;
  --text:       #121820;
  --text-muted: #4e5a69;
  --soft:       #6a7685;
  --live:       #b45309;
  --ok:         #047857;
  --danger:     #b91c1c;
  --warn-bg:    #fdf0dc;
  --ok-bg:      #e3f5ee;
  --danger-bg:  #fdeaea;
  --shadow:     0 12px 32px rgba(15,23,42,.10);
  color-scheme: light;
}
:root { --accent-hover: color-mix(in srgb, var(--accent) 82%, #000); --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent); }

html, body { background: var(--bg) !important; color: var(--text) !important; font-family: var(--font); font-size: 14px; -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4, .nd-page-title, .nd2-h { font-family: var(--font-head); letter-spacing: -.01em; color: var(--text); }
a { color: var(--accent); }
[data-theme="light"] a:hover { color: var(--accent-hover); }
::selection { background: var(--accent-soft); }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--accent) 60%, transparent); outline-offset: 2px; }

/* ── Shell: Seitenleiste + Inhalt ────────────────────────────── */
.nd2-shell { display: flex; min-height: 100vh; }
.nd2-side {
  position: sticky; top: 0; height: 100vh; flex: 0 0 var(--side-w); width: var(--side-w);
  background: var(--bg-card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 18px 14px; overflow-y: auto; z-index: 1100;
}
.nd2-brand { display: flex; align-items: center; gap: 12px; padding: 6px 8px 20px; text-decoration: none; color: var(--text); }
.nd2-brand:hover { color: var(--text); }
.nd2-brand-mark {
  width: 38px; height: 38px; border-radius: 11px; background: var(--accent); color: #fff; flex: none;
  display: flex; align-items: center; justify-content: center; font: 700 16px var(--font-head);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 40%, transparent);
}
.nd2-brand img { height: 38px; width: auto; max-width: 150px; object-fit: contain; }
.nd2-brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.nd2-brand-text b { font: 600 15px var(--font-head); }
.nd2-brand-text span { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd2-nav { display: flex; flex-direction: column; gap: 2px; }
.nd2-nav-label { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--soft); padding: 18px 12px 6px; }
.nd2-nav a {
  position: relative; display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 12px;
  border-radius: var(--radius-sm); color: var(--text-muted); font-size: 14px; font-weight: 500; text-decoration: none;
  transition: background .15s, color .15s;
}
.nd2-nav a:hover { background: var(--bg-card2); color: var(--text); }
.nd2-nav a.active { background: var(--bg-card2); color: var(--text); }
.nd2-nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.nd2-nav a > span:first-of-type { flex: 1; }
.nd2-ico { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nd2-count { font-size: 11px; font-weight: 700; line-height: 18px; min-width: 20px; padding: 1px 7px; border-radius: 999px; background: var(--accent); color: #fff; text-align: center; }
.nd2-cam {
  margin: 18px 4px 0; padding: 12px 14px; border-radius: 12px; background: var(--bg-card2);
  display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--text); font-size: 13px;
}
.nd2-cam:hover { color: var(--text); }
.nd2-cam small { color: var(--text-muted); font-size: 12px; }
.nd2-side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.nd2-user { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.nd2-user:hover { background: var(--bg-card2); color: var(--text); }
.nd2-avatar { width: 34px; height: 34px; border-radius: 999px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 600; font-size: 13px; flex: none; }
.nd2-user-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.nd2-user-text b { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd2-user-text span { font-size: 12px; color: var(--text-muted); }
.nd2-foot-row { display: flex; gap: 6px; }
.nd2-iconbtn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 44px; height: 40px; padding: 0 12px;
  border-radius: var(--radius-sm); border: 1px solid var(--border); background: transparent; color: var(--text-muted);
  font-size: 13px; font-weight: 500; cursor: pointer; text-decoration: none; flex: 1;
}
.nd2-iconbtn:hover { background: var(--bg-card2); color: var(--text); }

.nd2-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nd2-top {
  position: sticky; top: 0; z-index: 1000; height: var(--top-h); display: flex; align-items: center; gap: 12px; padding: 0 28px;
  background: color-mix(in srgb, var(--bg-card) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.nd2-search { flex: 1 1 280px; max-width: 560px; display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--bg-card2); color: var(--text-muted); }
.nd2-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--text); font: 14px var(--font); }
.nd2-search input::placeholder { color: var(--text-muted); }
.nd2-top-spacer { flex: 1; }
.nd2-live { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.nd2-pulse { position: relative; display: inline-block; width: 8px; height: 8px; border-radius: 999px; background: var(--ok); flex: none; }
.nd2-pulse::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: inherit; animation: nd2pulse 1.8s ease-out infinite; }
@keyframes nd2pulse { 0% { transform: scale(1); opacity: .6 } 100% { transform: scale(2.6); opacity: 0 } }
.nd2-burger { display: none; }
.nd2-overlay { display: none; }

.nd-content { max-width: 1320px; width: 100%; margin: 0 auto; padding: 28px 28px 64px; }

/* Kunden: Kopfzeile statt Seitenleiste */
.nd2-cust-top {
  position: sticky; top: 0; z-index: 1000; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 12px 28px;
  background: color-mix(in srgb, var(--bg-card) 90%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border);
}
.nd2-cust-top .nd2-brand { padding: 0; margin-right: 8px; }
.nd2-cust-nav { display: flex; gap: 4px; flex: 1; flex-wrap: wrap; }
.nd2-cust-nav a { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 14px; border-radius: var(--radius-sm); color: var(--text-muted); font-weight: 500; text-decoration: none; }
.nd2-cust-nav a:hover, .nd2-cust-nav a.active { background: var(--bg-card2); color: var(--text); }
.nd2-cust-tools { display: flex; align-items: center; gap: 8px; }
.nd2-cust-tools .nd2-iconbtn { flex: none; }

/* ── Seitenkopf ──────────────────────────────────────────────── */
.nd-page-header { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.nd-page-header > div { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.nd-page-title { font-size: 28px; font-weight: 600; color: var(--text) !important; margin: 0; }
.nd-page-count { font-size: 13px; color: var(--text-muted); }

/* ── Karten ──────────────────────────────────────────────────── */
.nd-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.nd-card-header { padding: 16px 20px; border-bottom: 1px solid var(--border); font: 600 16px var(--font-head); color: var(--text); }
.nd-card-body { padding: 20px; }

/* ── Kennzahlen ──────────────────────────────────────────────── */
.nd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.nd-stat { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; }
.nd-stat-value { font: 600 32px/1.05 var(--font-head); color: var(--text); }
.nd-stat-label { font-size: 13px; color: var(--text-muted); margin-top: 8px; text-transform: none; letter-spacing: 0; }

/* ── Knöpfe ──────────────────────────────────────────────────── */
.btn-accent, .btn-outline, .ib-btn {
  min-height: 42px; padding: 0 18px; border-radius: var(--radius-sm); font: 600 14px var(--font);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn-accent { background: var(--accent); color: #fff; border: 1px solid transparent; box-shadow: 0 6px 18px color-mix(in srgb, var(--accent) 28%, transparent); }
.btn-accent:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { background: var(--bg-card2); border-color: var(--border); color: var(--text); }
button:disabled, .btn-accent[disabled], .btn-outline[disabled] { opacity: .5; cursor: not-allowed; }

/* Kleine Aktions-Knöpfe in Tabellen: ruhig statt bunt */
.nd-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.nd-btn {
  width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--border); background: var(--bg-card2) !important;
  color: var(--text-muted) !important; font-size: 15px; display: inline-flex; align-items: center; justify-content: center;
  transition: background .15s, color .15s, border-color .15s; text-decoration: none;
}
.nd-btn:hover { opacity: 1; color: var(--text) !important; border-color: var(--text-muted); }
.nd-btn-delete:hover { color: var(--danger) !important; border-color: var(--danger); background: var(--danger-bg) !important; }
.nd-btn-edit:hover { color: var(--accent) !important; border-color: var(--accent); }

/* ── Tabellen ────────────────────────────────────────────────── */
.nd-table th { padding: 12px 16px; font-size: 12px; font-weight: 600; letter-spacing: .04em; color: var(--text-muted); border-bottom: 1px solid var(--border); background: transparent; }
.nd-table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text); }
.nd-table tr:hover td { background: color-mix(in srgb, var(--bg-card2) 60%, transparent); }
.nd-table .title-cell a { color: var(--text); font-weight: 600; }
.nd-thumb { width: 72px; height: 48px; border-radius: 8px; background: var(--bg-card2); }
.nd-thumb-placeholder { width: 72px; height: 48px; border-radius: 8px; }

/* Status-Badges */
.nd-status { padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; gap: 6px; }
.nd-status.published { background: var(--ok-bg); color: var(--ok); }
.nd-status.draft     { background: var(--bg-card2); color: var(--text-muted); }
.nd-status.archived  { background: var(--bg-card2); color: var(--soft); }

/* ── Formulare ───────────────────────────────────────────────── */
.nd-form-group label { font-size: 13px; font-weight: 600; color: var(--text-muted); text-transform: none; letter-spacing: 0; }
.nd-form-group input, .nd-form-group select, .nd-form-group textarea,
.nd-search input, .ib-select, .ftp-form input, .ftp-form select {
  min-height: 44px; background: var(--bg-card2); border: 1px solid var(--border); border-radius: var(--radius-sm);
  color: var(--text); font: 14px var(--font); padding: 10px 14px;
}
.nd-form-group textarea { min-height: 120px; }
.nd-form-group input:focus, .nd-form-group select:focus, .nd-form-group textarea:focus, .nd-search input:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); outline: 0;
}
.nd-form-group select option { background: var(--bg-card); color: var(--text); }
.nd-form-hint { color: var(--text-muted); }
input[type=checkbox], input[type=radio] { accent-color: var(--accent); }

/* ── Tabs ────────────────────────────────────────────────────── */
.nd-tabs { gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.nd-tab { min-height: 44px; padding: 0 16px; font-weight: 500; color: var(--text-muted); border-bottom: 2px solid transparent; white-space: nowrap; }
.nd-tab.active { color: var(--text); border-bottom-color: var(--accent); }

/* ── Hinweise ────────────────────────────────────────────────── */
.nd-alert { border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px; border: 1px solid transparent; }
.nd-alert-success { background: var(--ok-bg); border-color: color-mix(in srgb, var(--ok) 30%, transparent); color: var(--ok); }
.nd-alert-error   { background: var(--danger-bg); border-color: color-mix(in srgb, var(--danger) 30%, transparent); color: var(--danger); }
.nd-alert-warning { background: var(--warn-bg); border-color: color-mix(in srgb, var(--live) 30%, transparent); color: var(--live); }
.nd-alert-info    { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text); }

/* ── Upload & Medien ─────────────────────────────────────────── */
.nd-upload-zone { border-radius: var(--radius); border: 2px dashed var(--border); background: var(--bg-card); }
.nd-upload-zone:hover, .nd-upload-zone.dragover { border-color: var(--accent); background: var(--accent-soft); }
.nd-media-item { border-radius: 12px; background: var(--bg-card2); }
.nd-media-item img { transition: transform .25s; }
.nd-media-item:hover img { transform: scale(1.03); }

/* ── Bootstrap angleichen ────────────────────────────────────── */
.dropdown-menu, .modal-content { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); color: var(--text); }
.dropdown-item { color: var(--text); }
.dropdown-item:hover { background: var(--bg-card2); color: var(--text); }
.modal-header, .modal-footer { border-color: var(--border); }
.form-control, .form-select { background-color: var(--bg-card2); border-color: var(--border); color: var(--text); border-radius: var(--radius-sm); }

/* ── Kamera-Eingang an das System anbinden ───────────────────── */
.ib { padding: 0 0 120px; max-width: none; }
.ib-title { font-family: var(--font-head); }

/* ── Dashboard ───────────────────────────────────────────────── */
.db-hero { position: relative; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 20px; padding: 26px 28px; margin-bottom: 20px;
  border-radius: var(--radius); background: var(--bg-card); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--border)); }
.db-hero::before { content: ""; position: absolute; right: -70px; top: -90px; width: 320px; height: 320px; border-radius: 999px; background: var(--accent); opacity: .13; }
.db-hero::after { content: ""; position: absolute; right: 140px; bottom: -130px; width: 230px; height: 230px; border-radius: 999px; background: var(--live); opacity: .07; }
.db-hero > * { position: relative; z-index: 1; }
.db-hero-text { flex: 1 1 380px; display: flex; flex-direction: column; gap: 6px; }
.db-hero-text small { font-size: 13px; color: var(--text-muted); }
.db-hero-text h1 { margin: 0; font-size: 28px; font-weight: 600; }
.db-hero-text p { margin: 0; color: var(--text-muted); }
.db-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.db-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 16px; margin-bottom: 24px; }
.db-kpi { display: flex; flex-direction: column; gap: 12px; padding: 18px 18px 14px; border-radius: var(--radius); background: var(--bg-card); border: 1px solid var(--border); text-decoration: none; color: var(--text); transition: transform .15s, border-color .15s; }
a.db-kpi:hover { transform: translateY(-2px); color: var(--text); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.db-kpi-top { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--text-muted); }
.db-kpi-top em { font-style: normal; font-size: 12px; font-weight: 600; }
.db-kpi-bottom { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.db-kpi-value { font: 600 34px/1 var(--font-head); }
.db-kpi-num { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.db-kpi-num em { font-style: normal; font-size: 12px; font-weight: 600; white-space: nowrap; }
.db-grid { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.db-col-main { flex: 999 1 520px; min-width: 0; }
.db-col-side { flex: 1 1 330px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.db-card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 20px; border-bottom: 1px solid var(--border); }
.db-card-head h2 { margin: 0; font-size: 16px; font-weight: 600; }
.db-card-head a, .db-card-head span { font-size: 13px; color: var(--text-muted); text-decoration: none; }
.db-row { display: flex; align-items: center; gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); transition: background .15s; }
.db-row:last-child { border-bottom: 0; }
.db-row:hover { background: color-mix(in srgb, var(--bg-card2) 70%, transparent); color: var(--text); }
.db-thumb { width: 84px; height: 58px; border-radius: 9px; object-fit: cover; flex: none; background: var(--bg-card2); display: flex; align-items: center; justify-content: center; color: var(--soft); }
.db-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.db-row-title { font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-row-sub { font-size: 13px; color: var(--text-muted); }
.db-reach { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.db-reach-bar { height: 4px; flex: 0 1 140px; border-radius: 999px; background: var(--bg-card2); overflow: hidden; }
.db-reach-bar span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }
.db-reach small { font-size: 12px; color: var(--text-muted); }
.db-meta { font-size: 13px; color: var(--text-muted); white-space: nowrap; }
.db-pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.db-pill::before { content: ""; width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.db-pill.live { background: var(--warn-bg); color: var(--live); }
.db-pill.done { background: var(--bg-card2); color: var(--text-muted); }
.db-pill.draft { background: var(--bg-card2); color: var(--soft); }
.db-act { display: flex; gap: 12px; padding: 13px 20px; border-bottom: 1px solid var(--border); }
.db-act:last-child { border-bottom: 0; }
.db-act-badge { width: 34px; height: 34px; border-radius: 10px; flex: none; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.db-act-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 14px; line-height: 1.4; }
.db-act-text small { font-size: 12px; color: var(--text-muted); }
.db-bars { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; align-items: end; height: 130px; padding: 4px 20px 18px; }
.db-bar { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.db-bar span { width: 100%; border-radius: 6px 6px 3px 3px; background: var(--bg-card2); min-height: 3px; }
.db-bar.today span { background: var(--accent); }
.db-bar small { font-size: 11px; color: var(--text-muted); }
.db-empty { padding: 28px 20px; color: var(--text-muted); text-align: center; }

/* ── Bewegung reduzieren ─────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .nd2-pulse::after, .ib-live-dot span::after { animation: none; }
  a.db-kpi:hover, .ib-tile:hover { transform: none; }
  .nd-media-item:hover img { transform: none; }
}

/* ── Handy & Tablet ──────────────────────────────────────────── */
@media (max-width: 1023px) {
  .nd2-side { position: fixed; left: 0; top: 0; bottom: 0; transform: translateX(-100%); transition: transform .25s ease; box-shadow: var(--shadow); }
  .nd2-shell.menu-open .nd2-side { transform: translateX(0); }
  .nd2-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 1050; opacity: 0; pointer-events: none; transition: opacity .25s; }
  .nd2-shell.menu-open .nd2-overlay { opacity: 1; pointer-events: auto; }
  .nd2-burger { display: inline-flex; flex: none; width: 44px; }
  .nd2-top { padding: 0 16px; }
  .nd2-live-text { display: none; }
  .nd-content { padding: 20px 16px 56px; }
}
@media (max-width: 640px) {
  .nd2-top { gap: 8px; }
  .nd2-search { flex: 1 1 0; min-width: 0; }
  .nd2-live { display: none; }
  .nd2-top .btn-accent span { display: none; }
  .nd2-top .btn-accent { padding: 0 12px; }
  .nd-page-title, .db-hero-text h1 { font-size: 22px; }
  .db-hero { padding: 20px; }
  .db-row { gap: 12px; padding: 12px 16px; }
  .db-thumb { width: 64px; height: 46px; }
  .db-meta { display: none; }
  .nd2-cust-top { padding: 10px 16px; }
}

@media print {
  .nd2-side, .nd2-top, .nd2-cust-top, .nd2-overlay { display: none !important; }
  .nd2-shell { display: block; }
}

/* ── Newsboard (Kunden) ──────────────────────────────────────── */
.nb-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; }
.nb-head { margin-bottom: 20px; }
.nb-kicker { margin: 0 0 4px; font-size: 13px; color: var(--text-muted); }
.nb-title { margin: 0 0 8px; font-size: 28px; font-weight: 600; }
.nb-groups { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--text-muted); }
.nb-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--text); font-size: 12px; font-weight: 600; }
.nb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.nb-card { display: flex; flex-direction: column; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s, box-shadow .15s; }
.nb-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow); }
.nb-card.is-featured { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
.nb-img { position: relative; aspect-ratio: 16 / 10; background: var(--bg-card2); overflow: hidden; }
.nb-card.is-featured .nb-img { flex: 1 1 380px; aspect-ratio: auto; min-height: 260px; }
.nb-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.nb-card:hover .nb-img img { transform: scale(1.04); }
.nb-noimg { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--soft); }
.nb-noimg .nd2-ico { width: 34px; height: 34px; }
.nb-status { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 600; backdrop-filter: blur(6px); }
.nb-status::before { content: ""; width: 7px; height: 7px; border-radius: 999px; background: #9ca3af; }
.nb-status.is-live::before { background: #f59e0b; box-shadow: 0 0 0 3px rgba(245,158,11,.3); }
.nb-more { position: absolute; left: 12px; bottom: 12px; padding: 5px 11px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; font-size: 12px; font-weight: 500; }
.nb-body { flex: 1 1 340px; display: flex; flex-direction: column; gap: 8px; padding: 16px 18px 18px; min-width: 0; }
.nb-card.is-featured .nb-body { padding: 26px 28px; gap: 12px; }
.nb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; color: var(--text-muted); }
.nb-badge { padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--bg-card2); color: var(--text); text-transform: uppercase; }
.nb-badge.is-eil { background: #b91c1c; color: #fff; }
.nb-badge.is-dring { background: #c2410c; color: #fff; }
.nb-badge.is-pm { background: var(--accent); color: #fff; }
.nb-card-title { margin: 0; font-size: 17px; font-weight: 600; line-height: 1.3; }
.nb-card.is-featured .nb-card-title { font-size: 24px; line-height: 1.25; }
.nb-excerpt { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }
.nb-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-tags span { padding: 2px 9px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 600; }
.nb-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.nb-open { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); }
[data-theme="dark"] .nb-open { color: color-mix(in srgb, var(--accent) 55%, #fff); }
.nb-empty { grid-column: 1 / -1; padding: 56px 20px; text-align: center; color: var(--text-muted); border: 1px dashed var(--border); border-radius: var(--radius); }
.nb-empty h2 { margin: 12px 0 4px; font-size: 18px; }
.nb-empty p { margin: 0; }
@media (max-width: 1023px) { .nb-layout { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .nb-title { font-size: 22px; } .nb-card.is-featured .nb-body { padding: 18px; } .nb-card.is-featured .nb-card-title { font-size: 20px; } }
@media (prefers-reduced-motion: reduce) { .nb-card:hover, .nb-card:hover .nb-img img { transform: none; } }
