/* KI-Implementierung ‒ Oberfläche. Tokens hell/dunkel, Akzent = Logofarbe. */
:root {
  --bg: #f4f5f8; --surface: #ffffff; --surface-2: #f8f9fc; --text: #1a1d26; --muted: #5f6676; --border: #e1e4ec;
  --accent: #1B2549; --accent-text: #ffffff; --accent-soft: #e9ecf6; --warn: #b45309; --warn-bg: #fff4e5;
  --ok: #15803d; --ok-bg: #e9f7ee; --danger: #b91c1c; --danger-bg: #fdecec; --radius: 10px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) { :root {
  --bg: #111318; --surface: #1a1d25; --surface-2: #20242e; --text: #e7e9ef; --muted: #a2a8b6; --border: #2b303c;
  --accent: #9FB2E6; --accent-text: #111318; --accent-soft: #252b3d; --warn: #f5a524; --warn-bg: #2d2415;
  --ok: #4ade80; --ok-bg: #15271c; --danger: #f87171; --danger-bg: #2d1717; --shadow: 0 1px 2px rgba(0,0,0,.4);
} }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--font); }
a { color: var(--accent); text-decoration: none; } a:hover { text-decoration: underline; }
h1 { font-size: 1.5rem; margin: 0 0 .25rem; } h2 { font-size: 1.15rem; margin: 0 0 .5rem; } h3 { font-size: 1rem; margin: 1rem 0 .5rem; color: var(--muted); font-weight: 600; } h4 { margin: 0; font-size: 1rem; }
p { margin: 0 0 .75rem; } .muted { color: var(--muted); } .mono { font-family: var(--mono); font-size: .9em; } .hint { color: var(--muted); font-size: .9rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.25rem 0; }

