/*
 * Finanztool – Designsystem
 * Ohne JavaScript, ohne externe Schriften/CDNs (strikte CSP). Alle Farben als Tokens, Dark Mode über
 * prefers-color-scheme. Statusfarben werden nie allein verwendet: Text/Label trägt immer die Bedeutung.
 */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light;
  --bg: #f4f6f9;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef2f7;
  --border: #e3e8ef;
  --border-strong: #cdd5df;
  --text: #0f1729;
  --text-2: #475467;
  --text-3: #667085;
  --primary: #2459d6;
  --primary-hover: #1c49b8;
  --primary-soft: #eaf0fe;
  --primary-text: #1d4ed8;
  --on-primary: #ffffff;
  --ok: #067647;      --ok-bg: #e7f8ef;      --ok-border: #abefc6;
  --warn: #a14e06;    --warn-bg: #fff6e5;    --warn-border: #fedf89;
  --danger: #b42318;  --danger-bg: #fef1f0;  --danger-border: #fecdca;
  --info: #175cd3;    --info-bg: #eef4ff;    --info-border: #c7d7fe;
  --accent: #6941c6;  --accent-bg: #f4f0ff;
  --chart-1: #2a78d6;
  --chart-track: #edf1f6;
  --sidebar-bg: #0b1426;
  --sidebar-2: #13203a;
  --sidebar-text: #b8c2d6;
  --sidebar-strong: #ffffff;
  --sidebar-muted: #6f7d99;
  --focus: #f5b301;
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(16, 24, 40, .05);
  --shadow: 0 1px 3px rgba(16, 24, 40, .06), 0 1px 2px rgba(16, 24, 40, .04);
  --shadow-lg: 0 12px 32px -8px rgba(16, 24, 40, .18);
  --sidebar-w: 248px;
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --bg: #0b1120;
    --surface: #111a2c;
    --surface-2: #142036;
    --surface-3: #1a2740;
    --border: #23314d;
    --border-strong: #31415f;
    --text: #e8edf6;
    --text-2: #b3bdd1;
    --text-3: #8592ab;
    --primary: #4d7cf0;
    --primary-hover: #6a92f4;
    --primary-soft: #1a2b52;
    --primary-text: #8fb0ff;
    --ok: #4ad295;      --ok-bg: #0f2e22;      --ok-border: #1d5a40;
    --warn: #f5b84a;    --warn-bg: #33250b;    --warn-border: #6b4c12;
    --danger: #ff8a80;  --danger-bg: #3a1513;  --danger-border: #6e2621;
    --info: #8fb0ff;    --info-bg: #15244a;    --info-border: #2b4385;
    --accent: #b9a3ff;  --accent-bg: #261d47;
    --chart-1: #3987e5;
    --chart-track: #1d2a44;
    --sidebar-bg: #070d19;
    --sidebar-2: #101a2e;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 3px rgba(0, 0, 0, .35);
    --shadow-lg: 0 16px 40px -8px rgba(0, 0, 0, .6);
  }
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; line-height: 1.5; background: var(--bg); color: var(--text); }
a { color: var(--primary-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.25; letter-spacing: -.01em; }
h1 { font-size: 1.6rem; font-weight: 700; margin: 0; }
h2 { font-size: 1.02rem; font-weight: 650; margin: 0 0 .75rem; }
h3 { font-size: .95rem; font-weight: 650; margin: 1rem 0 .5rem; }
p { margin: .4rem 0; }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: .85em; background: var(--surface-3); padding: .05rem .3rem; border-radius: 4px; }
small { font-size: .82rem; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1rem 0; }
.icon { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 1rem; top: 1rem; background: var(--surface); color: var(--text); padding: .6rem 1rem; z-index: 100; border-radius: var(--radius-sm); box-shadow: var(--shadow-lg); }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.muted, .hint { color: var(--text-3); font-size: .88rem; }
.hint { margin: .25rem 0 .75rem; }
.num, td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }

/* ---------- App-Shell ---------- */
.shell { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh;
  background: linear-gradient(90deg, var(--sidebar-2) var(--sidebar-w), var(--bg) var(--sidebar-w)); }
