/* AGENTICAL Cockpit, gemeinsames Stylesheet.
   Quelle: Leitstand (site/businessplan/index.html), Designsprache laut
   docs/design/00-KONZEPT.md Abschnitt 3. Hell, Archivo, Haarlinien, Türkis
   als einziger Akzent. Einzige Stelle mit Farbwerten: der :root-Block.
   Referenz aller Komponenten: /design/ (site/design/index.html).
   Einbindung: <link rel="stylesheet" href="/assets/cockpit.css?v=..."> */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700;800&display=swap");

/* ── Tokens ─────────────────────────────────────────────────────── */
:root {
  color-scheme: light;
  --bg: #ffffff; --soft: #f5f7f8; --card: #f2f8f9; --chip: #eef2f4;
  --ink: #0b0d0f; --grey: #4f5d68; --dim: #5d6a74; --on-ink: #ffffff;
  --tq: #00b7c7; --tq-text: #00707c;
  --lime: #7ed957; --lime-text: #3f7d24; --lime-bg: #eff9ea;
  --warn: #b36b00; --warn-bg: #fff5e6; --red: #a8433a; --red-bg: #fbeeec;
  --line: rgba(11,13,15,.09); --line-strong: rgba(11,13,15,.18);
  --tq-line: rgba(0,183,199,.45); --tq-line-soft: rgba(0,183,199,.35);
  --tq-ring: rgba(0,183,199,.18); --tq-fade: rgba(0,183,199,.15);
  --lime-line: rgba(126,217,87,.55); --warn-line: rgba(179,107,0,.3);
  --red-line: rgba(168,67,58,.35);
  --glass: rgba(255,255,255,.92); --glass-soft: rgba(255,255,255,.7);
  --overlay: rgba(11,13,15,.38);
  --shadow-callout: 0 30px 80px -40px rgba(0,183,199,.45);
  --shadow-modal: 0 40px 100px -30px rgba(11,13,15,.35);
  --shadow-toast: 0 20px 50px -20px rgba(11,13,15,.5);
  --shadow-drop: 0 24px 48px rgba(11,13,15,.12);
  --font: 'Archivo', Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, monospace;
  --nav-h: 68px; --side-w: 264px; --page-w: 1120px;
  --r-btn: 12px; --r-field: 10px;
}

/* ── Basis ──────────────────────────────────────────────────────── */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: var(--font); }
body { background: var(--bg); color: var(--grey); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; padding-bottom: env(safe-area-inset-bottom); }
a { color: var(--tq-text); text-decoration: none; }
a:hover { text-decoration: underline; }
strong, b { color: var(--ink); font-weight: 600; }
code { background: var(--chip); padding: 1px 6px; border-radius: 4px; font-family: var(--mono); font-size: .88em; color: var(--ink); }
:focus-visible { outline: 2px solid var(--tq); outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ── Rahmen: Kopfzeile ──────────────────────────────────────────── */
.topbar { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 50; height: var(--nav-h); display: flex; align-items: center; gap: 20px; padding: 0 24px 0 32px; background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { display: block; flex: 0 0 auto; }
.brand:hover { text-decoration: none; }
.brand-logo { display: block; height: 26px; width: auto; }
.topbar__doc { font-size: 15px; font-weight: 500; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-left: 20px; border-left: 1px solid var(--line); min-width: 0; }
.topbar__spacer { flex: 1; }
.topbar__tools { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.jump-btn { display: inline-flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px 0 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-btn); color: var(--dim); font: 500 14px var(--font); cursor: pointer; }
.jump-btn:hover { border-color: var(--tq-text); color: var(--ink); }
.jump-btn kbd { font: 600 12px var(--font); background: var(--chip); color: var(--dim); border-radius: 6px; padding: 1px 6px; }
.menu-btn { display: none; background: var(--chip); border: 0; color: var(--ink); border-radius: 14px; padding: 9px 14px; font: 600 15px var(--font); cursor: pointer; }

/* ── Rahmen: Shell und Seitenleiste ─────────────────────────────── */
.shell { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: calc(100vh - var(--nav-h)); }
.side { position: sticky; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); height: calc(100vh - var(--nav-h)); overflow-y: auto; border-right: 1px solid var(--line); background: var(--soft); padding: 28px 18px 36px; display: flex; flex-direction: column; }
.side__label { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; color: var(--tq-text); padding: 0 12px 14px; }
.side__label::before { content: ""; width: 32px; height: 1px; background: var(--tq-text); }
.side nav { display: flex; flex-direction: column; }
.side nav a { display: flex; gap: 14px; align-items: baseline; padding: 9px 12px; border-top: 1px solid var(--line); color: var(--grey); font-size: 15px; font-weight: 500; transition: color 250ms ease, background 250ms ease; }
.side nav a:first-child { border-top: 0; }
.side nav a span { font-variant-numeric: tabular-nums; color: var(--dim); font-weight: 700; min-width: 22px; font-size: 13px; }
.side nav a:hover { color: var(--ink); background: var(--glass-soft); text-decoration: none; }
.side nav a[aria-current="page"] { color: var(--ink); background: var(--bg); box-shadow: inset 3px 0 0 var(--tq); }
.side nav a[aria-current="page"] span { color: var(--tq-text); }
.side nav a .ext { margin-left: auto; font-size: 12px; color: var(--dim); font-weight: 500; }
.side__group { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); padding: 18px 12px 6px; }
.side__group:first-child { padding-top: 0; }
.side__group + a { border-top: 0 !important; }
.side nav .sub-nav { display: flex; flex-direction: column; padding: 2px 0 8px 36px; }
.side nav .sub-nav a { border-top: 0; padding: 5px 10px; font-size: 13.5px; gap: 10px; }
.side nav .sub-nav a span { font-size: 12px; min-width: 18px; font-weight: 600; }
.side nav .sub-nav a[aria-current="page"] { box-shadow: inset 2px 0 0 var(--tq); }
.side__foot { margin-top: auto; padding: 14px 12px 0; border-top: 1px solid var(--line); font-size: 13px; color: var(--dim); line-height: 1.55; }
.side__foot b { color: var(--ink); font-weight: 600; }
.side__foot a { display: inline-block; margin-top: 6px; margin-right: 12px; font-weight: 600; }
.side__spacer { height: 24px; flex: 0 0 auto; }
main.container { padding: 56px 56px 88px; min-width: 0; }
.page { max-width: var(--page-w); }
@media (prefers-reduced-motion: no-preference) {
  .reveal { animation: reveal 500ms ease; }
  @keyframes reveal { from { opacity: .001; transform: translateY(10px); } to { opacity: 1; transform: none; } }
}

