:root { --navy:#101d2f; --blue:#2475b9; --ink:#172333; --muted:#687584; --page:#f6f8f9; --line:#dce5e8; --radius:17px; }
* { box-sizing:border-box; }
body { margin:0; background:var(--page); color:var(--ink); font:16px/1.5 Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; }
h1,h2,h3,p { margin-top:0; } h1 { font-size:38px; line-height:1.15; letter-spacing:-.03em; margin-bottom:8px; } h2 { font-size:20px; margin-bottom:0; }
.topbar { height:70px; padding:0 max(22px,calc((100vw - 1160px)/2)); display:flex; align-items:center; justify-content:space-between; background:#fff; border-bottom:1px solid var(--line); }
.brand { color:var(--navy); text-decoration:none; font-size:21px; font-weight:750; letter-spacing:-.03em; } .brand span,.link-button { color:var(--blue); }
.user-menu { display:flex; align-items:center; gap:16px; color:var(--muted); font-size:14px; }.link-button { background:none; border:0; font:inherit; cursor:pointer; text-decoration:none; }
.layout { display:grid; grid-template-columns:190px minmax(0,900px); gap:32px; max-width:1160px; margin:0 auto; padding:44px 22px; }.sidebar { padding-top:25px; }
.nav-link { display:block; padding:10px 12px; margin-bottom:3px; border-radius:8px; color:var(--muted); text-decoration:none; font-weight:600; }.nav-link:hover,.nav-link.active { background:#e9f2f9; color:var(--blue); }
.intro,.muted { color:var(--muted); }.eyebrow { margin-bottom:6px; color:var(--blue); font-size:12px; font-weight:800; letter-spacing:.1em; }
.stats { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; margin:30px 0; }.stat,.panel,.auth-card { background:#fff; border:1px solid var(--line); border-radius:var(--radius); box-shadow:0 4px 14px rgba(16,29,47,.04); }.stat { padding:20px 22px; }.stat span,.issue-list span,.issue-list time { display:block; color:var(--muted); font-size:14px; }.stat strong { display:block; margin-top:4px; font-size:32px; letter-spacing:-.04em; }
.panel { padding:24px; }.panel-heading,.page-heading { display:flex; align-items:center; justify-content:space-between; gap:20px; margin-bottom:20px; }.page-heading { align-items:flex-start; }
.button { display:inline-block; padding:10px 15px; border:1px solid transparent; border-radius:9px; font-size:14px; font-weight:700; cursor:pointer; text-decoration:none; }.button.primary { background:var(--navy); color:#fff; }.button.secondary { background:#fff; border-color:var(--line); color:var(--navy); }.button:disabled { cursor:not-allowed; opacity:.6; }.button.primary:disabled { background:#8da3b8; border-color:#8da3b8; color:#f5f8fa; opacity:1; }
.empty-state { padding:44px 20px; border:1px dashed var(--line); border-radius:10px; text-align:center; }.empty-state h3 { margin-bottom:5px; }.empty-state p { margin-bottom:0; color:var(--muted); }
.issue-list { margin:0; padding:0; list-style:none; }.issue-list li { display:flex; justify-content:space-between; gap:20px; padding:16px 0; border-top:1px solid var(--line); }.issue-list strong { display:block; }.briefing-schedule { display:block; margin-top:5px; color:var(--muted); font-size:13px; }.status { color:var(--blue)!important; font-size:12px!important; font-weight:800; text-transform:uppercase; letter-spacing:.05em; }
.auth-page { display:flex; align-items:center; justify-content:center; min-height:100vh; padding:22px; }.auth-card { width:min(100%,460px); padding:36px; }.form-stack { display:grid; gap:17px; margin-top:28px; }.form-stack label { display:grid; gap:7px; font-size:14px; font-weight:700; }.form-stack input,.form-stack textarea { padding:11px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; font-weight:400; }.form-stack textarea { resize:vertical; }.form-stack small { margin-top:-2px; color:var(--muted); font-weight:400; }.form-stack input:focus,.form-stack textarea:focus { outline:3px solid rgba(36,117,185,.18); border-color:var(--blue); }.form-actions { display:flex; justify-content:flex-end; gap:10px; }
.auth-link { margin:18px 0 0; text-align:center; font-size:14px; }.auth-link a { color:var(--blue); }
.alert { margin:20px 0; padding:12px 14px; border-radius:9px; }.alert.error { color:#792727; background:#fff1f1; border:1px solid #f0c7c7; }.alert.success { color:#17604c; background:#eef9f5; border:1px solid #bfe8d9; }
.single-content { max-width:900px; margin:0 auto; padding:44px 22px; }.form-panel { max-width:650px; }.mobile-nav { display:none; }
.form-stack select,.source-add input,.source-controls input { padding:11px 12px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; font-weight:400; }.content > .form-panel,.content > .source-panel { max-width:none; }.source-panel { margin-top:24px; }.source-add { display:grid; grid-template-columns:minmax(0,1fr) 120px auto; gap:10px; align-items:end; margin:20px 0; }.source-add label,.source-controls label { display:grid; gap:5px; color:var(--muted); font-size:12px; font-weight:700; }.source-controls { display:flex; align-items:center; gap:10px; }.source-controls input { width:76px; padding:7px; }.source-actions { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:20px; }
.structure-panel { margin-top:24px; }.structure-actions { display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; }.markdown-legend { margin:0; color:var(--muted); font-size:13px; font-weight:400; }.markdown-legend strong { color:var(--ink); }.markdown-legend code { padding:1px 4px; border-radius:4px; background:#edf2f5; color:var(--ink); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; }.ai-source-form textarea { font-weight:400; }
.ai-source-form { display:grid; gap:8px; margin-bottom:20px; }.ai-source-form textarea { min-width:280px; padding:10px; border:1px solid var(--line); border-radius:8px; font:inherit; }.ai-source-form.is-loading { opacity:.75; pointer-events:none; }.ai-source-form.is-loading::after { content:''; position:fixed; z-index:1000; top:calc(50% - 70px); left:calc(50% - 70px); width:140px; height:140px; border:14px solid rgba(36,117,185,.2); border-top-color:var(--blue); border-radius:50%; animation:spin 1s linear infinite; }.ai-source-form.is-loading::before { content:attr(data-loading-message); position:fixed; z-index:1001; top:calc(50% + 88px); left:0; right:0; text-align:center; font-weight:800; color:var(--navy); }@keyframes spin { to { transform:rotate(360deg); } }
.approve-all-form { margin:0 0 16px; }
.archive-group + .archive-group { margin-top:30px; padding-top:26px; border-top:1px solid var(--line); }.archive-group h2 { margin-bottom:8px; }
.archive-report-link { padding:0; border:0; background:none; color:var(--blue); font:inherit; font-weight:800; text-align:left; text-decoration:underline; cursor:pointer; }.report-dialog { width:min(980px,calc(100% - 32px)); max-height:calc(100vh - 48px); padding:0; border:0; border-radius:12px; box-shadow:0 24px 70px rgba(15,35,58,.3); }.report-dialog::backdrop { background:rgba(15,35,58,.5); }.report-dialog-header { position:sticky; top:0; z-index:1; display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 20px; background:#fff; border-bottom:1px solid var(--line); }.report-dialog .test-report { border:0; border-radius:0; }
.source-add { grid-template-columns:minmax(180px,1fr) minmax(160px,1fr) 100px auto; }.source-add input[type="number"] { width:100%; }.source-priority-form,.source-category-form { margin-top:18px; }.source-list li { display:grid; grid-template-columns:minmax(0,1fr) 320px; align-items:start; gap:20px; }.source-list li > div:first-child { min-width:0; overflow-wrap:anywhere; }.source-list li a,.source-list small { overflow-wrap:anywhere; word-break:break-word; }.source-list small { display:block; margin-top:5px; color:var(--muted); font-size:13px; }.source-row-actions { width:320px; display:grid; justify-items:end; align-items:start; gap:10px; }.source-row-actions form { margin:0; }.source-row-actions .status { color:#17604c!important; }.source-row-actions .status:has(+ form + form) { color:#b42318!important; }.source-priority,.source-category { display:grid; align-items:center; gap:6px; color:var(--muted); font-size:12px; font-weight:700; }.source-priority { grid-template-columns:auto 72px; }.source-priority input,.source-category select { padding:7px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; font-weight:400; }.source-priority input { width:72px; }.source-category { grid-template-columns:30px 260px; }.source-category select { width:260px; min-width:0; }.source-sort-form { margin:14px 0 18px; }.source-sort-form label { display:inline-grid; gap:5px; color:var(--muted); font-size:12px; font-weight:700; }.source-sort-form select { padding:8px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; }.source-classify-form { margin-bottom:16px; }.source-save-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:14px; }
.admin-panel-heading { margin-bottom:16px; }.admin-filters { display:grid; grid-template-columns:minmax(180px,1fr) minmax(180px,1fr) auto auto; align-items:end; gap:12px; margin:0 0 22px; padding:16px; border:1px solid var(--line); border-radius:10px; background:#f7f9fa; }.admin-filters label { display:grid; gap:5px; color:var(--muted); font-size:13px; font-weight:700; }.admin-filters select { width:100%; padding:9px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; }.admin-list small { display:block; margin-top:5px; color:var(--muted); font-size:13px; }.admin-row-actions { display:grid; grid-template-columns:120px 120px; justify-items:stretch; gap:8px; }.admin-row-actions .status { grid-column:1 / -1; text-align:right; }.admin-row-actions .button { width:120px; text-align:center; }.admin-row-actions form { margin:0; }.admin-row-actions form .button { width:120px; }.admin-edit { margin-bottom:24px; }.role-options { margin:0; padding:14px; border:1px solid var(--line); border-radius:9px; }.role-options legend { padding:0 5px; font-size:14px; font-weight:700; }.role-options > label { margin-bottom:12px; }.role-checkboxes { display:flex; flex-wrap:wrap; gap:14px; }.role-checkboxes label { display:flex; align-items:center; gap:6px; font-weight:400; }
.ai-source-form.is-loading::before { display:none; }.status.active { color:#17604c!important; }.status.inactive { color:#a22929!important; }
.editor-tabs { display:grid; grid-template-columns:repeat(6, minmax(0, 1fr)); gap:6px; margin:24px 0; }.editor-tabs button { width:100%; min-width:0; padding:10px 8px; border:1px solid var(--line); border-radius:9px; background:#fff; color:var(--muted); font:inherit; font-size:14px; font-weight:700; line-height:1.25; white-space:nowrap; cursor:pointer; }.editor-tabs button.active { color:#fff; background:var(--navy); border-color:var(--navy); }.tab-panel { max-width:none; }.test-report { padding:20px; border:1px solid var(--line); border-radius:10px; background:#fff; line-height:1.65; }.tab-panel[hidden] { display:none; }@media (max-width:760px){.editor-tabs{grid-template-columns:repeat(6,max-content);overflow-x:auto;padding-bottom:4px}.editor-tabs button{width:auto;padding:10px 12px}}
.test-report h1,.test-report h2,.test-report h3 { color:var(--navy); font-weight:800; line-height:1.25; }.test-report h1 { margin:28px 0 14px; font-size:28px; }.test-report h2 { margin:24px 0 12px; font-size:22px; }.test-report h3 { margin:20px 0 10px; font-size:18px; }.test-report p { margin:0 0 14px; }.test-report a { color:var(--blue); text-decoration:underline; overflow-wrap:anywhere; }
.schedule-days { margin:0; padding:0; border:0; }.schedule-days legend { font-size:14px; font-weight:700; }.schedule-days p { margin:7px 0 10px; color:var(--muted); font-size:14px; font-weight:400; }.day-options { display:flex; flex-wrap:wrap; gap:8px; }.day-options label { display:flex; align-items:center; gap:6px; padding:8px 10px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:14px; font-weight:400; cursor:pointer; }.day-options input { accent-color:var(--blue); }
.schedule-status { margin:0; color:var(--muted); font-size:14px; }.schedule-status .status { display:inline; }.schedule-actions { display:flex; flex-wrap:wrap; gap:10px; }
.recipient-add,.recipient-actions { display:flex; flex-wrap:wrap; align-items:end; gap:10px; margin:20px 0; }.recipient-add label { display:grid; gap:5px; color:var(--muted); font-size:13px; font-weight:700; }.recipient-add select { min-width:280px; padding:10px; border:1px solid var(--line); border-radius:8px; background:#fff; font:inherit; }.recipient-actions { justify-content:flex-end; margin:0; }.recipient-actions form { margin:0; }.email-toggle { display:flex; align-items:center; gap:6px; color:var(--muted); font-size:14px; cursor:pointer; }.email-toggle input { accent-color:var(--blue); }
.form-stack.ai-source-form textarea[name="structure_instructions"] { font-weight:400; }
.test-report h4 { color:var(--navy); font-weight:800; line-height:1.25; margin:18px 0 8px; font-size:16px; }
.test-report ul,.test-report ol { margin:0 0 14px; padding-left:22px; }.test-report li { margin:0 0 6px; }.test-report hr { margin:22px 0; border:0; border-top:1px solid var(--line); }.test-report table { display:block; max-width:100%; overflow-x:auto; margin:0 0 16px; border-collapse:collapse; font-size:14px; }.test-report th,.test-report td { padding:8px 10px; border:1px solid var(--line); text-align:left; vertical-align:top; }.test-report th { background:#eef3f5; color:var(--navy); font-weight:700; }
@media (max-width:700px) { h1 { font-size:31px; }.topbar { padding:0 14px; }.user-menu span { display:none; }.layout { display:block; padding:30px 14px 84px; }.sidebar { display:none; }.stats { grid-template-columns:1fr; gap:10px; margin:22px 0; }.panel { padding:14px; }.panel-heading { align-items:flex-start; }.single-content { padding:30px 14px 84px; }.page-heading { display:block; }.page-heading .button { margin-top:12px; }.form-actions .button { flex:1; text-align:center; }.admin-panel-heading .button { margin-top:0; }.admin-filters { grid-template-columns:1fr; }.admin-filters .button { width:100%; text-align:center; }.source-add { grid-template-columns:1fr; }.source-list li { grid-template-columns:1fr; }.source-row-actions { width:100%; justify-items:start; }.source-category { grid-template-columns:30px minmax(0,1fr); width:100%; }.source-category select { width:100%; }.mobile-nav { position:fixed; right:0; bottom:0; left:0; display:flex; justify-content:space-around; padding:9px 4px; background:#fff; border-top:1px solid var(--line); }.mobile-nav a { color:var(--muted); font-size:12px; text-decoration:none; }.mobile-nav a.active { color:var(--blue); font-weight:700; }.auth-card { padding:26px 20px; } }

/* Ergänzungen: Belege, Versionen, Datentabellen, Versandstatus */
.evidence { margin-top:28px; padding-top:16px; border-top:1px solid var(--line); }.evidence h3 { margin:0 0 10px; font-size:16px; color:var(--navy); }.evidence ol { margin:0; padding-left:22px; }.evidence li { margin:0 0 10px; font-size:14px; }.evidence blockquote { margin:4px 0 0; padding-left:10px; border-left:3px solid var(--line); color:var(--muted); font-size:13px; }
.version-info { margin:-4px 0 18px; color:var(--muted); font-size:14px; }.version-info summary { cursor:pointer; }.version-info ul { margin:8px 0 0; padding-left:20px; }
.approval-toggle { align-items:flex-start; line-height:1.4; }
.issue-meta { display:grid; grid-template-columns:repeat(auto-fit, minmax(200px, 1fr)); gap:12px; margin:18px 0 22px; }.issue-meta div { padding:12px 14px; border:1px solid var(--line); border-radius:10px; background:#fff; }.issue-meta dt { color:var(--muted); font-size:12px; font-weight:700; text-transform:uppercase; letter-spacing:.04em; }.issue-meta dd { margin:4px 0 0; font-size:14px; }
.table-wrap { max-width:100%; overflow-x:auto; }.data-table { width:100%; border-collapse:collapse; font-size:14px; }.data-table th,.data-table td { padding:9px 10px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top; }.data-table th { color:var(--muted); font-size:12px; text-transform:uppercase; letter-spacing:.04em; }.data-table small { color:var(--muted); }
.delivery-status { display:inline-block; padding:2px 8px; border-radius:999px; font-size:12px; font-weight:700; background:#eef3f5; color:var(--navy); }.delivery-sent { background:#e4f4ea; color:#1d6b3a; }.delivery-failed { background:#fbe7e7; color:#9b2222; }
.plain-list { margin:8px 0 14px; padding-left:20px; }