/* Kopf, Seitenleiste, Hauptbereich, Schild */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: .75rem; height: 56px; padding: 0 1rem; background: var(--surface); border-bottom: 1px solid var(--border); min-width: 0; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; color: var(--text); } .brand img { height: 28px; } .brand:hover { text-decoration: none; }
.top-right { margin-left: auto; display: flex; align-items: center; gap: .5rem; } .who { color: var(--muted); font-size: .9rem; }
.lang { display: inline-flex; border: 1px solid var(--border); border-radius: 999px; overflow: hidden; }
.lang button { border: 0; background: transparent; color: var(--muted); padding: .25rem .7rem; cursor: pointer; font: inherit; font-size: .85rem; }
.lang button.active { background: var(--accent); color: var(--accent-text); }
.nav-toggle { display: none; }
.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr) auto; min-height: calc(100vh - 56px - 40px); }
.side { border-right: 1px solid var(--border); background: var(--surface); padding: 1rem .75rem 2rem; position: sticky; top: 56px; height: calc(100vh - 56px - 40px); overflow: auto; }
.side-head { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: .75rem .5rem .35rem; }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; } .tree ul { padding-left: .9rem; }
.tree a { display: block; padding: .35rem .5rem; border-radius: 6px; color: var(--text); } .tree a:hover { background: var(--surface-2); text-decoration: none; }
.tree a.current { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.side-action { margin: .5rem .25rem; display: inline-block; }
.main { padding: 1.5rem 2rem 4rem; max-width: 1200px; width: 100%; min-width: 0; overflow-wrap: anywhere; }
.panel { width: 380px; border-left: 1px solid var(--border); background: var(--surface); padding: 1rem; position: sticky; top: 56px; height: calc(100vh - 56px - 40px); overflow: auto; }
.panel[hidden] { display: none; }
.shield { position: fixed; bottom: 0; left: 0; right: 0; height: 40px; display: flex; gap: 1rem; align-items: center; padding: 0 1rem; background: var(--surface); border-top: 1px solid var(--border); font-size: .78rem; color: var(--muted); overflow-x: auto; white-space: nowrap; z-index: 15; }
.shield > * { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .6rem; border: 1px solid var(--border); border-radius: 999px; }
.shield .ver { margin-left: auto; border: 0; }

/* Karten, Kopfzeilen, Knöpfe, Marken */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.card.narrow { max-width: 560px; margin: 2rem auto; } .card-link { display: block; color: inherit; } .card-link:hover { text-decoration: none; border-color: var(--accent); }
.card-kind { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 1rem; }
.page-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; margin-bottom: 1rem; }
.page-head .sub { color: var(--muted); font-size: .9rem; margin: 0; } .crumbs { font-size: .8rem; color: var(--muted); }
.page-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: .35rem; padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; line-height: 1.2; }
.btn:hover { border-color: var(--accent); text-decoration: none; } .btn-sm { padding: .3rem .65rem; font-size: .82rem; }
.btn-primary { background: var(--accent); color: var(--accent-text); border-color: var(--accent); } .btn-primary:hover { filter: brightness(1.08); }
.btn-ghost { background: transparent; } .btn-danger { color: var(--danger); border-color: var(--danger); } .btn.active { background: var(--accent-soft); color: var(--accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.icon { border: 0; background: transparent; cursor: pointer; font: inherit; color: var(--muted); padding: .2rem .35rem; border-radius: 6px; } .icon:hover { background: var(--surface-2); color: var(--text); } .icon.danger:hover { color: var(--danger); }
.icon b { font-size: .7rem; margin-left: .15rem; color: var(--accent); }
.badge { display: inline-block; font-size: .72rem; padding: .1rem .5rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.badge-key { font-family: var(--mono); background: var(--surface-2); color: var(--muted); }
.badge-draft { background: var(--warn-bg); color: var(--warn); } .badge-edit { background: var(--warn-bg); color: var(--warn); }
.badge-added { background: var(--ok-bg); color: var(--ok); } .badge-removed { background: var(--danger-bg); color: var(--danger); } .badge-changed { background: var(--warn-bg); color: var(--warn); }
.banner { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .6rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; }
.banner-draft { background: var(--warn-bg); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 30%, transparent); } .banner-actions { display: flex; gap: .5rem; }
.messages { margin-bottom: 1rem; } .msg { padding: .6rem 1rem; border-radius: 8px; margin-bottom: .5rem; background: var(--accent-soft); color: var(--accent); }
.msg-success { background: var(--ok-bg); color: var(--ok); } .msg-error { background: var(--danger-bg); color: var(--danger); }
.menu { position: relative; } .menu-list { display: none; position: absolute; right: 0; top: 110%; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; box-shadow: var(--shadow); min-width: 200px; z-index: 10; padding: .3rem; }
.menu.open .menu-list { display: block; } .menu-list a, .menu-list button { display: block; width: 100%; text-align: left; padding: .45rem .7rem; border: 0; background: transparent; color: var(--text); font: inherit; cursor: pointer; border-radius: 6px; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); text-decoration: none; }

/* Elemente (Karten je Frage, Tätigkeit, Abteilung …) */
.collection { margin-bottom: 1rem; } .coll-title { margin: .75rem 0 .4rem; }
.item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem 1rem; margin-bottom: .6rem; box-shadow: var(--shadow); }
.item-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; } .item-title { flex: 1 1 auto; min-width: 12rem; }
.num { display: inline-flex; min-width: 1.6rem; height: 1.6rem; align-items: center; justify-content: center; border-radius: 999px; background: var(--accent); color: var(--accent-text); font-size: .75rem; font-weight: 600; }
.item-actions { margin-left: auto; display: inline-flex; gap: .15rem; align-items: center; }
.item-body { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .9rem; margin: .5rem 0 0; font-size: .92rem; }
.item-body:empty { display: none; } .item-body dt { color: var(--muted); } .item-body dd { margin: 0; }
.item-body dl { display: contents; }
.item .collection { margin: .6rem 0 0 .5rem; padding-left: .9rem; border-left: 2px solid var(--border); }
.item .item { padding: .5rem .8rem; box-shadow: none; } .item-option .item-body, .item-instrument .item-body, .item-textbaustein .item-body { font-size: .88rem; }
.item-singleton .prose { margin-top: .5rem; } .prose h1 { font-size: 1.3rem; } .prose h2 { font-size: 1.1rem; margin-top: 1rem; } .prose table { border-collapse: collapse; } .prose td, .prose th { border: 1px solid var(--border); padding: .25rem .5rem; }
.section-details { margin-top: 1.5rem; } .section-details summary { cursor: pointer; color: var(--muted); font-weight: 600; }
.add { margin: .25rem 0 .5rem; }