/* ── Typografie ─────────────────────────────────────────────────── */
.eyebrow { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: var(--tq-text); margin-bottom: 18px; flex-wrap: wrap; }
.eyebrow::before { content: ""; width: 32px; height: 1px; background: var(--tq-text); }
.eyebrow b { font-weight: 700; color: var(--dim); }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
.page-title { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; line-height: 1.15; letter-spacing: -.02em; margin-bottom: 14px; }
.lead { font-size: 18px; color: var(--grey); max-width: 62ch; margin: 0 0 36px; }
h2.sec { display: flex; align-items: center; gap: 14px; font-size: 15px; font-weight: 600; color: var(--tq-text); margin: 48px 0 18px; letter-spacing: 0; text-transform: none; }
h2.sec::before { content: ""; width: 32px; height: 1px; background: var(--tq-text); flex: 0 0 auto; }
h2.sec:first-child { margin-top: 0; }
h2.sec .sec__more { margin-left: auto; font-size: 14px; font-weight: 600; }
h3 { font-size: 18px; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; margin-bottom: 10px; }
p { max-width: 76ch; }
.muted { color: var(--grey); }
.soft { color: var(--dim); }
.small { font-size: 14px; }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.pos { color: var(--lime-text); }
.neg { color: var(--red); }
.warn-t { color: var(--warn); }

/* ── Karten und Raster ──────────────────────────────────────────── */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.g4 > .card { border: 0 !important; }
.card { background: var(--bg); border: 1px solid var(--line); padding: 26px 26px 28px; min-width: 0; }
.card + .card { margin-top: 16px; }
.grid > .card + .card { margin-top: 0; }
a.card { display: block; color: inherit; transition: background 250ms ease, border-color 250ms ease; }
a.card:hover { text-decoration: none; background: var(--card); border-color: var(--tq-line); }
a.card.kpi, a.card.app { display: flex; }
.callout { background: var(--card); border: 1px solid var(--tq-line); box-shadow: var(--shadow-callout); }

/* Anwendungskarte (Startseite): Icon, Name, ein Satz, optional Zahl */
.app { display: flex; gap: 16px; align-items: flex-start; }
.app__icon { flex: 0 0 auto; width: 24px; height: 24px; color: var(--tq-text); margin-top: 2px; }
.app__icon svg { width: 24px; height: 24px; display: block; }
.app__body { min-width: 0; flex: 1; }
.app__name { display: block; color: var(--ink); font-weight: 700; font-size: 16.5px; line-height: 1.3; }
.app__desc { display: block; font-size: 14px; color: var(--dim); margin-top: 2px; }
.app__count { flex: 0 0 auto; font-size: 13px; font-weight: 700; color: var(--tq-text); font-variant-numeric: tabular-nums; }

/* ── Kennzahlkachel ─────────────────────────────────────────────── */
.kpi { display: flex; flex-direction: column; gap: 4px; color: inherit; min-width: 0; padding: 24px 24px 22px; transition: background 250ms ease; }
a.kpi:hover { text-decoration: none; background: var(--card); }
.kpi .lbl { font-size: 14px; font-weight: 600; color: var(--dim); }
.kpi .val { font-size: 28px; font-weight: 700; letter-spacing: -.02em; color: var(--ink); font-variant-numeric: tabular-nums; line-height: 1.2; overflow-wrap: anywhere; }
.kpi .val .kind { font-size: 12px; font-weight: 600; color: var(--dim); margin-left: 6px; letter-spacing: 0; }
.kpi .val.text { font-size: 18px; letter-spacing: -.01em; line-height: 1.35; }
.kpi .cmp { font-size: 14px; color: var(--grey); font-variant-numeric: tabular-nums; }
.kpi .stand { font-size: 12.5px; color: var(--dim); margin-top: auto; padding-top: 10px; }
.kpi .act { margin-top: auto; padding-top: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.kpi.warn { box-shadow: inset 0 3px 0 var(--warn); }
.kpi.crit { box-shadow: inset 0 3px 0 var(--red); }
.kpi.ok { box-shadow: inset 0 3px 0 var(--lime); }
.kpi.nodata { background: var(--soft); }
.kpi.nodata .val { font-size: 16px; color: var(--dim); font-weight: 600; letter-spacing: 0; }

/* ── Kennzeichen ────────────────────────────────────────────────── */
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--tq-line-soft); border-radius: 999px; padding: 2px 11px; font-size: 12.5px; font-weight: 600; color: var(--tq-text); white-space: nowrap; }
.pill:not(.tq):not(.ok):not(.warn):not(.crit):not(.old) { background: var(--chip); border-color: transparent; color: var(--dim); }
.pill.ok { background: var(--lime-bg); border-color: var(--lime-line); color: var(--lime-text); }
.pill.warn, .pill.old { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.pill.crit { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); flex: 0 0 auto; }
.dot.checked, .dot.on { background: var(--tq); }
.dot.gap { background: var(--warn); }
.dot.live { background: var(--tq); box-shadow: 0 0 0 4px var(--tq-ring); }