.sidebar {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; gap: 1.25rem;
  background: linear-gradient(180deg, var(--sidebar-bg) 0%, var(--sidebar-2) 100%);
  color: var(--sidebar-text); padding: 1.1rem .85rem;
}
.brand { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; padding: 0 .4rem; }
.logo { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 9px; color: #fff;
  background: linear-gradient(135deg, #3b6cf0, #6941c6); box-shadow: 0 4px 12px -2px rgba(59, 108, 240, .55); }
.logo .icon { width: 1.15rem; height: 1.15rem; }
.brand-name { font-weight: 750; font-size: 1.05rem; letter-spacing: -.01em; color: var(--sidebar-strong); }
.badge-synthetic { font-size: .66rem; font-weight: 650; letter-spacing: .02em; background: #fcd34d; color: #3b2a00; padding: .1rem .45rem; border-radius: 999px; }
.badge-pilot { background: #bfdbfe; color: #0b2a5b; }
.sidebar nav { display: flex; flex-direction: column; gap: 1rem; flex: 1; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { display: block; font-size: .68rem; font-weight: 650; text-transform: uppercase; letter-spacing: .08em; color: var(--sidebar-muted); padding: 0 .65rem .3rem; }
.nav-link { display: flex; align-items: center; gap: .7rem; padding: .5rem .65rem; border-radius: 8px; color: var(--sidebar-text); font-weight: 500; font-size: .93rem; transition: background .12s, color .12s; }
.nav-link .icon { width: 1.15rem; height: 1.15rem; opacity: .85; }
.nav-link:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.nav-link[aria-current="page"] { background: rgba(77, 124, 240, .2); color: #fff; box-shadow: inset 3px 0 0 #6b93ff; }
.nav-link[aria-current="page"] .icon { opacity: 1; color: #9db8ff; }
.tenant-card { display: flex; gap: .6rem; align-items: center; padding: .7rem; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); }
.tenant-card .nav-label { padding: 0; }
.tenant-icon { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 8px; background: rgba(255, 255, 255, .08); color: #fff; flex: none; }
.tenant-text { display: flex; flex-direction: column; min-width: 0; }
.tenant-name { color: #fff; font-size: .85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }

.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 1rem;
  padding: .65rem 1.75rem; background: color-mix(in srgb, var(--surface) 88%, transparent);
  backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border);
}
.search { position: relative; flex: 1; max-width: 34rem; }
.search .icon { position: absolute; left: .75rem; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; }
.search input { width: 100%; padding: .55rem .8rem .55rem 2.35rem; border-radius: 999px; border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: .92rem; transition: border-color .12s, box-shadow .12s, background .12s; }
.search input:focus { outline: none; border-color: var(--primary); background: var(--surface); box-shadow: 0 0 0 4px var(--primary-soft); }
.who { margin-left: auto; display: flex; align-items: center; gap: .5rem; }
.who-link { display: flex; align-items: center; gap: .6rem; padding: .25rem .6rem .25rem .3rem; border-radius: 999px; color: var(--text); }
.who-link:hover { background: var(--surface-3); text-decoration: none; }
.who-text { display: flex; flex-direction: column; line-height: 1.2; }
.who-name { font-weight: 600; font-size: .88rem; }
.who-role { font-size: .75rem; color: var(--text-3); }
main { padding: 1.75rem; width: 100%; max-width: 1320px; margin: 0 auto; flex: 1; }
main.wide { max-width: none; }
footer { padding: 1.25rem 1.75rem 1.75rem; color: var(--text-3); font-size: .78rem; text-align: center; }

/* ---------- Seitenkopf ---------- */
.page-head { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; justify-content: space-between; margin-bottom: 1.5rem; }
.page-title { min-width: 0; }
.page-head h1 { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.subtitle { color: var(--text-2); margin: .3rem 0 0; }
.back { display: inline-flex; align-items: center; gap: .35rem; font-size: .85rem; color: var(--text-3); margin-bottom: .5rem; }
.back:hover { color: var(--primary-text); }
.actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
main > h1 { margin-bottom: 1.25rem; }

/* ---------- Buttons ---------- */
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  background: var(--primary); color: var(--on-primary); border: 1px solid transparent; border-radius: 8px;
  padding: .55rem 1rem; font: inherit; font-size: .9rem; font-weight: 600; line-height: 1.2; cursor: pointer;
  text-decoration: none; box-shadow: var(--shadow-sm); transition: background .12s, border-color .12s, box-shadow .12s, transform .05s;
}
button:hover, .button:hover { background: var(--primary-hover); text-decoration: none; }
button:active, .button:active { transform: translateY(1px); }
button.secondary, .button.secondary { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
button.secondary:hover, .button.secondary:hover { background: var(--surface-3); }
button.primary, .button.primary { background: var(--ok); color: #fff; }
button.primary:hover { background: color-mix(in srgb, var(--ok) 85%, #000); }
button.danger, .button.danger { background: var(--danger); color: #fff; }
button.ghost, .button.ghost { background: transparent; color: var(--text-2); border-color: transparent; box-shadow: none; }
button.ghost:hover, .button.ghost:hover { background: var(--surface-3); color: var(--text); }
button.link { background: none; color: var(--primary-text); text-decoration: underline; padding: 0; box-shadow: none; border: 0; font-weight: 500; }
button .icon, .button .icon { width: 1rem; height: 1rem; }
form.inline { display: inline; }

/* ---------- Panels & Karten ---------- */
.panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.35rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.panel > h2:first-child { margin-top: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .9rem; }
.panel-head h2 { display: flex; align-items: center; gap: .5rem; margin: 0; }
.panel-head h2 .icon { color: var(--text-3); }
.panel-head a { font-size: .85rem; font-weight: 500; }
.panel.flush { padding: 0; overflow: hidden; }
.panel.flush .panel-head { padding: 1.1rem 1.35rem 0; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 1.5rem; height: 1.35rem; padding: 0 .45rem; border-radius: 999px; background: var(--surface-3); color: var(--text-2); font-size: .74rem; font-weight: 650; font-variant-numeric: tabular-nums; }

/* ---------- Tags / Pills ---------- */
.tag { display: inline-flex; align-items: center; gap: .3rem; font-size: .74rem; font-weight: 600; line-height: 1.5; padding: .05rem .55rem; border-radius: 999px; background: var(--surface-3); color: var(--text-2); vertical-align: middle; white-space: nowrap; border: 1px solid transparent; }
.tag::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: currentColor; opacity: .75; }
.tag.ok { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-border); }
.tag.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-border); }
.tag.danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.tag.info { background: var(--info-bg); color: var(--info); border-color: var(--info-border); }
.tag.accent { background: var(--accent-bg); color: var(--accent); }
h1 .tag { font-size: .8rem; }

/* ---------- Meldungen ---------- */
.flash, .warning, .error-summary, .info-box { display: flex; gap: .65rem; align-items: flex-start; padding: .8rem 1rem; border-radius: var(--radius); border: 1px solid; margin: 0 0 1.1rem; font-size: .92rem; }
.flash .icon, .warning .icon, .error-summary > .icon, .info-box .icon { width: 1.2rem; height: 1.2rem; margin-top: .05rem; }
.flash { background: var(--ok-bg); color: var(--ok); border-color: var(--ok-border); }
.warning { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-border); }
.warning ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.warning p { margin: 0; }
.info-box { background: var(--info-bg); color: var(--info); border-color: var(--info-border); }
.error-summary { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-border); }
.error-summary ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.panel p.flash, .panel p.warning { margin-bottom: .9rem; }

/* ---------- Formulare ---------- */
.field { display: flex; flex-direction: column; gap: .3rem; margin-bottom: .9rem; min-width: 0; }
.field > label, .inline-form label, fieldset legend { font-size: .85rem; font-weight: 600; color: var(--text-2); }
.field small { color: var(--text-3); font-size: .78rem; }
.field.checkbox { flex-direction: row; align-items: center; gap: .55rem; flex-wrap: wrap; }
.field.checkbox label { font-weight: 500; color: var(--text); }
input, select, textarea { font: inherit; color: var(--text); }
.field input, .field select, .field textarea, .inline-form input, .inline-form select, .table-form select, .table-form input:not([type="checkbox"]) {
  width: 100%; padding: .55rem .7rem; border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface);
  font-size: .93rem; transition: border-color .12s, box-shadow .12s; box-shadow: var(--shadow-sm);
}
.inline-form input, .inline-form select { width: auto; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus, .inline-form input:focus, .inline-form select:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft);
}
input[type="checkbox"] { width: 1.05rem; height: 1.05rem; accent-color: var(--primary); }
textarea { resize: vertical; min-height: 5.5rem; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); box-shadow: 0 0 0 3px var(--danger-bg); }
.field-error { color: var(--danger); font-size: .82rem; font-weight: 500; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); margin: 0 0 1rem; padding: .9rem 1rem .2rem; background: var(--surface-2); }
fieldset legend { padding: 0 .4rem; }
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 0 1rem; }
.inline-form { display: flex; flex-wrap: wrap; gap: .5rem .6rem; align-items: center; margin-top: .6rem; }
.form-actions, form > button[type="submit"] { margin-top: .4rem; }
form > a { margin-left: .75rem; font-size: .9rem; }
details { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: .1rem .9rem; margin-top: 1rem; background: var(--surface-2); }
details[open] { border-style: solid; padding-bottom: .9rem; background: var(--surface); }
details summary { cursor: pointer; font-weight: 600; font-size: .9rem; padding: .6rem 0; color: var(--primary-text); list-style: none; display: flex; align-items: center; gap: .45rem; }
details summary::-webkit-details-marker { display: none; }
details summary::before { content: "+"; display: inline-grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 6px; background: var(--primary-soft); font-weight: 700; line-height: 1; }
details[open] summary::before { content: "–"; }
details[open] summary { margin-bottom: .4rem; border-bottom: 1px solid var(--border); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; margin: 0 -1.35rem; padding: 0 1.35rem; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .9rem; }
main > table, .page-table { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-sm); }
th, td { text-align: left; padding: .7rem .85rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
th { font-size: .74rem; font-weight: 650; text-transform: uppercase; letter-spacing: .04em; color: var(--text-3); background: var(--surface-2); white-space: nowrap; }
tbody tr { transition: background .1s; }
tbody tr:hover { background: var(--surface-2); }
tbody tr:last-child td { border-bottom: 0; }
tfoot th, tfoot td { background: var(--surface-2); color: var(--text); font-size: .88rem; text-transform: none; letter-spacing: 0; border-top: 1px solid var(--border-strong); border-bottom: 0; }
tr.muted td { opacity: .6; }
td small { color: var(--text-3); }
.panel table th:first-child, .panel table td:first-child { padding-left: .3rem; }
.panel table th { background: transparent; }
.panel table tfoot th { background: transparent; }
.cell-main { display: flex; align-items: center; gap: .7rem; }
.cell-main a { font-weight: 600; color: var(--text); }
.cell-main a:hover { color: var(--primary-text); }
.cell-sub { display: block; font-size: .8rem; color: var(--text-3); }
table.compact td { padding: .3rem .4rem; }
.diff { margin: 0; padding: 0; list-style: none; font-size: .82rem; display: grid; gap: .2rem; }
.diff li { overflow-wrap: anywhere; }
.diff code { background: none; padding: 0; font-family: inherit; font-size: inherit; color: var(--text-3); }
.diff code::after { content: " "; }
.history td:first-child { white-space: nowrap; color: var(--text-2); }

/* ---------- Avatare ---------- */
.avatar { display: inline-grid; place-items: center; flex: none; border-radius: 50%; font-weight: 700; letter-spacing: .02em; color: #fff; }
.avatar.sm { width: 2rem; height: 2rem; font-size: .72rem; }
.avatar.md { width: 2.4rem; height: 2.4rem; font-size: .82rem; }
.avatar.lg { width: 4rem; height: 4rem; font-size: 1.3rem; border-radius: 18px; }
.hue-0 { background: linear-gradient(135deg, #3b6cf0, #2448b8); }
.hue-1 { background: linear-gradient(135deg, #0ea5a4, #0b7a79); }
.hue-2 { background: linear-gradient(135deg, #8b5cf6, #6d3fd8); }
.hue-3 { background: linear-gradient(135deg, #e0782f, #b85818); }
.hue-4 { background: linear-gradient(135deg, #db4f7a, #b0325b); }
.hue-5 { background: linear-gradient(135deg, #4b8b3b, #326b25); }

/* ---------- Kennzahlen ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(13.5rem, 1fr)); gap: 1rem; margin: 0 0 1.5rem; padding: 0; list-style: none; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.2rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; gap: .35rem; position: relative; overflow: hidden; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; color: var(--text-2); font-size: .85rem; font-weight: 550; }
.kpi-icon { display: inline-grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 10px; background: var(--primary-soft); color: var(--primary-text); }
.kpi-icon.ok { background: var(--ok-bg); color: var(--ok); }
.kpi-icon.warn { background: var(--warn-bg); color: var(--warn); }
.kpi-icon.accent { background: var(--accent-bg); color: var(--accent); }
.kpi-value { font-size: 1.7rem; font-weight: 750; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.15; color: var(--text); }
.kpi-sub { font-size: .8rem; color: var(--text-3); }
.kpi-sub.warn { color: var(--warn); font-weight: 600; }
.kpis > li { display: flex; }
.kpis > li > .kpi { flex: 1; }
a.kpi { color: inherit; transition: border-color .12s, box-shadow .12s, transform .12s; }
a.kpi:hover { text-decoration: none; border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-1px); }
/* Altes Kennzahlen-Layout (Kompatibilität) */
.stats { display: flex; flex-wrap: wrap; gap: 1rem; list-style: none; padding: 0; margin: 0; }
.stats .n { font-size: 1.4rem; font-weight: 700; display: block; }

/* ---------- Dashboard ---------- */
.dash-grid { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.dash-grid > div > .panel:last-child { margin-bottom: 0; }
.greeting { color: var(--text-2); margin: .3rem 0 0; }
.quick { display: flex; flex-wrap: wrap; gap: .5rem; }
.bars { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .7rem; }
.bar-row { display: grid; grid-template-columns: minmax(7.5rem, 11rem) minmax(0, 1fr) auto; gap: .8rem; align-items: center; font-size: .88rem; }
.bar-row a, .bar-row .bar-label { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-row .bar-value { font-variant-numeric: tabular-nums; font-weight: 650; text-align: right; min-width: 2.5rem; }
.bar { width: 100%; height: 10px; display: block; }
.bar .track { fill: var(--chart-track); }
.bar .fill { fill: var(--chart-1); }
.list { list-style: none; margin: 0; padding: 0; }
.list-item { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--border); }
.list-item:last-child { border-bottom: 0; padding-bottom: 0; }
.list-item:first-child { padding-top: 0; }
.list-main { flex: 1; min-width: 0; }
.list-main > a, .list-title { font-weight: 600; color: var(--text); display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-main > a:hover { color: var(--primary-text); }
.list-meta { font-size: .8rem; color: var(--text-3); }
.date-badge { flex: none; display: grid; place-items: center; width: 3rem; padding: .3rem 0; border-radius: 10px; background: var(--surface-3); line-height: 1.1; text-align: center; }
.date-badge b { font-size: 1.05rem; font-variant-numeric: tabular-nums; }
.date-badge span { font-size: .66rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-3); font-weight: 650; }
.date-badge.warn { background: var(--warn-bg); color: var(--warn); }
.date-badge.danger { background: var(--danger-bg); color: var(--danger); }

/* ---------- Kanban ---------- */
.board-toolbar { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.segmented { display: inline-flex; padding: 3px; border-radius: 10px; background: var(--surface-3); border: 1px solid var(--border); }
.segmented a { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 7px; font-size: .85rem; font-weight: 600; color: var(--text-2); }
.segmented a:hover { text-decoration: none; color: var(--text); }
.segmented a[aria-current="page"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(13.5rem, 1fr); gap: 1rem; margin-bottom: 1.5rem; overflow-x: auto; padding-bottom: .5rem; align-items: start; }
.column { background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: .7rem; min-height: 8rem; }
.column h2 { font-size: .85rem; display: flex; align-items: center; gap: .5rem; margin: .15rem .2rem .75rem; text-transform: none; }
.column h2::before { content: ""; width: .6rem; height: .6rem; border-radius: 50%; background: var(--text-3); }
.column h2 .count { margin-left: auto; background: var(--surface); }
.column[data-status="NEU"] h2::before, .column[data-status="OFFEN"] h2::before { background: #8592ab; }
.column[data-status="KONTAKTIERT"] h2::before, .column[data-status="ANALYSE"] h2::before, .column[data-status="IN_ARBEIT"] h2::before { background: #2a78d6; }
.column[data-status="QUALIFIZIERT"] h2::before, .column[data-status="OFFERTE"] h2::before { background: #8b5cf6; }
.column[data-status="ANTRAG"] h2::before { background: #e0a100; }
.column[data-status="KONVERTIERT"] h2::before, .column[data-status="ABGESCHLOSSEN"] h2::before, .column[data-status="ERLEDIGT"] h2::before { background: #16a36a; }
.column[data-status="VERLOREN"] h2::before, .column[data-status="ABGEBROCHEN"] h2::before { background: #d64545; }
.column-empty { border: 1.5px dashed var(--border-strong); border-radius: var(--radius); padding: 1rem; text-align: center; font-size: .8rem; color: var(--text-3); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem .85rem; margin-bottom: .6rem; box-shadow: var(--shadow-sm); transition: box-shadow .12s, border-color .12s; }
.card:hover { box-shadow: var(--shadow); border-color: var(--border-strong); }
.card h3 { font-size: .93rem; margin: 0 0 .3rem; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--primary-text); }
.card p { margin: .15rem 0; }
.card .muted { font-size: .8rem; }
.card-meta { overflow-wrap: anywhere; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; font-size: .8rem; color: var(--text-3); }
.card-meta .icon { width: .95rem; height: .95rem; }
.card-meta > span { display: inline-flex; align-items: center; gap: .3rem; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .6rem; padding-top: .55rem; border-top: 1px solid var(--border); }
.card-owner { display: inline-flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--text-2); min-width: 0; }
.card-owner .avatar { width: 1.5rem; height: 1.5rem; font-size: .6rem; }
.card-actions { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .55rem; }
.card-actions button { font-size: .78rem; padding: .3rem .6rem; font-weight: 600; }
.card.overdue { border-left: 3px solid var(--danger); }

/* ---------- Detailseiten ---------- */
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 20rem; gap: 1.25rem; align-items: start; }
.detail-aside { position: sticky; top: 4.75rem; }
.hero { display: flex; flex-wrap: wrap; gap: 1.1rem; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.35rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }
.hero-main { flex: 1; min-width: 14rem; }
.hero h1 { font-size: 1.5rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: .4rem; color: var(--text-2); font-size: .88rem; }
.hero-meta span { display: inline-flex; align-items: center; gap: .35rem; }
.hero-meta .icon { color: var(--text-3); }
.hero-stats { display: flex; flex-wrap: wrap; gap: .6rem; list-style: none; margin: 0; padding: 0; }
.hero-stats li { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius); padding: .55rem .9rem; min-width: 7.5rem; }
.hero-stats b { display: block; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: .74rem; color: var(--text-3); font-weight: 550; }
.section-nav { display: flex; gap: .25rem; overflow-x: auto; margin: -.25rem 0 1.25rem; padding: .3rem; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-sm); position: sticky; top: 3.9rem; z-index: 10; }
.section-nav a { flex: none; padding: .4rem .8rem; border-radius: 8px; font-size: .85rem; font-weight: 600; color: var(--text-2); }
.section-nav a:hover { background: var(--surface-3); color: var(--text); text-decoration: none; }
section[id] { scroll-margin-top: 8rem; }
.checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.checklist li { display: flex; gap: .6rem; align-items: flex-start; font-size: .86rem; }
.checklist .icon { width: 1.15rem; height: 1.15rem; margin-top: .05rem; }
.checklist .done .icon { color: var(--ok); }
.checklist .todo .icon { color: var(--warn); }
.checklist small { display: block; color: var(--text-3); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .55rem 1.25rem; margin: 0; font-size: .9rem; }
.facts dt { color: var(--text-3); font-weight: 500; }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts.stacked { grid-template-columns: 1fr; gap: .1rem; }
.facts.stacked dd { margin-bottom: .6rem; }
main > .facts { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.1rem 1.35rem; margin-bottom: 1.25rem; box-shadow: var(--shadow-sm); }

/* ---------- Stepper (Fallfortschritt) ---------- */
.stepper { list-style: none; display: flex; gap: .5rem; margin: 0 0 1.25rem; padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow-x: auto; }
.stepper li { flex: 1; min-width: 7.5rem; display: flex; align-items: center; gap: .55rem; font-size: .85rem; font-weight: 600; color: var(--text-3); position: relative; }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; background: var(--border); margin-left: .25rem; border-radius: 2px; }
.stepper li.done:not(:last-child)::after { background: var(--ok); }
.step-dot { flex: none; display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; border: 2px solid var(--border-strong); font-size: .78rem; background: var(--surface); }
.step-dot .icon { width: .9rem; height: .9rem; }
.stepper li.done { color: var(--text-2); }
.stepper li.done .step-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.stepper li.current { color: var(--text); }
.stepper li.current .step-dot { border-color: var(--primary); background: var(--primary); color: #fff; box-shadow: 0 0 0 4px var(--primary-soft); }

/* ---------- Diverses ---------- */
.empty { text-align: center; padding: 1.75rem 1rem; color: var(--text-3); }
.empty .icon { width: 2rem; height: 2rem; color: var(--border-strong); margin-bottom: .3rem; }
.empty-title { color: var(--text-2); font-weight: 600; margin: 0; }
.results { list-style: none; padding: 0; margin: 0; }
.results li { display: flex; align-items: center; gap: .8rem; padding: .75rem 1rem; border-bottom: 1px solid var(--border); }
.results li:last-child { border-bottom: 0; }
.results a { font-weight: 600; }
.tree { list-style: none; padding-left: 1.4rem; border-left: 2px solid var(--border); margin: .4rem 0; }
.tree > li { position: relative; padding: .45rem 0 .45rem .2rem; }
.tree > li::before { content: ""; position: absolute; left: -1.4rem; top: 1.15rem; width: 1rem; border-top: 2px solid var(--border); }
[data-testid="partner-tree"] { border-left: 0; padding-left: 0; }
[data-testid="partner-tree"] > li::before { display: none; }
.shares { margin: .3rem 0; font-size: .85rem; color: var(--text-2); }
pre.doc { white-space: pre-wrap; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: .25rem 1rem; }
.codes { columns: 2; font-size: 1rem; }
.error-page { max-width: 32rem; margin: 3rem auto; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 2.5rem 2rem; box-shadow: var(--shadow); }
.error-code { display: inline-grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 16px; background: var(--danger-bg); color: var(--danger); margin-bottom: 1rem; }
.error-code .icon { width: 1.6rem; height: 1.6rem; }
.error-page h1 { margin-bottom: .5rem; }
.error-page p { color: var(--text-2); }

/* ---------- Anmeldung ---------- */
body.auth { min-height: 100vh; display: flex; flex-direction: column;
  background: radial-gradient(1200px 600px at 10% -10%, color-mix(in srgb, var(--primary) 18%, transparent), transparent 60%),
              radial-gradient(900px 500px at 110% 110%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 60%), var(--bg); }
body.auth main { flex: 1; display: grid; place-items: center; padding: 1.5rem 1rem; max-width: none; }
.auth-top { padding: 1.25rem 1.75rem; }
.auth-top .brand-name { color: var(--text); }
.login { width: 100%; max-width: 27rem; background: var(--surface); padding: 2.1rem; border-radius: 18px; border: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.login h1 { font-size: 1.45rem; margin-bottom: .35rem; }
.login .lead { color: var(--text-2); margin: 0 0 1.5rem; }
.login button[type="submit"] { width: 100%; padding: .7rem 1rem; margin-top: .3rem; }
.login form.inline button { width: 100%; margin-top: .6rem; }
.login-foot { display: flex; gap: .6rem; align-items: flex-start; margin-top: 1.5rem; padding-top: 1.1rem; border-top: 1px solid var(--border); font-size: .82rem; color: var(--text-3); }
.login-foot .icon { color: var(--text-3); margin-top: .1rem; }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 1.25rem; margin-top: 1.25rem; font-size: .78rem; color: var(--text-3); }
.trust span { display: inline-flex; align-items: center; gap: .35rem; }

/* ---------- Responsiv ---------- */
@media (max-width: 1180px) {
  .detail-grid, .dash-grid { grid-template-columns: minmax(0, 1fr); }
  .detail-aside { position: static; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); background: var(--bg); }
  .sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6rem; padding: .7rem 1rem; }
  .sidebar nav { flex-direction: row; overflow-x: auto; gap: .15rem; flex-basis: 100%; order: 3; padding-bottom: .15rem; }
  .nav-group { flex-direction: row; gap: .15rem; }
  .nav-label { display: none; }
  .nav-link { white-space: nowrap; padding: .45rem .6rem; }
  .nav-link[aria-current="page"] { box-shadow: inset 0 -2px 0 #6b93ff; }
  .tenant-card { margin-left: auto; padding: .35rem .6rem; }
  .tenant-card .nav-label, .tenant-icon { display: none; }
  .topbar { position: static; padding: .6rem 1rem; flex-wrap: wrap; }
  .search { max-width: none; flex-basis: 100%; order: 2; }
  .who { margin-left: 0; width: 100%; justify-content: space-between; }
  main { padding: 1.1rem 1rem; }
  .section-nav { position: static; }
  .bar-row { grid-template-columns: minmax(6rem, 8rem) minmax(0, 1fr) auto; }
  .panel { padding: 1rem; }
  .table-wrap { margin: 0 -1rem; padding: 0 1rem; }
  .panel table, main > table { display: block; overflow-x: auto; }
}

/* ---------- Druck ---------- */
@media print {
  :root { --bg: #fff; --surface: #fff; }
  .sidebar, .topbar, footer, .skip, .section-nav, .actions, details { display: none !important; }
  .shell { display: block; }
  main { padding: 0; max-width: none; }
  .panel, .hero, .kpi { box-shadow: none; break-inside: avoid; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}

/* Gefahrenbereich (Sperren) */
details.danger-zone { border-color: var(--danger-border); background: var(--danger-bg); margin-bottom: 1.25rem; }
details.danger-zone summary { color: var(--danger); }
details.danger-zone summary::before { background: var(--surface); }
details.danger-zone[open] { background: var(--surface); }

@media (max-width: 900px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
  .kpi { padding: .85rem .9rem; }
  .kpi-value { font-size: 1.3rem; overflow-wrap: anywhere; }
  .kpi-icon { width: 1.8rem; height: 1.8rem; }
  .hero-stats li { min-width: 0; flex: 1 1 40%; }
}
.panel > details:first-child { margin-top: 0; }

/* ---------- Erweiterungen Broker-Arbeitsalltag ---------- */
.grid4 { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); gap: 0 1rem; }
.kpis.six { grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }
.kpis.six .kpi-value { font-size: 1.45rem; }
.warn-text { color: var(--warn) !important; font-weight: 600; }
.compact-form { margin-top: .4rem; gap: .35rem; }
.compact-form input[type="date"] { padding: .3rem .45rem; font-size: .82rem; }
.compact-form button { padding: .3rem .6rem; font-size: .78rem; }
.compact-form label { font-size: .75rem; }
details.plain { border: 0; background: none; padding: 0; margin-top: .3rem; }
details.plain[open] { padding: 0; background: none; }
details.plain summary { font-size: .8rem; padding: .2rem 0; }
details.plain summary::before { width: 1rem; height: 1rem; font-size: .75rem; }
details.plain[open] summary { border-bottom: 0; }

.timeline { list-style: none; margin: 0 0 .5rem; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 1rem; top: .5rem; bottom: .5rem; width: 2px; background: var(--border); }
.timeline li { position: relative; display: flex; gap: .85rem; padding: .55rem 0; }
.timeline-icon { position: relative; z-index: 1; flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--surface); border: 2px solid var(--border); color: var(--text-2); }
.timeline-icon .icon { width: .95rem; height: .95rem; }
.timeline-icon.in { border-color: var(--info-border); color: var(--info); background: var(--info-bg); }
.timeline-icon.out { border-color: var(--ok-border); color: var(--ok); background: var(--ok-bg); }
.timeline-body { min-width: 0; flex: 1; }
.timeline-title { margin: .15rem 0 0; }
.timeline-text { margin: .3rem 0 0; font-size: .88rem; color: var(--text-2); white-space: pre-wrap; background: var(--surface-2); border: 1px solid var(--border); border-radius: 8px; padding: .5rem .7rem; }

.steps-list { margin: .2rem 0 .8rem; padding-left: 1.2rem; font-size: .9rem; color: var(--text-2); }
.steps-list li { margin: .3rem 0; }
.tour-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(19rem, 1fr)); gap: 1.1rem; margin-bottom: 1.25rem; }
.tour-card { display: flex; flex-direction: column; margin: 0; }
.tour-card .button { margin-top: auto; align-self: flex-start; }
.tour-question { display: flex; gap: .5rem; align-items: flex-start; font-size: .88rem; background: var(--accent-bg); color: var(--accent); border-radius: 8px; padding: .55rem .7rem; margin: 0 0 .9rem; }
.tour-question .icon { margin-top: .15rem; }

/* Feedback-Schaltfläche (ohne JavaScript) */
.feedback-pop { position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 50; margin: 0; padding: 0; border: 0; background: none; }
.feedback-pop[open] { padding: 0; background: none; }
.feedback-pop > summary { display: inline-flex; align-items: center; gap: .45rem; padding: .65rem 1.05rem; border-radius: 999px; background: linear-gradient(135deg, #3b6cf0, #6941c6); color: #fff; font-weight: 650; box-shadow: var(--shadow-lg); border: 0; margin-left: auto; }
.feedback-pop > summary::before { display: none; }
.feedback-pop[open] > summary { border-bottom: 0; margin-bottom: .5rem; }
.feedback-pop:not([open]) { display: flex; justify-content: flex-end; }
.feedback-pop[open] { display: flex; flex-direction: column-reverse; align-items: flex-end; }
.feedback-form { width: min(23rem, calc(100vw - 2.5rem)); background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 1.1rem 1.15rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.feedback-title { font-weight: 650; margin: 0 0 .7rem; }
.radio-row { border: 0; padding: 0; margin: 0 0 .8rem; background: none; display: flex; flex-wrap: wrap; gap: .35rem; }
.radio-row legend { font-size: .85rem; font-weight: 600; color: var(--text-2); padding: 0; margin-bottom: .35rem; }
.chip-radio { position: relative; display: inline-flex; }
.chip-radio input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-radio span { display: inline-block; padding: .3rem .65rem; border-radius: 999px; border: 1px solid var(--border-strong); font-size: .8rem; cursor: pointer; background: var(--surface); }
.chip-radio input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip-radio input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.stars .chip-radio span { min-width: 2.1rem; text-align: center; }
@media print { .feedback-pop { display: none !important; } }
@media (max-width: 900px) { .feedback-pop { right: .75rem; bottom: .75rem; } }
.kpis.six .kpi-value { font-size: 1.3rem; white-space: nowrap; }
.kpis.six .kpi-top { gap: .4rem; }
.detail-aside .list-main > a { white-space: normal; }
.sidebar nav { gap: .7rem; }
.nav-link { padding: .42rem .65rem; }

/* ---------- Drag & Drop (mit JavaScript) ---------- */
.dnd-hint { display: none; align-items: center; gap: .5rem; font-size: .85rem; color: var(--text-3); margin: -.6rem 0 .9rem; }
.js .dnd-hint { display: flex; }
.js .kanban[data-dnd] .card-actions { display: none; }
.js .kanban .card[draggable="true"] { cursor: grab; }
.js .kanban .card[draggable="true"]:active { cursor: grabbing; }
.card.dragging { opacity: .45; transform: rotate(1deg); }
.card.saving { opacity: .6; pointer-events: none; }
.column.drop-ok { outline: 2px dashed var(--primary); outline-offset: -2px; background: color-mix(in srgb, var(--primary-soft) 70%, var(--surface-3)); }
.column.drop-hover { outline-style: solid; background: var(--primary-soft); }
.column.drop-no { opacity: .45; }
.toast { position: fixed; left: 50%; bottom: 1.5rem; transform: translate(-50%, 1rem); opacity: 0; z-index: 100; max-width: min(34rem, calc(100vw - 2rem));
  background: var(--text); color: var(--surface); padding: .75rem 1.1rem; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .92rem; font-weight: 550; transition: opacity .2s, transform .2s; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.error { background: var(--danger); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
output.preview { display: inline-block; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--primary-text); margin-left: .25rem; }

/* ---------- Courtagen ---------- */
.entry-list { display: grid; gap: .9rem; margin-bottom: 1rem; }
.entry-card { border: 1px solid var(--border); border-radius: var(--radius); padding: .9rem 1rem; background: var(--surface-2); }
.entry-head { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.entry-head .calc { display: block; font-size: .88rem; color: var(--text-2); font-variant-numeric: tabular-nums; margin-top: .15rem; }
.entry-head .calc b { color: var(--text); }
.entry-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; margin-top: .6rem; }
.entry-alloc strong { font-size: .82rem; color: var(--text-2); }
.entry-action { margin-top: .75rem; padding-top: .7rem; border-top: 1px solid var(--border); }
.step-label { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary-text); }
.step-title { margin: 0 0 .3rem; font-weight: 600; }
.expected-form { border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: .9rem 1rem; }
.mini-steps { list-style: none; display: flex; gap: .35rem; padding: 0; margin: .6rem 0 0; flex-wrap: wrap; }
.mini-steps li { font-size: .74rem; font-weight: 600; padding: .15rem .55rem; border-radius: 999px; background: var(--surface-3); color: var(--text-3); }
.mini-steps li.done { background: var(--ok-bg); color: var(--ok); }
.mini-steps li.current { background: var(--primary-soft); color: var(--primary-text); }
.mini-steps li:not(:last-child)::after { content: " →"; opacity: .5; }
table.alloc td { padding: .25rem .4rem; }
.example-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(18rem, 1fr)); gap: 1rem; }
.example { border: 1px solid var(--border); border-radius: var(--radius); padding: .8rem .9rem; background: var(--surface-2); }
.example-title { margin: 0 0 .2rem; }
@media (max-width: 900px) { .entry-body { grid-template-columns: 1fr; } }