/* Formulare */
label { display: block; font-size: .85rem; color: var(--muted); margin-bottom: .6rem; }
input[type=text], input[type=number], input[type=password], select, textarea { display: block; width: 100%; margin-top: .25rem; padding: .45rem .6rem; border: 1px solid var(--border); border-radius: 8px; background: var(--surface-2); color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
textarea { resize: vertical; } label.check { display: flex; align-items: center; gap: .5rem; color: var(--text); } label.check input { width: auto; margin: 0; }
label small { display: block; color: var(--muted); font-size: .78rem; margin-top: .2rem; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; } .anchor-row { grid-template-columns: 2rem 1fr 1fr; align-items: center; }
.item-editing { border-color: var(--accent); } .fields { margin-top: .5rem; } .field.has-error input, .field.has-error textarea { border-color: var(--danger); } .error { color: var(--danger); font-size: .82rem; }
.actions { display: flex; gap: .5rem; margin-top: .5rem; }
fieldset { border: 1px solid var(--border); border-radius: 8px; padding: .5rem .75rem .6rem; margin: 0 0 .6rem; } legend { font-size: .85rem; color: var(--muted); padding: 0 .3rem; }
.chips { display: flex; flex-wrap: wrap; gap: .35rem; } .chips legend { width: 100%; } .chip { margin: 0; } .chip input { display: none; }
.chip span { display: inline-block; padding: .25rem .7rem; border: 1px solid var(--border); border-radius: 999px; font-size: .82rem; cursor: pointer; color: var(--text); background: var(--surface-2); }
.chip input:checked + span { background: var(--accent); color: var(--accent-text); border-color: var(--accent); }
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { text-align: left; padding: .5rem .7rem; border-bottom: 1px solid var(--border); vertical-align: top; } .table th { color: var(--muted); font-weight: 600; font-size: .85rem; }
.row-actions { white-space: nowrap; } .inline { display: inline; }
.compare-form { display: flex; gap: .75rem; align-items: end; flex-wrap: wrap; margin-bottom: 1rem; } .compare-form label { margin: 0; min-width: 160px; }
.diff-table th { width: 160px; } .diff-table .old { color: var(--danger); background: var(--danger-bg); } .diff-table .new { color: var(--ok); background: var(--ok-bg); }
.changes-short { margin: .25rem 0 .75rem; padding-left: 1rem; font-size: .9rem; }

/* Modal, Kommentare */
dialog { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); color: var(--text); padding: 1.25rem; width: min(560px, 92vw); box-shadow: 0 10px 40px rgba(0,0,0,.25); }
dialog::backdrop { background: rgba(10,12,20,.45); }
.panel-head { display: flex; align-items: center; justify-content: space-between; } .panel-head h3 { margin: 0; color: var(--text); }
.comment { border-top: 1px solid var(--border); padding: .6rem 0; } .comment.resolved { opacity: .6; } .comment-meta { font-size: .82rem; color: var(--muted); display: flex; align-items: center; gap: .4rem; }
.avatar { display: inline-flex; width: 1.6rem; height: 1.6rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); font-size: .7rem; align-items: center; justify-content: center; font-weight: 600; }
.reply { margin: .4rem 0 0 1.2rem; font-size: .9rem; } .reply-form { display: flex; gap: .3rem; margin-top: .3rem; } .reply-form input { margin: 0; }
.panel-foot { border-top: 1px solid var(--border); padding-top: .75rem; margin-top: .5rem; }