/* Chips (Websites und Demos) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: var(--chip); border: 1px solid transparent; border-radius: 999px; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--ink); white-space: nowrap; transition: border-color 250ms ease, background 250ms ease; }
.chip:hover { text-decoration: none; border-color: var(--tq-line); background: var(--card); }

/* ── Kachelraster mit 1-px-Abständen (Werkzeuge) ────────────────── */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.tile { position: relative; display: flex; gap: 12px; align-items: center; min-width: 0; padding: 16px 18px; background: var(--bg); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); color: var(--ink); transition: background 250ms ease; }
a.tile:hover, .tile:hover { text-decoration: none; background: var(--card); }
.tile__icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--tq-text); }
.tile__icon svg { width: 22px; height: 22px; display: block; }
.tile__text { min-width: 0; flex: 1; }
.tile__name { display: block; font-weight: 600; font-size: 15px; line-height: 1.3; }
.tile__desc { display: block; font-size: 13px; color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile__mini { display: flex; gap: 4px; flex: 0 0 auto; }
.tile__act { flex: 0 0 auto; }
.mini { display: inline-flex; align-items: center; justify-content: center; min-width: 28px; height: 26px; padding: 0 6px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--bg); color: var(--dim); font: 700 12px var(--font); font-variant-numeric: tabular-nums; cursor: pointer; }
.mini:hover { border-color: var(--tq-text); color: var(--tq-text); }
.mini.copied { background: var(--tq); border-color: var(--tq); color: var(--ink); }
.mini svg { width: 12px; height: 12px; }

/* ── Tabellen ───────────────────────────────────────────────────── */
.tw { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); background: var(--bg); }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th { text-align: left; font-size: 13.5px; font-weight: 600; color: var(--dim); padding: 12px 16px; border-bottom: 1px solid var(--line-strong); white-space: nowrap; background: var(--soft); vertical-align: bottom; }
td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--grey); }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tr.sum td { color: var(--ink); font-weight: 700; background: var(--soft); }
tr.res td { color: var(--tq-text); font-weight: 800; background: var(--card); }
tr.res td .neg { color: var(--red); }
td.neg, span.neg { color: var(--red); }
th.sticky, td.sticky { position: sticky; left: 0; z-index: 1; background: var(--bg); color: var(--ink); font-weight: 600; }
th.sticky { background: var(--soft); }
tr.sum td.sticky { background: var(--soft); }
tr.res td.sticky { background: var(--card); }
table.dense { font-size: 14px; }
table.dense th, table.dense td { padding: 8px 10px; }

/* ── Listen ─────────────────────────────────────────────────────── */
.list { list-style: none; margin: 0; display: grid; font-size: 15px; }
.list li { position: relative; padding: 10px 0 10px 24px; border-top: 1px solid var(--line); }
.list li:first-child { border-top: 0; padding-top: 2px; }
.list li::before { content: ""; position: absolute; left: 0; top: calc(10px + .8em); width: 12px; height: 1px; background: var(--tq-text); }
.list li:first-child::before { top: calc(2px + .8em); }

/* Linkliste (Dokumente und Wissen): ganze Zeile klickbar */
.linklist { list-style: none; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.linklist li + li { border-top: 1px solid var(--line); }
.linklist a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; align-items: baseline; padding: 12px 4px; color: var(--ink); transition: background 250ms ease; }
.linklist a:hover { text-decoration: none; background: var(--soft); }
.linklist .ll__name { font-weight: 600; }
.linklist .ll__desc { grid-column: 1; font-size: 14px; color: var(--dim); }
.linklist .ll__host { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--tq-text); font-weight: 600; white-space: nowrap; }

/* ── Zeitstrahl ─────────────────────────────────────────────────── */
.tl { position: relative; display: flex; flex-direction: column; gap: 16px; padding-left: 36px; margin-bottom: 16px; }
.tl::before { content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 1px; background: linear-gradient(var(--tq), var(--tq-fade)); }
.tl-item { position: relative; background: var(--bg); border: 1px solid var(--line); padding: 22px 24px; }
.tl-item::before { content: ""; position: absolute; left: -31px; top: 28px; width: 11px; height: 11px; border-radius: 50%; background: var(--bg); border: 1.5px solid var(--tq-text); }
.tl-item.current { background: var(--card); border-color: var(--tq-line); box-shadow: var(--shadow-callout); }
.tl-item.current::before { background: var(--tq); border-color: var(--tq); box-shadow: 0 0 0 6px var(--tq-ring); }
.tl-item .row { margin-bottom: 8px; }

