/* BerosCheck Admin – Design-System */
:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f9fafb;
  --border: #e5e7eb;
  --border-strong: #d1d5db;
  --text: #111827;
  --text-2: #4b5563;
  --text-3: #6b7280;
  --accent: #2563eb;
  --accent-hover: #1d4ed8;
  --accent-soft: #eff6ff;
  --success: #15803d;
  --success-soft: #f0fdf4;
  --warning: #b45309;
  --warning-soft: #fffbeb;
  --danger: #b91c1c;
  --danger-soft: #fef2f2;
  --violet: #6d28d9;
  --violet-soft: #f5f3ff;
  --sidebar: #070c18;
  --sidebar-2: #0d1526;
  --sidebar-text: #94a3b8;
  --radius: 10px;
  --radius-sm: 7px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.14);
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Inter, Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); font-size: 14px; line-height: 1.5; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0; line-height: 1.25; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#view:focus, #view:focus-visible { outline: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--text-3); }
.small { font-size: 12.5px; }
.mono { font-family: var(--mono); font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row { display: flex; align-items: center; gap: 8px; }
.row-wrap { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.spacer { flex: 1; }
.stack > * + * { margin-top: 16px; }
.stack-sm > * + * { margin-top: 8px; }
.grid { display: grid; gap: 16px; }
.hidden { display: none !important; }

/* ---------- Layout ---------- */
.app { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { background: var(--sidebar); color: var(--sidebar-text); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; padding: 16px 12px; }
.brand { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; color: #fff; font-weight: 800; font-size: 16px; text-decoration: none; }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: #2563eb; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.brand small { display: block; font-size: 11px; font-weight: 600; color: var(--sidebar-text); letter-spacing: .04em; text-transform: uppercase; }
.brand .b1 { color: #60a5fa; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--sidebar-text); font-weight: 500; text-decoration: none; white-space: nowrap; }
.nav-item:hover { background: rgba(255, 255, 255, .05); color: #e2e8f0; text-decoration: none; }
.nav-item.active { background: rgba(59, 130, 246, .16); color: #fff; }
.nav-item svg { width: 18px; height: 18px; flex-shrink: 0; }
.nav-item .count { margin-left: auto; background: #2563eb; color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.nav-sub { padding-left: 28px; font-size: 13px; }
.sidebar-foot { margin-top: auto; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.profile { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: #1e3a5f; color: #93c5fd; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex-shrink: 0; }
.profile-name { color: #e2e8f0; font-weight: 600; font-size: 13px; }
.profile-mail { font-size: 11.5px; max-width: 160px; }
.nav-item.logout { background: none; border: 0; width: 100%; cursor: pointer; text-align: left; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: none; }
.content { padding: 28px 32px 64px; max-width: 1360px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head h1 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.page-head p { margin: 4px 0 0; color: var(--text-3); }

@media (max-width: 1100px) {
  .app { grid-template-columns: 68px 1fr; }
  .sidebar { padding: 14px 8px; }
  .brand span, .nav-item span, .nav-item .count, .profile > div, .nav-sub { display: none; }
  .brand { justify-content: center; padding-bottom: 14px; }
  .nav-item { justify-content: center; }
  .profile { justify-content: center; }
}
@media (max-width: 760px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 260px; z-index: 60; transform: translateX(-100%); transition: transform .2s ease; padding: 16px 12px; }
  .sidebar.open { transform: none; box-shadow: var(--shadow-lg); }
  .brand span, .nav-item span, .nav-item .count, .profile > div, .nav-sub { display: initial; }
  .nav-sub { display: flex; }
  .brand { justify-content: flex-start; }
  .nav-item, .profile { justify-content: flex-start; }
  .topbar { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--sidebar); color: #fff; position: sticky; top: 0; z-index: 40; }
  .content { padding: 18px 14px 56px; }
  .scrim { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 55; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-sm); border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; white-space: nowrap; text-decoration: none; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-success { background: var(--success); border-color: var(--success); color: #fff; }
.btn-success:hover { background: #166534; }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-danger:hover { background: #991b1b; }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-ghost:hover { background: rgba(17, 24, 39, .05); }
.btn-sm { height: 30px; padding: 0 10px; font-size: 12.5px; }
.btn-icon { width: 34px; padding: 0; }
.btn-ai { background: var(--violet-soft); border-color: #ddd6fe; color: var(--violet); }
.btn-ai:hover { background: #ede9fe; }
.btn .spinner { width: 14px; height: 14px; }
.btn-group { display: inline-flex; }
.btn-group .btn { border-radius: 0; margin-left: -1px; }
.btn-group .btn:first-child { border-radius: var(--radius-sm) 0 0 var(--radius-sm); margin-left: 0; }
.btn-group .btn:last-child { border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.btn-group .btn.active { background: var(--accent-soft); color: var(--accent); border-color: #bfdbfe; z-index: 1; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; }
.field label, .label { font-weight: 600; font-size: 12.5px; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.field .counter { font-size: 11.5px; color: var(--text-3); margin-left: auto; }
.field .counter.warn { color: var(--warning); }
.field .counter.bad { color: var(--danger); }
.input, .select, .textarea { width: 100%; height: 36px; padding: 0 11px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); outline: none; }
.textarea { height: auto; padding: 9px 11px; resize: vertical; min-height: 80px; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.input.invalid, .textarea.invalid { border-color: var(--danger); }
.input-sm { height: 32px; font-size: 13px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: 1fr; } }
.check { display: flex; align-items: center; gap: 8px; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 36px; padding: 4px 6px; border: 1px solid var(--border-strong); border-radius: var(--radius-sm); background: var(--surface); }
.chips:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.chip { display: inline-flex; align-items: center; gap: 4px; background: var(--accent-soft); color: #1e40af; border-radius: 99px; padding: 2px 4px 2px 10px; font-size: 12.5px; font-weight: 500; }
.chip button { border: 0; background: none; cursor: pointer; color: inherit; width: 18px; height: 18px; border-radius: 50%; line-height: 1; padding: 0; }
.chip button:hover { background: rgba(30, 64, 175, .12); }
.chips input { border: 0; outline: none; flex: 1; min-width: 120px; height: 26px; background: transparent; }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card-head h2, .card-head h3 { font-size: 15px; font-weight: 650; }
.card-body { padding: 18px; }
.card-foot { padding: 12px 18px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius) var(--radius); }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
@media (max-width: 1280px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi { padding: 16px; }
.kpi .kpi-label { color: var(--text-3); font-size: 12.5px; font-weight: 500; }
.kpi .kpi-value { font-size: 26px; font-weight: 700; margin-top: 6px; letter-spacing: -.02em; }
.kpi .kpi-sub { font-size: 12px; color: var(--text-3); margin-top: 2px; }
.kpi .kpi-value.small-value { font-size: 15px; font-weight: 650; margin-top: 10px; }
.cols-2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 1100px) { .cols-2 { grid-template-columns: 1fr; } }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-3); text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text); }
.table th .arrow { font-size: 10px; margin-left: 3px; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr.clickable { cursor: pointer; }
.table tbody tr.clickable:hover { background: var(--surface-2); }
.table .cell-main { font-weight: 600; color: var(--text); }
.table .cell-clip { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.table .actions { text-align: right; white-space: nowrap; }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.toolbar .input, .toolbar .select { width: auto; }
.toolbar .search { min-width: 220px; flex: 1; max-width: 360px; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; border-top: 1px solid var(--border); flex-wrap: wrap; }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; background: #f3f4f6; color: #374151; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-neu, .b-geplant { background: var(--accent-soft); color: #1d4ed8; }
.b-in_bearbeitung { background: var(--warning-soft); color: var(--warning); }
.b-kontaktiert { background: var(--violet-soft); color: var(--violet); }
.b-erledigt, .b-veroeffentlicht { background: var(--success-soft); color: var(--success); }
.b-archiviert { background: #f3f4f6; color: #6b7280; }
.b-entwurf { background: #f3f4f6; color: #374151; }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 22px; padding: 0 7px; border-radius: 6px; font-weight: 700; font-size: 12px; }
.score.good { background: var(--success-soft); color: var(--success); }
.score.ok { background: var(--warning-soft); color: var(--warning); }
.score.bad { background: var(--danger-soft); color: var(--danger); }
.score.none { background: #f3f4f6; color: var(--text-3); }

/* ---------- Feedback ---------- */
.toasts { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; width: max-content; max-width: min(460px, calc(100vw - 36px)); pointer-events: none; }
.toast { pointer-events: auto; }
.toast { display: flex; gap: 10px; align-items: flex-start; background: #111827; color: #f9fafb; padding: 11px 14px; border-radius: 9px; box-shadow: var(--shadow-lg); font-size: 13.5px; }
.toast.success { background: #14532d; }
.toast.error { background: #7f1d1d; }
.toast button { margin-left: auto; background: none; border: 0; color: inherit; opacity: .7; cursor: pointer; font-size: 16px; line-height: 1; }
.alert { padding: 11px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 13.5px; }
.alert-info { background: var(--accent-soft); border-color: #bfdbfe; color: #1e3a8a; }
.alert-warn { background: var(--warning-soft); border-color: #fde68a; color: #78350f; }
.alert-error { background: var(--danger-soft); border-color: #fecaca; color: #7f1d1d; }
.alert-success { background: var(--success-soft); border-color: #bbf7d0; color: #14532d; }
.alert code { font-family: var(--mono); font-size: 12px; background: rgba(0, 0, 0, .05); padding: 1px 4px; border-radius: 4px; }
.spinner { width: 18px; height: 18px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; vertical-align: middle; opacity: .8; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { background: linear-gradient(90deg, #eef0f3 0%, #f6f7f9 50%, #eef0f3 100%); background-size: 200% 100%; animation: shimmer 1.4s ease-in-out infinite; border-radius: 6px; height: 14px; }
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton, .spinner { animation-duration: 3s; } .sidebar { transition: none; } }
.empty { text-align: center; padding: 48px 20px; color: var(--text-3); }
.empty .empty-icon { width: 44px; height: 44px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); display: grid; place-items: center; margin: 0 auto 12px; color: var(--text-3); }
.empty .empty-icon svg { width: 22px; height: 22px; }
.empty h3 { color: var(--text); font-size: 15px; margin-bottom: 4px; }
.empty p { margin: 0 0 14px; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; background: rgba(15, 23, 42, .45); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; }
.modal.wide { max-width: 980px; }
.modal-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-head h2 { font-size: 16px; font-weight: 650; }
.modal-body { padding: 18px 20px; overflow-y: auto; }
.modal-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.drawer-overlay { justify-content: flex-end; padding: 0; align-items: stretch; }
.drawer { background: var(--surface); width: min(560px, 100vw); height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow-lg); }
.drawer .modal-body { flex: 1; }
.dl { display: grid; grid-template-columns: 130px 1fr; gap: 8px 14px; margin: 0; }
.dl dt { color: var(--text-3); font-size: 13px; }
.dl dd { margin: 0; word-break: break-word; }
.section-title { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 700; margin: 0 0 10px; }
.message-box { white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; font-size: 13.5px; }
.note { border-left: 3px solid var(--border-strong); padding: 4px 0 4px 12px; }
.note .meta { font-size: 12px; color: var(--text-3); }
.note p { margin: 2px 0 0; white-space: pre-wrap; }
.menu { position: absolute; z-index: 90; background: var(--surface); border: 1px solid var(--border); border-radius: 9px; box-shadow: var(--shadow-lg); padding: 5px; min-width: 200px; }
.menu button, .menu a { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 6px; cursor: pointer; text-align: left; color: var(--text); font-size: 13.5px; text-decoration: none; }
.menu button:hover, .menu a:hover { background: var(--surface-2); text-decoration: none; }
.menu .danger { color: var(--danger); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.menu svg { width: 15px; height: 15px; }

/* ---------- Chart ---------- */
.chart { width: 100%; height: 220px; display: block; }
.chart .bar { fill: #93c5fd; }
.chart .bar:hover { fill: var(--accent); }
.chart .axis { fill: var(--text-3); font-size: 11px; }
.chart .grid-line { stroke: var(--border); stroke-width: 1; }

/* ---------- Editor ---------- */
.editor-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
@media (max-width: 1180px) { .editor-layout { grid-template-columns: 1fr; } }
.editor-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
@media (max-width: 1180px) { .editor-side { position: static; } }
.title-input { font-size: 22px; font-weight: 700; height: auto; padding: 10px 12px; }
.md-toolbar { display: flex; flex-wrap: wrap; gap: 2px; padding: 6px; border-bottom: 1px solid var(--border); background: var(--surface-2); border-radius: var(--radius) var(--radius) 0 0; position: sticky; top: 0; z-index: 5; }
.md-toolbar .sep { width: 1px; background: var(--border); margin: 4px 4px; }
.md-toolbar button { height: 30px; min-width: 32px; padding: 0 8px; border: 0; background: none; border-radius: 6px; cursor: pointer; font-weight: 650; font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.md-toolbar button:hover { background: rgba(17, 24, 39, .07); color: var(--text); }
.md-toolbar svg { width: 15px; height: 15px; }
.md-panes { display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; }
.md-panes.mode-write { grid-template-columns: 1fr; }
.md-panes.mode-write .md-preview { display: none; }
.md-panes.mode-preview { grid-template-columns: 1fr; }
.md-panes.mode-preview .md-source { display: none; }
@media (max-width: 900px) { .md-panes { grid-template-columns: 1fr; } .md-panes.mode-split .md-preview { display: none; } }
.md-source { border: 0; resize: none; width: 100%; min-height: 560px; padding: 16px 18px; font-family: var(--mono); font-size: 13.5px; line-height: 1.65; outline: none; background: var(--surface); border-radius: 0 0 0 var(--radius); }
.md-preview { border-left: 1px solid var(--border); overflow-y: auto; max-height: 75vh; min-height: 560px; }
.score-ring { display: flex; align-items: center; gap: 14px; }
.score-ring svg { width: 64px; height: 64px; flex-shrink: 0; }
.score-ring .num { font-size: 22px; font-weight: 800; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.checks li { display: grid; grid-template-columns: 18px 1fr; gap: 6px; }
.checks .ico { font-weight: 800; }
.checks .good .ico { color: var(--success); }
.checks .warn .ico { color: var(--warning); }
.checks .error .ico { color: var(--danger); }
.checks .sugg { display: block; color: var(--text-3); font-size: 12px; }
details.panel { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
details.panel > summary { cursor: pointer; padding: 12px 16px; font-weight: 650; list-style: none; display: flex; align-items: center; justify-content: space-between; }
details.panel > summary::-webkit-details-marker { display: none; }
details.panel > summary::after { content: '▾'; color: var(--text-3); font-size: 12px; }
details.panel[open] > summary { border-bottom: 1px solid var(--border); }
details.panel > .panel-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ai-grid .btn { justify-content: flex-start; font-size: 12.5px; height: 32px; padding: 0 9px; }
.serp { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px; background: #fff; }
.serp .s-url { color: #1a7f37; font-size: 12px; }
.serp .s-title { color: #1a0dab; font-size: 17px; line-height: 1.3; margin: 2px 0; }
.serp .s-desc { color: #4d5156; font-size: 13px; }
.suggestion { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; gap: 10px; align-items: flex-start; }
.suggestion + .suggestion { margin-top: 8px; }
.suggestion .grow { flex: 1; min-width: 0; }
.outline-row { display: grid; grid-template-columns: 74px 1fr 34px 34px 34px; gap: 6px; align-items: center; }
.outline-row.h3 .input { margin-left: 18px; width: calc(100% - 18px); }
.outline-list { display: flex; flex-direction: column; gap: 6px; }
.steps { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; }
.step { display: flex; align-items: center; gap: 7px; padding: 6px 11px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); font-size: 12.5px; color: var(--text-3); font-weight: 600; }
.step .n { width: 20px; height: 20px; border-radius: 50%; background: #f3f4f6; display: grid; place-items: center; font-size: 11px; }
.step.active { color: var(--accent); border-color: #bfdbfe; background: var(--accent-soft); }
.step.active .n { background: var(--accent); color: #fff; }
.step.done { color: var(--success); }
.step.done .n { background: var(--success); color: #fff; }
.stream-box { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; background: #0b1220; color: #cbd5e1; border-radius: var(--radius-sm); padding: 14px; max-height: 420px; overflow-y: auto; }
.issue-group h3 { font-size: 14px; display: flex; align-items: center; gap: 8px; }
.issue { border-top: 1px solid var(--border); padding: 12px 18px; }
.issue summary { cursor: pointer; display: flex; gap: 10px; align-items: center; list-style: none; }
.issue summary::-webkit-details-marker { display: none; }
.issue ul { margin: 8px 0 0; padding-left: 18px; font-size: 13px; }
.issue li { margin: 3px 0; word-break: break-all; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex-shrink: 0; }
.dot.crit { background: var(--danger); }
.dot.imp { background: #f59e0b; }
.dot.opt { background: #60a5fa; }
.progress { height: 6px; background: #eef0f3; border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--accent); width: 0; transition: width .2s; }
.integrations { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.integration { display: flex; gap: 10px; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; }
.integration .state { margin-left: auto; }
.img-preview { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--surface-2); }

/* ---------- Artikel-Vorschau (wie die Live-Seite) ---------- */
.article-preview { background: #070c18; color: #94a3b8; padding: 28px 28px 40px; font-family: Inter, var(--font); min-height: 100%; }
.article-preview .ap-cat { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #3b82f6; }
.article-preview .ap-h1 { color: #f1f5f9; font-size: 28px; font-weight: 700; line-height: 1.25; margin: 8px 0 12px; }
.article-preview .ap-meta { font-size: 13px; color: #64748b; margin-bottom: 22px; }
.article-preview .ap-hero { width: 100%; max-height: 300px; object-fit: cover; border-radius: 10px; margin-bottom: 22px; }
.prose { line-height: 1.85; font-size: 15.5px; }
.prose h2 { font-size: 1.4rem; font-weight: 700; color: #f1f5f9; margin: 2.2rem 0 1rem; padding-bottom: .5rem; border-bottom: 1px solid #1e293b; }
.prose h3 { font-size: 1.1rem; font-weight: 600; color: #f1f5f9; margin: 1.6rem 0 .7rem; }
.prose h4 { font-size: 1rem; font-weight: 600; color: #e2e8f0; margin: 1.3rem 0 .6rem; }
.prose p { margin: 0 0 1.15rem; }
.prose ul, .prose ol { padding-left: 1.5rem; margin: 0 0 1.15rem; }
.prose li { margin-bottom: .35rem; }
.prose strong { color: #f1f5f9; }
.prose a { color: #3b82f6; text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid #3b82f6; padding-left: 1.2rem; margin: 1.4rem 0; color: #cbd5e1; font-style: italic; }
.prose table { width: 100%; border-collapse: collapse; margin-bottom: 1.4rem; font-size: .9rem; }
.prose th { background: #1e3a5f; color: #f1f5f9; padding: .55rem .9rem; text-align: left; }
.prose td { padding: .55rem .9rem; border-bottom: 1px solid #1e293b; }
.prose .table-wrap { overflow-x: auto; }
.prose img { max-width: 100%; border-radius: 8px; }
.prose code { background: #0f172a; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.prose pre { background: #0f172a; padding: 12px; border-radius: 8px; overflow-x: auto; }
.prose hr { border: 0; border-top: 1px solid #1e293b; margin: 2rem 0; }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: grid; place-items: center; background: radial-gradient(ellipse at top, #0b1628 0%, #070c18 60%); padding: 20px; }
.login-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); padding: 30px 28px 26px; }
.login-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: 22px; }
.login-brand .brand-mark { color: #fff; }
.login-brand .b1 { color: #2563eb; }
.login-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); background: #f3f4f6; padding: 3px 9px; border-radius: 99px; margin-left: auto; }
.login-card h1 { font-size: 21px; font-weight: 700; margin-bottom: 4px; }
.login-card .lead { color: var(--text-3); margin: 0 0 20px; }
.login-card .btn { width: 100%; height: 40px; }
.login-foot { text-align: center; margin-top: 16px; font-size: 13px; }
.login-foot a, .linklike { color: var(--text-3); background: none; border: 0; cursor: pointer; padding: 0; font: inherit; }
.login-foot a:hover, .linklike:hover { color: var(--text); text-decoration: underline; }
.back-link { display: block; text-align: center; margin-top: 18px; color: #64748b; font-size: 13px; }
.back-link:hover { color: #cbd5e1; }