/* Schmale Bildschirme */
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; } .nav-toggle { display: inline-flex; }
  .side { display: none; position: fixed; left: 0; top: 56px; width: 280px; z-index: 25; box-shadow: var(--shadow); } body.nav-open .side { display: block; }
  .main { padding: 1rem 16px 4rem; } .panel { position: fixed; right: 0; top: 56px; width: min(420px, 100vw); z-index: 24; }
  .form-grid { grid-template-columns: 1fr; } .anchor-row { grid-template-columns: 2rem 1fr; } .item-body { grid-template-columns: 1fr; }
  .who, .hide-mobile, .brand span { display: none; } .brand img { height: 24px; } .top { gap: .5rem; padding: 0 .75rem; }
  .page-head > div { min-width: 0; } .item-title { min-width: 0; } .badge { white-space: normal; }
}

/* Erhebung (Token-Seiten) */
body.survey .shell { display: block; }
.survey-main { max-width: 860px; margin: 0 auto; padding: 1.25rem 16px 4rem; }
.narrow-wide { max-width: 760px; margin: 0 auto; }
.progress { position: sticky; top: 56px; z-index: 10; background: var(--surface); border-bottom: 1px solid var(--border); height: 28px; display: flex; align-items: center; }
.progress .bar { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent-soft); transition: width .3s; }
.progress span { position: relative; margin-left: 1rem; font-size: .78rem; color: var(--muted); }
.motif { margin: 0 auto 1rem; max-width: 760px; } .motif img { display: block; width: 100%; border-radius: var(--radius); } .motif figcaption { font-size: .75rem; color: var(--muted); text-align: center; margin-top: .3rem; }
.facts { display: grid; gap: .5rem; margin: 1rem 0; } .fact { display: grid; grid-template-columns: 180px 1fr; gap: .75rem; padding: .6rem .8rem; border-radius: 8px; background: var(--surface-2); font-size: .9rem; }
.fact b { color: var(--muted); font-weight: 600; } .fact-ok b { color: var(--ok); } .fact-warn b { color: var(--warn); } .fact-never b { color: var(--accent); }
.consent { margin-top: 1rem; } label.check.big { font-size: 1rem; padding: .6rem .8rem; border: 1px solid var(--border); border-radius: 8px; }
.btn-lg { padding: .7rem 1.3rem; font-size: 1rem; }
.step-head { margin-bottom: 1rem; } .accent { color: var(--accent); }
.question { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .9rem; box-shadow: var(--shadow); }
.question h2 { font-size: 1.05rem; margin-bottom: .35rem; } .question .help { color: var(--muted); font-size: .88rem; margin-bottom: .6rem; } .req { color: var(--danger); }
.question.has-error { border-color: var(--danger); } .q-foot { display: flex; justify-content: space-between; font-size: .8rem; min-height: 1.2rem; margin-top: .4rem; }
.saved.ok { color: var(--ok); } .saved.err { color: var(--danger); }
.choice-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .5rem; border: 0; padding: 0; margin: 0; }
.choice { display: flex; gap: .5rem; align-items: flex-start; padding: .6rem .75rem; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; margin: 0; color: var(--text); font-size: .95rem; background: var(--surface-2); }
.choice input { margin-top: .2rem; } .choice span { display: flex; flex-direction: column; gap: .15rem; } .choice small { color: var(--muted); }
.choice:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.chips.big .chip span { padding: .5rem .9rem; font-size: .92rem; } .chip-search { max-width: 360px; margin-bottom: .5rem; }
.other-text { margin-top: .5rem; max-width: 420px; }
.slider { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; } .slider input[type=range] { width: 100%; accent-color: var(--accent); }
.slider output { min-width: 5rem; text-align: right; font-weight: 600; } .slider.small { grid-template-columns: 1fr auto; font-size: .85rem; margin: .25rem 0 .5rem .5rem; }
.slider.small output { min-width: 7rem; font-size: .8rem; } .slider .time-total { grid-column: 1 / -1; }
.anchors { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(5, 1fr); gap: .25rem; font-size: .75rem; color: var(--muted); text-align: center; }
.anchors span.on { color: var(--accent); font-weight: 600; }
.strength { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .35rem .75rem; } .strength-chip { min-width: 0; }
.short-text textarea { font-size: .95rem; }
.dept-shares { display: grid; gap: .3rem; } .dept { padding: .35rem .5rem; border-radius: 8px; } .dept.on { background: var(--surface-2); } .dept .chip span { font-size: .9rem; padding: .4rem .8rem; }
.act-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .4rem; margin-bottom: .5rem; }
.act { display: flex; gap: .5rem; align-items: flex-start; padding: .5rem .7rem; border: 1px solid var(--border); border-radius: 8px; cursor: pointer; margin: 0; color: var(--text); background: var(--surface-2); }
.act input { margin-top: .25rem; } .act span { display: flex; flex-direction: column; } .act small { color: var(--muted); font-size: .78rem; } .act.on { border-color: var(--accent); background: var(--accent-soft); }
.family { margin-bottom: .4rem; } .family summary { cursor: pointer; font-weight: 600; padding: .3rem 0; } .act-count.warn { color: var(--warn); }
.activity-select h3 { margin: .9rem 0 .4rem; color: var(--text); }
.sources { display: grid; gap: .25rem; max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; padding: .4rem; }
.source { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.source .need { font-size: .85rem; display: inline-flex; gap: .6rem; } .radio { display: inline-flex; gap: .25rem; margin: 0; color: var(--text); } .radio input { width: auto; margin: 0; }
.step-actions { display: flex; justify-content: space-between; gap: .5rem; margin-top: 1rem; flex-wrap: wrap; align-items: center; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .25rem 1rem; } .kv dt { color: var(--muted); } .kv dd { margin: 0; }
.check-row .orig { background: var(--surface-2); padding: .5rem; border-radius: 6px; } .check-row .scrubbed { background: var(--ok-bg); padding: .5rem; border-radius: 6px; }
.cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; margin: 1rem 0; } .cand img, img.chosen { width: 100%; border-radius: 8px; display: block; }
.confirm-box { background: var(--accent-soft); padding: 1rem; border-radius: var(--radius); margin: 1rem 0; } .confirm-box img { max-width: 320px; border-radius: 8px; display: block; margin: .5rem 0; }