/* ── Formulare und Knöpfe ───────────────────────────────────────── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--r-btn); padding: 0 20px; height: 44px; font: 600 15px var(--font); cursor: pointer; background: var(--tq); color: var(--ink); border: 1px solid transparent; transition: all 250ms ease; white-space: nowrap; text-decoration: none; }
.btn:hover { filter: brightness(1.05); text-decoration: none; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn.secondary { background: var(--bg); color: var(--ink); border-color: var(--line-strong); }
.btn.secondary:hover { border-color: var(--tq-text); color: var(--tq-text); filter: none; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13.5px; border-radius: var(--r-field); }
.btn.danger { background: var(--red-bg); color: var(--red); border-color: var(--red-line); }
.btn.ghost { background: none; border-color: transparent; color: var(--tq-text); padding: 0 8px; }
.btn.ghost:hover { background: var(--soft); filter: none; }
label.f, span.f { display: block; font-size: 13.5px; font-weight: 600; color: var(--dim); margin-bottom: 5px; }
.field { margin-bottom: 14px; min-width: 0; }
input, select, textarea { width: 100%; font-family: inherit; font-size: 15px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-field); padding: 9px 11px; }
input[type="checkbox"], input[type="radio"] { width: auto; accent-color: var(--tq-text); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--tq); box-shadow: 0 0 0 3px var(--tq-ring); }
textarea { min-height: 7rem; resize: vertical; line-height: 1.55; }
input.num { text-align: right; font-variant-numeric: tabular-nums; }
.hint { font-size: 13px; color: var(--dim); margin-top: 4px; }
.form2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }

/* Vorschlagsliste unter einem Eingabefeld (z. B. CRM-Suche) */
.suggest { position: relative; }
.suggest__list { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 20; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-field); box-shadow: var(--shadow-drop); max-height: 16rem; overflow-y: auto; }
.suggest__list button { display: block; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 9px 12px; font: 500 14.5px var(--font); color: var(--ink); cursor: pointer; }
.suggest__list button:first-child { border-top: 0; }
.suggest__list button:hover, .suggest__list button.on { background: var(--card); }
.suggest__list small { display: block; color: var(--dim); font-size: 12.5px; }

