:root {
  --bg: #f6f7f9; --surface: #ffffff; --surface-2: #f1f3f6; --border: #e3e6eb;
  --text: #1a1d23; --muted: #667085; --accent: #2563eb; --accent-soft: #e8efff;
  --ok: #15803d; --ok-soft: #e7f6ec; --warn: #b45309; --warn-soft: #fdf3e2;
  --err: #b91c1c; --err-soft: #fdeceb; --shadow: 0 1px 2px rgba(16,24,40,.06);
  --radius: 10px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1115; --surface: #171a21; --surface-2: #1e222b; --border: #2a2f3a;
    --text: #e6e8ec; --muted: #9aa3b2; --accent: #6b9bff; --accent-soft: #1d2a47;
    --ok: #4ade80; --ok-soft: #13291c; --warn: #fbbf24; --warn-soft: #2e2512;
    --err: #f87171; --err-soft: #331a1a; --shadow: none;
  }
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 4px; }
h2 { font-size: 1.1rem; margin: 0 0 12px; }
h3 { font-size: 1rem; margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; word-break: break-all; }

header.top { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 10; }
header.top .inner { max-width: 1280px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 24px; height: 56px; }
.brand { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.brand svg { color: var(--accent); }
nav { display: flex; gap: 4px; overflow-x: auto; }
nav a { color: var(--muted); padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
nav a.on, nav a:hover { color: var(--text); background: var(--surface-2); text-decoration: none; }

main { max-width: 1280px; margin: 0 auto; padding: 24px 16px 64px; }
main.wide, header.top .inner.wide { max-width: 1840px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); margin-bottom: 16px; }
.kpi .v { font-size: 1.75rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.kpi .l { color: var(--muted); font-size: .85rem; }
.cols-2 { grid-template-columns: 2fr 1fr; }
.cols-3 { grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
@media (max-width: 900px) { .cols-2 { grid-template-columns: 1fr; } }
.section { margin-top: 24px; }

.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; flex: none; }
.group-title { display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 999px; font-size: .78rem; font-weight: 550; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn, .pill.discovering, .pill.crawling, .pill.running { background: var(--warn-soft); color: var(--warn); }
.pill.err, .pill.error, .pill.aborted { background: var(--err-soft); color: var(--err); }
.pill.ready { background: var(--ok-soft); color: var(--ok); }
.pill.accent { background: var(--accent-soft); color: var(--accent); }
.spin { width: 10px; height: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: s .8s linear infinite; }
@keyframes s { to { transform: rotate(360deg); } }

table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); font-weight: 600; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
tr:last-child td { border-bottom: 0; }
.table-wrap { overflow-x: auto; }

ul.list { list-style: none; margin: 0; padding: 0; }
ul.list li { padding: 8px 0; border-bottom: 1px solid var(--border); }
ul.list li:last-child { border-bottom: 0; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

form.inline { display: inline; }
input, select, textarea, button { font: inherit; color: inherit; }
input[type=text], input[type=search], input[type=number], select, textarea {
  background: var(--surface); border: 1px solid var(--border); border-radius: 8px; padding: 7px 10px; width: 100%; }
textarea { min-height: 84px; resize: vertical; }
input[type=color] { width: 42px; height: 36px; padding: 2px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.btn { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); padding: 6px 12px; border-radius: 8px; cursor: pointer; white-space: nowrap; color: var(--text); }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--err); }
.btn.sm { padding: 3px 9px; font-size: .85rem; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: .82rem; color: var(--muted); }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.flash.ok { background: var(--ok-soft); color: var(--ok); }
.flash.error { background: var(--err-soft); color: var(--err); }

.chart svg { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: .85rem; color: var(--muted); margin-top: 8px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.bar-row { display: grid; grid-template-columns: 110px 1fr 40px; gap: 8px; align-items: center; margin: 6px 0; font-size: .88rem; }
.bar-track { background: var(--surface-2); border-radius: 4px; height: 10px; overflow: hidden; }
.bar-fill { background: var(--accent); height: 100%; border-radius: 4px; }
#tip { position: fixed; pointer-events: none; background: var(--text); color: var(--bg); padding: 6px 9px; border-radius: 6px; font-size: .8rem; opacity: 0; transition: opacity .1s; z-index: 50; }

.article-body { max-width: 760px; }
.article-body p { margin: 0 0 1em; }
.article-body img.hero { width: 100%; border-radius: var(--radius); margin: 12px 0; }
.meta { display: flex; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: .88rem; margin: 8px 0 16px; }
.art-item { display: grid; grid-template-columns: 96px 1fr; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.art-item:last-child { border-bottom: 0; }
.art-item img, .art-item .ph { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
@media (max-width: 560px) { .art-item { grid-template-columns: 1fr; } .art-item img, .art-item .ph { display: none; } }
.filters { display: grid; grid-template-columns: 2fr repeat(5, minmax(0, 1fr)) auto; gap: 10px; margin-bottom: 16px; }
@media (max-width: 800px) { .filters { grid-template-columns: 1fr 1fr; } }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 16px; }
details summary { cursor: pointer; color: var(--muted); }
pre.json { background: var(--surface-2); padding: 10px; border-radius: 8px; overflow-x: auto; font-size: .8rem; }
.empty { text-align: center; padding: 32px; color: var(--muted); }
@media (max-width: 480px) { header.top .inner { gap: 10px; } .brand span { display: none; } nav a { padding: 6px 9px; } }
.field { min-width: 0; } .field textarea, .field input, .field select { min-width: 0; max-width: 100%; }
.ex-form { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-top: 12px; }
.ex-form > div:last-child { grid-column: 1 / -1; }
@media (max-width: 700px) { .ex-form { grid-template-columns: minmax(0, 1fr); } }

/* Klick-Assistent */
.steps { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; counter-reset: st; }
.steps li { counter-increment: st; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; display: flex; flex-direction: column; color: var(--muted); font-size: .85rem; }
.steps li b { color: var(--text); font-size: .95rem; }
.steps li b::before { content: counter(st) ". "; }
.steps li.on { border-color: var(--accent); background: var(--accent-soft); }
.steps li.done b::after { content: " ✓"; color: var(--ok); }
@media (max-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.picker-bar { margin-bottom: 12px; }
.picker-bar .instr { font-size: 1rem; }
.picker-bar .flash { margin: 8px 0 0; }
.mark-card { outline: 2px solid #16a34a; padding: 0 4px; border-radius: 3px; }
.mark-title { background: rgba(250,204,21,.45); padding: 0 4px; border-radius: 3px; }
.picker-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.picker-layout:has(.picker-result:not([hidden])) { grid-template-columns: minmax(0, 1fr) 380px; }
@media (max-width: 1000px) { .picker-layout:has(.picker-result:not([hidden])) { grid-template-columns: minmax(0, 1fr); } }
.picker-frame-wrap { border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.picker-frame-wrap iframe { display: block; width: 100%; height: 75vh; border: 0; }
.picker-result { align-self: start; max-height: calc(100vh - 90px); overflow: auto; position: sticky; top: 64px; }
.res-items { padding-left: 20px; margin: 0; }
.res-items li { padding: 6px 0; border-bottom: 1px solid var(--border); }
.res-items li:last-child { border-bottom: 0; }
.assist-teaser { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
[hidden] { display: none !important; }
.load-note { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 14px; }
.load-note .small { flex: 1; min-width: 200px; }
.api-box { border: 1px solid var(--ok); background: var(--ok-soft); border-radius: 8px; padding: 10px 12px; margin: 0 0 12px; }

/* Trennlinie nach dem heutigen Tag */
.day-head { font-weight: 650; font-size: .85rem; color: var(--accent); text-transform: uppercase; letter-spacing: .04em; padding: 4px 0 2px; }
.day-divider { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.day-divider::before, .day-divider::after { content: ""; flex: 1; border-top: 2px solid var(--border); }
.day-divider::before { flex: 0 0 12px; }
ul.list li.day-divider { border-bottom: 0; padding: 0; }
tr.day-divider-row td { border-bottom: 0; padding: 0 10px; }
.api-box.api-box-off { border-color: var(--warn); background: var(--warn-soft); }
.article-body h3.pdf-head { border-top: 1px solid var(--border); padding-top: 12px; color: var(--muted); font-size: .95rem; }

/* Gemeinden & mehrere Seiten */
.start-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 760px) { .start-grid { grid-template-columns: minmax(0, 1fr); } }
.page-rows { display: grid; gap: 8px; margin-bottom: 8px; }
.page-row { display: grid; grid-template-columns: minmax(0, 200px) minmax(0, 1fr) auto; gap: 8px; align-items: center; }
@media (max-width: 560px) { .page-row { grid-template-columns: minmax(0, 1fr) auto; } .page-row input[name=url] { grid-column: 1 / -1; grid-row: 2; } }
.batch-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; padding: 10px 14px; border-left: 4px solid var(--accent); }
.batch-bar .steps-mini { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.org-block { border-top: 1px solid var(--border); padding-top: 12px; margin-top: 12px; }
.org-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.org-head h3 { margin: 0; }
.pill.sect { background: var(--accent-soft); color: var(--accent); }
.inline-details { position: relative; }
.inline-details > summary { list-style: none; }
.inline-details > summary::-webkit-details-marker { display: none; }
@media (max-width: 1150px) and (min-width: 801px) { .filters { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.org-line { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.org-line .pill.sect:hover { text-decoration: none; filter: brightness(.95); }
.meta { align-items: center; }
.from-src { border: 1px dashed var(--border); border-radius: 8px; padding: 10px 12px; display: grid; gap: 6px; }

/* Wegweiser */
.way-start { border-left: 4px solid var(--accent); margin-bottom: 8px; }
.way-layout:has(.picker-result) { grid-template-columns: minmax(0, 1fr) 400px; }
@media (max-width: 1000px) { .way-layout:has(.picker-result) { grid-template-columns: minmax(0, 1fr); } }
.way-targets { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.way-targets li { border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; cursor: pointer; display: grid; gap: 4px; }
.way-targets li.on { border-color: var(--accent); background: var(--accent-soft); }
.way-targets li.gesetzt { border-color: var(--ok); }
.way-targets li.fehlt { opacity: .65; }
.way-targets .mono { overflow-wrap: anywhere; }
.way-targets .sugs { display: flex; flex-wrap: wrap; gap: 6px; }
.way-targets .sug { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.link-hits { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; }
.link-hits li { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 6px; border-radius: 6px; background: var(--surface-2); }
.link-hits li > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* KI-Assistent in der Artikel-Ansicht */
.article-layout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: start; }
.article-layout .article-body { max-width: none; }
@media (max-width: 1250px) { .article-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); } .article-layout .article-body { grid-column: 1 / -1; } }
@media (max-width: 800px) { .article-layout { grid-template-columns: 1fr; } }
.press-panel .press { margin-top: 0; }
.press-panel .press-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.ki-panel { display: flex; flex-direction: column; gap: 10px; }
.ki-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ki-panel .field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
#ki-title { font-weight: 650; font-size: 1.05rem; }
#ki-lead { font-weight: 550; resize: vertical; }
.ki-toolbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ki-toolbar .sep { width: 1px; align-self: stretch; background: var(--border); margin: 0 2px; }
.ki-text { min-height: 260px; white-space: pre-wrap; word-wrap: break-word; line-height: 1.6; background: var(--surface);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; outline: none; }
.ki-text:focus { border-color: var(--accent); }
:root { --tag-ort: #d9f2dc; --tag-ort-b: #3f9a4b; --tag-zt: #dbe7ff; --tag-zt-b: #3b6fd8; --tag-q: #ffe6c7; --tag-q-b: #d98a1f; }
@media (prefers-color-scheme: dark) {
  :root { --tag-ort: #1f3d25; --tag-ort-b: #4ade80; --tag-zt: #1d2d52; --tag-zt-b: #7aa5ff; --tag-q: #45310f; --tag-q-b: #fbbf24; }
}
.tag { border-radius: 4px; padding: 1px 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.tag-Ort { background: var(--tag-ort); box-shadow: inset 0 -2px 0 var(--tag-ort-b); }
.tag-Zwischentitel { background: var(--tag-zt); box-shadow: inset 0 -2px 0 var(--tag-zt-b); font-weight: 650; }
.tag-Quelle { background: var(--tag-q); box-shadow: inset 0 -2px 0 var(--tag-q-b); font-style: italic; }
.ki-text .tag.active { outline: 2px solid var(--accent); outline-offset: 1px; }
.ki-text .tag .x { border: 0; background: none; padding: 0 1px 0 4px; margin: 0; cursor: pointer; color: var(--muted);
  font-size: .85em; line-height: 1; vertical-align: 1px; user-select: none; }
.ki-text .tag .x:hover { color: var(--err); }
.btn.tagbtn { color: var(--text); }
.btn.tagbtn.tag-Ort { background: var(--tag-ort); border-color: var(--tag-ort-b); }
.btn.tagbtn.tag-Zwischentitel { background: var(--tag-zt); border-color: var(--tag-zt-b); font-weight: 600; }
.btn.tagbtn.tag-Quelle { background: var(--tag-q); border-color: var(--tag-q-b); font-style: italic; }
.btn.tagbtn:hover { filter: brightness(.96); }
.btn[disabled] { opacity: .55; cursor: not-allowed; }

/* Protokoll der Prompt-Änderungen */
.log-entry { border-top: 1px solid var(--border); padding: 12px 0; display: flex; flex-direction: column; gap: 6px; }
.log-entry:first-of-type { border-top: 0; }
.log-entry .pre { white-space: pre-wrap; margin-top: 2px; }
pre.diff { background: var(--surface-2); padding: 10px; border-radius: 8px; overflow-x: auto; font-size: .78rem; white-space: pre-wrap; margin: 6px 0 0; }
pre.diff .add { background: var(--ok-soft); color: var(--ok); display: inline-block; width: 100%; }
pre.diff .del { background: var(--err-soft); color: var(--err); display: inline-block; width: 100%; text-decoration: line-through; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); }
pre.diff .hunk { color: var(--muted); }

/* Übersicht: Themengruppen-Boxen mit den Meldungen von heute */
.overview-grid { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); align-items: start; }
.ov-box { padding: 0; overflow: hidden; }
.ov-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding: 12px 16px 10px; border-top: 4px solid var(--border); border-bottom: 1px solid var(--border); }
.ov-head h2 { margin: 0; font-size: 1.05rem; }
.ov-head h2 a { color: var(--text); }
.ov-list { list-style: none; margin: 0; padding: 0; max-height: 560px; overflow-y: auto; }
.ov-list li { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: start; padding: 8px 16px; border-bottom: 1px solid var(--border); }
.ov-list li:last-child { border-bottom: 0; }
.ov-list li.ov-empty { display: block; padding: 16px; }
.ov-list li.is-erfasst { background: color-mix(in srgb, var(--ok-soft) 55%, transparent); }
.ov-time { font-variant-numeric: tabular-nums; color: var(--muted); font-size: .88rem; padding-top: 1px; }
.ov-main { display: flex; flex-direction: column; min-width: 0; }
.ov-main a { color: var(--text); font-weight: 550; }
.ov-main a:hover { color: var(--accent); }
.ov-marks { display: flex; gap: 4px; padding-top: 2px; }
.mark { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: .75rem; font-weight: 700;
  border: 1.5px dashed var(--border); color: var(--muted); vertical-align: middle; }
.mark.erfasst { border: 0; background: var(--ok); color: #fff; }
.mark.uebertragen { border: 0; background: var(--accent); color: #fff; }

/* Erfassung: Themengruppen ausklappbar */
details.group-box > summary { color: var(--text); list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; }
details.group-box > summary::-webkit-details-marker { display: none; }
details.group-box > summary::before { content: "▸"; color: var(--muted); transition: transform .15s; display: inline-block; }
details.group-box[open] > summary::before { transform: rotate(90deg); }
details.group-box > summary h2 { margin: 0; }
details.group-box[open] > summary { margin-bottom: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }

/* Bildnachweis unter dem Artikelbild */
figure.hero-fig { margin: 12px 0; }
figure.hero-fig img.hero { margin: 0; }
.img-credit { font-size: .8rem; color: var(--muted); margin-top: 4px; text-align: right; }
.img-credit.none { font-style: italic; opacity: .75; }

/* Bild-Crawler */
.choice-list { display: flex; flex-direction: column; gap: 6px; }
.choice { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.choice input[type=radio] { width: auto; margin-top: 4px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(88px, 1fr)); gap: 6px; }
.thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 6px; background: var(--surface-2); }
.consent-box { border: 1px solid var(--warn); background: var(--warn-soft); border-radius: 8px; padding: 10px 12px; }
.consent-box p { margin: 6px 0 0; }
.press { margin-top: 28px; }
.press-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.press-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-top: 10px; }
.press-item { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; background: var(--surface); display: flex; flex-direction: column; position: relative; }
.press-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: var(--surface-2); display: block; }
.press-item .cap { padding: 6px 8px; font-size: .78rem; display: flex; flex-direction: column; gap: 2px; }
.press-item .cap .t { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.press-item input.sel { position: absolute; top: 6px; left: 6px; width: 18px; height: 18px; }
.press-item.loaded { border-color: var(--ok); }
.press-item .badge { position: absolute; top: 6px; right: 6px; background: var(--ok); color: #fff; font-size: .7rem; padding: 1px 6px; border-radius: 999px; }
.press-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 10px; }
.press-item img.broken, .press-item img:not([src]) { background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='28' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='1.5'%3E%3Crect x='3' y='5' width='18' height='14' rx='2'/%3E%3Ccircle cx='9' cy='10' r='1.5'/%3E%3Cpath d='M21 16l-5-5-8 8'/%3E%3C/svg%3E") center no-repeat; }
.field-learn { margin-top: 14px; }
.field-learn h3 { margin-bottom: 2px; }
.choice .sample { display: block; font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.choice > span { min-width: 0; flex: 1; }
.press-item .cap .d { color: var(--text); opacity: .85; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.press-item .cap .cr { color: var(--muted); font-style: italic; }
.press-link summary { color: var(--accent); cursor: pointer; margin-top: 6px; }

/* Lightbox im Bild-Assistenten */
.press-lightbox { position: absolute; left: 0; width: 100%; z-index: 20; background: var(--surface); border-radius: var(--radius);
  display: flex; flex-direction: column; gap: 10px; padding: 12px 16px 16px; box-sizing: border-box; overflow-y: auto;
  box-shadow: 0 0 0 1px var(--border); }
.press-lightbox .lb-bar { display: flex; justify-content: space-between; align-items: center; }
.press-lightbox .lb-img { flex: 1 1 auto; min-height: 200px; display: flex; align-items: center; justify-content: center;
  background: #111; border-radius: 8px; overflow: hidden; }
.press-lightbox .lb-img img { max-width: 100%; max-height: 62vh; object-fit: contain; display: block; }
.press-lightbox .lb-img img.broken { width: 100%; height: 240px; }
.press-lightbox .lb-text { display: flex; flex-direction: column; gap: 4px; }
.press-lightbox .lb-title { font-weight: 650; }
.press-lightbox .lb-desc { white-space: pre-line; }
.press-lightbox .lb-credit { font-style: italic; color: var(--muted); }

/* Artikel-Ansicht: drei Rahmen in voller Fensterhöhe, jeder mit eigenem Scrollbalken */
main.wide { padding: 16px 16px 16px; }
.article-layout .pane { position: relative; height: calc(100vh - 57px - 32px); height: calc(100dvh - 57px - 32px);
  min-height: 420px; overflow-y: auto; overscroll-behavior: contain; padding: 16px 18px; }

/* Anmeldung */
.user-box { margin-left: auto; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.user-box img { border-radius: 50%; }
.user-box span { max-width: 180px; overflow: hidden; text-overflow: ellipsis; }
.login-wrap { display: flex; justify-content: center; padding-top: 8vh; }
.login-card { max-width: 420px; width: 100%; text-align: center; padding: 28px; }
.login-card h1 { margin-bottom: 8px; }
.google-btn { justify-content: center; gap: 10px; padding: 10px 18px; font-weight: 550; margin-top: 8px; }
.pill.role-admin { background: var(--err-soft); color: var(--err); }
.pill.role-crawler { background: var(--warn-soft); color: var(--warn); }
.pill.role-redakteur { background: var(--accent-soft); color: var(--accent); }