/* Kernteam: Kampagnen, Datenfluss, Präsenz */
.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1rem; margin-bottom: 1rem; }
.stat { display: flex; align-items: center; gap: 1rem; } .ring { width: 96px; height: 96px; transform: rotate(-90deg); flex: 0 0 auto; } .ring-bg { fill: none; stroke: var(--border); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; } .ring text { transform: rotate(90deg); transform-origin: 50% 50%; font-size: 18px; font-weight: 600; fill: var(--text); }
.section { margin: 1.5rem 0 .6rem; font-size: 1.1rem; } .plain { list-style: none; padding: 0; margin: 0; } .plain li { padding: .15rem 0; }
.mini-bar { display: inline-block; width: 80px; height: 8px; background: var(--border); border-radius: 4px; vertical-align: middle; overflow: hidden; } .mini-bar div { height: 100%; background: var(--accent); }
.img-card img { width: 100%; border-radius: 8px; margin-bottom: .4rem; } .img-card b { display: block; }
.trace { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .78rem; background: var(--surface-2); padding: .6rem; border-radius: 6px; max-height: 420px; overflow: auto; }
.flow { width: 100%; max-width: 760px; height: auto; margin: .5rem 0 1rem; font-size: 12px; fill: var(--text); } .flow-box { fill: var(--surface); stroke: var(--border); } .flow-server { stroke: var(--accent); stroke-width: 2; } .flow-cloud { stroke: var(--warn); stroke-dasharray: 4 3; }
.flow-title { font-weight: 600; font-size: 13px; } .flow-arrow { stroke: var(--muted); stroke-width: 2; fill: none; }
.presence { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: .82rem; margin-bottom: .75rem; }
.avatar-pill { display: inline-block; padding: .1rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); } .avatar-pill.me { background: var(--ok-bg); color: var(--ok); }
.attachments { margin-top: 1.5rem; } .inline-form { display: flex; gap: .5rem; align-items: center; } .inline-form input[type=file] { margin: 0; width: auto; }
@media (max-width: 700px) { .fact { grid-template-columns: 1fr; gap: .2rem; } .anchors { font-size: .68rem; } .anchors small { display: none; } .anchors span.on small { display: inline; } .slider output { min-width: 4rem; } .stat { flex-wrap: wrap; } }
[hidden] { display: none !important; }
.table td.mono, .table td.nowrap { white-space: nowrap; }
.kv dt, .kv dd, .item-body dt, .item-body dd { overflow-wrap: anywhere; min-width: 0; }
@media (max-width: 700px) {
  .kv { grid-template-columns: 1fr; } .kv dt { margin-top: .4rem; }
  .table { display: block; overflow-x: auto; max-width: 100%; }
  .page-actions .btn { flex: 1 1 auto; justify-content: center; }
}