/* ── Leerzustand, Hinweise ──────────────────────────────────────── */
.empty { padding: 36px 20px; text-align: center; color: var(--dim); }
.empty .t { color: var(--ink); font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.empty p { margin: 0 auto; }
.notice { padding: 14px 18px; font-size: 15px; background: var(--warn-bg); border: 1px solid var(--warn-line); color: var(--warn); }
.notice.info { background: var(--card); border-color: var(--tq-line); color: var(--ink); }
.notice.error { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }

/* ── Modal und Toast ────────────────────────────────────────────── */
.modal-bg { position: fixed; inset: 0; background: var(--overlay); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal-bg.hidden { display: none; }
.modal { background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-modal); padding: 28px; width: 100%; max-width: 680px; }
.modal h3 { margin-bottom: 14px; }
.modal-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.modal-head h3 { margin: 0; flex: 1; }
.modal-x { background: none; border: 0; color: var(--dim); font-size: 22px; line-height: 1; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.modal-x:hover { background: var(--soft); color: var(--ink); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; padding: 12px 18px; background: var(--ink); color: var(--on-ink); font-size: 15px; border-radius: var(--r-btn); transition: opacity .25s; max-width: calc(100vw - 32px); box-shadow: var(--shadow-toast); }
.toast.error { background: var(--red); }
.toast a { color: var(--on-ink); text-decoration: underline; }
.toast.hidden { opacity: 0; pointer-events: none; display: block !important; }

/* ── Blättern ───────────────────────────────────────────────────── */
.pager { display: flex; justify-content: space-between; gap: 16px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); }
.pager a { flex: 1; max-width: 48%; border: 1px solid var(--line); padding: 16px 20px; background: var(--bg); color: var(--ink); font-weight: 600; font-size: 16px; transition: all 250ms ease; }
.pager a:hover { border-color: var(--tq-line); background: var(--card); text-decoration: none; }
.pager a small { display: block; font-size: 13px; font-weight: 600; color: var(--tq-text); margin-bottom: 2px; }
.pager a.next { text-align: right; margin-left: auto; }

/* ── Sprungleiste (Cmd+K / Strg+K) ──────────────────────────────── */
.jump-bg { position: fixed; inset: 0; background: var(--overlay); z-index: 300; display: flex; align-items: flex-start; justify-content: center; padding: 12vh 16px 16px; }
.jump { width: 100%; max-width: 600px; background: var(--bg); border: 1px solid var(--line); box-shadow: var(--shadow-modal); }
.jump input { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 18px 20px; font-size: 17px; }
.jump input:focus { box-shadow: none; border-bottom-color: var(--tq); }
.jump__list { list-style: none; max-height: 52vh; overflow-y: auto; }
.jump__list li { display: flex; align-items: baseline; gap: 12px; padding: 10px 20px; cursor: pointer; border-top: 1px solid var(--line); color: var(--ink); }
.jump__list li:first-child { border-top: 0; }
.jump__list li.on { background: var(--card); box-shadow: inset 3px 0 0 var(--tq); }
.jump__list .jl__name { font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jump__list .jl__grp { font-size: 12.5px; color: var(--dim); font-weight: 600; white-space: nowrap; }
.jump__foot { padding: 8px 20px; font-size: 12.5px; color: var(--dim); border-top: 1px solid var(--line); background: var(--soft); }
.jump__empty { padding: 18px 20px; color: var(--dim); }

/* ── Hilfe (Knopf und Schublade, gebaut von /assets/help.js) ───── */
.cockpit-help-fab { position: fixed; top: calc(15px + env(safe-area-inset-top, 0px)); right: 24px; z-index: 60; width: 38px; height: 38px; border-radius: 999px; background: var(--chip); color: var(--ink); border: 1px solid var(--line-strong); display: inline-flex; align-items: center; justify-content: center; font: 700 16px var(--font); cursor: pointer; transition: background 250ms ease, color 250ms ease, border-color 250ms ease; }
.cockpit-help-fab:hover { background: var(--card); color: var(--tq-text); border-color: var(--tq-line); }
.topbar__tools .cockpit-help-fab { position: static; }
/* ── Victor: Chat-Leiste (nur mit Freischaltung „victor“) ─────────── */
.victor-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; background: var(--card); border: 1px solid var(--tq-line); border-radius: var(--r-btn); color: var(--tq-text); font: 600 14px var(--font); cursor: pointer; }
.victor-btn:hover { background: var(--bg); border-color: var(--tq-text); }
.victor-btn svg { width: 16px; height: 16px; }
.victor-overlay { position: fixed; inset: 0; z-index: 9000; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .18s; }
.victor-overlay.open { opacity: 1; pointer-events: auto; }
.victor-drawer { position: fixed; top: 0; right: 0; z-index: 9001; height: 100vh; height: 100dvh; width: min(480px, 100vw); background: var(--bg); border-left: 1px solid var(--line); box-shadow: var(--shadow-modal); transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; font-family: var(--font); }
.victor-drawer:not(.open) { box-shadow: none; visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
.victor-drawer.open { transform: translateX(0); }
.vc-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); background: var(--soft); }
.vc-head .vc-title { flex: 1; min-width: 0; }
.vc-head .vc-title b { display: block; font-size: 17px; color: var(--ink); }
.vc-head .vc-title span { font-size: 12.5px; color: var(--dim); }
.vc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--line-strong); margin-right: 6px; vertical-align: 1px; }
.vc-dot.on { background: var(--lime); }
.vc-dot.off { background: var(--red); }
.vc-body { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.vc-empty { color: var(--dim); font-size: 14.5px; text-align: center; margin: auto 10px; line-height: 1.55; }
.vc-msg { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 15px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.vc-msg.user { align-self: flex-end; background: var(--tq); color: var(--ink); border-bottom-right-radius: 4px; }
.vc-msg.assistant { align-self: flex-start; background: var(--soft); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.vc-msg.error { align-self: stretch; background: var(--red-bg); color: var(--red); border: 1px solid var(--red-line); max-width: none; }
.vc-msg.typing::after { content: "▍"; animation: vc-blink 1s steps(2) infinite; color: var(--tq-text); }
@keyframes vc-blink { 50% { opacity: 0; } }
.vc-tool { align-self: flex-start; font-size: 12.5px; color: var(--dim); display: flex; align-items: center; gap: 6px; }
.vc-tool .spinner { width: 12px; height: 12px; }
.vc-approval { align-self: stretch; border: 1px solid var(--warn-line); background: var(--warn-bg); padding: 12px 14px; border-radius: 12px; font-size: 14px; color: var(--ink); }
.vc-approval b { display: block; color: var(--warn); margin-bottom: 4px; }
.vc-approval code { display: block; margin-top: 6px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: 8px; font: 12.5px var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; max-height: 9rem; overflow-y: auto; }
.vc-approval .row { margin-top: 10px; gap: 8px; }
.vc-foot { border-top: 1px solid var(--line); padding: 12px 14px calc(12px + env(safe-area-inset-bottom)); display: flex; gap: 8px; align-items: flex-end; }
.vc-foot textarea { min-height: 44px; max-height: 10rem; resize: none; flex: 1; font-size: 15px; }
.vc-foot .btn { height: 44px; }
@media (max-width: 560px) { .victor-btn .vb__label { display: none; } .victor-btn { padding: 0 10px; } }

.cockpit-help-overlay { position: fixed; inset: 0; z-index: 9100; background: var(--overlay); opacity: 0; pointer-events: none; transition: opacity .18s; }
.cockpit-help-overlay.open { opacity: 1; pointer-events: auto; }
.cockpit-help-drawer { position: fixed; top: 0; right: 0; z-index: 9101; height: 100vh; width: min(440px, 100vw); background: var(--bg); color: var(--grey); border-left: 1px solid var(--line); box-shadow: var(--shadow-modal); transform: translateX(100%); transition: transform .22s ease; display: flex; flex-direction: column; font-family: var(--font); }
.cockpit-help-drawer:not(.open) { box-shadow: none; visibility: hidden; transition: transform .22s ease, visibility 0s linear .22s; }
.cockpit-help-drawer.open { transform: translateX(0); }
.cockpit-help-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; padding: 20px 22px 14px; border-bottom: 1px solid var(--line); background: var(--soft); }
.cockpit-help-eyebrow { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--tq-text); }
.cockpit-help-eyebrow::before { content: ""; width: 24px; height: 1px; background: var(--tq-text); }
.cockpit-help-title { font-size: 18px; font-weight: 700; margin-top: 4px; color: var(--ink); }
.cockpit-help-close { width: 32px; height: 32px; border-radius: 8px; border: 0; background: transparent; color: var(--dim); cursor: pointer; font-size: 20px; }
.cockpit-help-close:hover { background: var(--chip); color: var(--ink); }
.cockpit-help-body { padding: 18px 22px 32px; overflow-y: auto; flex: 1; font-size: 15px; line-height: 1.6; }
.cockpit-help-body h2 { font-size: 16px; color: var(--ink); margin: 22px 0 6px; }
.cockpit-help-body h2:first-child { margin-top: 0; }
.cockpit-help-body h3 { font-size: 15px; color: var(--ink); margin: 16px 0 4px; }
.cockpit-help-body h4 { font-size: 12px; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; margin: 14px 0 4px; }
.cockpit-help-body p { margin: 8px 0; }
.cockpit-help-body ul, .cockpit-help-body ol { margin: 8px 0 10px; padding-left: 20px; }
.cockpit-help-body li { margin: 3px 0; }
.cockpit-help-body pre { background: var(--soft); border: 1px solid var(--line); padding: 10px; overflow-x: auto; font-size: 13px; margin: 10px 0; }
.cockpit-help-body a { text-decoration: underline; }
.cockpit-help-err { color: var(--red); }

/* ── Ergänzt mit dem Modul Aufgaben (2026-09-29) ──────────────── */
/* Reiter: Ansichten einer Seite, aktiv mit Türkis-Unterstrich */
.tabs { display: flex; flex-wrap: wrap; gap: 0; border-bottom: 1px solid var(--line); }
.tab { background: none; border: 0; padding: 10px 16px; font: 600 15px var(--font); color: var(--dim); cursor: pointer; box-shadow: inset 0 -2px 0 transparent; transition: color 250ms ease, box-shadow 250ms ease; }
.tab:hover { color: var(--ink); }
.tab.active, .tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--tq); }

/* Kompaktes Kennzahlband: so viele Kacheln wie da sind, 1-px-Abstände */
.gk { grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.gk > .card { border: 0 !important; }
.kpi.sm { padding: 14px 16px 12px; gap: 2px; }
.kpi.sm .lbl { font-size: 13px; }
.kpi.sm .val { font-size: 22px; }
.kpi.sm .val.text { font-size: 16px; }

/* Chips als Umschalter (Filter, Auswahl) */
button.chip { font: 600 14px var(--font); cursor: pointer; }
.chip.on { background: var(--card); border-color: var(--tq-line); color: var(--tq-text); }
.chip.sm { padding: 3px 10px; font-size: 13px; }

/* Fortschrittsbalken */
.meter { height: 6px; background: var(--chip); border-radius: 999px; overflow: hidden; }
.meter > i { display: block; height: 100%; width: 0; background: var(--tq); border-radius: 999px; transition: width 600ms ease; }
.meter.ok > i { background: var(--lime); }

/* Symbolknopf (Bearbeiten, Entfernen, Termin) */
.ibtn { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-width: 30px; height: 30px; padding: 0 6px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--dim); font: 600 15px var(--font); line-height: 1; cursor: pointer; transition: color 250ms ease, background 250ms ease, border-color 250ms ease; }
.ibtn:hover { background: var(--soft); border-color: var(--line-strong); color: var(--ink); }
.ibtn.danger:hover { background: var(--red-bg); border-color: var(--red-line); color: var(--red); }
.ibtn svg { width: 15px; height: 15px; }

/* Ladeanzeige */
.spinner { display: inline-block; width: 16px; height: 16px; vertical-align: -3px; margin-right: 8px; border: 2px solid var(--line-strong); border-top-color: var(--tq); border-radius: 50%; animation: cockpit-spin .8s linear infinite; }
@keyframes cockpit-spin { to { transform: rotate(360deg); } }

/* ── Ergänzt mit dem Modul Forschung (2026-09-29) ─────────────── */
/* Öffentlicher Rahmen (body data-shell="public", z. B. Freigabe-Link für
   externe Prüfer): Kopfzeile nur mit Logo und Titel, keine Seitenleiste. */
.shell.shell--public { grid-template-columns: minmax(0, 1fr); }
.topbar--public .brand { cursor: default; }

/* ── Ergänzt mit dem Modul Bewirtung (2026-09-29) ─────────────── */
/* Schrittanzeige eines Assistenten: aktiv Türkis, erledigt Lime.
   Das Skript schaltet .active und .done an den li. */
.steps { list-style: none; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); margin-bottom: 28px; }
.steps > li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 12px 16px; background: var(--bg); color: var(--dim); font-size: 14px; font-weight: 600; transition: background 250ms ease, color 250ms ease; }
.steps .n { flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--chip); color: var(--dim); font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.steps .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.steps > li.active { background: var(--card); color: var(--ink); box-shadow: inset 0 -2px 0 var(--tq); }
.steps > li.active .n { background: var(--tq); color: var(--ink); }
.steps > li.done { color: var(--lime-text); }
.steps > li.done .n { background: var(--lime); color: var(--ink); }