/* Auswertung: Landkarte, Board, Fragmentierung */
.viz { width: 100%; height: auto; font-family: var(--font); } .viz .axis { stroke: var(--border); stroke-width: 1.5; } .viz .axis-label, .viz .tick, .viz .label { fill: var(--text); }
.viz .tick { fill: var(--muted); } .viz .node { fill: var(--muted); } .viz .cell-text { fill: var(--text); } .viz .cell-text.light { fill: #ffffff; }
.ring-svg .ring-bg { fill: none; stroke: var(--border); stroke-width: 10; } .ring-svg .ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; }
.ring-card { display: flex; align-items: center; gap: 1rem; } .ring-label { font-size: .95rem; }
.board { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; align-items: start; }
.column { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: .8rem; border-top: 4px solid var(--accent); }
.col-head h2 { font-size: 1.05rem; margin-bottom: .3rem; } .col-meta { display: flex; flex-wrap: wrap; gap: .3rem; margin-bottom: .4rem; } .small { font-size: .85rem; }
.decision select { margin: .3rem 0; } .rename summary { cursor: pointer; font-size: .85rem; color: var(--muted); } .rename label { margin-bottom: .4rem; }
.col-img { width: 100%; border-radius: 8px; margin: .4rem 0; }
.members { margin-top: .5rem; } .member { display: flex; justify-content: space-between; gap: .5rem; align-items: center; padding: .45rem .5rem; border: 1px solid var(--border); border-radius: 8px; margin-bottom: .35rem; background: var(--surface-2); }
.member .move select { margin: 0; width: auto; max-width: 9rem; padding: .25rem .4rem; font-size: .8rem; } .member > span { min-width: 0; overflow-wrap: anywhere; }
.col-details { margin-top: .4rem; } .col-details .kv { font-size: .8rem; }
.suggestions { margin-bottom: 1rem; } .suggestion { padding: .35rem 0; border-top: 1px solid var(--border); } .suggestion.status-accepted { opacity: .7; } .suggestion.status-rejected, .suggestion.status-superseded { opacity: .5; }
@media (max-width: 700px) { .board { grid-template-columns: 1fr; } .ring-card { flex-wrap: wrap; } }
.run-row { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; align-items: center; padding: .4rem 0; border-top: 1px solid var(--border); }
.run-row .row-actions { white-space: normal; display: flex; gap: .3rem; flex-wrap: wrap; }