/* Auswahlkarten (Radio als Karte), gewählt mit Türkis-Rahmen */
.choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.choice { position: relative; display: block; min-width: 0; padding: 14px 16px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-field); cursor: pointer; transition: border-color 250ms ease, background 250ms ease; }
.choice:hover { border-color: var(--tq-text); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice.selected, .choice:has(input:checked) { background: var(--card); border-color: var(--tq); box-shadow: 0 0 0 3px var(--tq-ring); }
.choice:has(input:focus-visible) { outline: 2px solid var(--tq); outline-offset: 2px; }
.choice__kicker { display: block; font-size: 13.5px; font-weight: 700; color: var(--tq-text); font-variant-numeric: tabular-nums; }
.choice__title { display: block; font-weight: 600; color: var(--ink); line-height: 1.4; }
.choice__desc { display: block; font-size: 13.5px; color: var(--dim); margin-top: 2px; line-height: 1.45; }

/* Ablagefläche für Dateien (Ziehen und Ablegen), .drag beim Darüberziehen */
.drop { border: 1.5px dashed var(--line-strong); border-radius: var(--r-btn); padding: 32px 20px; text-align: center; background: var(--soft); transition: border-color 250ms ease, background 250ms ease; }
.drop:hover, .drop.drag { border-color: var(--tq); background: var(--card); }
.drop__icon { display: block; width: 30px; height: 30px; margin: 0 auto 8px; color: var(--tq-text); }
.drop__title { color: var(--ink); font-size: 17px; font-weight: 700; }
.drop p { margin: 2px auto 0; font-size: 14px; color: var(--dim); }
.drop .row { justify-content: center; margin-top: 16px; }

/* Angaben als Liste Bezeichnung und Wert (Zusammenfassung vor dem Abschluss) */
dl.facts { display: grid; grid-template-columns: minmax(7rem, max-content) minmax(0, 1fr); border-top: 1px solid var(--line); font-size: 15px; }
dl.facts dt { padding: 10px 20px 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--dim); }
dl.facts dd { min-width: 0; padding: 10px 0; border-bottom: 1px solid var(--line); color: var(--grey); overflow-wrap: anywhere; }

@media (max-width: 640px) {
  .steps > li { flex-direction: column; gap: 4px; padding: 10px 4px; font-size: 12.5px; text-align: center; }
  .steps .lbl { max-width: 100%; }
  .choices { grid-template-columns: minmax(0, 1fr); }
  dl.facts { grid-template-columns: minmax(0, 1fr); }
  dl.facts dt { padding: 10px 0 0; border-bottom: 0; }
  dl.facts dd { padding-top: 2px; }
}

/* ── Ergänzt mit dem Modul Transkript (2026-09-29) ────────────── */
/* Gesprächsverlauf (Transkript): je Beitrag ein Block mit Sprecher und
   Zeitmarke, Sprecherwechsel durch Haarlinie abgesetzt, Zeilenlänge begrenzt. */
.transcript { max-width: 72ch; }
.transcript__turn { padding: 14px 0; border-top: 1px solid var(--line); }
.transcript__turn:first-child { border-top: 0; padding-top: 0; }
.transcript__head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 4px; }
.transcript__spk { font-size: 14.5px; font-weight: 700; color: var(--tq-text); }
.transcript__ts { font-size: 13px; font-weight: 600; color: var(--dim); font-variant-numeric: tabular-nums; }
.transcript__text { margin: 0; font-size: 16px; line-height: 1.7; color: var(--grey); overflow-wrap: anywhere; }
/* ── Ergänzt mit dem Modul Abnahme (2026-09-29) ───────────────── */
/* Abhakliste (z. B. Abnahmekriterien): Kästchen je Punkt; erfüllt mit
   Lime und Haken, für die ganze Liste (.done) oder je Punkt (li.done). */
ul.checklist { list-style: none; margin: 0; display: grid; font-size: 15px; }
ul.checklist li { position: relative; padding: 9px 0 9px 30px; border-top: 1px solid var(--line); line-height: 1.5; color: var(--ink); }
ul.checklist li:first-child { border-top: 0; padding-top: 2px; }
ul.checklist li::before { content: ""; position: absolute; left: 0; top: 12px; width: 17px; height: 17px; border: 1.5px solid var(--line-strong); border-radius: 5px; background: var(--bg); }
ul.checklist li:first-child::before { top: 5px; }
ul.checklist.done li::before, ul.checklist li.done::before { background: var(--lime); border-color: var(--lime); }
ul.checklist.done li::after, ul.checklist li.done::after { content: ""; position: absolute; left: 6px; top: 14px; width: 5px; height: 9px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
ul.checklist.done li:first-child::after, ul.checklist li.done:first-child::after { top: 7px; }

/* Datei-Link zum Herunterladen: Symbol, Name, Metazeile (Größe, Person, Zeit) */
a.filelink { display: inline-flex; align-items: center; gap: 12px; max-width: 100%; padding: 10px 14px; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--r-field); color: var(--ink); transition: border-color 250ms ease, background 250ms ease; }
a.filelink:hover { text-decoration: none; border-color: var(--tq-line); background: var(--card); }
.filelink__icon { flex: 0 0 auto; width: 22px; height: 22px; color: var(--tq-text); }
.filelink__body { min-width: 0; }
.filelink__name { display: block; font-size: 14.5px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.filelink__meta { display: block; font-size: 12.5px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* ── Ergänzt mit dem Modul Webspace (2026-09-29) ──────────────── */
/* Erfolgsmeldung (z. B. nach dem Veröffentlichen): Lime wie „gut, erledigt“ */
.notice.ok { background: var(--lime-bg); border-color: var(--lime-line); color: var(--lime-text); }
.notice.ok strong { color: var(--lime-text); }

/* Kopierzeile: Adresse in einer Zeile (eigener Scroll), daneben Knöpfe */
.copyline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.copyline code { flex: 1 1 18rem; min-width: 0; display: block; overflow-x: auto; white-space: nowrap; padding: 7px 10px; background: var(--soft); border: 1px solid var(--line); border-radius: var(--r-field); font-size: 13px; color: var(--tq-text); }

/* ── Ergänzt mit dem Modul Maps (2026-09-29) ──────────────────── */
/* Diagrammfläche (z. B. mermaid-SVG): große Diagramme scrollen in der
   Fläche statt die Seite zu verbreitern. Originalbreite per
   --diagram-w (vom Skript aus der viewBox gesetzt), .fit passt in die Breite. */
.diagram-canvas { overflow: auto; -webkit-overflow-scrolling: touch; min-height: 120px; max-width: 100%; padding: 16px; background: var(--bg); border: 1px solid var(--line); }
.diagram-canvas svg { display: block; margin: 0 auto; height: auto; width: var(--diagram-w, 100%); max-width: none !important; }
.diagram-canvas.fit svg { width: 100%; max-width: 100% !important; }

/* Aufklapper (details/summary), z. B. Legende unter einem Diagramm */
details.fold > summary { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; font-size: 13.5px; font-weight: 600; color: var(--dim); padding: 4px 0; user-select: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-45deg); transition: transform 250ms ease; }
details.fold[open] > summary::before { transform: rotate(45deg); }
details.fold > summary:hover { color: var(--ink); }
details.fold pre { margin-top: 8px; padding: 12px 14px; background: var(--soft); border: 1px solid var(--line); font-family: var(--mono); font-size: 12.5px; line-height: 1.55; color: var(--grey); white-space: pre-wrap; overflow-wrap: anywhere; }

/* ── Ergänzt mit dem Leitstand (2026-09-29) ───────────────────── */
/* Zusatzfarben: Violett für Vorschläge (Pille .prop im Leitstand),
   Bernstein als Diagrammfarbe („ohne Finanzierung“). Nur hier ergänzt,
   der Token-Block oben bleibt unverändert. */
:root {
  --purple: #6b4fbb; --purple-bg: #f0eef8; --purple-line: rgba(107,79,187,.3);
  --amber: #d98a00;
}

/* ── Icons in Seitenleiste und Sprungleiste (2026-09-29) ─────── */
.nav-ic { display: inline-flex; flex: 0 0 auto; width: 18px; height: 18px; color: var(--dim); font-style: normal; }
.nav-ic svg { width: 18px; height: 18px; display: block; }
.side nav a:has(.nav-ic) { align-items: center; gap: 12px; }
.side nav a[aria-current="page"] .nav-ic, .side nav a:hover .nav-ic { color: var(--tq-text); }
.jump__list li { align-items: center; }
.jump__list li .nav-ic { color: var(--tq-text); }

/* ── Responsiv ──────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .g4, .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-block; }
  .side { position: fixed; left: 0; right: 0; top: calc(var(--nav-h) + env(safe-area-inset-top, 0px)); height: auto; max-height: calc(100vh - var(--nav-h)); z-index: 40; border-right: 0; border-bottom: 1px solid var(--line-strong); box-shadow: var(--shadow-drop); }
  .side:not(.open) { display: none; }
  .topbar__doc { display: none; }
  .topbar { padding: 0 16px 0 20px; }
  .jump-btn .jb__label, .jump-btn kbd { display: none; }
  .jump-btn { padding: 0 10px; }
  main.container { padding: 36px 20px 64px; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  main.container { padding: 28px 16px 56px; }
  .topbar { padding: 0 12px 0 16px; gap: 10px; }
  .brand-logo { height: 21px; }
  .g3, .g4, .tiles { grid-template-columns: minmax(0, 1fr); }
  .form2 { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 22px 18px; }
  .pager { flex-direction: column; } .pager a { max-width: none; }
  .lead { font-size: 16.5px; margin-bottom: 28px; }
  .modal { padding: 22px 18px; }
  .linklist .ll__host { display: none; }
  .cockpit-help-drawer { top: auto; bottom: 0; left: 0; right: 0; width: 100%; height: 85vh; transform: translateY(100%); border-left: 0; border-top: 1px solid var(--line); }
  .cockpit-help-drawer.open { transform: translateY(0); }
}

/* ── Druck ──────────────────────────────────────────────────────── */
@media print {
  .topbar, .side, .cockpit-help-fab, .no-print, .menu-btn, .jump-bg { display: none !important; }
  .toast, .modal-bg { display: none !important; }
  .shell { display: block; }
  main.container { padding: 0; }
  body { font-size: 11pt; }
  .card, .tw, .tl-item, .kpi { break-inside: avoid; box-shadow: none; }
  .callout { box-shadow: none; }
  a { color: var(--ink); }
}
