/* Pahal – Grundgestaltung nach dem Mockup */

:root {
  --ink: #15171C;
  --ink-2: #2E323A;
  --ink-3: #3F444D;
  --muted: #5A606B;
  --line: #E1E3E8;
  --line-2: #ECEEF1;
  --ground: #F2F3F5;
  --card: #FFFFFF;
  --side: #15171C;
  --side-hover: #22252C;
  --side-active: #2A2E37;
  --side-text: #C9CDD4;
  --side-muted: #9BA1AC;
  --link: #2B59C3;
  --ok-bg: #E1F2E9;  --ok: #145C3A;
  --warn-bg: #F7EBDD; --warn: #7A4210;
  --err-bg: #FBE5E3; --err: #8E1F1A;
  --info-bg: #E8EEFB; --info: #1E3F8C;
  --radius: 14px;
  --font: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 15px; color: var(--ink); background: var(--ground); line-height: 1.45; }
a { color: var(--link); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
:focus-visible { outline: 3px solid #6E93E8; outline-offset: 2px; }
.mono { font-family: var(--mono); font-size: 13px; }
.muted { color: var(--muted); }
[hidden] { display: none !important; }
.small { font-size: 13px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.boot, .loading { padding: 48px; color: var(--muted); }

/* ---------- Buttons & Formulare ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:disabled { opacity: .55; cursor: default; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover:not(:disabled) { background: var(--side-active); }
.btn-secondary { background: #fff; color: var(--ink); border-color: #D5D8DE; }
.btn-secondary:hover:not(:disabled) { background: var(--line-2); }
.btn-block { width: 100%; }
.link-btn { background: none; border: 0; padding: 8px 0; min-height: 44px; font: inherit; font-size: 14px; font-weight: 600; color: var(--link); cursor: pointer; text-align: left; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 0; border-radius: 10px; background: transparent; color: inherit; cursor: pointer; }
.icon-btn:hover { background: rgba(127,127,127,.15); }

.form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.field { display: flex; flex-direction: column; gap: 6px; border: 0; margin: 0; padding: 0; min-width: 0; }
.field-narrow { max-width: 420px; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0; margin-bottom: 2px; }
.field-hint { font-size: 13px; color: var(--muted); }
input[type="text"], input[type="email"], input[type="password"], select {
  min-height: 44px; padding: 10px 12px; border: 1px solid #C9CDD4; border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; width: 100%;
}
input:disabled, select:disabled { background: var(--line-2); color: var(--muted); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--ink); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-check { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border: 1px solid #D5D8DE; border-radius: 999px; background: #fff; font-size: 14px; cursor: pointer; }
.chip-check:has(input:checked) { border-color: var(--ink); background: var(--line-2); }
.field .chip-check { padding: 0 12px; margin: 0; font-size: 14px; font-weight: 500; color: var(--ink); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: none; }
.switch { display: inline-flex; align-items: center; min-height: 36px; }

/* ---------- Anmeldung ---------- */
.auth-msg { margin: 0; font-size: 14px; min-height: 0; }
.auth-msg:empty { display: none; }
.auth-msg-fehler { padding: 10px 12px; border-radius: 10px; background: var(--err-bg); color: var(--err); }
.auth-msg-ok { padding: 10px 12px; border-radius: 10px; background: var(--ok-bg); color: var(--ok); }

/* ---------- App-Rahmen ---------- */
.shell { display: flex; min-height: 100vh; }
.sidebar { flex: 0 0 248px; background: var(--side); color: #E8EAEE; padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong { font-size: 18px; }
.brand-text small { font-size: 12px; color: var(--side-muted); }
.sidebar-close { display: none; margin-left: auto; color: #E8EAEE; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-title { font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--side-muted); padding: 0 12px 6px; }
.nav-link, .nav-project { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 8px; color: var(--side-text); text-decoration: none; font-size: 15px; }
.nav-link:hover { background: var(--side-hover); color: #fff; }
.nav-link.active { background: var(--side-active); color: #fff; font-weight: 600; }
.nav-project { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.nav-empty { padding: 6px 12px; font-size: 13px; color: var(--side-muted); }
.user-box { margin-top: auto; display: flex; align-items: center; gap: 4px; padding-top: 12px; border-top: 1px solid var(--side-active); }
.user-link { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 8px; color: #E8EAEE; text-decoration: none; }
.user-link:hover, .user-link.active { background: var(--side-hover); }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: #E8EAEE; color: var(--ink); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.user-text { display: flex; flex-direction: column; min-width: 0; }
.user-text strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-text small { font-size: 12px; color: var(--side-muted); }
.user-box .icon-btn { color: var(--side-text); }

.topbar { display: none; }
.scrim { display: none; }
.content { flex: 1; min-width: 0; outline: none; }

/* ---------- Seiten ---------- */
.page { padding: 40px 5%; display: flex; flex-direction: column; gap: 24px; max-width: 1400px; }
.page-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.eyebrow { margin: 0 0 6px; font-family: var(--mono); font-size: 13px; color: var(--muted); }
.page-head h1 { font-size: 32px; letter-spacing: -.02em; }
.lead { margin: 6px 0 0; font-size: 16px; color: var(--muted); max-width: 70ch; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.panel h2 { font-size: 18px; }
.panel p { margin: 0; }
.notice { margin: 0; padding: 16px 18px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink-3); }
.notice-fehler { background: var(--err-bg); border-color: #F1C9C4; color: var(--err); }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.project-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.project-head { display: flex; align-items: flex-start; gap: 14px; }
.project-logo { width: 46px; height: 46px; border-radius: 12px; color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.project-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.project-title h2 { font-size: 20px; }
.project-desc { margin: 0; color: var(--ink-3); }
.facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; border-top: 1px solid var(--line-2); padding-top: 14px; }
.facts dt { font-size: 13px; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 600; }
.archive summary { cursor: pointer; font-weight: 600; min-height: 44px; display: flex; align-items: center; }

.badge { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.badge-betrieb { background: var(--ok-bg); color: var(--ok); }
.badge-konzept, .badge-idee { background: var(--warn-bg); color: var(--warn); }
.badge-entwicklung { background: var(--info-bg); color: var(--info); }
.badge-archiv { background: var(--line-2); color: var(--ink-3); }

.placeholder { background: var(--card); border: 1px dashed #C3C7CF; border-radius: 16px; padding: 48px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.placeholder-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--line-2); display: flex; align-items: center; justify-content: center; color: var(--ink-3); }
.placeholder h2 { font-size: 20px; }
.placeholder p { margin: 0; color: var(--muted); max-width: 52ch; }

.table-wrap { overflow-x: auto; position: relative; } /* hält absolut positionierte Labels im Scrollbereich */
.table { width: 100%; border-collapse: collapse; min-width: 720px; }
.table th { text-align: left; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 12px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 12px; border-top: 1px solid var(--line-2); vertical-align: top; }
.table tr.inactive td { opacity: .6; }
.table select { width: auto; min-width: 140px; }

/* ---------- P1: Portfolio & Projektseite ---------- */
textarea { min-height: 44px; padding: 10px 12px; border: 1px solid #C9CDD4; border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; width: 100%; resize: vertical; }
input[type="date"], input[type="number"], input[type="datetime-local"] { min-height: 44px; padding: 8px 10px; border: 1px solid #C9CDD4; border-radius: 10px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; width: 100%; }
.mono-input { font-family: var(--mono) !important; font-size: 14px !important; }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.stat-label { font-size: 14px; color: var(--muted); }
.stat-value { font-size: 28px; font-weight: 700; line-height: 1.15; }
.stat-value-sm { font-size: 20px; }
.stat-note { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.overdue { color: var(--err) !important; font-weight: 600; }

.filter-row { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid #D5D8DE; background: #fff; color: var(--ink-2); font: inherit; font-size: 14px; cursor: pointer; }
.pill.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip { display: inline-flex; padding: 3px 8px; border-radius: 6px; background: #F0F1F4; color: var(--ink-3); font-family: var(--mono); font-size: 12px; }

.project-link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.project-link:hover { border-color: #B9BEC7; box-shadow: 0 4px 14px rgba(21,23,28,.06); }
.project-card-new { border: 2px dashed #C3C7CF; background: transparent; align-items: center; justify-content: center; text-align: center; text-decoration: none; color: var(--ink-3); min-height: 200px; gap: 8px; }
.project-card-new:hover { border-color: var(--ink-3); }
.new-icon { width: 46px; height: 46px; border-radius: 50%; background: #fff; border: 1px solid #D5D8DE; display: flex; align-items: center; justify-content: center; }

.log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.log-item { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.log-item:first-child { border-top: 0; }
.log-item .dot { margin-top: 6px; }
.log-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.log-details { color: var(--ink-3); font-size: 14px; white-space: pre-line; }

.back-link { font-size: 14px; font-weight: 600; text-decoration: none; align-self: flex-start; min-height: 32px; display: inline-flex; align-items: center; }
.project-hero { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.project-hero h1 { font-size: 30px; letter-spacing: -.02em; }
.project-hero .project-logo { font-size: 18px; }
.two-col { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.two-col > :first-child { flex: 999 1 480px; min-width: 0; }
.two-col > :last-child { flex: 1 1 280px; min-width: 0; }
.two-col-wide > :last-child { flex: 1 1 320px; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }

.table-edit { min-width: 860px; }
.table-edit td { padding: 8px 6px; vertical-align: middle; }
.table-edit input[type="text"], .table-edit select, .table-edit input[type="number"] { font-size: 14px; min-height: 40px; padding: 6px 8px; }
.table-edit select { min-width: 120px; width: 100%; }
.input-sm { max-width: 120px; }
.money { display: flex; gap: 6px; }
.money input { width: 110px; }
.money select { min-width: 64px !important; width: 64px !important; }
.icon-btn-sm { width: 40px; height: 40px; font-size: 22px; color: var(--muted); }
.icon-btn-sm:hover { color: var(--err); }

.people { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.people li { display: flex; align-items: center; gap: 10px; }
.avatar-sm { width: 30px; height: 30px; font-size: 12px; background: var(--ink); color: #fff; }

.swatches { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.swatch { width: 44px; height: 44px; border-radius: 10px; border: 0; cursor: pointer; }
.swatch.on { outline: 3px solid var(--ink); outline-offset: 2px; }
.swatch-custom { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); min-height: 44px; }
.swatch-custom input { width: 44px; height: 44px; border: 1px solid #D5D8DE; border-radius: 10px; padding: 2px; background: #fff; cursor: pointer; }

.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.check-card { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; min-height: 44px; }
.check-card:has(input:checked) { border-color: var(--ink); background: #F7F8FA; }
.check-card input { margin-top: 2px; }
.check-card span { display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.preview { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 10px; }
.preview .eyebrow { margin: 0; }

.nav-link.nav-project { min-height: 40px; padding: 8px 12px; font-size: 14px; }

/* ---------- P2: Planung ---------- */
.btn-danger { background: #fff; color: var(--err); border-color: #F1C9C4; }
.btn-danger:hover:not(:disabled) { background: var(--err-bg); }
.stack { display: flex; flex-direction: column; gap: 16px; }
.block { display: block; }
.sub-title { font-size: 15px; font-weight: 700; margin: 8px 0 0; }
.ok-text { color: var(--ok); font-weight: 600; }
.stat-link { text-decoration: none; color: inherit; }
.stat-link:hover { border-color: #B9BEC7; }
.stat-of { font-size: 16px; font-weight: 500; }
.panel-tight { gap: 10px; padding: 18px 20px; }
.panel-flush { padding: 0; gap: 0; overflow: hidden; }
.panel-warn { background: #FFFBF1; border-color: #EBCB85; }
.toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; }
.field-inline { flex-direction: row; align-items: center; gap: 8px; }
.field-inline label { margin: 0; white-space: nowrap; }
.field-inline select { width: auto; min-width: 160px; }
.field-grow { flex: 1 1 260px; }
.form-inline { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.form-inline .field { flex: 1 1 200px; }
.form-actions-split { justify-content: space-between; align-items: center; }
.check-line { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; cursor: pointer; }
.input-warn { border-color: #D9A03B !important; background: #FFFBF1 !important; }
.flag { display: inline-flex; align-self: flex-start; font-family: var(--mono); font-size: 12px; padding: 2px 8px; border-radius: 6px; }
.flag-err { background: var(--err-bg); color: var(--err); }

/* Kanban */
.board { display: grid; grid-template-columns: repeat(4, minmax(240px, 1fr)); gap: 16px; align-items: start; overflow-x: auto; padding-bottom: 4px; }
.column { background: #E9EBEF; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 160px; transition: background .12s; }
.column.drop { background: #DCE3F3; outline: 2px dashed var(--link); outline-offset: -2px; }
.column-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; }
.column-head h2 { font-size: 15px; }
.count { font-family: var(--mono); font-size: 13px; background: #fff; border-radius: 999px; padding: 2px 9px; color: var(--ink-3); }
.column-body { display: flex; flex-direction: column; gap: 10px; }
.task { background: #fff; border: 1px solid #DDE0E5; border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; cursor: grab; }
.task:hover { border-color: #B9BEC7; }
.task:has(.task-title:focus-visible) { outline: 3px solid #6E93E8; outline-offset: 2px; }
.task-title { all: unset; cursor: pointer; }
.task-title:focus-visible { outline: none; }
.task.dragging { opacity: .5; }
.task-done { background: #F7F8FA; }
.task-done .task-title { color: var(--ink-3); }
.task-project { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); }
.task-project .dot { width: 8px; height: 8px; border-radius: 2px; }
.task-title { font-size: 15px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.task-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-height: 24px; }
.avatar-xs { width: 26px; height: 26px; font-size: 11px; background: var(--ink); color: #fff; }
.add-btn { min-height: 44px; border: 1px dashed #B9BEC7; border-radius: 10px; background: transparent; font: inherit; font-size: 14px; font-weight: 600; color: var(--ink-3); cursor: pointer; }
.add-btn:hover { border-color: var(--ink-3); color: var(--ink); }
.add-btn-inline { align-self: flex-start; padding: 0 14px; }

/* Dialog */
.dialog { border: 0; border-radius: 16px; padding: 0; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 32px); box-shadow: 0 20px 60px rgba(21,23,28,.3); color: var(--ink); }
.dialog::backdrop { background: rgba(21,23,28,.45); }
.dialog form { padding: 22px 24px; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dialog-head h2 { font-size: 20px; }

/* Launch */
.tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid #D5D8DE; }
.tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: 15px; color: var(--ink-3); cursor: pointer; }
.tab.on { border-bottom-color: var(--ink); color: var(--ink); font-weight: 700; }
.checklist { list-style: none; margin: 0; padding: 0; }
.check-item { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line-2); }
.check-item:first-child { border-top: 0; }
.check-main { flex: 1; min-width: 0; display: flex; align-items: flex-start; gap: 12px; min-height: 44px; padding-top: 4px; cursor: pointer; }
.check-main input { width: 20px; height: 20px; margin-top: 1px; flex: none; }
.check-main > span { display: flex; flex-direction: column; gap: 2px; }
.check-title { font-size: 15px; }
.is-done .check-title { color: var(--muted); text-decoration: line-through; }
.flag-toggle { min-height: 32px; padding: 0 10px; border-radius: 6px; border: 1px solid transparent; background: transparent; font-family: var(--mono); font-size: 12px; color: var(--muted); cursor: pointer; }
.flag-toggle:hover { border-color: #D5D8DE; }
.flag-toggle.on { background: var(--err-bg); color: var(--err); border-color: #F1C9C4; }
.progress { height: 10px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.progress > div { height: 100%; border-radius: 999px; }
.blockers { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.blockers li > * { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; background: #FBF2F0; color: var(--ink); text-decoration: none; }
.mini-progress { list-style: none; margin: 0; padding: 0; }
.link-row { all: unset; box-sizing: border-box; display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; min-height: 40px; padding: 4px 8px; border-radius: 8px; cursor: pointer; font-family: var(--font); font-size: 15px; }
.link-row:hover, .link-row.is-on { background: var(--line-2); }
.link-row:focus-visible { outline: 3px solid #6E93E8; }


.plan-facts { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.plan-facts dt { font-size: 13px; color: var(--muted); }
.plan-facts dd { margin: 2px 0 0; font-weight: 600; }
.plan-facts a { text-decoration: none; }

/* ---------- Rückmeldungen ---------- */
#toasts { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; max-width: calc(100vw - 32px); }
.toast { padding: 12px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; box-shadow: 0 6px 20px rgba(21,23,28,.18); }
.toast-ok { background: var(--ink); color: #fff; }
.toast-fehler { background: var(--err-bg); color: var(--err); border: 1px solid #F1C9C4; }

/* ---------- Mobil ---------- */
/* ---------- P3: Agenten und Betrieb ---------- */
.health { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 7px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.health svg { flex: none; }
.health-ok { background: var(--ok-bg); color: var(--ok); }
.health-warn { background: var(--warn-bg); color: var(--warn); }
.health-err { background: var(--err-bg); color: var(--err); }
.health-info { background: var(--info-bg); color: var(--info); }
.health-none { background: var(--line-2); color: var(--ink-3); }
.ops-summary { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--ink-3); }
.ops-group { margin: 18px 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ops-group:first-of-type { margin-top: 8px; }
.metric-list, .agent-list, .env-list { list-style: none; margin: 0; padding: 0; }
.metric { display: grid; grid-template-columns: 118px 1fr auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.metric:first-child { border-top: 0; }
.metric-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; overflow-wrap: anywhere; }
.metric-extra { color: var(--ink-3); }
.metric-time { white-space: nowrap; padding-top: 3px; }
.agent { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding: 16px 0; border-top: 1px solid var(--line-2); }
.agent:first-child { border-top: 0; padding-top: 4px; }
.agent-main { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.agent-main p { margin: 0; }
.agent-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.agent-msg { color: var(--ink-3); overflow-wrap: anywhere; }
.agent-missing { color: var(--err); }
.agent-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.agent-controls .field { margin: 0; }
.toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; margin: 0; }
.env-list li { display: flex; flex-wrap: wrap; gap: 4px 12px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.env-list li:first-child { border-top: 0; }
.env-list code { font-weight: 600; }
.run-msg { min-width: 220px; overflow-wrap: anywhere; color: var(--ink-3); }
.nowrap { white-space: nowrap; }
code { font-family: var(--mono); font-size: 12.5px; background: #F0F1F4; padding: 1px 5px; border-radius: 4px; }

/* ---------- P4: Teccenter ---------- */
.section-title { font-size: 18px; margin: 0 0 12px; }
.pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-count[hidden] { display: none; }
.vital-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.vital-card { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; }
.vital-ok { border-left-color: var(--ok); }
.vital-warn { border-left-color: #C27A2C; }
.vital-error { border-left-color: var(--err); }
.vital-head { display: flex; align-items: center; gap: 12px; }
.vital-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.vital-name a { font-weight: 700; font-size: 16px; color: var(--ink); text-decoration: none; }
.vital-name a:hover { text-decoration: underline; }
.vital-text { margin: 0; color: var(--ink-3); font-size: 14px; }
.vital-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font-size: 14px; }
.link-btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0; border: 0; background: none; color: var(--link); font: inherit; font-size: 14px; cursor: pointer; }
.link-btn:hover { text-decoration: underline; }
.summary-text { white-space: pre-wrap; font-size: 15px; line-height: 1.55; padding: 14px 16px; background: var(--ground); border-radius: 10px; }
.tabs-sm { border-bottom: 0; }
.tabs-sm .tab { min-height: 40px; padding: 0 12px; font-size: 14px; }
.incident-list { list-style: none; margin: 0; padding: 0; }
.incident { display: grid; grid-template-columns: 112px 1fr auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--line-2); }
.incident:first-child { border-top: 0; }
.incident .health { justify-self: start; }
.incident-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.incident-title { font-weight: 600; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.incident-title:hover { text-decoration: underline; }
.incident-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.incident-time { white-space: nowrap; padding-top: 3px; }
.incident-done .incident-title { color: var(--ink-3); font-weight: 500; }
.incident-list-sm .incident { grid-template-columns: 104px 1fr; }
.ops-incidents { margin-top: 4px; }
.ops-incidents > p { margin: 8px 0 0; }
.deadline { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; }
.deadline-warn { color: var(--warn); }
.deadline-err { color: var(--err); }
.deadline-box { margin: 10px 0; padding: 12px 14px; border-radius: 10px; }
.deadline-box.deadline-warn { background: var(--warn-bg); }
.deadline-box.deadline-err { background: var(--err-bg); }
.privacy-alert { background: var(--err-bg); border: 1px solid #F1C9C4; border-radius: 14px; padding: 16px 18px; color: var(--err); }
.privacy-alert h2 { display: flex; align-items: center; gap: 8px; font-size: 17px; margin: 0 0 8px; }
.privacy-alert ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.privacy-alert a { color: var(--err); font-weight: 600; }
.privacy-alert .deadline { display: block; font-weight: 500; font-size: 14px; }
.incident-hero { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.incident-hero h1 { font-size: 28px; letter-spacing: -.01em; overflow-wrap: anywhere; }
.incident-hero p { margin: 0; }
.form-row-3 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.privacy-list { list-style: none; margin: 8px 0; padding: 0; }
.privacy-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line-2); padding: 4px 0; }
.privacy-list li:first-child { border-top: 0; }
.privacy-list .check-line { align-items: flex-start; padding: 8px 0; }
.privacy-list .check-line input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.d-block { display: block; }
.inline-form { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.inline-form input { flex: 1 1 180px; min-width: 0; }
.incident-hero .dot { margin-right: 6px; vertical-align: middle; }
.mail-list { list-style: none; margin: 0; padding: 0; }
.mail-list li { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 8px 0; border-top: 1px solid var(--line-2); font-size: 14px; }
.mail-list li:first-child { border-top: 0; }

/* ---------- P6 ---------- */
.plain-fieldset { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 16px; }

/* ---------- P6: Zielgrößen (mind. 24 px, WCAG 2.5.8) ---------- */
.task-title { min-height: 24px; }
.vital-name a, .vital-actions a, .incident-title { display: inline-flex; align-items: center; min-height: 28px; }
.vital-name a, .panel-link { align-self: flex-start; }
.panel-link { display: inline-flex; align-items: center; min-height: 28px; }

/* ---------- P5: Kosten ---------- */
.cost-table th[scope="row"], .table-sm th[scope="row"] { font-weight: 600; text-align: left; color: var(--ink); font-size: 15px; border-bottom: 0; border-top: 1px solid var(--line-2); padding: 14px 12px; }
.table-sm { min-width: 0; }
.cost-table td, .cost-table th { white-space: nowrap; }
.cost-table th[scope="row"] .d-block { white-space: normal; font-weight: 400; max-width: 320px; }
.cost-table tfoot th, .cost-table tfoot td { border-top: 2px solid var(--line); font-weight: 700; }
.cost-project { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.cost-project:hover span { text-decoration: underline; }
.cost-open th, .cost-open td { background: var(--warn-bg); }
.row-on th, .row-on td { background: var(--line-2); }
.kind-list { list-style: none; margin: 0; padding: 0; }
.kind-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.kind-list li:first-child { border-top: 0; }

@media (max-width: 860px) {
  .cost-table { min-width: 0; }
  .cost-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cost-table tr { display: block; padding: 10px 0; border-top: 1px solid var(--line-2); }
  .cost-table th[scope="row"], .cost-table td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 4px 0; white-space: normal; }
  .cost-table th[scope="row"] { display: block; padding-bottom: 6px; }
  .cost-table td::before { content: attr(data-label); color: var(--muted); font-size: 14px; }
  .cost-table tfoot th, .cost-table tfoot td { border-top: 0; }
  .cost-table tfoot tr { border-top: 2px solid var(--line); }
  .incident, .incident-list-sm .incident { grid-template-columns: 1fr; gap: 6px; }
  .incident-time { padding-top: 0; }
  .incident-hero h1 { font-size: 23px; }
  .inline-form { flex-direction: column; }
  .metric { grid-template-columns: 1fr; gap: 6px; }
  .metric .health { justify-self: start; }
  .metric-time { padding-top: 0; }
  .agent-controls { width: 100%; }
  .shell { flex-direction: column; }
  .topbar { display: flex; align-items: center; gap: 8px; padding: 8px 12px; background: var(--side); color: #E8EAEE; position: sticky; top: 0; z-index: 50; }
  .brand-mini { display: flex; align-items: center; gap: 10px; font-size: 17px; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100vh; z-index: 200; transform: translateX(-100%); transition: transform .2s ease; }
  .sidebar.open { transform: none; }
  .sidebar-close { display: inline-flex; }
  .scrim { display: block; position: fixed; inset: 0; background: rgba(21,23,28,.45); z-index: 150; }
  .scrim[hidden] { display: none; }
  .page { padding: 24px 16px; }
  .page-head h1 { font-size: 26px; }
  .card-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 12px 14px; }
  .stat-value { font-size: 22px; }
  .stat-value-sm { font-size: 16px; }
  .project-hero h1 { font-size: 24px; }
  .preview { position: static; }
  .panel { padding: 18px 16px; }
  .panel-flush { padding: 0; }
  .board { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; margin: 0 -16px; padding: 0 16px 8px; }
  .column { scroll-snap-align: start; }
  .toolbar { flex-direction: column; align-items: stretch; }
  .toolbar > * { min-width: 0; max-width: 100%; }
  .filter-row { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .pill { flex: none; }
  .field-inline select { flex: 1; }
  .dialog form { padding: 18px 16px; }
  .check-item { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .sidebar { transition: none; }
}

/* ---------- Roadmap: ganze Seite, interaktiv ---------- */
.toast-with-action { display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 16px; }
.toast-action { min-height: 36px; padding: 0 12px; border-radius: 8px; border: 1px solid #4A4F59; background: transparent; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.toast-action:hover { background: rgba(255,255,255,.1); }
.toast-fehler .toast-action { color: var(--err); border-color: #F1C9C4; }

/* Schmale Navigation (nur Desktop, auf der Roadmap) */
@media (min-width: 861px) {
  body.nav-rail .sidebar { flex-basis: 72px; width: 72px; padding: 16px 10px; gap: 14px; }
  body.nav-rail .brand { justify-content: center; padding: 0; }
  body.nav-rail .brand-text, body.nav-rail .nav-title, body.nav-rail .nav-empty { display: none; }
  body.nav-rail .nav-label, body.nav-rail .user-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  body.nav-rail .nav-link { justify-content: center; padding: 10px 0; position: relative; }
  body.nav-rail .nav-project { min-height: 36px; }
  body.nav-rail .nav-project .dot { width: 12px; height: 12px; }
  body.nav-rail .nav-count { position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; font-size: 11px; }
  body.nav-rail .nav-group + .nav-group { border-top: 1px solid var(--side-active); padding-top: 12px; }
  body.nav-rail .user-box { flex-direction: column; gap: 6px; }
  body.nav-rail .user-link { flex: none; padding: 4px; }
}

.rm-page { --rm-label: 300px; position: relative; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 10px; padding: 12px 16px; overflow: hidden; font-size: 14px; }
.rm-page.is-dragging, .rm-page.is-dragging * { cursor: grabbing !important; user-select: none; }

/* Kopf: eine Zeile */
.rm-head { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-height: 36px; flex: none; }
.rm-head > * { flex: none; }
.rm-title { font-size: 19px; letter-spacing: -.01em; margin-right: 6px; white-space: nowrap; }
.rm-sep { width: 1px; height: 22px; background: #D5D8DE; margin: 0 2px; }
.rm-spacer { flex: 1; }
.rm-btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 9px; border: 1px solid #D5D8DE; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rm-btn:hover { background: var(--line-2); }
.rm-btn-primary { background: var(--ink); border-color: var(--ink); color: #fff; padding: 0 14px; }
.rm-btn-primary:hover { background: var(--side-active); }
.rm-btn-icon { width: 34px; padding: 0; justify-content: center; }
.rm-btn-warn { background: #FDF3E7; border-color: #F0D7B8; color: var(--warn); padding: 0 10px 0 12px; }
.rm-btn-warn:hover { background: #FAE8D3; }
.rm-btn-warn.is-filter, .rm-btn-sm.is-filter { border-color: #C98A45; box-shadow: inset 0 0 0 1px #C98A45; }
.rm-btn-sm { height: 30px; padding: 0 10px; font-size: 12px; color: var(--warn); border-color: #F0D7B8; background: #fff; }
.rm-dia-icon { width: 10px; height: 10px; transform: rotate(45deg); border: 2px solid currentColor; border-radius: 1px; }
.rm-seg { display: inline-flex; background: #E6E8EC; border-radius: 9px; padding: 2px; }
.rm-seg button { height: 30px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; color: var(--ink-3); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rm-seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(21,23,28,.15); }
/* Projektfilter schrumpfen und scrollen, statt den Kopf umzubrechen */
.rm-head > .rm-chips { flex: 0 1 auto; min-width: 60px; display: flex; flex-wrap: nowrap; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.rm-pchip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; border: 1px solid #D5D8DE; background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.rm-pchip:hover { border-color: var(--muted); }
.rm-pchip.off { background: var(--ground); color: var(--muted); border-color: var(--line); }
.rm-pchip .dot { width: 8px; height: 8px; }
.rm-search { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 10px; border: 1px solid #D5D8DE; border-radius: 9px; background: #fff; width: 200px; color: var(--muted); }
.rm-head > .rm-search { flex: 0 1 200px; min-width: 110px; }
.rm-search:focus-within { outline: 3px solid #6E93E8; outline-offset: 1px; }
.rm-search input { border: 0; outline: none; font: inherit; font-size: 13px; width: 100%; height: 100%; min-height: 0; padding: 0; background: transparent; color: var(--ink); }
.rm-hints { position: relative; }
.rm-pop { position: absolute; right: 0; top: 40px; width: 460px; max-width: calc(100vw - 32px); z-index: 60; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(21,23,28,.18); padding: 8px; }
.rm-pop[hidden] { display: none; }
.rm-pop-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 6px 8px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.rm-pop-list { list-style: none; margin: 4px 0 0; padding: 0; max-height: 340px; overflow: auto; }
.rm-pop-list button { display: flex; align-items: baseline; gap: 8px; width: 100%; min-height: 40px; padding: 8px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; color: var(--ink); text-align: left; cursor: pointer; }
.rm-pop-list button:hover { background: var(--line-2); }
.rm-pop-list .dot { width: 8px; height: 8px; position: relative; top: -1px; }
.rm-pop-list strong { flex: none; font-weight: 600; }
.rm-pop-list span:last-child { color: var(--ink-3); }

/* Karte mit der Zeitleiste */
.rm-card { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.rm-scroller { flex: 1; min-height: 0; overflow: auto; position: relative; overscroll-behavior: contain; }
.rm-scroller::-webkit-scrollbar { height: 12px; width: 12px; }
.rm-scroller::-webkit-scrollbar-thumb { background: #C9CDD4; border-radius: 8px; border: 3px solid #fff; }
.rm-canvas { position: relative; width: calc(var(--rm-label) + var(--rm-w)); min-height: 100%; }
.rm-axis { position: sticky; top: 0; z-index: 6; display: flex; height: 52px; background: #fff; border-bottom: 1px solid var(--line); }
.rm-corner { position: sticky; left: 0; z-index: 7; width: var(--rm-label); flex: none; background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 16px; font-size: 11px; color: var(--muted); }
.rm-corner-t { font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.rm-corner-s { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-axis-track { position: relative; width: var(--rm-w); flex: none; }
.rm-group { position: absolute; top: 0; height: 28px; border-left: 1px solid #D5D8DE; padding: 7px 10px 0; font-size: 12px; font-weight: 700; white-space: nowrap; overflow: hidden; }
.rm-tick { position: absolute; top: 28px; height: 24px; border-left: 1px solid var(--line-2); padding: 5px 0 0 6px; font-family: var(--mono); font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; }
.rm-tick.is-weekend { color: #9BA1AC; background: #F7F8FA; }
.rm-tick.is-now { color: var(--link); font-weight: 600; }
.rm-now-pill { position: absolute; top: 30px; height: 20px; padding: 0 8px; border-radius: 999px; background: var(--link); color: #fff; font-size: 11px; font-weight: 700; display: flex; align-items: center; white-space: nowrap; pointer-events: none; }
.rm-grid { position: absolute; top: 52px; bottom: 0; left: var(--rm-label); width: var(--rm-w); pointer-events: none; z-index: 0; }
.rm-shade { position: absolute; top: 0; bottom: 0; background: #F7F8FA; }
.rm-line { position: absolute; top: 0; bottom: 0; width: 1px; }
.rm-line-major { background: #DADDE2; }
.rm-line-minor, .rm-line-week { background: #F0F1F4; }
.rm-now-line { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--link); opacity: .8; }
.rm-rows { position: relative; z-index: 1; }
.rm-empty { position: sticky; left: 0; margin: 0; padding: 48px 24px; max-width: 720px; color: var(--muted); }

/* Zeilen */
.rm-row { display: flex; height: 46px; border-bottom: 1px solid #F0F1F4; }
.rm-row-project { height: 56px; border-bottom-color: var(--line); background: rgba(251,251,252,.7); }
.rm-row-tray { height: 50px; }
.rm-label { position: sticky; left: 0; z-index: 3; width: var(--rm-label); flex: none; display: flex; align-items: center; gap: 10px; background: #fff; border: 0; border-right: 1px solid var(--line); padding: 0 12px 0 52px; min-width: 0; font: inherit; font-size: 14px; color: var(--ink); text-align: left; }
.rm-row-project .rm-label { background: #FBFBFC; padding: 0 8px 0 6px; }
.rm-label-btn { cursor: pointer; }
.rm-label-btn:hover, .rm-row-item.is-sel .rm-label-btn { background: #EEF2FB; }
.rm-ltext { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.rm-pname { display: inline-block; line-height: 24px; min-height: 24px; font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; align-self: flex-start; max-width: 100%; }
.rm-pname:hover { text-decoration: underline; }
.rm-meta { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-meta.is-warn { color: var(--warn); }
.rm-iname { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-idate { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-fold, .rm-add { width: 32px; height: 32px; flex: none; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink-3); }
.rm-fold { border: 0; background: transparent; }
.rm-fold:hover { background: var(--line-2); }
.rm-fold svg { transition: transform .15s; }
.rm-fold[aria-expanded="true"] svg { transform: rotate(90deg); }
.rm-add { border: 1px solid #D5D8DE; background: #fff; color: var(--ink); opacity: .6; }
.rm-row:hover .rm-add, .rm-add:focus-visible, .rm-add[aria-expanded="true"] { opacity: 1; }
.rm-logo { width: 30px; height: 30px; flex: none; border-radius: 8px; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rm-kind { flex: none; }
.rm-kind-phase { width: 14px; height: 8px; border-radius: 3px; border: 1.5px solid var(--c); background: #fff; }
.rm-kind-phase.is-geplant { border-style: dashed; }
.rm-kind-phase.is-laufend { background: color-mix(in srgb, var(--c) 35%, #fff); }
.rm-kind-phase.is-fertig { background: var(--c); }
.rm-kind-ms { width: 10px; height: 10px; margin: 0 2px; transform: rotate(45deg); border: 2px solid var(--c); background: #fff; }
.rm-kind-ms.is-in_arbeit { background: color-mix(in srgb, var(--c) 35%, #fff); }
.rm-kind-ms.is-erreicht { background: var(--c); }
.rm-hint-badge { width: 22px; height: 22px; flex: none; border-radius: 6px; background: #FDF3E7; color: #B4501A; display: inline-flex; align-items: center; justify-content: center; }
.rm-status { flex: none; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 999px; background: var(--ground); color: var(--ink-3); white-space: nowrap; }
.rm-status.is-laufend, .rm-status.is-in_arbeit { background: color-mix(in srgb, var(--c) 14%, #fff); color: var(--ink); }
.rm-status.is-fertig, .rm-status.is-erreicht { background: var(--ok-bg); color: var(--ok); }
.rm-label-tray { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; }
.rm-label-tray strong { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.rm-label-tray span { font-size: 12px; color: var(--muted); }
.rm-track { position: relative; width: var(--rm-w); flex: none; }

/* Projektzeile */
.rm-span { position: absolute; top: 50%; margin-top: -3px; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--c) 22%, transparent); }
.rm-dot-ms { position: absolute; top: 50%; margin-top: -5px; width: 10px; height: 10px; transform: translateX(-5px) rotate(45deg); background: #fff; border: 2px solid var(--c); }
.rm-dot-ms.is-on { background: var(--c); }
.rm-target { position: absolute; top: 0; bottom: -1px; width: 2px; background: var(--c); z-index: 1; }
.rm-target-faint { background: color-mix(in srgb, var(--c) 45%, transparent); }
.rm-flag { position: absolute; top: 8px; height: 22px; padding: 0 8px; border-radius: 6px; background: var(--c); color: #fff; font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; z-index: 2; }

/* Balken */
.rm-bar { position: absolute; top: 7px; height: 32px; border-radius: 9px; border: 1.5px solid var(--c); background: #fff; color: var(--ink); padding: 0 12px; display: flex; align-items: center; gap: 7px; overflow: hidden; overflow: clip; cursor: grab; touch-action: pan-y; user-select: none; font: inherit; font-size: 13px; font-weight: 600; text-align: left; z-index: 2; }
.rm-bar.is-geplant { border-style: dashed; }
.rm-bar.is-laufend { background: color-mix(in srgb, var(--c) 14%, #fff); }
.rm-bar.is-fertig { background: #ECEEF1; border-color: #C9CDD4; color: var(--muted); }
.rm-bar.is-partial { border-right-style: dotted; }
.rm-bar:hover { box-shadow: 0 4px 12px rgba(21,23,28,.12); }
.rm-bar.is-sel, .rm-ms.is-sel { box-shadow: 0 0 0 2px var(--ink), 0 8px 20px rgba(21,23,28,.18); }
.rm-bar.is-dragging, .rm-ms.is-dragging, .rm-chip.is-dragging { box-shadow: 0 10px 24px rgba(21,23,28,.25); z-index: 5; }
.rm-bar-text { flex: 0 1 auto; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; position: sticky; left: calc(var(--rm-label) + 10px); margin-right: auto; }
.rm-bar-date { font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.rm-prog { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--c); border-radius: 0 2px 0 0; }
.rm-alert { width: 18px; height: 18px; flex: none; border-radius: 50%; background: #B4501A; color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.rm-grip { position: absolute; top: 0; bottom: 0; width: 10px; cursor: ew-resize; opacity: 0; display: flex; align-items: center; justify-content: center; }
.rm-grip::after { content: ''; width: 3px; height: 14px; border-radius: 2px; background: var(--c); }
.rm-grip-s { left: 0; }
.rm-grip-e { right: 0; }
.rm-bar:hover .rm-grip, .rm-bar:focus-visible .rm-grip, .rm-bar.is-dragging .rm-grip { opacity: 1; }
.rm-outside { position: absolute; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; white-space: nowrap; pointer-events: none; z-index: 2; }

/* Meilensteine */
.rm-ms { position: absolute; top: 50%; transform: translateY(-50%); height: 32px; padding: 0 10px 0 6px; border: 0; border-radius: 8px; background: transparent; display: flex; align-items: center; gap: 10px; cursor: grab; touch-action: pan-y; user-select: none; font: inherit; color: var(--ink); z-index: 2; }
.rm-ms:hover, .rm-ms.is-sel, .rm-ms.is-dragging { background: #fff; }
.rm-ms:hover { box-shadow: 0 4px 12px rgba(21,23,28,.12); }
.rm-dia { width: 18px; height: 18px; flex: none; transform: rotate(45deg); border-radius: 3px; background: #fff; border: 2.5px solid var(--c); }
.rm-dia-sm { width: 9px; height: 9px; border-width: 2px; border-radius: 1px; }
.rm-ms.is-in_arbeit .rm-dia { background: color-mix(in srgb, var(--c) 35%, #fff); }
.rm-ms.is-erreicht .rm-dia { background: var(--c); }
.rm-ms.is-overdue .rm-dia { border-color: #B4501A; }
.rm-ms-name { font-size: 13px; font-weight: 600; white-space: nowrap; }
.rm-ms-date { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Ohne Termin */
.rm-tray { position: sticky; left: calc(var(--rm-label) + 12px); display: inline-flex; gap: 8px; height: 100%; align-items: center; padding-left: 12px; max-width: calc(100vw - var(--rm-label) - 140px); overflow-x: auto; }
.rm-chip { height: 32px; flex: none; padding: 0 12px 0 8px; border-radius: 8px; border: 1.5px dashed var(--c); background: #fff; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: grab; display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; touch-action: pan-y; user-select: none; }
.rm-chip svg { color: #9BA1AC; }
.rm-chip:hover { border-style: solid; }

/* Legende */
.rm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 6px 14px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--ink-3); }
.rm-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.rm-legend-help { margin-left: auto; color: var(--muted); }
.lg { display: inline-block; width: 24px; height: 11px; border-radius: 4px; border: 1.5px solid var(--link); background: #fff; }
.lg-run { background: rgba(43,89,195,.14); box-shadow: inset 0 -3px 0 var(--link); }
.lg-plan { border-style: dashed; }
.lg-done { background: #ECEEF1; border-color: #C9CDD4; }
.lg-d { display: inline-block; width: 10px; height: 10px; transform: rotate(45deg); border: 2px solid var(--link); background: #fff; }
.lg-d-on { background: var(--link); }
.lg-l { display: inline-block; width: 2px; height: 14px; }
.lg-target { background: var(--ink); }
.lg-today { background: var(--link); }

/* Detailleiste */
.rm-drawer { position: absolute; top: 58px; right: 16px; bottom: 12px; width: 400px; max-width: calc(100% - 32px); z-index: 40; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: -16px 0 40px rgba(21,23,28,.14); display: flex; flex-direction: column; overflow: hidden; outline: none; }
.rm-drawer[hidden] { display: none; }
.rm-d-head { display: flex; align-items: center; gap: 10px; padding: 14px 12px 14px 20px; border-bottom: 1px solid var(--line-2); }
.rm-d-title { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.rm-d-title small { font-size: 12px; color: var(--muted); }
.rm-d-title strong { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-d-body { flex: 1; overflow: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 16px; }
.rm-d-body .field-hint { margin-top: -10px; }
.rm-d-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.rm-d-row { display: flex; justify-content: space-between; }
.rm-d-row output { font-family: var(--mono); font-weight: 500; }
.rm-d-seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.rm-d-seg button { min-height: 40px; border-radius: 10px; border: 1.5px solid #D5D8DE; background: #fff; color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.rm-d-seg button.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.rm-d-dates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.rm-d-plan { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: var(--ground); }
.rm-d-plan p { margin: 0; font-size: 14px; color: var(--ink-3); }
.rm-d-shift { display: flex; gap: 8px; }
.rm-d-shift .btn { flex: 1; min-height: 40px; padding: 0 10px; font-size: 14px; }
.rm-d-hint { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: #FDF3E7; border: 1px solid #F0D7B8; color: var(--warn); font-size: 14px; }
.rm-d-hint svg { flex: none; }
.rm-d-links { display: flex; flex-direction: column; gap: 4px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.rm-d-links a { min-height: 32px; display: inline-flex; align-items: center; font-size: 14px; font-weight: 600; text-decoration: none; }
.rm-d-links a:hover { text-decoration: underline; }
.rm-d-foot { display: flex; align-items: center; gap: 8px; padding: 12px 20px; border-top: 1px solid var(--line-2); }
.rm-d-foot .btn { min-height: 40px; padding: 0 14px; font-size: 14px; white-space: nowrap; }
.rm-d-saved { margin-left: auto; font-size: 12px; color: var(--muted); }

/* Menü, Zieh-Hinweis, Geist */
.rm-menu { position: fixed; z-index: 70; min-width: 220px; background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(21,23,28,.18); padding: 6px; display: flex; flex-direction: column; }
.rm-menu[hidden] { display: none; }
.rm-menu-title { padding: 6px 10px 4px; font-size: 12px; color: var(--muted); font-weight: 600; }
.rm-menu button { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; color: var(--ink); text-align: left; cursor: pointer; }
.rm-menu button:hover, .rm-menu button:focus-visible { background: var(--line-2); }
.rm-menu .rm-dia { --c: var(--ink-3); }
.rm-tip, .rm-ghost { position: fixed; left: 0; top: 0; z-index: 80; pointer-events: none; padding: 5px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; box-shadow: 0 8px 20px rgba(21,23,28,.25); }
.rm-ghost { font-size: 13px; padding: 6px 12px; }
.rm-tip[hidden], .rm-ghost[hidden] { display: none; }

@media (max-width: 1100px) {
  .rm-legend-help { display: none; }
}
/* Schmalere Bildschirme: Platz für die Projektfilter schaffen */
@media (min-width: 861px) and (max-width: 1240px) {
  .rm-title, .rm-sep, .rm-hide-sm { display: none; }
  #rm-today { width: 34px; padding: 0; justify-content: center; }
}
.rm-head > .rm-chips.is-scroll { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 28px), transparent); padding-right: 20px; }
@media (max-width: 860px) {
  .rm-page { --rm-label: 176px; height: calc(100dvh - 60px); padding: 10px 12px; gap: 8px; }
  .rm-title { display: none; }
  .rm-head { gap: 6px; flex-wrap: wrap; }
  .rm-sep, .rm-spacer { display: none; }
  .rm-hide-sm { display: none; }
  .rm-btn { padding: 0 10px; }
  .rm-head > .rm-search { order: 3; flex: 1 1 auto; width: auto; min-width: 90px; }
  .rm-head > .rm-chips { order: 5; flex: 1 1 0; min-width: 0; scrollbar-width: none; }
  .rm-hints { order: 6; }
  #rm-new-ms { order: 7; }
  #rm-new-ph { order: 8; }
  .rm-pchip { flex: none; }
  .rm-pop { right: auto; left: 50%; transform: translateX(-60%); }
  .rm-label { padding-left: 14px; gap: 8px; }
  .rm-row-project .rm-label { padding-left: 2px; gap: 6px; }
  .rm-status, .rm-row-project .rm-logo, .rm-kind { display: none; }
  .rm-corner-s { display: none; }
  .rm-btn-primary { width: 34px; padding: 0; justify-content: center; }
  .rm-btn-primary span { display: none; }
  .rm-corner { padding: 0 12px; }
  .rm-drawer { position: fixed; inset: 0; width: auto; max-width: none; border: 0; border-radius: 0; z-index: 120; }
  .rm-tray { max-width: calc(100vw - var(--rm-label) - 60px); }
  .rm-d-saved { display: none; }
  .rm-legend { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rm-fold svg { transition: none; }
}

/* Aufgaben an Phasen und Meilensteinen (Migration 009) */
.rm-tcount { flex: none; font-family: var(--mono); font-size: 11px; font-weight: 500; color: var(--ink-3); padding: 1px 6px; border-radius: 6px; background: rgba(255,255,255,.75); }
.rm-bar-text .rm-tcount, .rm-outside .rm-tcount { margin-left: 6px; }
.rm-outside .rm-tcount { background: var(--ground); }
.rm-d-tasks { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.rm-d-count { font-size: 13px; color: var(--muted); }
.rm-d-bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.rm-d-bar span { display: block; height: 100%; border-radius: 999px; }
.rm-d-tasklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border: 1px solid var(--line-2); border-radius: 10px; }
.rm-d-tasklist li { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line-2); }
.rm-d-tasklist li:first-child { border-top: 0; }
.rm-d-tasklist a { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 4px 6px 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.rm-d-tasklist a:hover .rm-ttitle { text-decoration: underline; }
.rm-d-tasklist li.is-done .rm-ttitle { color: var(--muted); text-decoration: line-through; }
.rm-tstatus { flex: none; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: 999px; background: var(--ground); color: var(--ink-3); white-space: nowrap; }
.rm-tstatus.is-in_arbeit { background: var(--info-bg); color: var(--info); }
.rm-tstatus.is-review { background: var(--warn-bg); color: var(--warn); }
.rm-tstatus.is-erledigt { background: var(--ok-bg); color: var(--ok); }
.rm-ttitle { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rm-tdue { flex: none; font-family: var(--mono); font-size: 12px; color: var(--muted); }
.rm-tunlink { flex: none; width: 32px; height: 32px; margin-right: 4px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.rm-tunlink:hover { background: var(--line-2); color: var(--ink); }
.rm-d-newtask { display: flex; gap: 8px; }
.rm-d-newtask input { flex: 1; min-width: 0; min-height: 40px; font-size: 14px; }
.rm-d-newtask .btn { min-height: 40px; padding: 0 14px; font-size: 14px; }
#rm-d-link { min-height: 40px; font-size: 14px; color: var(--ink-3); }
.task-links { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: 12px; color: var(--ink-3); }
.task-link { position: relative; display: inline-flex; align-items: center; gap: 5px; min-width: 0; max-width: 100%; }
.task-link-ph { flex: none; width: 12px; height: 7px; border-radius: 2px; border: 1.5px solid var(--ink-3); }
.task-link-ms { flex: none; width: 8px; height: 8px; transform: rotate(45deg); border: 1.5px solid var(--ink-3); }

/* ---------- Roadmap V3: Projekte als Bahnen ---------- */
.rm-scroller { background: #fff; }
.rm-gap { height: 10px; background: var(--ground); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); position: relative; }
.rm-rows > .rm-gap:first-child { border-top: 0; }
.rm-rows > .rm-gap:last-child { border-bottom: 0; height: 24px; }
.rm-lane { position: relative; }
.rm-lane .rm-row { border-bottom: 1px solid color-mix(in srgb, var(--c) 14%, #fff); background: none; }
.rm-lane .rm-row:last-child { border-bottom: 0; }
.rm-lane .rm-label { box-shadow: inset 6px 0 0 var(--c); background: color-mix(in srgb, var(--c) 4%, #fff); border-right-color: color-mix(in srgb, var(--c) 20%, #fff); }
.rm-lane .rm-row-project .rm-label { background: color-mix(in srgb, var(--c) 11%, #fff); padding-left: 14px; }
.rm-lane .rm-label-btn:hover, .rm-lane .rm-row-item.is-sel .rm-label-btn { background: color-mix(in srgb, var(--c) 17%, #fff); }
.rm-lane .rm-row-project .rm-track { background: color-mix(in srgb, var(--c) 9%, transparent); }
.rm-lane .rm-row-item .rm-track, .rm-lane .rm-row-tray .rm-track { background: color-mix(in srgb, var(--c) 3.5%, transparent); }
.rm-lane .rm-row:hover .rm-label { background: color-mix(in srgb, var(--c) 8%, #fff); }
.rm-lane .rm-row-project:hover .rm-label { background: color-mix(in srgb, var(--c) 14%, #fff); }
.rm-lane .rm-span { background: color-mix(in srgb, var(--c) 45%, transparent); }
.rm-lane-empty { position: sticky; left: calc(var(--rm-label) + 16px); display: inline-flex; align-items: center; height: 100%; padding-left: 16px; font-size: 13px; color: var(--muted); }
.rm-traybtn { flex: none; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 6px 0 8px; border-radius: 999px; border: 1.5px dashed var(--c); background: #fff; color: var(--ink); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.rm-traybtn:hover { border-style: solid; }
.rm-traybtn svg { transition: transform .15s; }
.rm-traybtn[aria-expanded="true"] svg { transform: rotate(180deg); }

/* Balken in Projektfarbe: läuft = gefüllt, geplant = hell gestrichelt, fertig = grau */
.rm-lane .rm-bar.is-laufend { background: var(--c); border-color: var(--c); color: var(--c-on); }
.rm-lane .rm-bar.is-laufend .rm-bar-date { color: inherit; opacity: .8; }
.rm-lane .rm-bar.is-laufend .rm-prog { background: var(--c-on); opacity: .55; }
.rm-lane .rm-bar.is-laufend .rm-grip::after { background: var(--c-on); }
.rm-lane .rm-bar.is-laufend .rm-tcount { color: var(--ink); }
.rm-lane .rm-bar.is-geplant { background: color-mix(in srgb, var(--c) 12%, #fff); }
.rm-lane .rm-bar.is-geplant .rm-prog { background: var(--c); }

/* Kompakt: alles in der Projektzeile */
.rm-row-project.is-packed .rm-label { align-items: flex-start; padding-top: 12px; }
.rm-row-project.is-packed .rm-span { top: 24px; margin-top: 0; }
.rm-bar.is-small { height: 24px; padding: 0 10px; border-radius: 7px; font-size: 12px; }
.rm-bar.is-small .rm-prog { height: 3px; }
@media (prefers-reduced-motion: reduce) {
  .rm-traybtn svg { transition: none; }
}

/* ---------- Portfolio, Projektseite, Einstellungen, Entscheidungen ---------- */
.page-wide { max-width: 1480px; }
.progress > span { display: block; height: 100%; border-radius: 999px; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; }
.log-badge { width: 26px; height: 26px; flex: none; border-radius: 7px; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-top: 1px; }
.search-inline { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid #C9CDD4; border-radius: 10px; background: #fff; color: var(--muted); }
.search-inline:focus-within { outline: 3px solid #6E93E8; outline-offset: 1px; }
.search-inline input { border: 0; outline: none; font: inherit; font-size: 15px; min-height: 36px; padding: 0; width: 200px; max-width: 100%; color: var(--ink); background: transparent; }
.plain-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.plain-list li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }

/* Portfolio */
.portfolio { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.portfolio > .card-grid { flex: 999 1 560px; min-width: 0; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); }
.portfolio-side { flex: 1 1 320px; min-width: 0; max-width: 440px; display: flex; flex-direction: column; gap: 18px; }
.pcard { position: relative; overflow: hidden; padding-top: 26px; gap: 14px; }
.pcard-stripe { position: absolute; top: 0; left: 0; right: 0; height: 6px; background: var(--c); }
.pcard:hover { border-color: #B9BEC7; box-shadow: 0 6px 18px rgba(21,23,28,.07); }
.pcard-title { color: var(--ink); text-decoration: none; }
.pcard-title::after { content: ''; position: absolute; inset: 0; }   /* ganze Karte klickbar */
.pcard-title:hover { text-decoration: underline; }
.pcard-gear, .pcard-links a, .pcard .badge { position: relative; z-index: 1; }
.pcard-gear { width: 40px; height: 40px; margin: -6px -8px 0 -4px; color: var(--muted); flex: none; }
.pcard-gear:hover { color: var(--ink); }
.pcard-now { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--c) 7%, #fff); }
.pcard-now-row { display: flex; align-items: center; gap: 10px; font-size: 14px; min-width: 0; }
.pcard-now-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pcard-now-text strong { font-weight: 600; }
.pcard-now-date { flex: none; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.pcard-now-date.soon { color: #B4501A; font-weight: 600; }
.now-icon { flex: none; border: 2px solid var(--c); background: #fff; }
.now-phase { width: 14px; height: 8px; border-radius: 3px; }
.now-phase.is-laufend { background: var(--c); }
.now-phase.is-geplant { border-style: dashed; }
.now-milestone { width: 10px; height: 10px; margin: 0 2px; border-radius: 2px; transform: rotate(45deg); }
.now-milestone.is-in_arbeit { background: color-mix(in srgb, var(--c) 45%, #fff); }
.now-none { width: 8px; height: 8px; border-radius: 50%; margin: 0 3px; border-color: #C9CDD4; }
.facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pcard-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin: 0 -22px -22px; padding: 10px 22px; border-top: 1px solid var(--line-2); background: #FBFBFC; }
.pcard-links { display: flex; gap: 14px; }
.pcard-links a { font-size: 14px; font-weight: 600; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.date-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.date-list li + li { border-top: 1px solid var(--line-2); }
.date-item { display: flex; align-items: center; gap: 12px; padding: 9px 4px; border-radius: 8px; color: var(--ink); text-decoration: none; }
.date-item:hover { background: #F7F8FA; }
.date-box { width: 52px; flex: none; display: flex; flex-direction: column; align-items: center; padding: 4px 0; border-radius: 8px; background: var(--ground); line-height: 1.1; }
.date-box strong { font-size: 16px; }
.date-box span { font-size: 11px; color: var(--muted); text-transform: uppercase; }
.date-text { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.date-text strong { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.date-text .dot { width: 8px; height: 8px; margin-right: 5px; vertical-align: 0; }
.date-left { flex: none; font-size: 12.5px; color: var(--muted); }
.date-left.soon { color: #B4501A; font-weight: 600; }

/* Projektseite */
.project-tabs { margin-top: -6px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; }
.project-tabs .tab { text-decoration: none; white-space: nowrap; flex: none; }
.project-tabs .tab:hover { color: var(--ink); }
.tab-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; }
.tab-count-err { background: var(--err-bg); color: var(--err); }
.project-lead { margin: -8px 0 0; color: var(--ink-3); font-size: 16px; max-width: 75ch; }
.now-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.now-item { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line-2); }
.now-item:first-child { border-top: 0; }
.now-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.now-progress { display: flex; align-items: center; gap: 10px; margin-top: 4px; }
.now-progress .progress { flex: 0 1 220px; height: 8px; }
.now-date { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-family: var(--mono); font-size: 13px; }
.now-date .small { font-family: var(--font); }
.plan-prog { display: inline-flex; align-items: center; gap: 8px; }
.plan-prog .progress { width: 90px; height: 8px; }

/* Einstellungen */
.settings { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.settings-nav { flex: 1 1 200px; max-width: 240px; display: flex; flex-direction: column; gap: 2px; }
.settings-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 0 12px; border-radius: 10px; color: var(--ink-3); text-decoration: none; font-weight: 500; }
.settings-link:hover { background: #E6E8EC; color: var(--ink); }
.settings-link.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 3px rgba(21,23,28,.08); }
.admin-badge { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: var(--info-bg); color: var(--info); }
.settings-body { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.settings-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.settings-grid > .panel { flex: 999 1 420px; min-width: 0; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.seg { display: grid; gap: 6px; }
.seg-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.seg-opt { position: relative; }
.seg-opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg-opt span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 44px; padding: 4px 8px; border-radius: 10px; border: 1.5px solid #D5D8DE; background: #fff; font-size: 14px; font-weight: 600; cursor: pointer; }
.seg-opt input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg-opt input:focus-visible + span { outline: 3px solid #6E93E8; outline-offset: 2px; }
.savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 10px 10px 18px; border-radius: 14px; background: var(--ink); color: #fff; box-shadow: 0 12px 32px rgba(21,23,28,.3); }
.savebar[hidden] { display: none; }
.savebar > span { flex: 1 1 180px; font-size: 15px; }
.btn-ghost-dark { background: transparent; color: #fff; border-color: #4A4F59; min-height: 40px; }
.btn-ghost-dark:hover { background: rgba(255,255,255,.1); }
.btn-light { background: #fff; color: var(--ink); min-height: 40px; }
.btn-light:hover { background: #E8EAEE; }
.preview-col { flex: 1 1 260px; max-width: 340px; display: flex; flex-direction: column; gap: 12px; }
.preview-label { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.preview-card, .preview-lane { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.preview-stripe { display: block; height: 6px; background: var(--c); }
.preview-head { display: flex; align-items: center; gap: 10px; padding: 14px; }
.preview-name { display: flex; flex-direction: column; min-width: 0; }
.preview-lane-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: color-mix(in srgb, var(--c) 11%, #fff); box-shadow: inset 5px 0 0 var(--c); }
.preview-lane-head .muted { margin-left: auto; }
.preview-lane-row { position: relative; height: 44px; background: color-mix(in srgb, var(--c) 4%, #fff); box-shadow: inset 5px 0 0 var(--c); }
.preview-bar { position: absolute; left: 28px; top: 9px; width: 150px; height: 26px; border-radius: 7px; font-size: 12px; font-weight: 600; padding: 4px 10px; }
.preview-dia { position: absolute; left: 212px; top: 15px; width: 13px; height: 13px; transform: rotate(45deg); border-radius: 2px; border: 2.5px solid var(--c); background: #fff; }
.member-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line-2); border-radius: 12px; }
.member-list li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; }
.member-list li + li { border-top: 1px solid var(--line-2); }
.member-name { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.svc-sum { font-size: 14px; color: var(--ink-3); white-space: nowrap; }
.svc-sum strong { font-size: 18px; color: var(--ink); }
.admin-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--info-bg); color: var(--info); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.panel-danger { border-color: #F1C9C4; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.panel-danger > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 6px; }
.inline-form .field { flex: 1 1 220px; }
.inline-form { align-items: flex-end; }
@media (max-width: 860px) {
  .seg-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .settings-nav { max-width: none; flex-direction: row; overflow-x: auto; flex-basis: 100%; }
  .settings-link { flex: none; }
  .facts-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .search-inline input { width: 140px; }
}
.pcard .project-title { min-width: 0; }
.pcard .project-title .mono { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-foot { margin-top: auto; }
.panel-head > div { flex: 1 1 320px; min-width: 0; }
.panel h2 + p.muted { margin-top: 4px; }
.plain-list a { min-height: 28px; display: inline-flex; align-items: center; }
@media (max-width: 860px) {
  .rm-lane .rm-add { display: none; }
  .rm-traybtn > svg:last-child { display: none; }
}
/* Roadmap-Kopf auf dem Handy: Zeile 1 Darstellung + Zeitraster, Zeile 2 Werkzeuge, Zeile 3 Projekte.
   Breiten schrumpfen statt umzubrechen, damit es auch mit breiteren Ersatzschriften passt. */
@media (max-width: 860px) {
  #rm-mode { order: 1; flex: 2 1 0; min-width: 0; }
  #rm-zoom { order: 2; flex: 3 1 0; min-width: 0; }
  .rm-seg button { flex: 1 1 0; min-width: 0; padding: 0 4px; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .rm-head > .rm-spacer { display: block; order: 3; flex: 1 1 100%; height: 0; }
  #rm-today { order: 4; }
  .rm-head > .rm-search { order: 5; flex: 1 1 0; min-width: 100px; }
  .rm-hints { order: 6; }
  #rm-new-ms { order: 7; }
  #rm-new-ph { order: 8; }
  .rm-head > .rm-chips { order: 9; flex: 1 1 100%; }
}

/* ---------- 1.4: Aufgaben in Projektfarben, Projekt-Bahnen ---------- */
.pill-count { font-family: var(--mono); font-size: 12px; font-weight: 500; padding: 1px 7px; border-radius: 999px; background: rgba(21,23,28,.07); }
.pill.on .pill-count { background: rgba(255,255,255,.2); color: #fff; }
.pill-project { background: color-mix(in srgb, var(--c) 10%, #fff); border: 1.5px solid color-mix(in srgb, var(--c) 40%, #fff); color: var(--ink); font-weight: 600; }
.pill-project .dot { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.pill-project:hover { background: color-mix(in srgb, var(--c) 17%, #fff); }
.pill-project.on { background: var(--c); border-color: var(--c); color: var(--c-on); }
.pill-project.on .dot { background: var(--c-on); }
.pill-project.on .pill-count { background: color-mix(in srgb, var(--c-on) 22%, transparent); }
.toolbar-end { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.segctl { display: inline-flex; background: #E3E5E9; border-radius: 12px; padding: 3px; }
.segctl button { min-height: 38px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--ink-3); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; white-space: nowrap; }
.segctl button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(21,23,28,.15); }

.board { grid-template-columns: repeat(4, minmax(228px, 1fr)); }
.column { background: #E6E8EC; border-radius: 16px; padding: 14px; gap: 12px; }
.column-mix { display: flex; gap: 2px; height: 6px; margin: -6px 4px 0; border-radius: 999px; overflow: hidden; background: #D5D8DE; }
.column-empty { margin: 0; padding: 16px 8px; text-align: center; color: var(--muted); font-size: 14px; }
.task { background: color-mix(in srgb, var(--c) 10%, #fff); border: 1px solid color-mix(in srgb, var(--c) 32%, #fff); border-radius: 14px; padding: 13px 14px; gap: 10px; transition: box-shadow .15s, transform .15s, border-color .15s; }
.task:hover { border-color: color-mix(in srgb, var(--c) 60%, #fff); box-shadow: 0 8px 22px rgba(21,23,28,.10); transform: translateY(-1px); }
.task-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 26px; }
.task-project { min-width: 0; padding: 3px 10px 3px 8px; border-radius: 999px; background: var(--c); color: var(--c-on); font-size: 12.5px; font-weight: 700; }
.task-code { font-family: var(--mono); font-size: 11px; font-weight: 500; opacity: .85; }
.task-title { font-size: 16px; font-weight: 650; line-height: 1.3; }
.task-chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.task-chips .task-links { display: contents; }
.task-link, .task-due, .task-block { display: inline-flex; align-items: center; gap: 6px; min-height: 24px; padding: 2px 9px; border-radius: 8px; font-size: 12.5px; }
.task-link { background: rgba(255,255,255,.8); color: var(--ink-2); font-weight: 500; }
.task-link-ph { width: 13px; height: 7px; border: 0; background: var(--c); }
.task-link-ms { width: 8px; height: 8px; border: 0; border-radius: 1px; background: var(--c); }
.task-block { background: #FBE3DF; color: #8E2414; font-weight: 600; }
.task-due { background: rgba(255,255,255,.8); color: var(--ink-2); font-weight: 600; }
.task-due.is-late { background: #8E2414; color: #fff; }
.task-due.is-soon { background: #FCEBD3; color: #7A3E06; }
.task-chips .avatar-xs { margin-left: auto; }
.task-done { background: color-mix(in srgb, var(--c) 4%, #fff); }
.task-done .task-project { background: color-mix(in srgb, var(--c) 30%, #fff); color: var(--ink); }

.lanes-scroll { position: relative; overflow-x: auto; padding-bottom: 6px; }
.lanes { min-width: 980px; display: flex; flex-direction: column; gap: 10px; }
.lanes-head, .lane { display: grid; grid-template-columns: 190px repeat(4, minmax(0, 1fr)); gap: 10px; }
.lanes-head { padding: 0 10px; font-size: 14px; font-weight: 700; }
.lanes-head > span { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px; }
.lane { padding: 10px; border-radius: 16px; background: color-mix(in srgb, var(--c) 7%, #fff); border: 1px solid color-mix(in srgb, var(--c) 30%, #fff); }
.lane-label { position: relative; align-self: start; display: flex; flex-direction: column; gap: 6px; padding: 12px 46px 12px 14px; border-radius: 12px; background: var(--c); color: var(--c-on); }
.lane-label h2 { font-size: 17px; }
.lane-sum { font-size: 13px; }
.lane-add { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border: 0; border-radius: 9px; background: color-mix(in srgb, var(--c-on) 16%, transparent); color: var(--c-on); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lane-add:hover { background: color-mix(in srgb, var(--c-on) 28%, transparent); }
.lane-cell { display: flex; flex-direction: column; gap: 8px; min-height: 64px; border-radius: 12px; }
.lane-cell.drop { outline: 2px dashed var(--c); outline-offset: 2px; background: color-mix(in srgb, var(--c) 10%, transparent); }
.lane-empty { flex: 1; min-height: 52px; border-radius: 12px; border: 1.5px dashed color-mix(in srgb, var(--c) 32%, #fff); }
.task-compact { background: #fff; padding: 11px 12px; gap: 7px; border-radius: 12px; }
.task-compact.task-done { background: #F7F8FA; }
.task-compact .task-title { font-size: 14.5px; }
.task-compact .task-link, .task-compact .task-due:not(.is-late):not(.is-soon) { background: color-mix(in srgb, var(--c) 12%, #fff); }
.task-compact .task-link, .task-compact .task-due, .task-compact .task-block { font-size: 12px; padding: 2px 8px; }
.lanes-note { margin: 0 4px; }
.lane-cell-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- 1.4: Launch-Checkliste ---------- */
.ring { flex: none; transform: rotate(-90deg); }
.ring-track { stroke: color-mix(in srgb, var(--c) 26%, #fff); }
.ring-fill { stroke: var(--c); }
.lx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.lx-tile { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 12px 14px; border-radius: 16px; border: 1.5px solid color-mix(in srgb, var(--c) 35%, #fff); background: color-mix(in srgb, var(--c) 9%, #fff); color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: transform .15s, box-shadow .15s; }
.lx-tile:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(21,23,28,.10); }
.lx-tile .ring-fill { stroke: color-mix(in srgb, var(--c) 85%, #000); }
.lx-tile.on { background: var(--c); border-color: var(--c); color: var(--c-on); }
.lx-tile.on .ring-track { stroke: color-mix(in srgb, var(--c-on) 30%, transparent); }
.lx-tile.on .ring-fill { stroke: var(--c-on); }
.lx-tile-text { display: flex; flex-direction: column; min-width: 0; }
.lx-tile-text strong { font-size: 16px; line-height: 1.2; }
.lx-tile-text .mono { font-size: 12.5px; opacity: .9; }

.lx-hero { display: flex; flex-wrap: wrap; align-items: stretch; gap: 28px; padding: 26px 28px; border-radius: 22px; background: color-mix(in srgb, var(--c) 11%, #fff); border: 1px solid color-mix(in srgb, var(--c) 32%, #fff); }
.lx-ring { position: relative; flex: none; align-self: center; width: 168px; height: 168px; }
.lx-ring-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lx-ring-text strong { font-size: 40px; line-height: 1; letter-spacing: -.02em; }
.lx-ring-text small { font-size: 20px; }
.lx-ring-text .mono { margin-top: 4px; color: var(--ink-3); }
.lx-hero-main { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.lx-hero-main h2 { font-size: 30px; letter-spacing: -.015em; }
.lx-sub { margin: 0; color: var(--ink-3); font-size: 15.5px; }
.lx-segments { display: flex; gap: 4px; height: 12px; }
.lx-segments > span { display: flex; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--c) 26%, #fff); }
.lx-segments > span > span { background: var(--c); }
.lx-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13.5px; color: var(--ink-3); }
.lx-legend li { display: inline-flex; align-items: center; gap: 6px; }
.lx-legend .mono { font-size: 12px; }
.lx-dot { width: 9px; height: 9px; border-radius: 50%; border: 1.5px solid var(--c); background: #fff; }
.lx-legend .is-full .lx-dot { background: var(--c); }
.lx-gate { flex: 0 1 360px; min-width: 260px; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.lx-gate p { margin: 0; }
.lx-gate-head { display: flex; align-items: center; gap: 10px; }
.lx-gate-head > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.lx-gate-icon { width: 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; }
.lx-gate-label { font-size: 14px; font-weight: 600; }
.lx-gate.is-err .lx-gate-icon { background: #FBE3DF; color: #8E2414; }
.lx-gate.is-err .lx-gate-label { color: #8E2414; }
.lx-gate.is-warn .lx-gate-icon { background: #FCEBD3; color: #7A3E06; }
.lx-gate.is-warn .lx-gate-label { color: #7A3E06; }
.lx-gate.is-ok .lx-gate-icon { background: var(--ok-bg); color: var(--ok); }
.lx-gate.is-ok .lx-gate-label { color: var(--ok); }
.lx-gate .blockers a:hover strong { text-decoration: underline; }

.lx-sections { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 16px; align-items: start; }
.lx-section { display: flex; flex-direction: column; border-radius: 18px; background: #fff; border: 1px solid var(--line); overflow: hidden; }
.lx-section-head { display: flex; align-items: center; gap: 12px; padding: 16px 16px 10px; }
.lx-icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 16%, #fff); color: color-mix(in srgb, var(--c) 72%, #000); }
.lx-section-title { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.lx-section-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.lx-section-row h3 { font-size: 17px; }
.lx-full { color: color-mix(in srgb, var(--c) 72%, #000); font-weight: 600; }
.lx-minibar { display: block; height: 5px; border-radius: 999px; overflow: hidden; background: color-mix(in srgb, var(--c) 22%, #fff); }
.lx-minibar span { display: block; height: 100%; background: var(--c); }
.lx-section .checklist { padding: 0 8px 4px; }
.lx-section .check-item { border-top: 0; padding: 4px 8px; border-radius: 12px; gap: 4px; }
.lx-section .check-item:hover { background: #F7F8FA; }
.lx-section .check-main { align-items: flex-start; gap: 12px; padding-top: 8px; }
.lx-check { appearance: none; -webkit-appearance: none; flex: none; width: 26px !important; height: 26px !important; margin: -2px 0 0 !important; border: 2px solid #8A909B; border-radius: 8px; background: #fff; display: inline-grid; place-content: center; cursor: pointer; }
.lx-check::after { content: ''; width: 7px; height: 13px; border: solid #fff; border-width: 0 3px 3px 0; transform: translate(0, -1px) rotate(45deg); opacity: 0; }
.lx-check:checked { background: color-mix(in srgb, var(--c) 72%, #000); border-color: color-mix(in srgb, var(--c) 72%, #000); }
.lx-check:checked::after { opacity: 1; }
.lx-section .flag-toggle { display: inline-flex; align-items: center; gap: 5px; min-height: 36px; min-width: 36px; justify-content: center; padding: 0 8px; border-radius: 9px; font-family: var(--font); font-size: 12.5px; font-weight: 600; color: #7A808A; }
.lx-section .flag-toggle.on { background: #FBE3DF; color: #8E2414; border-color: transparent; }
.lx-section .icon-btn-sm { width: 36px; height: 36px; }
.lx-section .icon-btn-sm:hover { color: var(--ink); }
.lx-add { margin: 2px 16px 14px; }
.lx-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.lx-tpl { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.lx-tpl label { font-size: 14px; font-weight: 600; }
.lx-tpl select { width: auto; min-width: 220px; }

.lx-empty { display: flex; flex-direction: column; gap: 18px; padding: 28px; border-radius: 22px; background: color-mix(in srgb, var(--c) 11%, #fff); border: 1px solid color-mix(in srgb, var(--c) 32%, #fff); }
.lx-empty h2 { font-size: 26px; letter-spacing: -.015em; }
.lx-empty > div > p { margin: 6px 0 0; color: var(--ink-3); }
.lx-tpls { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.lx-tpl-card { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 16px; background: #fff; border: 1px solid var(--line); }
.lx-tpl-card h3 { font-size: 17px; }
.lx-tpl-card p { margin: 0; }
.lx-tpl-secs { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.lx-tpl-secs li { padding: 3px 9px; border-radius: 8px; background: color-mix(in srgb, var(--c) 14%, #fff); font-size: 12.5px; }
.lx-tpl-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* ---------- 1.4: Kosten & Infrastruktur ---------- */
.kx-month { display: inline-flex; align-items: center; gap: 4px; padding: 3px; border-radius: 12px; background: #fff; border: 1px solid #D5D8DE; }
.kx-month strong { min-width: 150px; text-align: center; font-size: 15px; }
.kx-month .icon-btn { width: 40px; height: 40px; }
.kx-month .icon-btn:disabled { color: #B9BEC7; cursor: default; background: transparent; }
.kx-hero { display: flex; flex-wrap: wrap; gap: 28px; padding: 26px 28px; border-radius: 22px; background: var(--ink); color: #F2F3F5; }
.kx-hero-main { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.kx-run { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 14px; color: #B6BBC4; }
.kx-run-dot { width: 8px; height: 8px; border-radius: 50%; background: #8C94A3; }
.kx-run-dot.is-live { background: #5BC48A; }
.kx-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; }
.kx-total { display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.kx-total-label, .kx-total-split { font-size: 13.5px; color: #B6BBC4; }
.kx-total-value { font-size: 44px; line-height: 1; letter-spacing: -.025em; font-weight: 650; overflow-wrap: anywhere; }
.kx-stack { display: flex; gap: 3px; height: 10px; margin-top: 2px; }
.kx-stack span { border-radius: 3px; min-width: 3px; }
.kx-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: #C9CDD4; }
.kx-legend li { display: inline-flex; align-items: center; gap: 6px; }
.kx-legend li > span { width: 10px; height: 10px; border-radius: 3px; }
.kx-note { margin: 0; font-size: 12.5px; color: #9BA1AC; }
.kx-history { flex: 0 1 380px; min-width: 260px; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: #22252C; }
.kx-history-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 8px; }
.kx-history-head strong { font-size: 15px; }
.kx-history-head span { font-size: 12.5px; color: #B6BBC4; }
.kx-bars { display: flex; align-items: flex-end; gap: 8px; height: 170px; }
.kx-bar { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; gap: 6px; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #9BA1AC; font: inherit; cursor: pointer; }
.kx-bar:hover .kx-bar-col { filter: brightness(1.2); }
.kx-bar-val { font-family: var(--mono); font-size: 11px; text-align: center; }
.kx-bar-col { display: flex; flex-direction: column; border-radius: 6px; overflow: hidden; }
.kx-bar-cla { background: #5D6470; }
.kx-bar-gem { background: #3F444E; }
.kx-bar-label { font-size: 12px; text-align: center; }
.kx-bar.on { color: #fff; font-weight: 700; }
.kx-bar.on .kx-bar-cla { background: #F2F3F5; }
.kx-bar.on .kx-bar-gem { background: #8C94A3; }
.kx-history-legend { display: flex; gap: 14px; font-size: 12.5px; color: #C9CDD4; }
.kx-history-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.kx-key { width: 10px; height: 10px; border-radius: 3px; }
.kx-key-cla { background: #F2F3F5; }
.kx-key-gem { background: #8C94A3; }
.kx-unassigned { display: flex; align-items: flex-start; gap: 10px; padding: 14px 18px; border-radius: 16px; background: #FCEBD3; color: #5C2E04; font-size: 14.5px; }
.kx-unassigned svg { flex: none; margin-top: 1px; }
.kx-section { display: flex; flex-direction: column; gap: 14px; }
.kx-section h2 { font-size: 22px; }
.kx-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.kx-card { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; background: #fff; border: 1px solid color-mix(in srgb, var(--c) 35%, #fff); }
.kx-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 16px 18px; background: var(--c); color: var(--c-on); }
.kx-card-name { display: flex; flex-direction: column; gap: 2px; min-width: 0; font-size: 13px; }
.kx-card-name a { color: var(--c-on); font-size: 18px; font-weight: 700; text-decoration: none; }
.kx-card-name a:hover { text-decoration: underline; }
.kx-card-total { display: flex; flex-direction: column; align-items: flex-end; text-align: right; font-size: 13px; }
.kx-card-total strong { font-size: 21px; line-height: 1.15; letter-spacing: -.01em; }
.kx-rows { list-style: none; margin: 0; padding: 8px 8px 4px; }
.kx-rows li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; }
.kx-rows li:hover { background: #F7F8FA; }
.kx-mono { flex: none; width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--c) 14%, #fff); color: color-mix(in srgb, var(--c) 70%, #000); font-family: var(--mono); font-size: 12px; }
.kx-row-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.kx-row-name strong { font-size: 14.5px; }
.kx-row-name span { font-size: 12.5px; color: var(--muted); }
.kx-auto { display: inline-block; margin-left: 4px; vertical-align: 1px; font-size: 11px; padding: 2px 7px; border-radius: 6px; background: var(--info-bg); color: var(--info); font-weight: 600; }
.kx-amount { flex: none; min-width: 74px; text-align: right; font-family: var(--mono); font-size: 13.5px; }
.kx-amount.is-muted { color: var(--muted); }
.kx-empty, .kx-planned { margin: 0; padding: 12px 18px; font-size: 14px; color: var(--ink-3); }
.kx-planned { padding-top: 4px; font-size: 13px; color: var(--muted); }
.kx-spark { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px 14px; border-top: 1px solid var(--line-2); font-size: 12.5px; color: var(--muted); }
.kx-spark polyline { stroke: color-mix(in srgb, var(--c) 70%, #000); }
.kx-spark circle { fill: var(--c); }
.kx-matrix-wrap { position: relative; overflow-x: auto; }
.kx-matrix { width: 100%; min-width: 760px; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.kx-matrix thead th { padding: 0 6px 4px; font-size: 13px; color: var(--muted); font-weight: 600; text-align: center; }
.kx-matrix thead th:first-child { text-align: left; padding-left: 12px; }
.kx-head-chip { display: inline-flex; padding: 4px 12px; border-radius: 999px; background: var(--c); color: var(--c-on); font-size: 13px; font-weight: 700; white-space: nowrap; }
.kx-matrix tbody th, .kx-matrix tbody td { background: #F5F6F8; }
.kx-matrix tbody th { text-align: left; padding: 10px 12px; border-radius: 10px 0 0 10px; font-weight: 600; white-space: nowrap; }
.kx-matrix tbody td { padding: 6px; text-align: center; }
.kx-matrix .kx-sum { text-align: right; padding-right: 12px; font-family: var(--mono); font-size: 13px; white-space: nowrap; }
.kx-matrix tbody td.kx-sum { border-radius: 0 10px 10px 0; }
.kx-cell { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; min-width: 108px; min-height: 44px; padding: 4px 10px; border-radius: 10px; background: color-mix(in srgb, var(--c) 13%, #fff); border: 1.5px solid color-mix(in srgb, var(--c) 35%, #fff); line-height: 1.2; }
.kx-cell strong { font-size: 13px; }
.kx-cell span { font-family: var(--mono); font-size: 11.5px; }
.kx-cell.is-planned { background: #fff; border-style: dashed; border-color: color-mix(in srgb, var(--c) 60%, #fff); color: var(--ink-3); }
.kx-cell.is-none { background: transparent; border-color: transparent; color: #9AA0AA; }

@media (max-width: 860px) {
  .board { grid-template-columns: repeat(4, 82vw); }
  .lanes { min-width: 0; }
  .lanes-head { display: none; }
  .lane { grid-template-columns: 1fr; gap: 8px; }
  .lane-cell:has(.lane-empty) { display: none; }
  .lane-cell-title { position: static; width: auto; height: auto; margin: 4px 2px 0; overflow: visible; clip: auto; font-size: 13px; font-weight: 700; color: var(--ink-3); }
  .toolbar-end { flex-direction: column; align-items: stretch; }
  .segctl button { flex: 1 1 0; }
  .lx-hero, .lx-empty { padding: 18px 16px; gap: 18px; }
  .lx-ring { width: 132px; height: 132px; }
  .lx-ring .ring { width: 132px; height: 132px; }
  .lx-ring-text strong { font-size: 32px; }
  .lx-hero-main h2 { font-size: 23px; }
  .lx-gate { flex-basis: 100%; min-width: 0; }
  .lx-sections, .lx-tiles { grid-template-columns: 1fr; }
  .lx-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-tpl select { min-width: 0; flex: 1 1 160px; }
  .kx-hero { padding: 18px 16px; gap: 18px; }
  .kx-total-value { font-size: 34px; }
  .kx-history { flex-basis: 100%; min-width: 0; }
  .kx-cards { grid-template-columns: 1fr; }
  .kx-month { align-self: flex-start; }
}

/* ---------- 1.5: Startbildschirm der Anmeldung (Glas, Bewegung) ---------- */
.auth { position: relative; min-height: 100vh; overflow: hidden; display: flex; flex-direction: column; padding: 32px 40px; background-color: #0D0F15; background-image: radial-gradient(rgba(255,255,255,.07) 1.2px, transparent 1.3px); background-size: 28px 28px; color: #F4F5F8; }
.auth-top, .auth-center, .auth-foot { position: relative; z-index: 2; }
.auth-brand { display: inline-flex; align-items: center; gap: 12px; }
.auth-brand > span:last-child { display: flex; flex-direction: column; line-height: 1.1; }
.auth-brand strong { font-size: 20px; }
.auth-brand small { font-size: 12.5px; color: rgba(255,255,255,.65); }
.auth-logo { position: relative; flex: none; display: inline-block; width: 34px; height: 34px; }
.auth-logo-lg { width: 44px; height: 44px; }
.st-tile { position: absolute; border-radius: 26%; animation: st-tile 9s cubic-bezier(.65,0,.35,1) infinite; }
.auth-center { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 0; }
.auth-card.gl { background: rgba(22,24,32,.34); }
.auth-card { width: 100%; max-width: 448px; display: flex; flex-direction: column; gap: 20px; padding: 36px 38px 30px; border-radius: 30px; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 0 0 1px rgba(255,255,255,.05), 0 50px 110px rgba(0,0,0,.55); }
.auth-card > :not(.gl-sheen):not(.gl-edge):not(.gl-sweep) { position: relative; }
.auth-head { display: flex; flex-direction: column; gap: 14px; }
.auth h1 { font-size: 34px; line-height: 1.1; letter-spacing: -.02em; }
.auth-sub { margin: -8px 0 0; font-size: 16px; color: rgba(255,255,255,.82); }
.auth-intro { margin: 0; color: rgba(255,255,255,.85); }
.auth-card .form { gap: 14px; }
.auth-card label { color: #fff; }
.auth-card input[type="email"], .auth-card input[type="password"] { height: 50px; padding: 0 16px; border: 1px solid rgba(255,255,255,.35); border-radius: 14px; background: rgba(255,255,255,.10); color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.12); }
.auth-card input:focus { outline: none; border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.18); box-shadow: 0 0 0 4px rgba(157,184,245,.3); }
.auth-card input:disabled { opacity: .6; }
.auth-card .field-hint { color: rgba(255,255,255,.7); }
.auth-card .btn-primary { min-height: 54px; margin-top: 6px; border-radius: 14px; background: #F4F5F8; color: var(--ink); font-size: 16px; font-weight: 700; transition: transform .15s, box-shadow .15s, background .15s; }
.auth-card .btn-primary:hover:not(:disabled) { background: #fff; transform: translateY(-1px); box-shadow: 0 14px 30px rgba(0,0,0,.35); }
.auth-card .btn-secondary { min-height: 50px; border-radius: 14px; background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.35); color: #fff; }
.auth-card .btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,.18); }
.auth-card :focus-visible { outline: 3px solid #9DB8F5; outline-offset: 2px; }
.auth-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0 16px; }
.auth-card .link-btn { min-height: 44px; color: #B8CCF8; font-size: 14.5px; font-weight: 600; }
.auth-card .link-btn:hover { color: #fff; }
.auth-hint { margin: 0; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.16); font-size: 13px; color: rgba(255,255,255,.75); }
.auth-card .auth-msg-ok { background: rgba(43,181,143,.22); color: #fff; border: 1px solid rgba(120,230,195,.45); }
.auth-card .auth-msg-fehler { background: #FBE5E3; color: var(--err); }
.auth-foot { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.auth-claim { margin: 0; font-size: 34px; line-height: 1.05; letter-spacing: -.025em; font-weight: 700; }
.auth-steps { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.auth-steps > span { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; }
.auth-steps > span > span:last-child { position: relative; }

/* Glas */
.gl { position: relative; overflow: hidden; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.24); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -1px 0 rgba(255,255,255,.06), 0 30px 70px rgba(0,0,0,.38); }
.gl-strong { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.32); -webkit-backdrop-filter: blur(30px) saturate(180%); backdrop-filter: blur(30px) saturate(180%); }
.gl-sheen { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(125deg, rgba(255,255,255,.30) 0%, rgba(255,255,255,.08) 26%, rgba(255,255,255,0) 48%, rgba(255,255,255,0) 78%, rgba(255,255,255,.07) 100%); }
.gl-edge { position: absolute; left: 8%; right: 8%; top: 0; height: 1px; pointer-events: none; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.9), rgba(255,255,255,0)); }
.gl-sweep { position: absolute; top: -30%; bottom: -30%; left: 0; width: 34%; pointer-events: none; background: linear-gradient(100deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.2) 45%, rgba(255,255,255,.32) 50%, rgba(255,255,255,.2) 55%, rgba(255,255,255,0) 100%); transform: translateX(-160%) skewX(-18deg); animation: st-sweep var(--sw, 9s) ease-in-out infinite; animation-delay: var(--swd, 0s); }

/* Bühne */
.st { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.st-shapes, .st-floaters, .st-widgets { position: absolute; inset: 0; }
.st-shape { position: absolute; opacity: .78; animation: st-drift var(--d, 24s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
.st-float { position: absolute; bottom: -90px; opacity: 0; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 12px 30px rgba(0,0,0,.3); animation: st-rise var(--d, 16s) linear infinite; animation-delay: var(--delay, 0s); }
.st-bob { position: absolute; animation: st-bob 8s ease-in-out infinite; }
.st-panel { padding: 20px 22px 24px; border-radius: 26px; }
.st-panel > :not(.gl-sheen):not(.gl-edge):not(.gl-sweep) { position: relative; }
.st-roadmap { left: 3%; top: 118px; width: 430px; --tilt: -2.5deg; }
.st-panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; font-size: 14px; }
.st-ticks { display: inline-flex; gap: 6px; }
.st-ticks span { width: 26px; height: 6px; border-radius: 3px; background: rgba(255,255,255,.2); }
.st-ticks span:first-child { background: rgba(255,255,255,.35); }
.st-rows { position: relative; display: block; }
.st-rowlist { display: flex; flex-direction: column; gap: 11px; }
.st-row { position: relative; display: block; height: 26px; border-radius: 9px; background: rgba(255,255,255,.07); }
.st-bar { position: absolute; top: 4px; bottom: 4px; border-radius: 7px; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 14px var(--glow); transform-origin: left center; animation: st-grow 9s cubic-bezier(.2,.8,.2,1) infinite; animation-delay: var(--delay, 0s); }
.st-ms { position: absolute; top: 6px; width: 14px; height: 14px; border-radius: 3px; background: #fff; transform: rotate(45deg); box-shadow: 0 0 10px rgba(255,255,255,.7); animation: st-pulse 2.4s ease-in-out infinite; animation-delay: var(--delay, 0s); }
.st-today { position: absolute; top: -6px; bottom: -6px; width: 2px; border-radius: 2px; background: rgba(255,255,255,.85); box-shadow: 0 0 12px rgba(255,255,255,.7); z-index: 1; animation: st-today 16s linear infinite alternate; }
.st-kanban { left: 6%; top: 470px; width: 380px; --tilt: 2deg; animation-delay: -3s; }
.st-kanban .st-panel { padding: 18px; }
.st-cols { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; height: 150px; }
.st-col { border-radius: 16px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); }
.st-col-done { background: rgba(43,181,143,.14); border: 1px dashed rgba(120,230,195,.55); }
.st-card { position: absolute; left: 10px; top: 12px; width: 150px; padding: 14px; border-radius: 16px; box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 16px 34px rgba(0,0,0,.35); animation: st-move 6s cubic-bezier(.65,0,.35,1) infinite; }
.st-card > span:not(.gl-sheen) { position: relative; display: block; }
.st-card-tag { width: 44px; height: 8px; border-radius: 4px; background: var(--card, #4F7FEA); }
.st-line { margin-top: 12px; width: 100%; height: 8px; border-radius: 4px; background: rgba(255,255,255,.55); }
.st-line-short { margin-top: 7px; width: 70%; background: rgba(255,255,255,.35); }
.st-card-foot { display: flex !important; gap: 5px; margin-top: 14px; }
.st-card-foot span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.4); }
.st-card-foot span + span { width: 38px; border-radius: 7px; background: rgba(255,255,255,.18); }
.st-card > .st-check { position: absolute; right: -10px; top: -10px; width: 30px; height: 30px; border-radius: 50%; background: #2BB58F; box-shadow: 0 0 0 4px rgba(43,181,143,.25); display: flex; align-items: center; justify-content: center; animation: st-check 6s ease infinite; }
.st-launch { right: 5%; top: 100px; width: 250px; --tilt: 3deg; animation-delay: -5s; }
.st-ringpanel { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 22px; border-radius: 30px; }
.st-ringpanel > strong { align-self: flex-start; font-size: 14px; }
.st-ring { position: relative; width: 160px; height: 160px; }
.st-ring svg { transform: rotate(-90deg); filter: drop-shadow(0 0 12px var(--ring-glow, rgba(255,255,255,.4))); }
.st-ringfill { stroke: var(--ring, #F2A43C); animation: st-ring 8s cubic-bezier(.4,0,.2,1) infinite; }
.st-ringnum { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 40px; font-weight: 700; letter-spacing: -.02em; }
.st-ringnum small { font-size: 18px; }
.st-num { animation: st-ring 8s cubic-bezier(.4,0,.2,1) infinite; counter-reset: p var(--p); }
.st-num::after { content: counter(p); }
.st-badge { padding: 5px 14px; border-radius: 999px; background: #fff; color: var(--ink); font-size: 13px; font-weight: 700; animation: st-badge 8s ease infinite; }
.st-cubes { right: 7%; top: 470px; width: 214px; height: 214px; --tilt: -6deg; animation-delay: -1.5s; }
.st-cube { position: absolute; border-radius: 26px; border-color: rgba(255,255,255,.4); }
.st-milestone { left: 33%; top: 86px; --tilt: -1deg; animation-delay: -2s; }
.st-pill { display: inline-flex; align-items: center; gap: 10px; padding: 10px 18px 10px 12px; border-radius: 999px; font-size: 14px; font-weight: 700; }
.st-pill > span:not(.gl-sheen):not(.gl-edge) { position: relative; }
.st-pill-icon { width: 28px; height: 28px; border-radius: 50%; background: #2BB58F; display: inline-flex; align-items: center; justify-content: center; }

@property --p { syntax: '<integer>'; inherits: false; initial-value: 0; }
@keyframes st-sweep { 0%, 62% { transform: translateX(-160%) skewX(-18deg); } 100% { transform: translateX(420%) skewX(-18deg); } }
@keyframes st-drift { 0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); } 33% { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(1.06); } 66% { transform: translate(calc(var(--dx) * -.6), calc(var(--dy) * .8)) rotate(calc(var(--dr) * -.5)) scale(.96); } }
@keyframes st-bob { 0%, 100% { transform: translateY(0) rotate(var(--tilt, 0deg)); } 50% { transform: translateY(-16px) rotate(var(--tilt, 0deg)); } }
@keyframes st-rise { 0% { transform: translateY(0) rotate(0deg); opacity: 0; } 10% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateY(-1000px) rotate(var(--r, 180deg)); opacity: 0; } }
@keyframes st-grow { 0%, 6% { transform: scaleX(0); } 30%, 88% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes st-pulse { 0%, 100% { transform: rotate(45deg) scale(1); } 50% { transform: rotate(45deg) scale(1.3); } }
@keyframes st-today { 0% { left: 6%; } 100% { left: 94%; } }
@keyframes st-move { 0%, 22% { transform: translate(0, 0); } 38%, 100% { transform: translate(172px, 0); } }
@keyframes st-check { 0%, 40% { transform: scale(0); } 48% { transform: scale(1.25); } 54%, 92% { transform: scale(1); } 100% { transform: scale(0); } }
@keyframes st-ring { 0%, 8% { stroke-dashoffset: 100; --p: 0; } 62%, 90% { stroke-dashoffset: 0; --p: 100; } 100% { stroke-dashoffset: 100; --p: 0; } }
@keyframes st-badge { 0%, 60% { transform: scale(.6); opacity: 0; } 66% { transform: scale(1.12); opacity: 1; } 70%, 90% { transform: scale(1); opacity: 1; } 100% { transform: scale(.6); opacity: 0; } }
@keyframes st-tile { 0%, 20% { transform: translate(0, 0); } 25%, 45% { transform: translate(var(--tx), var(--ty)); } 50%, 100% { transform: translate(0, 0); } }

@media (max-width: 1100px) { .st-widgets { display: none; } }
@media (max-width: 700px) {
  .auth { padding: 20px 16px; }
  .auth-card { padding: 28px 22px 24px; border-radius: 26px; }
  .auth h1 { font-size: 28px; }
  .auth-foot { display: none; }
  .st-float { -webkit-backdrop-filter: none; backdrop-filter: none; }
  .st-float:nth-child(n+8) { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .auth .st-shape, .auth .st-float, .auth .st-bob, .auth .st-bar, .auth .st-ms, .auth .st-today, .auth .st-card,
  .auth .st-check, .auth .st-ringfill, .auth .st-num, .auth .st-badge, .auth .st-tile { animation: none; }
  .auth .gl-sweep { display: none; }
  .auth .st-float { opacity: .5; }
  .auth .st-ringfill { stroke-dashoffset: 0; }
  .auth .st-num::after { content: '100'; }
  .auth .st-check { transform: scale(1); }
}

/* ---------- 1.6: Glas-Hintergrund für alle Arbeitsseiten ---------- */
/* Dunkler Grund mit Punktraster und langsam treibenden Farbkörpern; Navigation aus dunklem Glas;
   Inhalt auf einer hellen, fast deckenden Glasscheibe. Die Scheibe ist ein Pseudo-Element, damit
   position: fixed im Inhalt (Menüs, Hinweise, Detailleiste) weiter am Fenster ausgerichtet bleibt. */
body.in-app { background-color: #0D0F15; background-image: radial-gradient(rgba(255,255,255,.06) 1.2px, transparent 1.3px); background-size: 28px 28px; }
.shell { position: relative; }
.app-bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.app-shape { position: absolute; opacity: .6; animation: app-drift var(--d, 36s) ease-in-out infinite; animation-delay: var(--delay, 0s); }
@keyframes app-drift { 0%, 100% { transform: translate(0, 0) rotate(0deg) scale(1); } 33% { transform: translate(var(--dx), var(--dy)) rotate(var(--dr)) scale(1.05); } 66% { transform: translate(calc(var(--dx) * -.6), calc(var(--dy) * .8)) rotate(calc(var(--dr) * -.5)) scale(.97); } }
.sidebar { background: rgba(13,15,21,.55); -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); border-right: 1px solid rgba(255,255,255,.09); }
.nav-link:hover { background: rgba(255,255,255,.08); }
.nav-link.active { background: rgba(255,255,255,.13); }
.content { position: relative; z-index: 1; isolation: isolate; margin: 14px 14px 14px 0; min-height: calc(100vh - 28px); border-radius: 26px; }
.content::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none;
  background: linear-gradient(135deg, rgba(255,255,255,.55) 0%, rgba(255,255,255,0) 30%), rgba(242,243,245,.88);
  -webkit-backdrop-filter: blur(28px) saturate(150%); backdrop-filter: blur(28px) saturate(150%);
  border: 1px solid rgba(255,255,255,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 30px 80px rgba(0,0,0,.35); }
.rm-page { height: calc(100vh - 28px); height: calc(100dvh - 28px); }
@media (max-width: 860px) {
  .topbar { background: rgba(13,15,21,.72); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid rgba(255,255,255,.09); }
  .sidebar { background: rgba(13,15,21,.86); }
  /* Handy: Scheibe füllt den Bildschirm; ohne eigene Ebene, damit Detailleiste und Menüs über der Kopfzeile liegen */
  .content { z-index: auto; isolation: auto; margin: 0; min-height: calc(100vh - 60px); border-radius: 0; background: rgba(242,243,245,.96); }
  .content::before { display: none; }
  .rm-page { height: calc(100dvh - 60px); }
}
@media (prefers-reduced-motion: reduce) { .app-shape { animation: none; } }
@media (prefers-reduced-transparency: reduce) {
  .content { background: #F2F3F5; }
  .content::before { background: #F2F3F5; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .sidebar, .topbar { background: #15171C; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* ---------- 2.0: ESOP-Bereich (CEO, Admin, Treuhänder) ---------- */
.btn-ghost { background: transparent; color: var(--ink); border-color: transparent; }
.btn-ghost:hover:not(:disabled) { background: rgba(21,23,28,.06); }
.r { text-align: right; }
.table th.r { text-align: right; }
.link-more { display: inline-flex; align-items: center; gap: 4px; min-height: 32px; align-self: flex-start; font-weight: 600; text-decoration: none; }
.ep-head-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.ep-shadow { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-radius: 12px; background: #FFF6E3; border: 1px solid #EBCB85; color: #6B3E06; }
.ep-shadow svg { flex: none; margin-top: 2px; }
.ep-callout { margin: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-radius: 12px; background: var(--info-bg); color: var(--info); }
.ep-lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.ep-up { color: var(--ok); }
.ep-down, .ep-no { color: var(--err); }
.ep-strong { font-weight: 700; }
.ep-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.ep-stat { background: rgba(255,255,255,.82); border: 1px solid rgba(255,255,255,.9); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; box-shadow: 0 1px 2px rgba(20,24,38,.05), 0 8px 24px rgba(20,24,38,.06); }
.ep-stat strong { font-size: 26px; letter-spacing: -.02em; }
.ep-stat > span:last-child { font-size: 13px; color: var(--muted); }
.ep-stat:first-child { background: linear-gradient(135deg, #1B2340, #15171C); border-color: rgba(255,255,255,.12); color: #fff; }
.ep-stat:first-child .ep-lbl, .ep-stat:first-child > span:last-child { color: #B9C0CE; }
.ep-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); gap: 20px; align-items: start; }
.ep-trio { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; align-items: start; }
.ep-grid-even { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.ep-side, .ep-stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.ep-table { min-width: 640px; }
.ep-table td, .ep-table th { white-space: nowrap; }
.ep-table tfoot td { border-top: 2px solid var(--line); padding-top: 12px; }
.ep-pill { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--line-2); color: var(--ink-3); }
.ep-mitglied, .ep-period-investiert { background: var(--ok-bg); color: var(--ok); }
.ep-anwaerter, .ep-period-bemessen, .ep-period-freigegeben, .ep-period-ueberwiesen { background: var(--info-bg); color: var(--info); }
.ep-period-gesperrt { background: var(--warn-bg); color: var(--warn); }
.ep-bar { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--line-2); }
.ep-bar span { min-width: 4px; }
.ep-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ep-legend li { display: flex; justify-content: space-between; gap: 12px; }
.ep-legend li > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ep-sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; flex: none; }
.ep-dates, .ep-roles, .ep-audit, .ep-rules { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ep-dates li, .ep-roles li, .ep-audit li { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line-2); }
.ep-dates li:last-child, .ep-roles li:last-child, .ep-audit li:last-child { border-bottom: 0; padding-bottom: 0; }
.ep-dates li > span:first-child, .ep-roles li > span:first-child { color: var(--muted); }
.ep-audit li { grid-template-columns: 130px minmax(0, 1fr); }
.ep-rules li { padding-left: 18px; position: relative; }
.ep-rules li::before { content: ''; position: absolute; left: 4px; top: .6em; width: 6px; height: 6px; border-radius: 50%; background: var(--link); }
.ep-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.ep-steps li { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border-radius: 12px; background: var(--line-2); color: var(--muted); font-size: 14px; }
.ep-steps li > span:last-child { display: flex; flex-direction: column; }
.ep-steps li strong { color: var(--ink-3); }
.ep-step-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; background: #fff; color: var(--ink-3); border: 1px solid var(--line); }
.ep-steps li.is-done { background: var(--ok-bg); }
.ep-steps li.is-done .ep-step-n { background: var(--ok); border-color: var(--ok); color: #fff; }
.ep-steps li.is-done strong { color: var(--ok); }
.ep-steps li.is-now { background: #fff; outline: 2px solid var(--link); outline-offset: -2px; }
.ep-steps li.is-now strong { color: var(--ink); }
.ep-steps li.is-skip { opacity: .55; }
.ep-levels { display: flex; flex-direction: column; gap: 6px; }
.ep-level-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 15px; }
.ep-level-row select { width: auto; min-width: 200px; }
.ep-months { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; position: relative; }
.ep-months a { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 10px; background: rgba(255,255,255,.75); border: 1px solid var(--line); color: var(--ink-3); text-decoration: none; font-size: 14px; white-space: nowrap; }
.ep-months a.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.ep-dot { width: 8px; height: 8px; border-radius: 50%; background: #A9AFBF; }
.ep-dot-investiert { background: #2BB58F; }
.ep-dot-gesperrt { background: #F2A43C; }
.ep-dot-bemessen, .ep-dot-freigegeben, .ep-dot-ueberwiesen { background: #4F7FEA; }
.ep-dot-offen { background: transparent; border: 1.5px solid #A9AFBF; }
.ep-calc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.ep-big { font-size: 30px; letter-spacing: -.02em; }
.ep-dl { margin: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ep-dl div { display: flex; justify-content: space-between; gap: 12px; }
.ep-dl dt { color: var(--muted); }
.ep-dl dd { margin: 0; font-variant-numeric: tabular-nums; }
.ep-dl .ep-sum { border-top: 1px solid var(--line); padding-top: 6px; font-weight: 700; }
.ep-dl .ep-sum dt { color: var(--ink); }
.ep-accent { background: linear-gradient(135deg, #EEF3FF, #fff 60%); border-color: #C9D6F6; }
.ep-staffel { border-collapse: separate; border-spacing: 3px; font-size: 13px; width: 100%; }
.ep-staffel th { font-weight: 600; color: var(--muted); text-align: left; padding: 4px 6px; white-space: nowrap; }
.ep-staffel td { text-align: center; padding: 6px; border-radius: 6px; background: var(--line-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ep-staffel td.is-hit { background: var(--ink); color: #fff; font-weight: 700; }
.ep-staffel-edit td { background: transparent; padding: 2px; }
.ep-num { width: 64px; min-height: 38px; padding: 4px 6px; text-align: right; font-size: 14px; }
.ep-num-wide { width: 110px; }
.ep-num.is-bad { border-color: var(--err); background: var(--err-bg); }
.ep-num[readonly] { background: var(--line-2); }
.ep-release { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; }
.ep-invest { flex-direction: row; flex-wrap: wrap; align-items: flex-end; gap: 16px; width: 100%; }
.ep-invest > div:first-child { flex: 1 1 260px; }
.ep-invest .field { width: 200px; }
.ep-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.ep-who { display: flex; align-items: center; gap: 12px; }
.ep-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; margin-right: 12px; cursor: pointer; }
.ep-right { justify-content: flex-end; }
.ep-plan { display: flex; flex-direction: column; gap: 6px; }
.ep-plan-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) 64px; gap: 6px; }
.ep-plan-row input { min-height: 40px; font-size: 14px; padding: 6px 8px; }
.ep-actions { display: flex; gap: 6px; justify-content: flex-end; align-items: center; }
.ep-price { width: 110px !important; min-height: 36px !important; font-size: 14px !important; padding: 4px 8px !important; }
@media (max-width: 1100px) {
  .ep-grid { grid-template-columns: minmax(0, 1fr); }
  .ep-calc { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ep-steps { grid-template-columns: minmax(0, 1fr); }
  .ep-dates li, .ep-roles li, .ep-audit li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .ep-level-row { flex-direction: column; align-items: stretch; }
  .ep-level-row select { min-width: 0; width: 100%; }
  .ep-invest .field { width: 100%; }
}

/* ---------- 2.0: Mitarbeiter-App (#/app) ---------- */
/* Eigener Rahmen ohne Seitenleiste: Glas-Hintergrund wie der Startbildschirm, helle Glaskarten, Tableiste unten */
body.app-mode .sidebar, body.app-mode .topbar, body.app-mode .scrim { display: none !important; }
body.app-mode .content { margin: 0; min-height: 100vh; min-height: 100dvh; border-radius: 0; background: transparent; z-index: 1; }
body.app-mode .content::before { display: none; }
.ea { --ea-ink: #141826; --ea-muted: #565D70; max-width: 640px; margin: 0 auto; min-height: 100vh; min-height: 100dvh; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; color: var(--ea-ink); }
.ea-head { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 0 10px; color: #fff; }
.ea-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; min-height: 44px; }
.ea-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.ea-brand small { font-size: 12px; color: #B9C0CE; }
.ea-menu { position: relative; }
.ea-avatar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(255,255,255,.14); color: #fff; font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
.ea-pop { position: absolute; right: 0; top: 52px; z-index: 30; min-width: 220px; display: flex; flex-direction: column; padding: 8px; border-radius: 14px; background: rgba(255,255,255,.96); box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.ea-pop[hidden] { display: none; }
.ea-pop-name { padding: 8px 10px; font-size: 13px; color: var(--ea-muted); border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.ea-pop a, .ea-pop button { display: flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; border: 0; background: none; font: inherit; font-size: 15px; color: var(--ea-ink); text-decoration: none; text-align: left; cursor: pointer; }
.ea-pop a:hover, .ea-pop button:hover { background: var(--line-2); }
.ea-main { display: flex; flex-direction: column; gap: 14px; }
.ea-hello { color: #fff; padding: 6px 2px 2px; }
.ea-hello h1 { font-size: 28px; letter-spacing: -.02em; }
.ea-hello p { margin: 4px 0 0; color: #C9CEDA; font-size: 14px; }
.ea-hello h1 + p { margin-top: 4px; }
.ea-hello p:first-child { margin: 0 0 4px; }
.ea-card { margin: 0; position: relative; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: rgba(255,255,255,.9); border: 1px solid rgba(255,255,255,.95); box-shadow: inset 0 1px 0 rgba(255,255,255,.9), 0 12px 32px rgba(0,0,0,.22); -webkit-backdrop-filter: blur(18px) saturate(150%); backdrop-filter: blur(18px) saturate(150%); }
.ea-card h2 { margin: 0; }
.ea-card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ea-lbl { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ea-muted); }
.ea-muted { color: var(--ea-muted); font-size: 13.5px; }
.ea-small { font-size: 12.5px; margin: 0; }
.ea-warn { color: #8A4B08; font-weight: 600; }
.ea-ok { color: #0E6B47; font-weight: 700; }
.ea-no { color: #A12620; font-weight: 700; }
.ea-req { color: #5B4BD6; }
.ea-error { color: var(--err); }
.ea-note { font-size: 14.5px; }
.ea-shadow { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(48,30,6,.78); border: 1px solid rgba(242,164,60,.6); color: #FFE2B8; font-size: 13.5px; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
body.app-mode #toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
.ea-foot { margin: 0; padding: 0 4px; font-size: 12.5px; color: #B9C0CE; }
.ea-foot a, .ea-hello a { color: #fff; }
.ea-primary { background: #2B59C3; color: #fff; min-height: 48px; border-radius: 12px; font-size: 16px; }
.ea-primary:hover:not(:disabled) { background: #234AA6; }
.ea-wide { width: 100%; }
.ea-link { min-height: 44px; padding: 0 10px; border: 0; background: none; font: inherit; font-size: 14px; font-weight: 700; color: #2B59C3; cursor: pointer; border-radius: 10px; }
.ea-link:hover { background: rgba(43,89,195,.08); }
.ea-day { width: auto; min-height: 40px; font-size: 15px; padding: 6px 10px; }
.ea-num { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ea-num label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--ea-muted); }
.ea-num input { font-size: 26px; font-weight: 800; text-align: center; min-height: 56px; border-radius: 12px; }
.ea-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ea-rows li { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; align-items: center; gap: 8px; min-height: 46px; border-bottom: 1px solid rgba(20,24,38,.07); font-size: 14.5px; }
.ea-rows li:last-child { border-bottom: 0; }
.ea-rows-3 li { grid-template-columns: minmax(0, 1fr) auto auto; }
.ea-rows-3 li > :not(:first-child) { text-align: right; min-width: 92px; }
.ea-rows-wrap li { grid-template-columns: 80px minmax(0, 1fr); align-items: start; padding: 10px 0; }
.ea-row-day { font-weight: 600; }
.ea-lock { padding: 0 10px; }
.ea-month { flex-direction: row; justify-content: space-between; gap: 12px; }
.ea-month > div, .ea-k > div { display: flex; flex-direction: column; gap: 2px; }
.ea-month strong { font-size: 20px; }
.ea-hero { padding: 22px 20px; border-radius: 22px; color: #fff; display: flex; flex-direction: column; gap: 4px; background: rgba(22,24,32,.38); }
.ea-hero > :not(.gl-sheen):not(.gl-edge) { position: relative; }
.ea-hero .ea-lbl { color: #C9CEDA; }
.ea-big { font-size: 38px; letter-spacing: -.02em; line-height: 1.1; }
.ea-mid { font-size: 22px; letter-spacing: -.01em; }
.ea-gain { font-weight: 700; font-size: 15px; }
.ea-gain.up { color: #7DE3BE; }
.ea-gain.down { color: #FFB3AD; }
.ea-hero-sub { font-size: 13.5px; color: #D7DBE5; }
.ea-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ea-split .ea-card { gap: 4px; }
.ea-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.ea-legend li { display: grid; grid-template-columns: minmax(0, 1fr) 48px 110px; gap: 8px; }
.ea-legend li > span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ea-legend li > :not(:first-child) { text-align: right; }
.ea-window { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.28); color: #fff; font-size: 14.5px; font-weight: 600; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.ea-window.open { background: rgba(43,181,143,.28); border-color: rgba(125,227,190,.6); }
.ea-k { flex-direction: row; gap: 28px; }
.ea-comp { border: 0; margin: 0; padding: 10px 0; display: flex; flex-direction: column; gap: 6px; border-bottom: 1px solid rgba(20,24,38,.07); }
.ea-comp legend { display: flex; justify-content: space-between; gap: 10px; width: 100%; padding: 0; font-weight: 700; font-size: 14.5px; }
.ea-comp legend + * { margin-top: 6px; }
.ea-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.ea-seg button { min-height: 44px; border-radius: 10px; border: 1px solid rgba(20,24,38,.16); background: rgba(255,255,255,.92); font: inherit; font-size: 16px; font-weight: 800; color: #2A3042; cursor: pointer; }
.ea-seg button.cur { border: 2px solid #2B59C3; color: #234AA6; }
.ea-seg button[aria-checked="true"].cur { background: #2B59C3; color: #fff; }
.ea-seg button.req { background: #6A48C2; border-color: #6A48C2; color: #fff; }
.ea-seg button:disabled { cursor: default; opacity: .85; }
.ea-pending { display: flex; flex-direction: column; gap: 6px; padding-top: 6px; }
.ea-pending p { margin: 0; }
.ea-table-wrap { overflow-x: auto; position: relative; margin: 0 -4px; }
.ea-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.ea-table th, .ea-table td { padding: 8px 6px; border-bottom: 1px solid rgba(20,24,38,.07); text-align: left; vertical-align: top; white-space: nowrap; }
.ea-table thead th { font-size: 12px; color: var(--ea-muted); font-weight: 700; }
.ea-table .r { text-align: right; }
.ea-table tfoot th, .ea-table tfoot td { border-bottom: 0; border-top: 2px solid rgba(20,24,38,.12); }
.ea-print-head { display: none; }
.ea-tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; justify-content: center; padding: 6px max(8px, env(safe-area-inset-left)) calc(6px + env(safe-area-inset-bottom)); background: rgba(13,15,21,.78); border-top: 1px solid rgba(255,255,255,.1); -webkit-backdrop-filter: blur(22px) saturate(160%); backdrop-filter: blur(22px) saturate(160%); }
.ea-tabs a { flex: 1; max-width: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-height: 56px; border-radius: 12px; font-size: 12px; font-weight: 700; color: #B9C0CE; text-decoration: none; }
.ea-tabs a.on { color: #fff; background: rgba(255,255,255,.12); }
.ea-tabs a:hover { color: #fff; }
@media (prefers-reduced-transparency: reduce) {
  .ea-card { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ea-hero { background: #1B2340; }
  .ea-tabs { background: #15171C; }
}
@media print {
  body.in-app { background: #fff !important; }
  .app-bg, .ea-head, .ea-tabs, .ea-noprint, .ea-shadow, .ea-hello, #toasts { display: none !important; }
  .ea { max-width: none; padding: 0; color: #000; }
  .ea-card { background: #fff; box-shadow: none; border: 1px solid #ccc; break-inside: avoid; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .ea-print-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
  .ea-foot { color: #444; }
}

/* ---------- 2.1: Roadmap – Wochen: vier Wochen auf der Breite, heute in der Mitte, stufenlos verschiebbar ---------- */
.rm-monthnav { display: inline-flex; align-items: center; gap: 2px; }
.rm-monthnav[hidden] { display: none; }
.rm-monthnav .rm-btn-icon { font-size: 18px; font-weight: 700; line-height: 1; }
.rm-month-label { min-width: 118px; text-align: center; font-weight: 700; font-size: 14px; white-space: nowrap; }
.rm-canvas.is-weeks .rm-tick { padding: 6px 0 0; text-align: center; font-size: 10.5px; letter-spacing: -.02em; }
/* Leere Fläche der Zeitleiste mit der Maus greifen und schieben */
@media (pointer: fine) {
  .rm-track, .rm-axis-track { cursor: grab; }
  .rm-page.is-panning, .rm-page.is-panning * { cursor: grabbing !important; user-select: none; }
}
@media (max-width: 860px) {
  #rm-monthnav { order: 4; }
  .rm-month-label { min-width: 0; font-size: 13px; }
}

/* ---------- 2.2: Businessplan je Projekt ---------- */
.btn-ki { background: #6A48C2; color: #fff; }
.btn-ki:hover:not(:disabled) { background: #5A3BAE; }
.bp { display: flex; flex-direction: column; gap: 18px; }
.bp-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bp-spacer { flex: 1; }
.bp-seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 11px; background: #E6E8EC; }
.bp-seg a { display: inline-flex; align-items: center; min-height: 38px; padding: 0 14px; border-radius: 8px; color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: none; }
.bp-seg a:hover { color: var(--ink); }
.bp-seg a.on { background: #fff; color: var(--ink); font-weight: 700; box-shadow: 0 1px 2px rgba(21,23,28,.12); }
.bp-pct { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-3); }
.bp-dot { width: 12px; height: 12px; border-radius: 50%; background: conic-gradient(#6A48C2 var(--p), #DADDE2 0); }
.bp-grid { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.bp-main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.bp-aside { flex: 1 1 300px; max-width: 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.bp-grid-fin .bp-main { flex: 1 1 520px; }
.bp-side-fin { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.bp-card .panel-head { align-items: baseline; }
.bp-field { display: flex; flex-direction: column; gap: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line-2); }
.bp-field:last-child { border-bottom: 0; padding-bottom: 0; }
.bp-field-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.bp-field-head label, .bp-field-head > strong { font-size: 14.5px; font-weight: 700; color: var(--ink-2); }
.bp-chapter { font-size: 12px; color: #8A909B; }
.bp-tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.bp-tag-ki { background: #F1EDFC; color: #4E3594; }
.bp-tag-gap { background: #FBF0DD; color: #8A4B08; }
.bp-tag-ok { background: var(--ok-bg); color: var(--ok); }
.bp-sources { display: flex; flex-wrap: wrap; gap: 6px; }
.bp-sources a { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: #fff; border: 1px solid #DCD3F7; color: #4E3594; text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bp-sources a:hover { background: #F6F2FF; }
.bp-sugg { border: 1.5px solid #CDBEF3; background: linear-gradient(135deg, #F6F2FF, #FBFAFF); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.bp-sugg-head { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; color: #4E3594; }
.bp-nosrc { color: #8A4B08; }
.bp-sugg-text { margin: 0; font-size: 14.5px; white-space: pre-line; color: var(--ink); }
.bp-sugg-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.bp-items input[type="text"] { min-height: 40px; font-size: 14px; padding: 6px 8px; }
.bp-items { min-width: 680px; }
.bp-items td { padding: 8px 6px; vertical-align: middle; }
.bp-row-actions { white-space: nowrap; text-align: right; }
.bp-row-actions > * { vertical-align: middle; margin-left: 4px; }
.bp-sugg-row td { background: #FBF9FF; }
.bp-add { align-self: flex-start; }
.bp-ring-row { display: flex; align-items: center; gap: 14px; }
.bp-ring-row h2 { font-size: 16px; }
.bp-ring { width: 64px; height: 64px; flex: none; border-radius: 50%; background: conic-gradient(#6A48C2 var(--p), #ECEEF1 0); display: grid; place-items: center; }
.bp-ring > span { width: 48px; height: 48px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.bp-chapters { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bp-chapters li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; font-size: 13.5px; }
.bp-meter { grid-column: 1 / -1; height: 5px; border-radius: 999px; background: #ECEEF1; overflow: hidden; }
.bp-meter > span { display: block; height: 100%; }
.bp-meter .is-full { background: #2BB58F; } .bp-meter .is-half { background: #6A48C2; } .bp-meter .is-low { background: #E8922B; }
.bp-note { background: #FFFBF3; border-color: #F0D9AE; color: #6B4A16; font-size: 13.5px; gap: 6px; }
.bp-note strong { color: #5A3A0A; }
.bp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.bp-fin-table { min-width: 0; table-layout: fixed; }
.bp-fin-table th:nth-child(1) { width: 30%; } .bp-fin-table th:nth-child(2) { width: auto; }
.bp-fin-table th:nth-child(3), .bp-fin-table th:nth-child(4) { width: 92px; } .bp-fin-table th:nth-child(5) { width: 48px; }
.bp-fin-table td { padding: 6px; vertical-align: middle; }
.bp-fin-table input { min-height: 40px; font-size: 14px; padding: 6px 8px; }
.bp-fin-table input[type="number"] { width: 100%; text-align: right; }
.bp-fin-table th { font-size: 12px; white-space: normal; }
.bp-three { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.bp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bp-num { display: inline-flex; align-items: center; gap: 8px; }
.bp-num input { max-width: 140px; text-align: right; }
.bp-card .field { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.bp-auto { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: var(--ground); font-size: 14px; }
.bp-auto > span:not(.bp-auto-title) { display: flex; justify-content: space-between; gap: 12px; }
.bp-auto-title { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.bp-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.bp-kpi { padding: 14px; border-radius: 12px; background: var(--ground); display: flex; flex-direction: column; gap: 2px; font-size: 12px; color: var(--muted); }
.bp-kpi strong { font-size: 21px; color: var(--ink); letter-spacing: -.01em; }
.bp-kpi.is-dark { background: #15171C; color: #B9C0CE; }
.bp-kpi.is-dark strong { color: #fff; }
.bp-chart { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; align-items: end; height: 140px; }
.bp-chart > div { display: flex; gap: 2px; align-items: flex-end; height: 100%; }
.bp-chart span { flex: 1; border-radius: 4px 4px 0 0; min-height: 1px; }
.bp-chart .is-rev, .bp-legend .is-rev { background: #6A48C2; }
.bp-chart .is-cost, .bp-legend .is-cost { background: #C9CDD4; }
.bp-chart-x { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 6px; font-size: 10.5px; color: var(--muted); text-align: center; }
.bp-legend { display: flex; gap: 16px; margin: 0; font-size: 12.5px; color: var(--ink-3); }
.bp-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }
.bp-doc-table { min-width: 420px; }
.bp-doc-table th, .bp-doc-table td { padding: 8px 10px; font-variant-numeric: tabular-nums; }
.bp-doc-table th.r, .bp-doc-table td.r { text-align: right; }
.bp-doc-table tr.is-strong th, .bp-doc-table tr.is-strong td { font-weight: 700; }
.bp-neg { color: var(--err); }
.bp-warn { color: #8A4B08; }
.bp-savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 12px; background: #15171C; color: #fff; box-shadow: 0 12px 30px rgba(21,23,28,.3); font-size: 14px; }
.bp-savebar[hidden] { display: none; }
.bp-savebar > span { flex: 1; }
.bp-savebar .btn-ghost { color: #fff; }
.bp-savebar .btn-ghost:hover { background: rgba(255,255,255,.12); }
.bp-savebar .btn-primary { background: #fff; color: #15171C; }
/* Plan-Ansicht */
.bp-empty { align-items: flex-start; }
.bp-empty-icon, .bp-done-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: #F1EDFC; color: #4E3594; }
.bp-done-icon { background: var(--ok-bg); color: var(--ok); }
.bp-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); }
.bp-inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-height: 38px; }
.bp-inline select { width: auto; min-height: 38px; font-size: 14px; }
.bp-plan { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; margin-top: 14px; }
.bp-toc { flex: 1 1 220px; max-width: 260px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 10px; }
.bp-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.bp-toc a { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 6px; align-items: center; min-height: 36px; padding: 0 8px; border-radius: 8px; color: var(--ink-2); text-decoration: none; font-size: 14px; }
.bp-toc a:hover { background: var(--line-2); }
.bp-toc-n { color: #8A909B; font-size: 12.5px; }
.bp-toc p { margin: 8px; }
.bp-toc-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #2BB58F; }
.bp-toc-dot.is-gap { background: #E8922B; }
.bp-doc { flex: 999 1 640px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 40px 48px; box-shadow: 0 12px 40px rgba(21,23,28,.08); }
.bp-doc-head { padding-bottom: 20px; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.bp-doc-head h2 { font-size: 32px; letter-spacing: -.02em; }
.bp-doc-head p { margin: 0; font-size: 16px; color: var(--ink-3); }
.bp-doc h3 { margin: 28px 0 10px; font-size: 20px; letter-spacing: -.01em; scroll-margin-top: 16px; }
.bp-doc p { margin: 0 0 10px; font-size: 15px; line-height: 1.6; color: var(--ink-2); }
.bp-doc section { scroll-margin-top: 16px; }
.bp-gap { background: #FBF0DD; color: #8A4B08; border: 1px dashed #E3B66D; border-radius: 6px; padding: 0 5px; font-weight: 600; }
.bp-gap.is-plain { background: none; border-color: transparent; color: inherit; font-weight: 400; padding: 0; }
.bp-ref a { color: #4E3594; text-decoration: none; font-weight: 700; font-size: 11px; }
.bp-ki-mark { display: inline-flex; vertical-align: middle; margin-left: 6px; color: #6A48C2; }
.bp-calc-mark { display: inline-block; margin-left: 8px; font-size: 11.5px; font-weight: 700; color: var(--ok); }
.bp-src-list { margin: 0; padding-left: 22px; font-size: 13.5px; color: var(--ink-3); display: flex; flex-direction: column; gap: 4px; word-break: break-word; }
/* Erstellen */
.bp-intro h2 { font-size: 22px; letter-spacing: -.01em; }
.bp-intro p { margin: 4px 0 0; max-width: 85ch; }
.bp-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.bp-steps li { display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: rgba(255,255,255,.6); border: 1.5px solid transparent; color: var(--muted); }
.bp-steps li > span:last-child { display: flex; flex-direction: column; }
.bp-steps li strong { color: var(--ink-3); font-size: 14px; }
.bp-step-n { width: 28px; height: 28px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: #E6E8EC; color: var(--muted); }
.bp-steps li.is-done .bp-step-n { background: #2BB58F; color: #fff; }
.bp-steps li.is-done strong { color: var(--ink); }
.bp-steps li.is-now { background: #fff; border-color: #6A48C2; }
.bp-steps li.is-now .bp-step-n { background: #6A48C2; color: #fff; }
.bp-steps li.is-now strong { color: var(--ink); }
.bp-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.bp-checklist li { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line-2); }
.bp-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: #ECEEF1; color: var(--muted); }
.bp-mark.is-ok { background: var(--ok-bg); color: var(--ok); } .bp-mark.is-part { background: #F1EDFC; color: #4E3594; } .bp-mark.is-miss { background: #FBF0DD; color: #8A4B08; }
.bp-mark-text { font-weight: 600; color: var(--muted); }
.bp-mark-text.is-ok { color: var(--ok); } .bp-mark-text.is-part { color: #4E3594; } .bp-mark-text.is-miss { color: #8A4B08; }
.bp-opt { align-items: flex-start; }
.bp-opt input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.bp-progress { height: 8px; border-radius: 999px; background: #ECEEF1; overflow: hidden; }
.bp-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #6A48C2, #9B7BF0); transition: width .4s; }
.bp-review { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.bp-done { align-items: flex-start; }
.founder-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 2fr) 44px; gap: 8px; align-items: start; margin-bottom: 8px; }
@media (max-width: 860px) {
  .bp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bp-three, .bp-two, .bp-kpis { grid-template-columns: minmax(0, 1fr); }
  .bp-aside { max-width: none; }
  .bp-doc { padding: 22px 18px; }
  .bp-doc-head h2 { font-size: 26px; }
  .bp-toc { max-width: none; }
  .founder-row { grid-template-columns: minmax(0, 1fr) 44px; }
  .founder-row textarea { grid-column: 1 / 2; }
}
@media print {
  .sidebar, .topbar, .project-tabs, .bp-bar, .bp-toolbar, .bp-toc, .back-link { display: none !important; }
  .bp-doc { border: 0; box-shadow: none; padding: 0; }
}

/* ---------- 3.0 · Mehrere Organisationen ---------- */
.tabs a.tab { text-decoration: none; }
.brand { position: relative; }
.org-switch { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; padding: 8px; margin: -8px 0; border: 1px solid rgba(255,255,255,.12); border-radius: 12px; background: rgba(255,255,255,.04); color: #fff; font: inherit; text-align: left; cursor: pointer; }
.org-switch:hover { background: var(--side-hover); }
.org-switch .brand-text { flex: 1; min-width: 0; }
.org-switch .brand-text strong { font-size: 14px; line-height: 1.2; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.org-switch > svg:last-child { flex: none; color: var(--side-muted); }
.org-menu { position: absolute; top: calc(100% + 12px); left: 0; right: 0; z-index: 40; display: flex; flex-direction: column; padding: 6px; border-radius: 12px; background: #fff; color: var(--ink); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.org-menu[hidden] { display: none; }
.org-menu-title { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.org-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 10px; border: 0; border-radius: 8px; background: transparent; color: var(--ink); font: inherit; font-size: 14px; text-align: left; text-decoration: none; cursor: pointer; }
.org-item:hover, .org-item[aria-checked="true"] { background: var(--line-2); }
.org-item > svg { color: var(--ok); flex: none; }
.org-item-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.org-item-text small { font-size: 12px; color: var(--muted); }
.org-mark { width: 26px; height: 26px; border-radius: 7px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; flex: none; }
.org-item-platform { margin-top: 4px; border-top: 1px solid var(--line-2); border-radius: 0 0 8px 8px; color: var(--ink-2); }
.org-item-platform > svg { color: var(--ink-2); }
body.nav-rail .org-switch { padding: 6px; justify-content: center; }
body.nav-rail .org-switch > svg:last-child { display: none; }

.org-banner { display: flex; align-items: flex-start; gap: 10px; margin: 0 auto 16px; max-width: 1200px; padding: 12px 16px; border-radius: 12px; font-size: 14px; }
.org-banner > svg { flex: none; margin-top: 1px; }
.org-banner-err { background: var(--err-bg); color: var(--err); }
.org-banner-warn { background: var(--warn-bg); color: var(--warn); }
.org-banner-info { background: var(--info-bg); color: var(--info); }
.org-banner a { color: inherit; font-weight: 600; }
.content > .org-banner { margin: 16px 24px 0; max-width: none; }

.badge-fehler { background: var(--err-bg); color: var(--err); }
.notice-info { background: var(--info-bg); border-color: #CBD7F3; color: var(--info); display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.notice-info > svg { flex: none; margin-top: 2px; }
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; align-items: start; }
.org-plan-name { margin: 4px 0; font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.usage { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; }
.usage-head { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.usage-bar { height: 8px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.usage-bar > span { display: block; height: 100%; background: var(--link); border-radius: inherit; }
.usage-bar.bar-warn > span { background: #D99A2B; }
.usage-bar.bar-err > span { background: var(--err); }
.usage p { margin: 0; }


.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; align-items: start; }
.plan-card { display: flex; flex-direction: column; gap: 10px; }
.plan-card .field label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 14px; }
.plan-new { border-style: dashed; }

/* ---------- 3.1 · Heute, Projektraum, Einstieg ---------- */
.badge-launch { background: #F1EDFC; color: #4E3594; }
.seg-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 860px) { .seg-5 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kbd { font-family: var(--mono); font-size: 11.5px; padding: 1px 6px; border-radius: 6px; background: var(--line-2); color: var(--muted); }

/* Seitenleiste: Suche, Projekte mit Phase */
.nav-search { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.12); background: rgba(255,255,255,.06); color: #B9C0CE; font: inherit; font-size: 14px; text-align: left; cursor: pointer; }
.nav-search:hover { background: rgba(255,255,255,.1); color: #fff; }
.nav-search .nav-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-search kbd { font-family: var(--mono); font-size: 11.5px; padding: 2px 6px; border-radius: 6px; background: rgba(255,255,255,.1); color: #E8EAEE; }
.nav-title-row { display: flex; align-items: center; justify-content: space-between; }
.nav-title-add { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; margin: -6px -6px -6px 0; border-radius: 7px; color: var(--side-muted); }
.nav-title-add:hover, .nav-title-add.active { background: rgba(255,255,255,.1); color: #fff; }
.nav-project .nav-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-phase { font-size: 11px; color: var(--side-muted); flex: none; }
.topbar-search { margin-left: auto; color: #E8EAEE; }
body.nav-rail .nav-search { justify-content: center; padding: 0; }
body.nav-rail .nav-search kbd, body.nav-rail .nav-phase, body.nav-rail .nav-title-add { display: none; }

/* Bereichsreiter über dem Inhalt */
.content-top:empty { display: none; }
.content-top { padding: 14px 5% 0; display: flex; flex-direction: column; gap: 10px; }
.content-top > .org-banner { margin: 0; max-width: none; }
.section-nav { display: flex; align-items: center; gap: 4px; overflow-x: auto; border-bottom: 1px solid #D5D8DE; scrollbar-width: thin; }
.section-nav-sub { border-bottom: 0; }
.section-name { display: inline-flex; align-items: center; gap: 6px; padding: 0 14px 0 2px; margin-right: 6px; border-right: 1px solid #D5D8DE; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.section-tab { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border-bottom: 3px solid transparent; color: var(--ink-3); text-decoration: none; font-size: 14.5px; white-space: nowrap; }
.section-tab:hover { color: var(--ink); }
.section-tab.on { border-bottom-color: var(--ink); color: var(--ink); font-weight: 700; }
.section-nav-sub .section-tab { min-height: 36px; border: 1px solid transparent; border-radius: 999px; padding: 0 12px; font-size: 13.5px; }
.section-nav-sub .section-tab.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.section-tab .nav-count { margin-left: 2px; }
body.nav-rail .section-tab .nav-count { position: static; min-width: 22px; height: 22px; padding: 0 7px; font-size: 12px; }
.content-top + .view .page { padding-top: 24px; }
/* Roadmap: volle Höhe unter den Reitern */
body.nav-rail .content { display: flex; flex-direction: column; height: calc(100vh - 28px); height: calc(100dvh - 28px); min-height: 0; }
body.nav-rail .view { flex: 1; min-height: 0; }
body.nav-rail .view .rm-page { height: 100%; }
body.nav-rail .content-top { padding: 6px 16px 0; }
body.nav-rail .section-tab { min-height: 38px; }
body.nav-rail .view .rm-page { padding-top: 8px; }
@media (max-width: 860px) {
  .content-top { padding: 12px 16px 0; }
  body.nav-rail .content { height: calc(100dvh - 60px); }
  .section-name { display: none; }
}

/* Suchen oder Befehl */
.palette { border: 0; padding: 0; background: transparent; width: min(640px, calc(100vw - 32px)); max-height: none; margin: 12vh auto auto; overflow: visible; color: var(--ink); }
.palette::backdrop { background: rgba(13,15,21,.45); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.palette-box { background: rgba(255,255,255,.97); border-radius: 16px; box-shadow: 0 30px 80px rgba(0,0,0,.35); overflow: hidden; }
.palette-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--muted); }
.palette-head input { flex: 1; border: 0; outline: none; font-size: 17px; background: transparent; min-height: 36px; padding: 0; color: var(--ink); }
.palette-head input:focus-visible { outline: none; }
.palette-esc { min-height: 32px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: #fff; color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.palette-list { max-height: min(400px, 55vh); overflow: auto; padding: 6px 8px 8px; display: flex; flex-direction: column; }
.palette-group { font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 10px 10px 4px; }
.palette-item { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 10px; border: 0; border-radius: 10px; background: transparent; text-align: left; cursor: pointer; font: inherit; font-size: 14.5px; color: var(--ink); }
.palette-item[aria-selected="true"], .palette-item:hover { background: #EEF1F6; }
.palette-label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.palette-meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.palette-empty { margin: 0; padding: 16px 10px; color: var(--muted); }
.palette-empty:empty { display: none; }
.palette-error { color: var(--err); }
.palette-foot { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
@media (max-width: 860px) { .palette { margin-top: 16px; } .palette-foot { display: none; } }

/* Heute */
.fy-count { font-weight: 600; margin-left: 6px; }
.fy-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.fy-item { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line-2); }
.fy-item:first-child { border-top: 0; }
.fy-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.fy-err { background: var(--err-bg); color: var(--err); }
.fy-info { background: var(--info-bg); color: var(--info); }
.fy-ki { background: #F1EDFC; color: #4E3594; }
.fy-plain { background: var(--ground); color: var(--ink-2); }
.fy-warn { background: var(--warn-bg); color: var(--warn); }
.fy-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fy-text strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.fy-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; color: var(--muted); }
.fy-proj { display: inline-flex; align-items: center; gap: 6px; }
.fy-proj .dot { width: 8px; height: 8px; border-radius: 2px; }
.fy-actions { display: flex; align-items: center; gap: 4px; }
.fy-actions .icon-btn-sm:hover { color: var(--ok); background: var(--ok-bg); }
.fy-empty { margin: 0; padding: 18px 0; text-align: center; color: var(--muted); }
.panel-dark { background: #15171C; border-color: #15171C; color: #fff; }
.panel-dark h2 { color: #fff; }
@media (max-width: 860px) {
  .fy-item { grid-template-columns: 36px minmax(0, 1fr); }
  .fy-actions { grid-column: 2; }
}

/* Projektraum */
.project-title .muted { font-size: 15px; }
.project-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-left: auto; }
.phase-panel { gap: 18px; }
.phase-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.phase-steps li { display: flex; }
.phase-step { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #F7F8FA; text-align: left; cursor: pointer; font: inherit; color: var(--muted); }
.phase-step strong { font-size: 14px; color: var(--ink-3); }
.phase-step span:last-child { font-size: 12.5px; }
.phase-step.is-done strong, .phase-step.is-now strong { color: var(--ink); }
.phase-step.is-view { background: #fff; border-color: #6A48C2; }
.phase-step-bar { height: 4px; border-radius: 999px; background: #E6E8EC; margin-bottom: 4px; }
.phase-step.is-done .phase-step-bar { background: #2BB58F; }
.phase-step.is-now .phase-step-bar { background: linear-gradient(90deg, #6A48C2 55%, #E6E8EC 55%); }
.phase-body { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.phase-gate { flex: 1 1 360px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.phase-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.gate-list { list-style: none; margin: 0; padding: 0; }
.gate { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 44px; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.gate-mark { width: 20px; height: 20px; border-radius: 6px; display: grid; place-items: center; background: var(--line-2); color: var(--muted); }
.gate.is-ok .gate-mark { background: var(--ok-bg); color: var(--ok); }
.gate a { display: inline-flex; align-items: center; min-height: 44px; font-size: 13.5px; font-weight: 600; text-decoration: none; white-space: nowrap; }
.gate.is-ok a { color: var(--muted); font-weight: 500; }
.next-card { flex: 1 1 280px; padding: 16px; border-radius: 12px; background: linear-gradient(135deg, #6A48C2, #4E3594); color: #fff; display: flex; flex-direction: column; gap: 8px; }
.next-card .phase-eyebrow { color: #D8CCFA; }
.next-title { font-size: 18px; line-height: 1.3; overflow-wrap: anywhere; }
.next-why { font-size: 14px; color: #E6DEFC; }
.next-card .btn-light { align-self: flex-start; color: #4E3594; margin-top: 4px; }
.glance { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; font-size: 14.5px; }
.glance dt { color: var(--muted); }
.glance dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 860px) {
  .phase-steps { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: 4px; }
  .project-actions { margin-left: 0; width: 100%; }
}

/* Validieren */
.hyp-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hyp { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.hyp-main { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.hyp-main strong { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.hyp-side { display: flex; align-items: center; gap: 4px; }
.hyp-list-sm .hyp { padding: 10px 12px; }
.hyp-edit { display: block; }
.hyp-badge { align-self: flex-start; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.hyp-ok { background: var(--ok-bg); color: var(--ok); }
.hyp-warn { background: var(--warn-bg); color: var(--warn); }
.hyp-info { background: var(--info-bg); color: var(--info); }
.hyp-err { background: var(--line-2); color: var(--ink-3); }
select.hyp-status { width: auto; min-height: 40px; font-size: 14px; font-weight: 600; border-color: transparent; }
.panel-ki h2 { display: flex; align-items: center; gap: 8px; color: #4E3594; }
.panel-ki { background: #FBFAFF; border-color: #E1DAF7; }
.hyp-proposals { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.hyp-proposals li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; padding-top: 10px; border-top: 1px solid #E1DAF7; }
.hyp-proposals li > span { flex: 1 1 200px; display: flex; flex-direction: column; gap: 2px; }

/* Kennzahlen */
.kpi-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.kpi-card { padding: 14px; border-radius: 12px; background: var(--ground); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi-name { font-size: 13px; color: var(--muted); }
.kpi-value { font-size: 24px; letter-spacing: -.02em; }
.kpi-note { font-size: 12.5px; font-weight: 600; }
.kpi-good { color: var(--ok); }
.kpi-bad { color: var(--warn); }
.kpi-muted { color: var(--muted); font-weight: 500; }
.kpi-bars { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 4px; align-items: end; height: 44px; margin-top: 6px; }
.kpi-col { position: relative; height: 100%; display: flex; align-items: flex-end; }
.kpi-plan, .kpi-act { position: absolute; bottom: 0; left: 0; right: 0; border-radius: 3px; }
.kpi-plan { background: #E1DAF7; }
.kpi-act { left: 22%; right: 22%; background: #6A48C2; }
.kpi-legend { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-top: 4px; }
.kpi-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.kpi-key-act { background: #6A48C2; }
.kpi-key-plan { background: #E1DAF7; margin-left: 6px; }
.kpi-table { min-width: 0; max-width: 520px; }
.kpi-table td { padding: 6px 12px; }
.input-num { min-height: 40px; padding: 6px 10px; border: 1px solid #C9CDD4; border-radius: 10px; font: inherit; font-size: 16px; width: 100%; max-width: 160px; background: #fff; }
.input-num:disabled { background: var(--line-2); color: var(--muted); }

/* Einstieg */
body.onboarding-mode .sidebar, body.onboarding-mode .topbar, body.onboarding-mode .scrim { display: none; }
body.onboarding-mode .content { margin: 14px; }
.ob { min-height: calc(100vh - 28px); display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.ob-inner { width: min(760px, 100%); display: flex; flex-direction: column; gap: 16px; }
.ob-top { display: flex; align-items: center; gap: 12px; font-size: 18px; }
.ob-spacer { flex: 1; }
.ob-progress { height: 6px; border-radius: 999px; background: var(--line-2); overflow: hidden; }
.ob-progress > span { display: block; height: 100%; background: linear-gradient(90deg, #4F7FEA, #9B7BF0); transition: width .3s ease; }
.ob-card { padding: 32px; gap: 20px; }
.ob-head { display: flex; flex-direction: column; gap: 6px; }
.ob-head h1, .ob-done h1 { font-size: 28px; letter-spacing: -.02em; }
.ob-head h1:focus, .ob-done h1:focus { outline: none; }
.ob-head .lead { margin: 0; }
.ob-row-2-1 { grid-template-columns: 2fr 1fr; }
.ob-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ob-choice { padding: 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; text-align: left; cursor: pointer; font: inherit; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.ob-choice span { font-size: 13px; color: var(--muted); }
.ob-choice[aria-pressed="true"] { border-color: var(--ink); background: #F7F8FA; }
.ob-ki { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; background: #F1EDFC; color: #4E3594; }
.ob-ki > p { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.ob-ki > p > svg { flex: none; margin-top: 2px; }
.ob-ki .btn { align-self: flex-start; }
.ob-proposal { display: flex; flex-direction: column; gap: 8px; color: var(--ink); }
.ob-pick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; }
.ob-pick input { margin-top: 3px; flex: none; }
.ob-pick > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ob-pick em { font-style: normal; color: var(--muted); font-size: 13px; }
.ob-phases { margin: 4px 0 0; padding-left: 18px; }
.ob-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.ob-done { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.ob-done-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ok-bg); color: var(--ok); }
.ob-foot { margin: 0; text-align: center; font-size: 13px; color: var(--muted); }
@media (max-width: 860px) {
  body.onboarding-mode .content { margin: 0; min-height: 100vh; }
  .ob { min-height: 100vh; }
  .ob-card { padding: 20px 16px; }
  .ob-row-2-1, .ob-choices { grid-template-columns: 1fr; }
}
.ob .inline-form .field input { flex: none; }

/* ---------- Runde 8: Überwachung ohne Zugangsschlüssel ---------- */
.state-pill { display: inline-flex; align-items: center; min-height: 24px; padding: 2px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.state-ok { background: var(--ok-bg); color: var(--ok); }
.state-warn { background: var(--warn-bg); color: var(--warn); }
.state-err { background: var(--err-bg); color: var(--err); }
.state-none { background: var(--line-2); color: var(--muted); }
.conn { display: flex; flex-direction: column; gap: 16px; }
.conn-card { display: flex; flex-direction: column; gap: 14px; }
.conn-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.conn-icon { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--line-2); color: var(--ink-2); }
.conn-icon-ok { background: var(--ok-bg); color: var(--ok); }
.conn-title { flex: 1; min-width: 220px; }
.conn-title h2 { margin: 0; font-size: 18px; }
.conn-title p { margin: 2px 0 0; font-size: 14px; color: var(--ink-2); }
.conn-title h2 .muted { font-weight: 500; }
.watch-table { display: flex; flex-direction: column; }
.watch-row { display: grid; grid-template-columns: 160px minmax(0, 1fr) 170px 170px 130px; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.watch-th { padding: 6px 0; font-size: 12.5px; font-weight: 700; color: var(--muted); border-bottom-color: var(--line); }
.watch-name { display: flex; align-items: center; gap: 8px; font-weight: 600; min-width: 0; }
.watch-name .dot { flex: none; }
.watch-urls { font-family: var(--mono); font-size: 12.5px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.watch-none { color: var(--warn); }
.watch-cert { font-size: 13px; color: var(--ink-2); }
.cert-warn { color: var(--warn); font-weight: 600; }
.cert-err { color: var(--err); font-weight: 600; }
.watch-act { text-align: right; }
.watch-act a { font-size: 14px; font-weight: 600; text-decoration: none; display: inline-block; padding: 8px 0; }
.conn-notes { display: flex; flex-wrap: wrap; gap: 10px; }
.conn-note { flex: 1 1 320px; margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; background: var(--line-2); font-size: 14px; }
.conn-note > svg { flex: none; margin-top: 1px; }
.conn-note-warn { background: var(--warn-bg); color: var(--warn); }
.conn-note-info { background: var(--info-bg); color: var(--info); }
#extra-body { display: flex; flex-direction: column; gap: 12px; }
#extra-body[hidden] { display: none; }
#extra-body > p { margin: 0; }
.svc-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.svc { border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; background: #fff; }
.svc-on { background: #FBFDFC; }
.svc-picked { border-color: var(--ink); }
.svc-head { display: flex; align-items: center; gap: 8px; }
.svc-head strong { flex: 1; font-size: 15px; }
.svc p { margin: 0; }
.svc-adds { font-size: 14px; color: var(--ink-2); }
.svc-meta { font-size: 13px; color: var(--muted); }
.svc-err { color: var(--err); }
.svc-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: auto; }
.svc-form { border: 1.5px solid var(--ink); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.svc-form-head { display: flex; align-items: center; gap: 10px; }
.svc-form-head h3 { margin: 0; font-size: 16px; flex: 1; }
.svc-form ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.svc-form-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; }
.svc-form-row .field { flex: 1 1 260px; }
.agents-lead { margin: 0 0 4px; }
.agent-group .conn-head { margin-bottom: 4px; }
.agent-off .agent-head strong { color: var(--muted); }
.agent-offline { margin: 4px 0 0; }
.agent-offline a { font-weight: 600; text-decoration: none; }
.agent-when { align-self: center; }
.vital-unwatched { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.vital-unwatched a { font-weight: 600; }
.ns-unwatched { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ob-watch-on { margin: -4px 0 0; display: flex; align-items: center; gap: 6px; color: var(--ok); }
@media (max-width: 900px) {
  .watch-th { display: none; }
  .watch-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 0; }
  .watch-name { grid-column: 1; }
  .watch-row > [role="cell"]:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; }
  .watch-urls, .watch-cert { grid-column: 1 / -1; }
  .watch-act { grid-column: 1 / -1; text-align: left; }
  .watch-off .watch-cert { display: none; }
}
.ob-hint { margin: -4px 0 0; }

/* ---------- 3.2 Begleiter ---------- */
.state-ki { background: #F1EDFC; color: #4E3594; }
.state-info { background: var(--info-bg); color: var(--info); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; cursor: pointer; min-height: 32px; }
.check input { margin-top: 2px; flex: none; }
.subtabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 16px; }
.subtab { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 10px; border: 1px solid #D5D8DE; background: #fff; color: var(--ink-2); font-weight: 600; font-size: 14px; text-decoration: none; }
.subtab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.subtab.on .tab-count { background: rgba(255,255,255,.18); color: #fff; }
.switch input { position: absolute; opacity: 0; width: 40px; height: 24px; margin: 0; cursor: pointer; }
.switch { position: relative; }
.switch span { width: 40px; height: 24px; border-radius: 999px; background: #C9CDD4; position: relative; transition: background .15s; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: left .15s; }
.switch input:checked + span { background: #1F8A5B; }
.switch input:checked + span::after { left: 19px; }
.switch input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 2px; }

.guide { gap: 18px; }
.phase-step-top { display: flex; align-items: baseline; justify-content: space-between; gap: 6px; }
.phase-due { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.phase-due.is-late { color: var(--err); }
.phase-step.is-now .phase-step-bar { background: linear-gradient(90deg, #6A48C2 var(--pct, 0%), #E6E8EC 0); }
.guide-body { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.guide-list { flex: 1 1 340px; max-width: 420px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.guide-detail { flex: 999 1 460px; min-width: 0; }
.guide-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.guide-head h3 { margin: 0; font-size: 18px; }
.guide-list .progress { height: 6px; }
.guide-list .progress span { background: #2BB58F; }
.guide-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.guide-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; }
.guide-strand { display: flex; flex-direction: column; gap: 4px; }
.guide-strand ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gstep { width: 100%; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 10px; align-items: center; min-height: 48px; padding: 6px 10px; border-radius: 10px;
  border: 1.5px solid var(--line); background: #fff; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.gstep:hover { border-color: #B9BEC7; }
.gstep.is-erledigt, .gstep.is-entfaellt { background: #F7F8FA; border-color: transparent; }
.gstep.is-on { border-color: var(--ink); background: #fff; }
.gstep-mark { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 1.5px solid #C9CDD4; color: var(--muted); }
.gstep.is-erledigt .gstep-mark { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.gstep.is-entfaellt .gstep-mark { background: var(--line-2); border-color: var(--line-2); }
.gstep.is-arbeit .gstep-mark { background: var(--info-bg); border-color: var(--info-bg); color: var(--info); }
.gstep.is-late .gstep-mark { border-color: var(--err); color: var(--err); }
.gstep-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.gstep-title { font-size: 14px; font-weight: 600; }
.gstep.is-entfaellt .gstep-title { color: var(--muted); text-decoration: line-through; }
.gstep-meta { font-size: 12.5px; color: var(--muted); }
.gstep.is-late .gstep-meta { color: var(--err); font-weight: 600; }
.guide-foot { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line-2); }
.guide-foot p { margin: 0; }
.guide-due { margin-top: 4px; }
.guide-due input { max-width: 170px; }
.gdetail { display: flex; flex-direction: column; gap: 14px; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.gd-head { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-start; }
.gd-title { flex: 1; min-width: 240px; display: flex; flex-direction: column; gap: 6px; }
.gd-title h3 { margin: 0; font-size: 21px; letter-spacing: -0.01em; }
.gd-title h3:focus { outline: none; }
.gd-title p { margin: 0; color: var(--ink-2); }
.gd-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.gd-facts > div { padding: 12px 14px; border-radius: 10px; background: var(--ground); display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.gd-facts > div.is-ok { background: var(--ok-bg); }
.gd-check { font-size: 12.5px; color: var(--ink-3); }
.gd-facts > div.is-ok .gd-check { color: var(--ok); }
.gd-meta { display: flex; flex-wrap: wrap; gap: 12px; }
.gd-meta .field { flex: 1 1 180px; margin: 0; }
.gd-legal { display: flex; gap: 10px; align-items: flex-start; margin: 0; font-size: 13.5px; }
.gd-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gd-inline { padding: 12px 14px; border-radius: 10px; background: var(--ground); }
.gd-note { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--line); background: #FCFCFD; }
.gd-note-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.gd-note-text { white-space: pre-wrap; font-size: 14px; max-height: 320px; overflow-y: auto; }
.gd-note textarea { width: 100%; font: inherit; }
.gd-helps { display: flex; flex-direction: column; gap: 8px; }
.gd-helps > div { display: flex; flex-wrap: wrap; gap: 8px; }
.gd-ki { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #F1EDFC; color: #3B2A73; }
.gd-ki-icon { color: #6A48C2; display: inline-flex; }
.gd-ki-text { flex: 1; min-width: 220px; display: flex; flex-direction: column; font-size: 14px; }
.gd-ki-text span { color: #4E3594; }
.gd-draft { border: 1.5px solid #6A48C2; border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: #FCFBFF; }
.gd-draft-head { display: flex; align-items: center; gap: 8px; color: #4E3594; }
.gd-draft-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; }
.gd-draft-col { padding: 12px 14px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.gd-draft-col ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.gd-draft p { margin: 0; }

.review-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-bottom: 16px; }
.review-head a { font-weight: 600; text-decoration: none; }
.review-head h2 { margin: 0; font-size: 22px; flex: 1; min-width: 240px; }
.review-ki .panel-head h2 { display: flex; align-items: center; gap: 8px; }
.review-summary { font-size: 15.5px; line-height: 1.5; margin: 0; }
.review-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.review-box { padding: 14px 16px; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.review-box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.review-box.is-ok { background: var(--ok-bg); } .review-box.is-ok strong { color: var(--ok); }
.review-box.is-warn { background: var(--warn-bg); } .review-box.is-warn strong { color: var(--warn); }
.review-conds { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.review-cond { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; }
.review-cond span { display: flex; flex-direction: column; }
.review-open { list-style: none; margin: 0; padding: 0; }
.review-open li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 44px; border-top: 1px solid var(--line-2); font-size: 14px; }
.review-open .dot { width: 8px; height: 8px; border-radius: 50%; }
.review-choices { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.review-choice { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 11px 12px; border-radius: 10px; border: 1.5px solid var(--line); background: #F7F8FA; cursor: pointer; }
.review-choice:has(input:checked) { border-color: var(--ink); background: #fff; }
.review-choice input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.review-choice > span { display: flex; flex-direction: column; line-height: 1.3; }

.talks-head { margin-bottom: 0; }
.talks-filter { align-self: flex-start; }
.talk { display: flex; flex-direction: column; gap: 10px; }
.talk-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.talk-head strong { flex: 1; min-width: 200px; font-size: 15px; }
.talk-notes { margin: 0; padding-left: 18px; font-size: 14px; display: flex; flex-direction: column; gap: 3px; }
p.talk-notes { padding-left: 0; }
.talk-quote { margin: 0; padding: 4px 0 4px 12px; border-left: 3px solid var(--line); font-size: 14px; color: var(--ink-2); font-style: italic; }
.talk-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.talk-links { display: flex; flex-wrap: wrap; gap: 6px; }
.talk-form { border: 1.5px solid var(--ink); }
.talk-form .panel-head h3 { margin: 0; font-size: 16px; }
.talk-consent { padding: 10px 12px; border-radius: 10px; background: var(--info-bg); color: var(--info); }
.talk-effects { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.talk-effects legend { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.talk-effect { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; }
.talk-effect > span:first-child { flex: 1; min-width: 200px; }
.seg-radio { position: relative; display: inline-flex; }
.seg-radio input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg-radio span { min-height: 34px; padding: 0 12px; border-radius: 9px; display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.seg-radio input:checked + span { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(21,23,28,.15); }
.seg-radio input:focus-visible + span { outline: 2px solid var(--link); outline-offset: 1px; }
.talk-patterns { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.talk-patterns li { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; background: #F1EDFC; }
.talk-pattern-head { display: flex; justify-content: space-between; gap: 8px; color: #3B2A73; }
.talk-pattern-head span { font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.talk-pattern-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0 0; }
.talk-mirror { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.talk-mirror li { display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.talk-bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--line-2); }
.talk-bar .is-pro { background: #2BB58F; } .talk-bar .is-con { background: #E5484D; }

/* ---------- 3.3 Projekt als Roadmap: Stationen, Prüfungen, Fenster */
.page-project .project-hero { margin-bottom: 10px; }
.pr-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 18px; }
.pr-tools .btn { gap: 6px; }
.pr-tools .tab-count { margin-left: 2px; }
.pr-icon-btn { width: 40px; padding: 0; justify-content: center; }
.pr-areas { position: relative; }
.pr-areas > summary { list-style: none; cursor: pointer; }
.pr-areas > summary::-webkit-details-marker { display: none; }
.pr-areas[open] > summary { background: var(--line-2); }
.pr-areas-menu { position: absolute; left: 0; top: calc(100% + 6px); z-index: 40; width: min(340px, calc(100vw - 32px)); max-height: min(70vh, 640px); overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.18); padding: 8px; display: flex; flex-direction: column; gap: 2px; }
.pr-areas-h { margin: 0; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 8px 10px 4px; }
.pr-area { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px; border-radius: 8px; font-size: 14.5px; color: var(--ink); text-decoration: none; }
.pr-area:hover, .pr-area:focus-visible { background: var(--line-2); }
.pr-area-s { font-size: 12px; color: var(--muted); white-space: nowrap; }
.pr-areas-foot { margin: 6px 10px 4px; font-size: 12px; color: var(--muted); }
.pr-page { display: flex; flex-direction: column; gap: 18px; }
.pr-roadcard.panel { gap: 14px; padding: 20px 22px 18px; }
.pr-roadhead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 6px 12px; }
.pr-roadhead h2 { margin: 0; font-size: 17px; }
.pr-roadmeta { font-size: 13.5px; color: var(--muted); }
.pr-due { min-height: 32px; padding: 0 4px; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.pr-due:hover { color: var(--ink); }
.pr-due.overdue { color: var(--err); font-weight: 600; }
.pr-due-form { flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 0; }
.pr-road { display: grid; row-gap: 12px; align-items: start; }
.pr-phase { grid-row: 1; display: flex; flex-direction: column; padding: 8px 10px; margin: 0 3px; border-radius: 10px; background: var(--line-2); min-width: 0; }
.pr-phase strong { font-size: 13.5px; }
.pr-phase span { font-size: 12px; color: var(--muted); }
.pr-phase.is-now { background: var(--ink); color: #fff; }
.pr-phase.is-now span { color: #C9CDD4; }
.pr-phase.is-done { background: var(--ok-bg); }
.pr-phase.is-done span { color: var(--ok); }
.pr-node { grid-row: 2; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 4px 4px 6px; border-radius: 12px; min-height: 44px;
  color: inherit; text-decoration: none; text-align: center; min-width: 0; }
a.pr-node:hover { background: rgba(21, 23, 28, .04); }
.pr-node::before { content: ""; position: absolute; left: 0; right: 0; top: 23px; height: 3px; background: var(--line); }
.pr-node.is-done::before { background: #2BB58F; }
.pr-node.is-now::before { background: linear-gradient(90deg, #2BB58F 50%, var(--line) 50%); }
.pr-dot { position: relative; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 15px;
  background: #fff; border: 2px solid #C9CDD4; color: var(--muted); }
.pr-node.is-done .pr-dot { background: var(--ok-bg); border-color: #2BB58F; color: var(--ok); }
.pr-node.is-open .pr-dot { border-color: var(--ink-3); color: var(--ink); }
.pr-node.is-now .pr-dot { background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: 0 0 0 5px #D5D8DE; }
.pr-diamond { position: relative; width: 40px; height: 40px; display: grid; place-items: center; }
.pr-diamond > span { width: 22px; height: 22px; transform: rotate(45deg); border: 2px solid #C9CDD4; background: #fff; display: grid; place-items: center;
  border-radius: 4px; font-size: 11px; font-weight: 800; color: var(--ok); }
.pr-diamond > span > i { transform: rotate(-45deg); font-style: normal; line-height: 1; }
.pr-gate.is-done .pr-diamond > span { background: var(--ok-bg); border-color: #2BB58F; }
.pr-gate.is-now .pr-diamond > span { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 5px #D5D8DE; }
.pr-node-text { display: flex; flex-direction: column; gap: 2px; max-width: 132px; min-width: 0; }
.pr-node-text strong { font-size: 13.5px; line-height: 1.25; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: break-word; }
.pr-node-text span { font-size: 12px; color: var(--muted); }
.pr-gate .pr-node-text strong { font-size: 12.5px; color: var(--ink-2); }
.pr-node.is-next .pr-node-text strong { color: var(--ink-2); font-weight: 600; }
.pr-node.is-now .pr-node-text span { color: var(--info); font-weight: 600; }
.pr-done-road { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.pr-done-road > span { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: var(--ok-bg); color: var(--ok); font-weight: 600; }
.pr-done-road > span.is-now { background: var(--ink); color: #fff; }
.pr-roadcard > #rm-show-road { align-self: flex-start; }
.pr-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.pr-now.panel { flex: 999 1 540px; min-width: 0; gap: 14px; padding: 22px 24px; border: 1.5px solid var(--ink); }
.pr-now .pr-now-title, .pr-now-title { margin: 0; font-size: 28px; letter-spacing: -.02em; line-height: 1.15; }
.pr-now-goal { margin: 0; font-size: 15.5px; color: var(--ink-2); max-width: 62ch; }
.pr-minis { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pr-mini { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 44px; padding: 6px 10px; border-radius: 10px;
  font-size: 14.5px; font-weight: 600; color: var(--ink); text-decoration: none; }
.pr-mini:hover { background: #F7F8FA; }
.pr-mini.is-now { background: #F7F8FA; }
.pr-mini.is-done { color: var(--muted); }
.pr-mini-mark { width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid #C9CDD4; background: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; }
.pr-mini.is-done .pr-mini-mark { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.pr-mini.is-now .pr-mini-mark { background: var(--ink); border-color: var(--ink); }
.pr-mini-meta { font-size: 12.5px; color: var(--muted); font-weight: 500; white-space: nowrap; }
.pr-mini.is-late .pr-mini-meta { color: var(--err); font-weight: 600; }
.pr-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.pr-big { min-height: 46px; padding: 0 18px; font-size: 15px; }
.pr-result { margin: 0; display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--ink-2); padding-top: 12px; border-top: 1px solid var(--line-2); }
.pr-result svg { flex: none; margin-top: 2px; }
.pr-side { flex: 1 1 300px; max-width: 380px; display: flex; flex-direction: column; gap: 14px; }
.pr-side .phase-facts { grid-template-columns: 1fr; }
.pr-bp.panel { gap: 12px; padding: 18px 20px; }
.pr-bp h2 { margin: 0; font-size: 16px; }
.pr-bp .btn { align-self: flex-start; }
.pr-bp-row { display: flex; align-items: center; gap: 14px; }
.pr-ring { --p: 0; width: 58px; height: 58px; flex: none; border-radius: 50%; background: conic-gradient(#6A48C2 calc(var(--p) * 1%), var(--line-2) 0); display: grid; place-items: center; }
.pr-ring > span { width: 44px; height: 44px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
/* Fenster */
html:has(.win-overlay) { overflow: hidden; }
.win-overlay { position: fixed; inset: 0; z-index: 60; background: rgba(13, 15, 21, .5); display: flex; justify-content: center; align-items: flex-start; padding: 4vh 24px; overflow: auto; }
.win { width: min(1000px, 100%); background: var(--ground, #F2F3F5); border-radius: 20px; box-shadow: 0 40px 100px rgba(0, 0, 0, .4); display: flex; flex-direction: column; margin-bottom: 4vh; }
.win.win-wide { width: min(1160px, 100%); }
.win-head { position: sticky; top: -4vh; z-index: 2; display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 14px; background: #fff; border-radius: 20px 20px 0 0; border-bottom: 1px solid var(--line-2); }
.win-title-wrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.win-title { margin: 0; font-size: 24px; letter-spacing: -.02em; }
.win-title:focus { outline: none; }
.win-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; min-height: 32px; font-size: 13.5px; font-weight: 600; text-decoration: none; margin-bottom: 4px; }
.win-close { width: 44px; padding: 0; justify-content: center; flex: none; }
.win-body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.win-body > .subtabs { margin-top: 0; }
.st-intro { display: flex; flex-direction: column; gap: 10px; }
.st-later { display: flex; gap: 8px; align-items: center; margin: 0; }
.st-steps { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.st-step { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 8px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff;
  font: inherit; font-size: 13.5px; font-weight: 600; white-space: nowrap; cursor: pointer; color: var(--ink-2); flex: none; }
.st-step:hover { border-color: #B9BEC7; }
.st-step-mark { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--line-2); font-size: 12px; font-weight: 800; color: var(--ink-2); flex: none; }
.st-step.is-erledigt .st-step-mark { background: var(--ok-bg); color: var(--ok); }
.st-step.is-entfaellt { color: var(--muted); }
.st-step-meta { font-size: 12px; color: var(--muted); font-weight: 600; }
.st-step.is-on { border-color: var(--ink); background: var(--ink); color: #fff; }
.st-step.is-on .st-step-mark { background: #fff; color: var(--ink); }
.st-step.is-on .st-step-meta { color: #C9CDD4; }
.win-body #guide-detail .gdetail.panel { border-radius: 16px; }
.st-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--line); }
.st-foot > .muted { flex: 1; min-width: 200px; }
.gd-fields { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; border-radius: 12px; background: #FAFAFB; border: 1px solid var(--line-2); }
.gd-fields-head { margin: 0; display: flex; gap: 6px; align-items: center; font-size: 13px; font-weight: 600; color: #4E3594; }
.gd-field p { margin: 4px 0 0; white-space: pre-line; }
@media (max-width: 760px) {
  .pr-road { grid-template-columns: 1fr !important; row-gap: 0; }
  .pr-phase, .pr-node { grid-row: auto !important; grid-column: auto !important; }
  .pr-phase { margin: 10px 0 6px; }
  .pr-node { flex-direction: row; align-items: center; text-align: left; gap: 12px; padding: 6px 4px; min-height: 52px; }
  .pr-node::before { left: 23px; right: auto; top: 0; bottom: 0; width: 3px; height: auto; }
  .pr-node.is-now::before { background: linear-gradient(180deg, #2BB58F 50%, var(--line) 50%); }
  .pr-node-text { max-width: none; }
  .pr-side { max-width: none; }
  .pr-now .pr-now-title { font-size: 22px; }
  .pr-tools .btn { min-height: 44px; }
  .win-overlay { padding: 0; }
  .win { border-radius: 0; min-height: 100%; margin: 0; width: 100% !important; }
  .win-head { top: 0; border-radius: 0; padding: 14px 16px 12px; }
  .win-body { padding: 16px; }
  .win-title { font-size: 21px; }
  .st-foot .btn { flex: 1 1 auto; }
}

/* ---------- 3.3 Fenster kompakt: Kopf mit Reitern, Schritt ohne Rahmen, Felder nach Inhalt */
.win-head { flex-wrap: wrap; padding: 14px 20px 10px; row-gap: 8px; }
.win-title-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.win-title { font-size: 21px; }
.win-kicker { font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.win-sub { margin: 0; font-size: 14px; color: var(--ink-3); }
.win-head-extra { flex: 1 1 100%; min-width: 0; }
.win-head-extra .st-steps { margin: 0; }
.win-head-extra .st-step { min-height: 38px; font-size: 13px; }
.win-head-extra .st-step-mark { width: 22px; height: 22px; font-size: 11px; }
.win-body { padding: 14px 20px 18px; gap: 12px; }
.win #guide-detail .gdetail.panel { padding: 0; border: 0; background: transparent; box-shadow: none; gap: 12px; }
.win .gdetail .gd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.win .gdetail .gd-head h3 { margin: 0; font-size: 19px; letter-spacing: -.01em; }
.gd-kicker { flex: 1 1 100%; display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); font-weight: 600; }
.gd-kicker .dot { width: 8px; height: 8px; border-radius: 50%; }
.gd-goal { margin: -4px 0 0; font-size: 14px; color: var(--ink-3); max-width: 80ch; }
.win .gd-fields { padding: 0; border: 0; background: none; gap: 10px; }
.win .gd-fields textarea { min-height: 120px; max-height: 70vh; font-size: 15px; line-height: 1.5; resize: vertical; }
.st-foot-info { line-height: 1.4; }
@media (max-width: 760px) {
  .win-head { padding: 12px 14px 8px; }
  .win-head-extra .st-step { min-height: 44px; }
  .win-body { padding: 12px 14px 16px; }
}

/* ---------- Runde 11: Überblick reduziert – Phasenzeile, „Jetzt dran“, Schritte als Zeilen */
.guide { display: flex; flex-direction: column; gap: 16px; }
.phase-line { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 20px; padding: 12px 18px; }
.phase-line .phase-steps { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 4px; flex: 1 1 420px; }
.phase-line .phase-steps li { display: flex; align-items: center; }
.phase-sep { color: #C9CDD4; }
.phase-line .phase-step { flex: none; flex-direction: row; align-items: center; gap: 7px; min-height: 36px; padding: 4px 8px; border: 1.5px solid transparent; border-radius: 8px;
  background: transparent; font-size: 14px; font-weight: 500; color: var(--muted); }
.phase-line .phase-step:hover { background: var(--ground); }
.phase-line .phase-step.is-now { color: var(--ink); font-weight: 700; }
.phase-line .phase-step.is-done { color: var(--ink-2); }
.phase-line .phase-step.is-view:not(.is-now) { border-color: var(--line); background: #fff; }
.phase-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #C9CDD4; background: #fff; display: grid; place-items: center; font-size: 8px; font-weight: 800; line-height: 1; }
.phase-step.is-now .phase-dot { background: var(--ink); border-color: var(--ink); box-shadow: 0 0 0 3px #D5D8DE; }
.phase-step.is-done .phase-dot { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.phase-line-meta { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 14px; white-space: nowrap; }
.phase-line-bar { width: 120px; height: 6px; }
.phase-line-bar span { background: #2BB58F; }
.phase-due-btn { min-height: 32px; padding: 0 4px; border: 0; background: none; font: inherit; color: var(--muted); text-decoration: underline dotted; text-underline-offset: 3px; cursor: pointer; }
.phase-due-btn:hover { color: var(--ink); }
.phase-due-btn.overdue { color: var(--err); font-weight: 600; }
.phase-line .guide-due { flex: 1 1 100%; align-items: flex-end; flex-wrap: wrap; gap: 8px; margin: 0; }
.guide-main { flex: 999 1 540px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.guide-list.panel { flex: 1 1 320px; max-width: 400px; gap: 6px; padding: 20px; }
.guide-list .guide-head { margin-bottom: 4px; }
.guide-list .guide-head h2 { margin: 0; font-size: 17px; }
.gsteps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.gsteps .gstep { grid-template-columns: 22px minmax(0, 1fr) auto; min-height: 44px; border-color: transparent; background: transparent; }
.gsteps .gstep:hover { background: #F7F8FA; border-color: transparent; }
.gsteps .gstep.is-arbeit { background: #F7F8FA; }
.gsteps .gstep.is-on { border-color: var(--ink); background: #fff; }
.gsteps .gstep.is-erledigt .gstep-title { color: var(--muted); }
.gsteps .gstep-mark { width: 20px; height: 20px; border-radius: 6px; }
.gsteps .gstep.is-arbeit .gstep-mark { background: var(--ink); border-color: var(--ink); color: #fff; }
.gsteps .gstep-title { line-height: 1.3; }
.gsteps .gstep-meta { white-space: nowrap; }
.guide-list .guide-foot { flex-direction: row; flex-wrap: wrap; align-items: center; margin-top: 8px; }
.guide-list .guide-foot p { flex: 1; min-width: 150px; }
.gdetail.panel { gap: 16px; padding: 20px 22px; border-radius: 16px; }
.gdetail.is-next { border: 1.5px solid var(--ink); }
.gdetail .gd-head { justify-content: space-between; align-items: center; }
.gdetail .gd-title { min-width: 0; }
.gdetail .gd-title h3 { font-size: 26px; letter-spacing: -0.02em; line-height: 1.2; }
.gdetail .gd-title p { font-size: 15.5px; max-width: 62ch; }
.gd-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 14px; }
.gd-segs { display: inline-flex; gap: 6px; }
.gd-segs span { width: 34px; height: 8px; border-radius: 999px; background: var(--line); }
.gd-segs span.on { background: #2BB58F; }
.gd-done { margin: 0; display: flex; align-items: center; gap: 8px; color: var(--ok); font-size: 14.5px; }
.gd-done.is-skip { color: var(--muted); }
.gd-caret { display: inline-flex; transition: transform .15s; }
.gd-note-tools { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.gd-caret.is-open { transform: rotate(180deg); }
.gd-more { display: flex; flex-direction: column; gap: 12px; padding-top: 10px; border-top: 1px solid var(--line-2); }
.gd-more-toggle { align-self: flex-start; color: var(--muted); white-space: normal; text-align: left; }
.gd-more-body { display: flex; flex-direction: column; gap: 14px; }
dl.gd-facts { margin: 0; }
dl.gd-facts dd { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.phase-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.fact.panel { gap: 4px; padding: 14px 18px; text-decoration: none; color: inherit; }
.fact.panel:hover { border-color: #B9BEC7; }
.fact-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.fact-value { display: flex; align-items: baseline; gap: 6px; }
.fact-value strong { font-size: 24px; letter-spacing: -0.02em; }
.fact-hint { font-size: 13px; color: var(--link, #2B59C3); }
@media (max-width: 900px) {
  .guide-list.panel { max-width: none; }
  .gdetail .gd-title h3 { font-size: 22px; }
  .gd-segs span { width: 26px; }
  .phase-line .phase-step { min-height: 44px; padding: 4px 6px; }
  .phase-sep { display: none; }
  .phase-due-btn, .gd-more-toggle { min-height: 44px; }
}

/* ---------- Runde 10: Gespräch führen und üben */
.talks-head-actions { display: inline-flex; flex-wrap: wrap; gap: 8px; }
.talk-running { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.talk-running > span { flex: 1; min-width: 200px; }
.talk-answers, .gf-answers { font-size: 14px; }
.talk-answers summary, .gf-answers summary { cursor: pointer; font-weight: 600; color: var(--ink-3); min-height: 32px; display: flex; align-items: center; }
.talk-answers dl, .gf-answers dl { margin: 6px 0 0; display: flex; flex-direction: column; gap: 4px; }
.talk-answers dt, .gf-answers dt { font-weight: 600; color: var(--ink-2); margin-top: 6px; }
.talk-answers dd, .gf-answers dd { margin: 0; white-space: pre-line; color: var(--ink-3); }

.gf-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-bottom: 14px; }
.gf-back { font-size: 14px; font-weight: 600; text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; }
.gf-title { flex: 1; min-width: 220px; font-size: 22px; letter-spacing: -0.015em; }
.gf-clock { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.gf-clock .mono { font-size: 14px; }
.gf-start { max-width: 820px; }
.gf-guide-meta { margin: 0; font-size: 14px; }
.gf-guide-sections { margin: 8px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; counter-reset: gfsec; }
.gf-guide-sections li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--ground); font-size: 14px; }
.gf-start-actions { flex-wrap: wrap; gap: 10px; }
.gf-start-actions > .muted { flex: 1; min-width: 220px; }
.gf-practice { margin: 0; }
.gf-live { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.gf-guide { flex: 1 1 300px; max-width: 380px; gap: 10px; padding: 20px; }
.gf-guide-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.gf-guide-head h2 { font-size: 17px; }
.gf-sec { display: flex; flex-direction: column; gap: 4px; }
.gf-sec-head { justify-content: space-between; padding: 6px 2px 2px; }
.gf-q { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; width: 100%; min-height: 40px; padding: 8px 10px; border-radius: 10px;
  border: 1.5px solid transparent; background: transparent; text-align: left; font: inherit; font-size: 13.5px; line-height: 1.35; color: var(--ink); cursor: pointer; }
.gf-q:hover { background: var(--ground); }
.gf-q.is-current { border-color: var(--ink); background: #fff; }
.gf-q.is-asked { background: #F7F8FA; color: var(--muted); }
.gf-q-mark { width: 20px; height: 20px; margin-top: 1px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; border: 1.5px solid #C9CDD4; background: #fff; color: #fff; }
.gf-q.is-current .gf-q-mark { background: var(--ink); border-color: var(--ink); }
.gf-q.is-asked .gf-q-mark, .ue-checklist .is-asked .gf-q-mark { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.gf-work { flex: 999 1 520px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.gf-card { gap: 14px; }
.gf-question { font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; }
.gf-question:focus { outline: none; }
.gf-probes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.gf-probe { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); font-size: 13px; font-weight: 600; }
.gf-card textarea { min-height: 150px; }
.gf-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.gf-spacer { flex: 1; }
.gf-quote-line { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 4px 0 4px 12px; border-left: 3px solid var(--line); font-size: 14px; font-style: italic; color: var(--ink-2); }
.gf-quote-line > span { flex: 1; min-width: 200px; }
.gf-person { gap: 8px; padding: 14px 18px; }
.gf-person-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gf-person-row strong { flex: 1; min-width: 180px; font-size: 14.5px; }
.gf-person-row input { flex: 1; min-width: 200px; }
.gf-sum-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.gf-sum { flex: 999 1 560px; min-width: 0; gap: 14px; }
.gf-sum-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.gf-sum-head h2 { flex: 1; min-width: 220px; font-size: 18px; }
.gf-ki-icon { color: #6A48C2; display: inline-flex; }
.gf-why { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.gf-partner { flex: 1 1 300px; max-width: 380px; gap: 12px; padding: 20px; }
.gf-partner h2 { font-size: 17px; }
.gf-skeleton { height: 120px; border-radius: 12px; background: linear-gradient(90deg, var(--line-2), #F7F8FA, var(--line-2)); background-size: 200% 100%; animation: gf-shimmer 1.4s infinite linear; }
.gf-skeleton.short { height: 48px; }
@keyframes gf-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .gf-skeleton { animation: none; } }

.ue-banner { display: flex; align-items: flex-start; gap: 12px; padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; background: #F1EDFC; color: #3B2A73; font-size: 14px; }
.ue-banner > svg { flex: none; color: #6A48C2; margin-top: 1px; }
.ue-setup { max-width: 820px; }
.ue-setup h2 { font-size: 18px; }
.ue-personas { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.ue-persona { position: relative; display: flex; }
.ue-persona input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.ue-persona > span { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line); background: #F7F8FA; font-size: 14.5px; }
.ue-persona input:checked + span { border-color: var(--ink); background: #fff; }
.ue-persona input:focus-visible + span { outline: 3px solid #6E93E8; outline-offset: 2px; }
.ue-options { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; }
.ue-label { font-size: 14px; font-weight: 600; color: var(--ink-2); }
.ue-guide-field { flex: 1 1 240px; }
.ue-start { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ue-chat-wrap { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.ue-chat { flex: 999 1 520px; min-width: 0; padding: 0; gap: 0; overflow: hidden; }
.ue-chat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.ue-avatar { width: 36px; height: 36px; border-radius: 50%; background: #F1EDFC; color: #6A48C2; display: grid; place-items: center; flex: none; }
.ue-chat-who { flex: 1; min-width: 160px; display: flex; flex-direction: column; }
.ue-chat-who h2 { font-size: 16px; }
.ue-log { display: flex; flex-direction: column; gap: 10px; padding: 14px 18px; min-height: 320px; max-height: 60vh; overflow-y: auto; }
.ue-msg { max-width: 80%; padding: 10px 14px; border-radius: 14px; font-size: 14.5px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.ue-msg.is-me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 4px; }
.ue-msg.is-them { align-self: flex-start; background: var(--ground); color: var(--ink); border-bottom-left-radius: 4px; }
.ue-msg.is-typing { color: var(--muted); letter-spacing: .2em; }
.ue-tip { margin: 0; display: flex; gap: 8px; align-items: flex-start; padding: 8px 12px; border-radius: 10px; background: var(--warn-bg); color: var(--warn); font-size: 13.5px; }
.ue-input { display: flex; gap: 8px; padding: 12px 18px 16px; border-top: 1px solid var(--line-2); }
.ue-input input { flex: 1; min-width: 0; }
.ue-guide { flex: 1 1 280px; max-width: 360px; gap: 10px; padding: 20px; }
.ue-guide h2 { font-size: 17px; }
.ue-checklist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.ue-checklist li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 8px; font-size: 13.5px; line-height: 1.35; }
.ue-checklist li.is-asked { color: var(--muted); }
.ue-fb-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.ue-fb { padding: 14px 16px; border-radius: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.ue-fb ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
.ue-fb-good { background: var(--ok-bg); } .ue-fb-good > strong { color: var(--ok); }
.ue-fb-better { background: var(--warn-bg); } .ue-fb-better > strong { color: var(--warn); }
.ue-disclaimer { margin: 0; display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: var(--line-2); font-size: 13.5px; }
.ue-disclaimer > svg { flex: none; }
.ue-good-q { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--ground); font-size: 14px; }
.ue-added { margin: 0; display: inline-flex; align-items: center; gap: 6px; color: var(--ok); font-weight: 600; }
@media (max-width: 900px) {
  .gf-guide, .gf-partner, .ue-guide { max-width: none; }
  .gf-work { order: -1; }   /* Handy: aktuelle Frage und Stichworte zuerst, Leitfaden darunter */
  .gf-question { font-size: 20px; }
  .gf-bar .btn, .gf-q, .gf-back, .talk-answers summary { min-height: 44px; }
  .ue-msg { max-width: 92%; }
}

.phase-board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 8px; scroll-snap-type: x mandatory; }
.pb-col { display: flex; flex-direction: column; gap: 10px; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.55); border: 1px solid rgba(21,23,28,.06); scroll-snap-align: start; min-height: 320px; }
.pb-head { display: flex; flex-direction: column; gap: 6px; padding: 2px 4px 4px; }
.pb-bar { height: 4px; border-radius: 999px; background: #9BA1AC; }
.pb-konzept { background: #6A48C2; } .pb-entwicklung { background: #2B59C3; } .pb-launch { background: #E8922B; } .pb-betrieb { background: #2BB58F; }
.pb-title { display: flex; align-items: baseline; justify-content: space-between; }
.pb-count { font-size: 13px; font-weight: 700; color: var(--muted); }
.pb-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; background: #fff; border: 1px solid rgba(21,23,28,.08); box-shadow: 0 1px 2px rgba(16,24,40,.05); text-decoration: none; color: inherit; }
.pb-card:hover { border-color: #B9BEC7; }
.pb-card.is-late { border-color: #F2B8B5; }
.pb-card-head { display: flex; align-items: center; gap: 10px; }
.pb-card-head strong { font-size: 15px; }
.pb-progress { display: flex; flex-direction: column; gap: 5px; }
.pb-progress-text { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.pb-progress .progress { height: 6px; }
.pb-progress .progress span { background: var(--c, #6A48C2); }
.pb-next { font-size: 13.5px; line-height: 1.35; }
.pb-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.pb-empty { margin: 0; padding: 16px 12px; border: 1.5px dashed #D5D8DE; border-radius: 10px; font-size: 13px; color: var(--muted); text-align: center; }
.ns-meta { font-size: 12.5px; color: var(--muted); }

.lf-phases { flex-wrap: wrap; }
.lf-list { list-style: none; margin: 8px 0 0; padding: 0; }
.lf-row { display: grid; grid-template-columns: auto 44px minmax(0, 1fr) minmax(140px, 220px) auto; gap: 10px; align-items: center; min-height: 58px; padding: 6px 0; border-top: 1px solid var(--line-2); }
.lf-row.is-off .lf-main, .lf-row.is-off .lf-done { opacity: .5; }
.lf-move { display: inline-flex; gap: 2px; }
.lf-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lf-title { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.lf-title .dot { width: 8px; height: 8px; border-radius: 50%; }
.lf-done { font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; }
.lf-new { padding: 14px 16px; border: 1.5px solid var(--ink); border-radius: 12px; margin-top: 10px; }
.lf-strands { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.lf-strands li { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; align-items: baseline; }
.lf-strands .dot { width: 10px; height: 10px; border-radius: 50%; }
.lf-effects { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 760px) {
  .guide-list { max-width: none; }
  .lf-row { grid-template-columns: auto 44px minmax(0, 1fr); }
  .lf-done { grid-column: 3; }
  .lf-row > :last-child { grid-column: 3; justify-self: start; }
  .phase-board { grid-template-columns: repeat(5, minmax(240px, 82vw)); }
}
.guide-due { align-items: flex-end; }
.guide-due .field { flex: 1 1 150px; margin: 0; }
.guide-due .field input { flex: none; max-width: none; }
.portfolio-phase .portfolio-side { max-width: none; flex: 1 1 100%; display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); align-items: start; }
.review-head > a, .review-open a { display: inline-flex; align-items: center; min-height: 44px; }

/* =====================================================================
   3.4 Bauen in Waves (wv-*), Migrationsregister (mg-*), Konzept-Chat (kz-*)
   ===================================================================== */
.wv-lead { margin: 0 0 14px; color: var(--ink-2); max-width: 90ch; }
.wv-h { font-size: 16px; margin: 0; }
.wv-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.wv-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.wv-aside { display: flex; flex-direction: column; gap: 12px; }
.wv-box { display: flex; flex-direction: column; gap: 8px; padding: 14px 16px; border-radius: 12px; background: #F4F5F7; font-size: 14px; }
.wv-box ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 3px; }
.wv-box-bp { background: #F1EDFC; color: #3B2A73; }
.wv-facts { margin: 0; display: grid; gap: 4px; }
.wv-facts > div { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 8px; }
.wv-facts dt { color: var(--muted); font-weight: 600; font-size: 13px; }
.wv-facts dd { margin: 0; overflow-wrap: anywhere; }
.wv-empty { max-width: 760px; }
.wv-empty h3 { margin: 0; font-size: 18px; }
.wv-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.wv-row { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.wv-row.is-now { border: 1.5px solid var(--ink); }
.wv-badge { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: var(--line-2); color: var(--ink-2); }
.wv-row.is-now .wv-badge { background: var(--ink); color: #fff; }
.wv-row.is-abgenommen .wv-badge { background: var(--ok-bg); color: var(--ok); }
.wv-row-main { min-width: 0; }
.wv-row-main h3 { margin: 0; font-size: 16px; }
.wv-row-main h3 a { color: inherit; text-decoration: none; }
.wv-row-main h3 a:hover { text-decoration: underline; }
.wv-row-main p { margin: 2px 0 6px; font-size: 14px; color: var(--ink-2); }
.wv-now { display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 700; vertical-align: 2px; }
.wv-row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; text-align: right; }
.wv-chips, .wv-cycle { display: flex; flex-wrap: wrap; gap: 6px; }
.wv-chips span { font-size: 12px; padding: 2px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }
.wv-cycle { margin-top: 6px; }
.wv-cycle span { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 6px; background: #F4F5F7; color: var(--muted); }
.wv-prop { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.wv-prop .check > span { display: flex; flex-direction: column; gap: 2px; }
.wv-add { max-width: 640px; }
.wv-strip { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.wv-chip { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: inherit; text-decoration: none; font-size: 12.5px; min-height: 44px; height: 100%; }
.wv-chip strong { font-size: 13.5px; line-height: 1.25; }
.wv-chip > span:last-child { color: var(--muted); }
.wv-chip.is-now { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.wv-chip.is-abgenommen { background: var(--ok-bg); border-color: var(--ok-bg); }
.wv-chip:hover { border-color: #B9BEC7; }
.wv-n { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.wv-step { display: flex; flex-direction: column; gap: 10px; }
.wv-wave { display: flex; flex-direction: column; gap: 14px; }
.wv-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wv-check { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; min-height: 48px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.wv-check.is-done { background: #FAFBFA; }
.wv-check input[type="checkbox"] { width: 20px; height: 20px; margin: 0; accent-color: #1F8A5B; }
.wv-check-text { display: flex; flex-direction: column; gap: 2px; font-size: 14.5px; cursor: default; }
label.wv-check-text { cursor: pointer; }
.wv-check-text small { font-size: 12.5px; color: var(--muted); }
.wv-check-text small.wv-warn { color: var(--err); }
.wv-check-side { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: flex-end; }
.wv-mark { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); font-size: 12px; font-weight: 800; }
.wv-mark.is-ok { background: var(--ok-bg); border-color: var(--ok-bg); color: var(--ok); }
.wv-mark.is-err { background: var(--err-bg); border-color: var(--err-bg); color: var(--err); }
.wv-src { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 999px; white-space: nowrap; background: var(--info-bg); color: var(--info); }
.wv-src.is-hand { background: var(--line-2); color: var(--ink-2); }
.wv-build { padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.wv-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 14px; }
.wv-safe { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.wv-safe > svg { flex: none; margin-top: 2px; }
.wv-banner { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.wv-banner.is-ok { background: var(--ok-bg); color: var(--ok); }
.wv-banner strong { color: var(--ink); }
.wv-banner > span { flex: 1 1 320px; }
.wv-vars { min-width: 760px; }
.wv-vars td { vertical-align: top; }
.wv-vars code { font-family: var(--mono); font-weight: 700; font-size: 13px; }
.wv-vars tr.is-open { background: #FAFAFB; }
.wv-purpose { display: block; }
.wv-how { margin: 8px 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; color: var(--ink-2); font-size: 14px; }
.wv-tag { font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--info-bg); color: var(--info); white-space: nowrap; }
.wv-tag.is-secret { background: var(--err-bg); color: var(--err); }
.wv-tick { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; justify-content: center; cursor: pointer; }
.wv-tick input { width: 20px; height: 20px; margin: 0; accent-color: #1F8A5B; }
.wv-secret { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.wv-secret input { flex: 1 1 260px; font-family: var(--mono); font-size: 13px; }
.wv-var-add { align-items: flex-end; }
.wv-code { font-family: var(--mono); font-size: 13px; line-height: 1.55; background: #15171C; color: #E7E9EE; border-radius: 12px; padding: 14px 16px; border: 0; width: 100%; resize: vertical; }
.wv-brief { display: flex; flex-direction: column; gap: 10px; }
.wv-brief-empty { max-width: 760px; }
.wv-questions { padding: 12px 14px; border-radius: 10px; background: #F1EDFC; color: #3B2A73; font-size: 14px; }
.wv-questions ul { margin: 6px 0; padding-left: 18px; }
.wv-fb { display: flex; flex-direction: column; gap: 10px; }
.wv-fb-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.wv-fb-head p { margin: 0; flex: 1 1 320px; }
.wv-commits { list-style: none; margin: 0; padding: 0; }
.wv-commits li { display: grid; grid-template-columns: 76px minmax(0, 1fr) auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line-2); font-size: 14px; }
.wv-commits code, .wv-files code { font-family: var(--mono); font-size: 12.5px; }
.wv-files { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.wv-finish { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border-radius: 12px; border: 1px dashed #B9BEC7; }
.wv-finish.is-done { border-style: solid; border-color: var(--ok-bg); background: var(--ok-bg); }
.wv-finish p { margin: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.wv-ok { color: var(--ok); font-weight: 700; }
.wv-tech .facts-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 8px 0; }
.wv-tech .fact { display: flex; flex-direction: column; gap: 2px; }
.wv-tech .fact strong { font-size: 22px; }
.mg-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mg-row { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.mg-row.is-done { background: #FAFBFA; }
.mg-file { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mg-file code { font-family: var(--mono); font-weight: 700; font-size: 13.5px; overflow-wrap: anywhere; }
.mg-env { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14px; }
.mg-env-l { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); min-width: 34px; }
.mg-q { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 8px; }
.kz-wrap .ue-input textarea { flex: 1; min-width: 0; resize: vertical; }
.kz-aside { flex: 1 1 280px; max-width: 380px; display: flex; flex-direction: column; gap: 10px; }
.kz-take { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.kz-take.is-new { border-color: #6A48C2; }
.kz-take strong { font-size: 12px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.kz-take p { margin: 0; }
.kz-ki { background: #F1EDFC; }
@media (max-width: 900px) {
  .wv-cols { grid-template-columns: 1fr; }
  .wv-row { grid-template-columns: 40px minmax(0, 1fr); }
  .wv-row-side { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; text-align: left; }
  .wv-badge { width: 38px; height: 38px; }
  .wv-check { grid-template-columns: 24px minmax(0, 1fr); }
  .wv-check-side { grid-column: 2; justify-content: flex-start; }
  .wv-vars { min-width: 0; }
  .wv-vars thead { display: none; }
  .wv-vars tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 8px; padding: 10px 0; border-top: 1px solid var(--line-2); }
  .wv-vars td { border: 0; padding: 2px 0; }
  .wv-vars td:first-child { grid-column: 1 / -1; }
  .wv-vars td[data-l]:not([data-l=""])::before { content: attr(data-l) " "; color: var(--muted); font-size: 12px; font-weight: 600; margin-right: 4px; }
  .wv-commits li { grid-template-columns: 70px minmax(0, 1fr); }
  .wv-commits li > span:last-child { grid-column: 2; }
  .mg-row { grid-template-columns: 1fr; }
  .kz-aside { max-width: none; }
}
.st-steps a.st-step { text-decoration: none; color: inherit; }
.st-steps a.st-step.is-on { color: #fff; }
.wv-row-state { display: inline-flex; gap: 6px; align-items: center; }
.wv-inline { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: flex-end; }
.wv-inline .field { flex: 1 1 200px; margin: 0; }
.wv-inline .check { min-height: 44px; }
.wv-nowrap { white-space: nowrap; }
.wv-finish > .btn { align-self: flex-start; }
.gd-draft-chip { display: inline-flex; align-items: center; gap: 5px; margin-left: 6px; padding: 2px 9px; border-radius: 999px; background: #F1EDFC; color: #3B2A73; font-size: 12px; font-weight: 700; vertical-align: 1px; }
.gd-field.is-draft textarea { border-color: #6A48C2; background: #FCFBFF; }
/* 3.4 Neues Projekt als Fenster */
.win.win-small { width: min(680px, 100%); }
.np-form { gap: 14px; }
.np-form > p { margin: 0; }
.np-start { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.np-start legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.np-seg { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.np-seg label { position: relative; }
.np-seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.np-seg span { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 48px; padding: 6px 8px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; font-size: 14px; font-weight: 600; line-height: 1.2; }
.np-seg input:checked + span { border-color: var(--ink); background: var(--ink); color: #fff; }
.np-seg input:focus-visible + span { outline: 3px solid var(--focus, #2B59C3); outline-offset: 2px; }
.np-more { border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.np-more > summary { cursor: pointer; padding: 12px 14px; font-weight: 600; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; min-height: 44px; }
.np-more-body { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 12px; }
.np-status:empty { display: none; }
.np-status { margin: 0; padding: 10px 12px; border-radius: 10px; background: #F1EDFC; color: #3B2A73; font-size: 14px; }
.np-foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; padding-top: 4px; }
.np-foot > span { flex: 1 1 100%; text-align: right; }
@media (max-width: 640px) {
  .np-seg { grid-template-columns: 1fr 1fr; }
  .np-foot > .btn { flex: 1 1 100%; }
}
/* 3.4 Werkzeuge als Fenster im Projekt: Aufgaben, Zeitplan, Launch-Checkliste */
.win.win-xwide { width: min(1400px, 100%); }
.pa-bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }
.pa-bar .field { margin: 0; }
.pa-bar .field-inline select { min-height: 40px; padding: 6px 10px; font-size: 15px; }
.pa-only { min-height: 40px; font-size: 14px; font-weight: 600; }
.pa-grow { flex: 1; }
.pa-ask { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; padding: 12px 14px; border-radius: 12px; background: var(--ok-bg); color: var(--ok); border: 1px solid #BFE0CC; }
.pa-ask-icon { display: inline-flex; }
.pa-ask-text { flex: 1 1 320px; font-size: 14.5px; }
.pa-ask-actions { display: flex; gap: 6px; }
.pa-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.pa-split.has-panel { grid-template-columns: minmax(0, 1fr) 360px; grid-template-areas: "main panel"; }
.pa-split.has-panel > .pa-main { grid-area: main; }
.pa-split.has-panel > .pa-panel { grid-area: panel; }
.pa-main { min-width: 0; }
.pa-kanban { display: grid; grid-template-columns: repeat(4, minmax(200px, 1fr)); gap: 12px; align-items: start; overflow-x: auto; padding-bottom: 4px; }
.pa-col { background: #E9EBEF; border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; min-height: 120px; }
.pa-col.is-drop { outline: 2px dashed var(--link); outline-offset: -4px; background: var(--info-bg); }
.pa-col h3 { margin: 0 0 2px; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pa-count { font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: #fff; color: var(--muted); }
.pa-empty { margin: 0; font-size: 13px; color: var(--muted); }
.pa-card { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--line); cursor: pointer; }
.pa-card:hover { border-color: #B9BEC7; }
.pa-card.is-on { border: 1.5px solid var(--ink); box-shadow: 0 4px 14px rgba(0, 0, 0, .08); }
.pa-card.is-done { opacity: .72; }
.pa-card.is-dragging { opacity: .4; }
.pa-card-title { border: 0; background: none; padding: 0; min-height: 24px; font: inherit; font-size: 14.5px; font-weight: 600; line-height: 1.3; text-align: left; color: var(--ink); cursor: pointer; }
.pa-card.is-done .pa-card-title { text-decoration: line-through; text-decoration-color: #9BA1AC; }
.pa-meta { display: flex; flex-wrap: wrap; gap: 5px; align-items: center; font-size: 12px; color: var(--muted); }
.pa-chip { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--line-2); color: var(--ink-2); }
.pa-chip.is-wave { background: #E8EEFB; color: #1E3F8C; }
.pa-chip.is-check { background: var(--ok-bg); color: var(--ok); }
.pa-chip.is-block { background: var(--err-bg); color: var(--err); }
.pa-chip.is-late { background: var(--warn-bg); color: var(--warn); }
.pa-soon { color: var(--warn); font-weight: 600; }
.pa-av { width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--ink); color: #fff; font-size: 10.5px; font-weight: 800; margin-left: auto; }
.pa-add { border: 1.5px dashed #C9CDD4; background: transparent; border-radius: 10px; min-height: 40px; padding: 6px; font: inherit; font-size: 13.5px; font-weight: 600; color: var(--ink-2); cursor: pointer; }
.pa-add:hover { background: #fff; }
.pa-lanes { display: flex; flex-direction: column; gap: 12px; }
.pa-lane { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 12px; padding: 12px; border-radius: 14px; background: #E9EBEF; }
.pa-lane-head { display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.pa-lane-head strong { font-size: 14.5px; }
.pa-lane-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; align-content: start; }
.pa-panel { position: sticky; top: 76px; display: flex; flex-direction: column; padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: #fff; box-shadow: 0 10px 30px rgba(0, 0, 0, .08); }
.pa-panel .form { gap: 12px; }
.pa-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -4px -6px 0 0; }
.pa-panel-head h3 { margin: 0; font-size: 17px; }
.pa-panel-head h3:focus { outline: none; }
.pa-grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.pa-panel textarea, .pa-panel select, .pa-panel input:not([type="checkbox"]), #pa-quick select, #pa-quick input:not([type="checkbox"]) { width: 100%; min-width: 0; }
.pa-panel .form-actions-split { margin-top: 2px; }
.pa-foot { margin-top: 4px; }
.zp-timeline { min-width: 0; }
.zp-hint { margin: 0; display: flex; gap: 8px; align-items: flex-start; padding: 10px 14px; border-radius: 12px; background: var(--warn-bg); color: var(--warn); font-size: 14px; }
.zp-hint svg { flex: none; margin-top: 1px; }
.rm-page.is-embedded { height: min(66vh, 680px); min-height: 440px; padding: 0; }
.rm-page.is-embedded .rm-fold { visibility: hidden; }
.rm-page.is-embedded .rm-pname { pointer-events: none; color: inherit; text-decoration: none; }
.rm-page.is-embedded .rm-head { flex-wrap: wrap; }
@media (max-width: 1100px) {
  .pa-split.has-panel { grid-template-columns: minmax(0, 1fr); grid-template-areas: "panel" "main"; }
  .pa-panel { position: static; }
}
@media (max-width: 760px) {
  .pa-kanban { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .pa-col { min-height: 0; }
  .pa-lane { grid-template-columns: minmax(0, 1fr); }
  .pa-lane-cards { grid-template-columns: minmax(0, 1fr); }
  .pa-grid2 { grid-template-columns: minmax(0, 1fr); }
  .pa-bar .field-inline { flex: 1 1 100%; }
  .pa-bar .btn { flex: 1 1 auto; }
  .pa-ask-actions { flex: 1 1 100%; }
  .pa-ask-actions .btn { flex: 1; }
  .rm-page.is-embedded { height: calc(100dvh - 210px); min-height: 380px; }
  .pr-tools .tab-count { min-width: 0; }
}

/* =====================================================================
   3.5 · Glasdesign (Runde 15)
   Statt einer fast deckenden Scheibe liegen die Inhalte als einzelne Glaskarten direkt auf dem Grund.
   Drei Ebenen: Grund (Nachthimmel, Farbfelder der Projekte, Punktraster) · dunkles Glas (Navigation,
   Kennzahlen der Organisation, Handy-Leisten; weiße Schrift) · helles Glas (alle Inhalte; dunkle Schrift).
   Seitentitel, Reiter und Filter stehen hell auf dem Grund. Ohne Transparenz (Systemeinstellung)
   fällt alles auf deckende Flächen zurück.
   ===================================================================== */
:root {
  --glass: linear-gradient(180deg, rgba(255,255,255,.86) 0%, rgba(255,255,255,.74) 100%);
  --glass-edge: rgba(255,255,255,.72);
  --glass-blur: blur(30px) saturate(185%);
  --glass-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 30px 60px -28px rgba(3,5,18,.65), 0 2px 6px rgba(3,5,18,.10);
  --glass-light: rgba(255,255,255,.10);
  --glass-light-edge: rgba(255,255,255,.22);
  --glass-dark: linear-gradient(180deg, rgba(24,27,40,.62), rgba(14,16,26,.72));
  --on-ground: #fff;
  --on-ground-2: rgba(255,255,255,.80);
  --on-ground-3: rgba(255,255,255,.70);
}

/* Grund */
body.in-app { background-color: #090B12; background-image: radial-gradient(rgba(255,255,255,.07) 1.1px, transparent 1.25px), radial-gradient(120% 80% at 50% 0%, #141833 0%, #0A0C14 60%); background-size: 26px 26px, 100% 100%; background-attachment: fixed; }
.app-shape { opacity: .72; filter: blur(64px); }

/* Navigation: schwebendes dunkles Glas */
.sidebar { background: var(--glass-dark); border: 1px solid rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 30px 60px -28px rgba(3,5,18,.65); }
.nav-link { border-radius: 12px; }
.nav-link:hover { background: rgba(255,255,255,.08); }
.nav-link.active { background: linear-gradient(180deg, rgba(255,255,255,.20), rgba(255,255,255,.12)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 6px 16px rgba(0,0,0,.25); }
/* Projektpunkte: klare, flache Farbe – kein Glas, kein Leuchten */
.dot { box-shadow: none; filter: none; opacity: 1; }
.org-switch { border-radius: 16px; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); }
.nav-search { border-radius: 14px; min-height: 44px; }
.user-box { border-top: 0; padding: 10px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.10); }
@media (min-width: 861px) {
  .sidebar { top: 14px; height: calc(100vh - 28px); height: calc(100dvh - 28px); margin: 14px 0 14px 14px; border-radius: 26px; }
  .content { margin: 14px 14px 14px 18px; }
}

/* Keine Scheibe mehr: der Inhalt liegt auf dem Grund */
.content::before { display: none; }

/* Knöpfe und Felder: rund, auf Glas leicht */
.btn { border-radius: 999px; }
.btn-secondary { background: rgba(255,255,255,.78); border-color: rgba(21,23,28,.14); }
.btn-secondary:hover:not(:disabled) { background: #fff; }
.icon-btn { border-radius: 12px; }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="url"], input[type="date"], input[type="number"], input[type="datetime-local"], select, textarea { border-radius: 12px; border-color: rgba(21,23,28,.18); background-color: rgba(255,255,255,.86); }

/* Helles Glas: alle Inhaltsflächen */
.panel, .project-card, .stat, .placeholder, .vital-card, .lx-section, .rm-card, .bp-doc, .pb-card, .svc {
  background: var(--glass); border: 1px solid var(--glass-edge); border-radius: 24px;
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow);
}
.panel .panel, .panel .stat, .panel .project-card, .panel .svc, .win .panel, .win .stat { background: rgba(255,255,255,.62); border-color: rgba(255,255,255,.8); box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 18px; }
.panel-dark { background: var(--glass-dark); border-color: rgba(255,255,255,.14); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 30px 60px -28px rgba(3,5,18,.65); }
.notice { border-radius: 16px; background: rgba(255,255,255,.86); border-color: rgba(255,255,255,.8); }
.project-card-new { background: var(--glass-light); border: 2px dashed rgba(255,255,255,.45); color: var(--on-ground); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); }
.project-card-new:hover { border-color: #fff; color: #fff; }
.project-card-new .new-icon { background: rgba(255,255,255,.9); color: var(--ink); }

/* Seitenkopf hell auf dem Grund */
.page { gap: 22px; }
.page-head h1 { font-size: 46px; line-height: 1.04; font-weight: 600; letter-spacing: -.03em; color: var(--on-ground); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.page-head .eyebrow { color: var(--on-ground-3); }
.page-head .lead, .page-head p:not(.eyebrow), .page-head .muted { color: var(--on-ground-2); }
.page-head a:not(.btn) { color: #C8D6FF; }
.page-head .btn-primary { background: #fff; color: var(--ink); box-shadow: 0 10px 26px rgba(0,0,0,.30); }
.page-head .btn-primary:hover:not(:disabled) { background: #EEF0F5; }
.page-head .btn-secondary, .on-ground .btn-secondary { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.28); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.page-head .btn-secondary:hover:not(:disabled), .on-ground .btn-secondary:hover:not(:disabled) { background: rgba(255,255,255,.2); }
.page-head .kbd { background: rgba(255,255,255,.16); color: #fff; }
.page > h2, .page > .section-title { color: var(--on-ground); }
.page > p.muted, .page > .muted { color: var(--on-ground-2); }

/* Reiter des Bereichs: leichtes Glas, aktiver Reiter weiß */
.content-top { padding-top: 18px; }
.section-nav { align-self: flex-start; max-width: 100%; gap: 4px; padding: 5px; border: 1px solid var(--glass-light-edge); border-radius: 999px; background: var(--glass-light); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.section-name { color: var(--on-ground-3); border-right-color: rgba(255,255,255,.2); padding-left: 12px; }
.section-tab { min-height: 42px; padding: 0 16px; border: 0; border-radius: 999px; color: rgba(255,255,255,.88); font-weight: 600; }
.section-tab:hover { color: #fff; background: rgba(255,255,255,.1); }
.section-tab.on { background: #fff; color: var(--ink); box-shadow: 0 8px 22px rgba(0,0,0,.28); border-bottom-color: transparent; }
.section-nav-sub { background: transparent; border-color: transparent; box-shadow: none; padding: 0; }
.section-nav-sub .section-tab { min-height: 38px; border: 1px solid rgba(255,255,255,.24); background: var(--glass-light); }
.section-nav-sub .section-tab.on { background: #fff; color: var(--ink); border-color: #fff; }
body.nav-rail .section-tab { min-height: 38px; }

/* Filter auf dem Grund (Projekt-Chips, Status) */
.filter-row .pill, .on-ground .pill { background: var(--glass-light); border-color: rgba(255,255,255,.26); color: #fff; font-weight: 600; -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px); }
.filter-row .pill.on, .on-ground .pill.on { background: #fff; color: var(--ink); border-color: #fff; }
.on-ground, .on-ground label, .on-ground .field label { color: var(--on-ground); }
.on-ground .muted { color: var(--on-ground-2); }

/* Ohne Transparenz: deckende Flächen wie bisher */
@media (prefers-reduced-transparency: reduce) {
  .app-shape { filter: none; }
  .panel, .project-card, .stat, .placeholder, .vital-card, .lx-section, .rm-card, .bp-doc, .pb-card, .svc, .notice { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .panel-dark, .sidebar { background: #15171C; }
  .section-nav, .filter-row .pill, .on-ground .pill, .project-card-new { background: #1E2129; -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (max-width: 860px) {
  .content { background: transparent; }
  .page-head h1 { font-size: 34px; }
}

/* Auf dem Grund: Überschriften, Rückwege, Kopf der Projektseite, Reiter der Verwaltung */
.page > .lead, .page > p.lead { color: var(--on-ground-2); }
.page > .lead a, .page > p a { color: #C8D6FF; }
.kx-section > h2, .page > .section-title, .page > section > .section-title { color: var(--on-ground); }
.rm-title { color: var(--on-ground); }
.back-link { color: #C8D6FF; }
.incident-hero h1, .project-hero h1 { color: var(--on-ground); text-shadow: 0 2px 24px rgba(0,0,0,.35); }
.incident-hero .muted, .project-hero .muted, .project-title .muted { color: var(--on-ground-2); }
.incident-hero a { color: #C8D6FF; }
.incident-hero code { background: rgba(255,255,255,.14); color: #fff; }
.project-hero h1 { font-size: 46px; letter-spacing: -.03em; font-weight: 600; }
.project-hero .project-logo { width: 72px; height: 72px; border-radius: 20px; font-size: 24px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 12px 28px -10px rgba(0,0,0,.6); }
.page > .tabs, .page-head + .tabs, .on-ground .tabs { align-self: flex-start; gap: 4px; padding: 5px; border: 1px solid var(--glass-light-edge); border-radius: 999px; background: var(--glass-light); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); }
.page > .tabs .tab, .page-head + .tabs .tab, .on-ground .tabs .tab { min-height: 40px; border: 0; border-radius: 999px; color: rgba(255,255,255,.88); font-weight: 600; }
.page > .tabs .tab:hover, .page-head + .tabs .tab:hover { color: #fff; background: rgba(255,255,255,.1); }
.page > .tabs .tab.on, .page-head + .tabs .tab.on, .on-ground .tabs .tab.on { background: #fff; color: var(--ink); }
.ob-foot { color: var(--on-ground-3); }

/* Werkzeugleiste der Projektseite: leichtes Glas auf dem Grund */
.pr-tools { align-self: flex-start; gap: 2px; padding: 6px; border: 1px solid var(--glass-light-edge); border-radius: 26px; background: var(--glass-light); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.pr-tools > .btn, .pr-tools-row > .btn, .pr-tools .pr-areas > summary { min-height: 42px; padding: 0 12px; font-size: 14.5px; background: transparent; border-color: transparent; color: #fff; }
.pr-tools > .btn:hover:not(:disabled), .pr-tools-row > .btn:hover:not(:disabled), .pr-tools .pr-areas > summary:hover { background: rgba(255,255,255,.14); }
.pr-tools .tab-count { background: rgba(255,255,255,.2); color: #fff; }
.pr-tools .pr-areas[open] > summary { background: #fff; color: var(--ink); }

/* Werkzeugleisten über Listen (Aufgaben, Entscheidungen, Portfolio): Beschriftungen hell */
.toolbar > .field-inline label, .toolbar-end .field-inline label, .page > .toolbar label { color: var(--on-ground); }
.page > .toolbar .muted { color: var(--on-ground-2); }

/* Kanban: Spalten als leichtes Glas, Karten als helles Glas */
.page > .board .column, .page .board > .column { background: var(--glass-light); border: 1px solid var(--glass-light-edge); border-radius: 24px; -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.page .board > .column .column-head h2 { color: var(--on-ground); }
.page .board > .column .column-head .count { background: rgba(255,255,255,.92); color: var(--ink); }
.page .board > .column .column-empty { color: var(--on-ground-2); }
.page .board > .column .task { border-radius: 18px; border-color: rgba(255,255,255,.85); box-shadow: 0 10px 24px -14px rgba(3,5,18,.6); }
.page .board > .column .add-task, .page .board > .column .column-add { color: #fff; border-color: rgba(255,255,255,.4); }
.page .board > .column.drop { background: rgba(200,214,255,.22); outline-color: #C8D6FF; }
.lanes-head { color: var(--on-ground); }
.page .board > .column .add-btn { color: #fff; border: 1.5px dashed rgba(255,255,255,.45); border-radius: 16px; }
.page .board > .column .add-btn:hover { background: rgba(255,255,255,.12); border-color: #fff; }
.page .board > .column > .column-body > .muted { color: var(--on-ground-2); }
.filter-row .pill-count, .on-ground .pill-count { background: rgba(255,255,255,.18); }
.filter-row .pill.on .pill-count, .on-ground .pill.on .pill-count { background: var(--ink); color: #fff; }
.filter-row .pill-project { background: var(--glass-light); border: 1px solid rgba(255,255,255,.26); color: #fff; }

.filter-row .pill-project:hover { background: rgba(255,255,255,.18); }
.filter-row .pill-project.on { background: #fff; border-color: #fff; color: var(--ink); }
.filter-row .pill-project.on .dot { background: var(--c); }

/* Portfolio: Kennzahlen in einer Reihe, Phasen-Spalten als leichtes Glas */
@media (min-width: 1180px) {
  .page-wide > .stats { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
  .page-wide > .stats > .stat { padding: 16px 18px; }
  .page-wide > .stats .stat-label { font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.stat { padding: 18px 22px; border-radius: 22px; }
.stat-value { font-weight: 600; letter-spacing: -.02em; }
.page .segctl, .toolbar .segctl { background: rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.16); border-radius: 999px; padding: 4px; }
.page .segctl button, .toolbar .segctl button { border-radius: 999px; color: rgba(255,255,255,.88); }
.page .segctl button.on, .toolbar .segctl button.on { background: #fff; color: var(--ink); }
.panel .segctl, .win .segctl { background: rgba(21,23,28,.06); border-color: transparent; }
.panel .segctl button, .win .segctl button { color: var(--ink-3); }
.pb-col { background: var(--glass-light); border: 1px solid var(--glass-light-edge); border-radius: 22px; -webkit-backdrop-filter: blur(24px) saturate(160%); backdrop-filter: blur(24px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.22); }
.pb-head strong { color: var(--on-ground); }
.pb-head .muted, .pb-count { color: var(--on-ground-2); }
.pb-empty { border-color: rgba(255,255,255,.32); color: var(--on-ground-2); }
.page-wide > .muted, .portfolio-phase + .muted, .phase-board + .muted { color: var(--on-ground-3); }
.page > .toolbar .field-inline label { color: var(--on-ground); }

/* Heute */
.fy-icon { width: 42px; height: 42px; border-radius: 13px; }
.fy-item { grid-template-columns: 42px minmax(0, 1fr) auto; padding: 14px 0; }
.fy-text strong { font-size: 16px; }
@media (max-width: 860px) { .fy-item { grid-template-columns: 42px minmax(0, 1fr); } }
/* Teccenter */
.tc-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat-value small { font-size: 16px; font-weight: 500; color: var(--muted); }
@media (max-width: 860px) { .tc-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vital-card { padding: 20px 22px; gap: 12px; }
.vital-ok { box-shadow: inset 5px 0 0 #1F9A6A, var(--glass-shadow); }
.vital-warn { box-shadow: inset 5px 0 0 #C27A2C, var(--glass-shadow); }
.vital-error { box-shadow: inset 5px 0 0 #C9302C, var(--glass-shadow); }
.privacy-alert { border-radius: 22px; }
/* Launch: Projektkacheln als leichtes Glas, Kopf als starkes Glas */
.page > .lx-tiles .lx-tile, .lx-tiles .lx-tile { background: var(--glass-light); border: 1px solid rgba(255,255,255,.24); color: #fff; -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%); border-radius: 20px; }
.lx-tiles .lx-tile:hover { background: rgba(255,255,255,.18); }
.lx-tiles .lx-tile .ring-track { stroke: rgba(255,255,255,.25); }
.lx-tiles .lx-tile .ring-fill { stroke: color-mix(in srgb, var(--c) 70%, #fff); }
.lx-tiles .lx-tile.on { background: linear-gradient(180deg, rgba(255,255,255,.94), rgba(255,255,255,.84)); color: var(--ink); border-color: #fff; box-shadow: 0 12px 30px -12px var(--c), inset 0 0 0 2px var(--c); }
.lx-tiles .lx-tile.on .ring-track { stroke: rgba(21,23,28,.12); }
.lx-tiles .lx-tile.on .ring-fill { stroke: var(--c); }
.lx-hero { border-radius: 26px; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 8%, rgba(255,255,255,.92)), rgba(255,255,255,.80)); border: 1px solid rgba(255,255,255,.85); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-shadow); }
.win .lx-hero { box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.lx-hero-main h2 { font-weight: 600; letter-spacing: -.03em; }
/* Portfolio-Karten: Projektfarbe als Lichtkante */
.pcard-stripe { height: 4px; background: linear-gradient(90deg, transparent, var(--c), transparent); box-shadow: 0 0 28px 6px color-mix(in srgb, var(--c) 45%, transparent); }
.pcard:hover { border-color: #fff; box-shadow: var(--glass-shadow); transform: translateY(-2px); }
.pcard { transition: transform .15s; }
.pcard-now { border-radius: 16px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.85); }
.project-logo { box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 8px 20px -8px rgba(0,0,0,.45); }
.facts { border-top-color: rgba(21,23,28,.09); }
.facts dd { font-size: 17px; }

/* Projektseite: „Jetzt dran“ als starkes Glas mit Lichtkante in Projektfarbe */
.pr-now.panel { border: 1px solid rgba(255,255,255,.95); background: linear-gradient(180deg, rgba(255,255,255,.93), rgba(255,255,255,.84)); }
.pr-now .pr-now-title, .pr-now-title { font-size: 36px; font-weight: 600; letter-spacing: -.03em; line-height: 1.05; }
.pr-side .panel, .pr-side .stat { border-radius: 22px; }

/* Fenster über der Roadmap: Grund wird weich gezeichnet, das Fenster ist starkes Glas */
.win-overlay { background: rgba(6,8,16,.40); -webkit-backdrop-filter: blur(8px) saturate(120%); backdrop-filter: blur(8px) saturate(120%); }
.win { border-radius: 30px; background: linear-gradient(180deg, rgba(246,247,250,.92), rgba(240,241,245,.88)); border: 1px solid rgba(255,255,255,.8); -webkit-backdrop-filter: blur(34px) saturate(180%); backdrop-filter: blur(34px) saturate(180%); box-shadow: inset 0 1px 0 rgba(255,255,255,.95), 0 50px 110px -30px rgba(0,0,0,.65); }
.win-head { border-radius: 30px 30px 0 0; background: rgba(255,255,255,.90); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-bottom-color: rgba(21,23,28,.08); }
.win-title { font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.win .notice { background: #fff; }
@media (prefers-reduced-transparency: reduce) {
  .win-overlay { background: rgba(13,15,21,.6); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .win { background: #F2F3F5; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Handy: Leiste unten aus dunklem Glas, „+“ in der Mitte */
.tabbar { display: none; }
@media (max-width: 860px) {
  .tabbar { position: fixed; left: max(10px, env(safe-area-inset-left)); right: max(10px, env(safe-area-inset-right)); bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; display: flex; align-items: center; justify-content: space-around; gap: 2px; padding: 6px; border-radius: 26px; background: var(--glass-dark); border: 1px solid rgba(255,255,255,.14); -webkit-backdrop-filter: blur(26px) saturate(160%); backdrop-filter: blur(26px) saturate(160%); box-shadow: inset 0 1px 0 rgba(255,255,255,.16), 0 18px 40px rgba(0,0,0,.45); }
  .tabbar-item { position: relative; flex: 1 1 0; min-width: 0; min-height: 52px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border-radius: 18px; color: rgba(255,255,255,.74); text-decoration: none; font-size: 11.5px; font-weight: 600; }
  .tabbar-item span:not(.tabbar-count) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar-item.active { color: #fff; background: rgba(255,255,255,.14); }
  .tabbar-count { position: absolute; top: 4px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #E5484D; color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; }
  .tabbar-plus { flex: none; width: 56px; height: 56px; margin: 0 4px; border: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 10px 24px rgba(0,0,0,.4); cursor: pointer; }
  body.in-app .view { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  body.app-mode .tabbar, body.onboarding-mode .tabbar, body.nav-rail .tabbar { display: none; }
  body.nav-rail .view { padding-bottom: 0; }
}
@media (prefers-reduced-transparency: reduce) { .tabbar { background: #15171C; -webkit-backdrop-filter: none; backdrop-filter: none; } }
@media (max-width: 860px) { body.in-app:not(.app-mode):not(.nav-rail) #toasts { bottom: calc(96px + env(safe-area-inset-bottom)); } }
@media (min-width: 861px) {
  .pr-tools > .btn, .pr-tools-row > .btn, .pr-tools .pr-areas > summary { padding: 0 9px; gap: 5px; font-size: 14px; white-space: nowrap; flex: none; }
  .pr-tools .tab-count { min-width: 22px; height: 22px; padding: 0 6px; font-size: 12px; }
}
@media (min-width: 861px) { .pr-tools { gap: 0; padding: 4px; } }

/* „Für dich“ im Portfolio (Startseite) */
.fy-panel .panel-head { align-items: flex-start; flex-wrap: wrap; }
.fy-panel .panel-head .segctl { max-width: 100%; overflow-x: auto; }
.fy-panel .segctl button { flex: none; }
.fy-hint { margin: 4px 0 0; font-size: 14.5px; color: var(--ink-3); }
.fy-hint.is-urgent { color: var(--err); font-weight: 600; }

/* =====================================================================
   3.5 · Projektseite (Runde 16): ein Cockpit je Projekt
   Kopf mit Projektfarbe als Licht · Werkzeuge mit Werten · Weg: nur die aktuelle Phase aufgeklappt ·
   „Jetzt dran“ mit Fortschritt und Ergebnis · rechts je Phase eine Karte · Kacheln der Phase ·
   Leeres als schmale Zeile · unten Team und Entscheidungen.
   ===================================================================== */
.page-project { position: relative; isolation: isolate; }
.pr-bg { position: relative; display: flex; flex-direction: column; gap: 20px; }
.pr-aura { position: absolute; z-index: -1; left: 0; right: 0; top: -40px; height: 820px; pointer-events: none;
  background: radial-gradient(42% 46% at 6% 4%, color-mix(in srgb, var(--c) 78%, transparent), transparent 72%),
              radial-gradient(34% 40% at 30% 70%, color-mix(in srgb, var(--c) 46%, transparent), transparent 72%);
  filter: blur(36px); opacity: .9; }

/* Kopf */
.page-project .project-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 22px; align-items: center; margin: 0; }
.page-project .project-hero .project-logo { width: 78px !important; height: 78px !important; border-radius: 24px; font-size: 26px; box-shadow: inset 0 1px 0 rgba(255,255,255,.35), 0 14px 32px -10px var(--c); }
.page-project .project-title { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pr-eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-ground-3); }
.page-project .project-hero h1 { margin: 0; font-size: 56px; line-height: 1.02; }
.page-project .project-title .muted { max-width: 760px; font-size: 16.5px; }
.pr-hero-act { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: flex-end; align-self: start; margin-top: 6px; }
.project-hero .pr-phase-pill { min-height: 34px; gap: 8px; padding: 0 14px 0 11px; color: #fff; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.24); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.pr-phase-pill i { width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.project-hero .pr-new-task { min-height: 46px; background: #fff; color: var(--ink); border-color: #fff; box-shadow: 0 10px 26px rgba(0,0,0,.30); }
.project-hero .pr-new-task:hover:not(:disabled) { background: #EEF0F5; }
.project-hero .pr-icon-btn { width: 46px; min-height: 46px; padding: 0; color: #fff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.26); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.project-hero .pr-icon-btn:hover:not(:disabled) { background: rgba(255,255,255,.22); }

/* Werkzeuge: „Alle Bereiche“ als helle Hauptpille, Zähler am Werkzeug */
.pr-tools { margin: 0; border-radius: 999px; }
.pr-tools .pr-areas > summary { background: #fff; color: var(--ink); box-shadow: 0 8px 20px rgba(0,0,0,.25); }
.pr-tools .pr-areas > summary:hover { background: #EEF0F5; }
.pr-tools-sep { flex: none; width: 1px; height: 24px; margin: 0 6px; background: rgba(255,255,255,.22); }
.pr-tools .tab-count.is-late { background: #E5484D; color: #fff; }

/* Weg */
.pr-roadcard.panel { gap: 16px; padding: 22px 26px 24px; }
.pr-roadmeta .pr-road-toggle { color: #1F4FBF; font-weight: 600; text-decoration: none; }
.pr-roadmeta .pr-road-toggle:hover { text-decoration: underline; }
.pr-rail { display: grid; gap: 10px; align-items: start; }
.pr-seg { display: flex; flex-direction: column; min-width: 0; color: inherit; text-decoration: none; }
.pr-seg-h, .pr-seg .pr-phase.is-now { display: flex; flex-direction: column; gap: 1px; min-height: 48px; margin: 0; padding: 0 2px 10px; background: none; color: var(--ink); border-radius: 0; }
.pr-seg-h strong, .pr-seg .pr-phase strong { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 600; }
.pr-seg-h > span, .pr-seg .pr-phase.is-now > span { font-size: 12.5px; color: var(--muted); }
a.pr-seg:hover .pr-seg-h strong { text-decoration: underline; }
.pr-now-tag { padding: 2px 9px; border-radius: 999px; background: rgba(21,23,28,.08); color: var(--ink-2); font-size: 12px; font-weight: 600; }
.pr-trk { position: relative; display: block; height: 10px; border-radius: 999px; background: rgba(21,23,28,.09); }
.pr-trk > u { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 999px; background: var(--c); text-decoration: none; }
.pr-seg.is-done .pr-trk { background: color-mix(in srgb, var(--ok) 55%, #fff); }
.pr-seg.is-done .pr-seg-h strong, .pr-seg.is-done .pr-seg-n { color: var(--ok); }
.pr-seg.is-next { opacity: .8; }
.pr-seg-n { display: flex; align-items: center; gap: 4px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.pr-seg.is-now .pr-trk { margin-top: 20px; }
.pr-rail-nodes { position: relative; display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); margin-top: -25px; }
.pr-rail .pr-node { grid-row: auto; padding: 0 4px 4px; gap: 8px; }
.pr-rail .pr-node::before { display: none; }
.pr-rail .pr-dot { width: 40px; height: 40px; background: #fff; box-shadow: 0 4px 12px rgba(21,23,28,.12); }
.pr-rail .pr-node.is-done .pr-dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.pr-rail .pr-node.is-now .pr-dot { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c) 30%, transparent), 0 8px 18px rgba(21,23,28,.25); }
.pr-rail .pr-diamond { width: 40px; height: 40px; }
.pr-rail .pr-node-text { max-width: 190px; align-items: center; text-align: center; }
.pr-rail .pr-node-text strong { font-size: 14px; font-weight: 600; hyphens: manual; -webkit-hyphens: manual; }
.pr-rail .pr-node-text span { font-size: 12.5px; }
.pr-rail a.pr-node:hover { background: none; }
.pr-rail a.pr-node:hover .pr-node-text strong { text-decoration: underline; }

/* „Jetzt dran“ mit Fortschritt und Ergebnis, rechts je Phase eine Karte */
.pr-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.pr-now.panel { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; padding: 28px 30px; min-width: 0; }
.pr-now-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.pr-now .guide-eyebrow { font-family: var(--mono); font-weight: 500; font-size: 12.5px; letter-spacing: .06em; }
.pr-now .pr-now-title, .pr-now-title { font-size: 40px; }
.pr-now .pr-minis { gap: 8px; margin-top: 4px; }
.pr-now .pr-mini { grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; min-height: 54px; padding: 8px 14px; border-radius: 16px; background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.75); font-size: 15.5px; font-weight: 600; }
.pr-now .pr-mini:hover { background: #fff; }
.pr-now .pr-mini.is-now { background: #fff; border-color: #fff; box-shadow: 0 10px 24px -14px rgba(16,18,26,.45); }
.pr-now .pr-mini.is-done { background: transparent; border-color: transparent; color: var(--muted); }
.pr-now .pr-mini-mark { width: 24px; height: 24px; border-radius: 8px; border-width: 2px; }
.pr-now .pr-mini.is-now .pr-mini-mark { background: #fff; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(16,18,26,.08); color: transparent; }
.pr-now .pr-mini.is-done .pr-mini-mark { background: var(--ink); border-color: var(--ink); color: #fff; }
.pr-now .pr-actions { margin-top: 6px; }
.pr-now .wv-strip { display: flex; flex-direction: column; gap: 8px; margin: 4px 0 0; }
.pr-now .wv-chip { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; min-height: 54px; padding: 8px 14px; border-radius: 16px; border: 1px solid rgba(255,255,255,.75); background: rgba(255,255,255,.5); font-size: 13.5px; }
.pr-now .wv-chip strong { font-size: 15.5px; font-weight: 600; }
.pr-now .wv-chip.is-now { background: #fff; border-color: #fff; box-shadow: 0 10px 24px -14px rgba(16,18,26,.45); }
.pr-now .wv-chip.is-abgenommen { background: var(--ok-bg); }
.pr-res { display: flex; flex-direction: column; gap: 14px; align-self: start; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.55); border: 1px solid rgba(255,255,255,.8); }
.pr-res-ring { display: flex; align-items: center; gap: 14px; }
.pr-res-ring-t { font-size: 13px; line-height: 1.3; color: var(--muted); }
.pr-res-lbl { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pr-res .pr-result { display: block; margin: 6px 0 0; padding: 0; border: 0; font-size: 14px; color: var(--ink); }
.pr-res-kap { display: flex; flex-wrap: wrap; gap: 6px; }
.pr-kap, .pr-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 26px; padding: 0 10px; border-radius: 999px; background: rgba(21,23,28,.07); color: var(--ink-2); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.pr-chip-err { background: var(--err-bg); color: var(--err); }
.page-project .pr-ring { width: 64px; height: 64px; background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(21,23,28,.10) 0); }
.page-project .pr-ring > span { width: 50px; height: 50px; font-family: var(--mono); font-size: 13px; font-weight: 500; }
.pr-side { display: flex; flex-direction: column; gap: 20px; max-width: none; min-width: 0; }
.pr-phasecard.panel { gap: 14px; padding: 22px 24px; }
.pr-phasecard h2 { margin: 0; font-size: 17px; }
.pr-dl { margin: 0; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px 14px; font-size: 14.5px; }
.pr-dl dt { color: var(--muted); }
.pr-dl dd { margin: 0; font-weight: 600; text-align: right; }
.pr-linkbtn { padding: 0; border: 0; background: none; font: inherit; font-weight: 600; color: #1F4FBF; text-decoration: underline; cursor: pointer; }
.pr-bar { display: block; height: 8px; border-radius: 999px; background: rgba(21,23,28,.09); overflow: hidden; }
.pr-bar > u { display: block; height: 100%; border-radius: 999px; background: var(--c); }
.pr-bp.panel { flex-direction: row; align-items: center; gap: 16px; padding: 20px 22px; color: inherit; text-decoration: none; }
.pr-bp.panel:hover { transform: translateY(-1px); }
.pr-bp h2 { margin: 0 0 2px; font-size: 16.5px; }
.pr-ops.panel { gap: 12px; padding: 22px 24px; }
.pr-ops h2 { margin: 0; font-size: 17px; }
.pr-ops.is-alert { background: linear-gradient(180deg, rgba(255,244,242,.93), rgba(255,236,232,.86)); }
.pr-ops.is-alert h2 { color: var(--err); }
.pr-inc { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pr-inc li { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid rgba(138,28,23,.12); }
.pr-inc li:first-child { border-top: 0; padding-top: 0; }
.pr-inc a { color: var(--ink); font-weight: 600; }
.pr-inc-meta { display: block; margin-top: 2px; font-size: 13px; color: var(--muted); }
.pr-ops-go { align-self: flex-start; }

/* Kacheln der Phase */
.pr-tiles { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.pr-tiles > .s3 { grid-column: span 3; } .pr-tiles > .s4 { grid-column: span 4; } .pr-tiles > .s6 { grid-column: span 6; } .pr-tiles > .s12 { grid-column: span 12; }
.pr-tile.panel { gap: 10px; padding: 22px 24px; color: inherit; text-decoration: none; min-width: 0; }
a.pr-tile.panel:hover { transform: translateY(-1px); }
.pr-tile-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pr-tile-lbl { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.pr-tile-ic { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(21,23,28,.06); color: var(--ink-2); }
.pr-tile-big { font-size: 38px; font-weight: 600; letter-spacing: -.03em; line-height: 1; overflow-wrap: anywhere; }
.pr-tile-big small { margin-left: 6px; font-size: 15px; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pr-tile-hint { font-size: 13.5px; color: var(--muted); }
.pr-tile-go { display: flex; align-items: center; gap: 6px; margin-top: auto; font-size: 14px; font-weight: 600; color: #1F4FBF; }
.pr-tile .now-item { padding: 10px 0; }
.pr-pips { display: flex; gap: 6px; }
.pr-pips i { flex: 1; height: 8px; border-radius: 999px; background: rgba(21,23,28,.1); }
.pr-pips i.on { background: var(--c); }
.pr-mini-list { list-style: none; margin: 0; padding: 0; }
.pr-mini-list li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(21,23,28,.08); font-size: 14px; min-width: 0; }
.pr-mini-list li:first-child { border-top: 0; }
.pr-mini-list li > span:not(.r):not(.pr-st) { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pr-mini-list .r { flex: 0 1 auto; max-width: 55%; min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; font-size: 13px; color: var(--muted); white-space: nowrap; }
.pr-st { width: 9px; height: 9px; flex: none; border-radius: 50%; background: #9AA0AB; }
.pr-st-ok { background: #2E9D6A; } .pr-st-warn { background: #E0A023; } .pr-st-error { background: #E5484D; }
.pr-kpi .kpi-bars { height: 46px; }
.pr-tile-hint.kpi-good { color: var(--ok); } .pr-tile-hint.kpi-bad { color: var(--warn); }

/* Schmale Zeilen: Planung (Betrieb), Kennzahlen und Hypothesen, Team und Entscheidungen */
.pr-row.panel, .pr-strip.panel { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px 18px; padding: 16px 24px; }
.pr-row-text { flex: 1 1 260px; min-width: 0; font-size: 14px; }
.pr-row-sep, .pr-strip-sep { width: 1px; align-self: stretch; background: rgba(21,23,28,.10); }
.pr-row-link { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.pr-row-link:hover strong { text-decoration: underline; }
.pr-row-end, .pr-strip-end { margin-left: auto; }
.pr-strip-team, .pr-strip-dec { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; min-width: 0; }
.pr-strip-dec { flex: 1 1 320px; gap: 10px 26px; }
.pr-strip-lbl { font-size: 13.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.pr-avs { list-style: none; margin: 0; padding: 0; display: flex; }
.pr-avs .avatar { width: 36px; height: 36px; margin-left: -8px; border: 2px solid #fff; background: #E8EAF2; color: var(--ink); }
.pr-avs .avatar:first-child { margin-left: 0; }
.pr-dec { display: flex; align-items: center; gap: 10px; min-width: 0; }
.pr-dec > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.pr-dec strong { font-size: 15px; }

/* Mittlere Breite: richtet sich nach der Breite des Inhalts (Container), nicht nach dem Fenster */
@container pr (max-width: 999px) {
  .pr-grid { grid-template-columns: minmax(0, 1fr); }
  .pr-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); align-items: start; }
  .pr-tiles > .s3 { grid-column: span 6; }
  .pr-tiles > .s6 { grid-column: span 12; }
  .page-project .project-hero { grid-template-columns: auto minmax(0, 1fr); row-gap: 14px; }
  .pr-hero-act { grid-column: 2; justify-content: flex-start; margin-top: 0; }
}
@container pr (max-width: 640px) {
  .pr-tiles > .s4 { grid-column: span 6; }
}
@media (max-width: 760px) {
  .page-project .project-hero { grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; }
  .page-project .project-hero .project-logo { width: 56px !important; height: 56px !important; border-radius: 18px; font-size: 19px; }
  .page-project .project-hero h1 { font-size: 34px; }
  .page-project .project-title .muted { font-size: 15px; }
  .pr-hero-act { grid-column: 1 / -1; justify-content: flex-start; margin: 0; }
  .project-hero .pr-new-task { flex: 1; }
  .pr-tools-sep { display: none; }
  .pr-roadcard.panel { padding: 18px 16px; }
  .pr-rail { grid-template-columns: minmax(0, 1fr) !important; }
  .pr-rail > .pr-seg:not(.is-now) { display: none; }
  .pr-seg.is-now .pr-trk { display: none; }
  .pr-rail-nodes { display: flex; gap: 10px; margin: 0; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
  .pr-rail .pr-node { flex: 0 0 146px; flex-direction: column; align-items: flex-start; gap: 8px; min-height: 0; padding: 12px; border-radius: 16px; background: rgba(255,255,255,.5); border: 1px solid rgba(255,255,255,.75); scroll-snap-align: start; }
  .pr-rail .pr-node.is-now { background: #fff; box-shadow: 0 10px 22px -14px rgba(16,18,26,.5); }
  .pr-rail .pr-dot, .pr-rail .pr-diamond { width: 32px; height: 32px; font-size: 13px; }
  .pr-rail .pr-node-text { align-items: flex-start; text-align: left; }
  .pr-now.panel { grid-template-columns: minmax(0, 1fr); gap: 18px; padding: 20px; }
  .pr-now .pr-now-title, .pr-now-title { font-size: 28px; }
  .pr-res { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .pr-tiles { gap: 12px; }
  .pr-tiles > .s3, .pr-tiles > .s4 { grid-column: span 6; }
  .pr-tiles > .s6 { grid-column: span 12; }
  .pr-tile.panel { padding: 16px; gap: 6px; }
  .pr-tile-big { font-size: 30px; }
  .pr-row-sep, .pr-strip-sep { display: none; }
  .pr-row.panel, .pr-strip.panel { padding: 16px; }
}
.pr-seg .pr-phase.is-now .pr-now-tag { color: var(--ink-2); }
.pr-inc a { text-decoration: none; }
.pr-inc a:hover { text-decoration: underline; }
.pr-strip .panel-link { font-size: 14px; font-weight: 600; text-decoration: none; }
.pr-strip .panel-link:hover { text-decoration: underline; }
/* Technik rechts neben „Jetzt dran“ (Entwicklung): Werte als Zeilen */
.pr-side .wv-tech.panel { gap: 12px; padding: 22px 24px; }
.pr-side .wv-tech h2 { margin: 0; font-size: 17px; }
.pr-side .wv-tech .facts-row { display: flex; flex-direction: column; gap: 0; }
.pr-side .wv-tech .fact { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; column-gap: 12px; padding: 10px 0; border-top: 1px solid rgba(21,23,28,.08); }
.pr-side .wv-tech .fact:first-child { border-top: 0; padding-top: 0; }
.pr-side .wv-tech .fact .fact-label { grid-column: 1; grid-row: 1; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.pr-side .wv-tech .fact strong { grid-column: 2; grid-row: 1; font-size: 17px; }
.pr-side .wv-tech .fact .small { grid-column: 1 / -1; grid-row: 2; }
.pr-side .wv-tech .fact .small:empty { display: none; }
.pr-tools { position: relative; z-index: 6; }

/* =====================================================================
   3.5 · Runde 17: Projekt exportieren (Einstellungen) und importieren (Neues Projekt)
   ===================================================================== */
.form-error { margin: 0; padding: 10px 12px; border-radius: 10px; background: var(--err-bg); color: var(--err); font-size: 14px; font-weight: 500; }
.form-error[hidden] { display: none; }
.ex-panel.panel { gap: 12px; }
.ex-panel h2 { margin: 0; }
.ex-lead { margin: 0; max-width: 760px; color: var(--ink-2); }
.ex-cards { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ex-card { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border-radius: 16px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.95); }
.ex-card strong { display: flex; align-items: center; gap: 7px; font-size: 14.5px; }
.ex-card strong svg { flex: none; color: var(--ok); }
.ex-card span { font-size: 13px; color: var(--muted); }
.ex-opt { display: flex; gap: 14px; align-items: flex-start; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.62); border: 1px solid rgba(255,255,255,.9); cursor: pointer; }
.ex-opt > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.ex-opt strong { font-size: 15px; }
.ex-opt .switch { flex: none; margin-top: 1px; }
.ex-opt:has(input:disabled) { cursor: default; opacity: .75; }
.ex-note { display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(21,23,28,.05); color: var(--ink-2); font-size: 14px; }
.ex-note svg { flex: none; margin-top: 2px; color: var(--muted); }
.ex-note.is-warn { background: var(--warn-bg); color: #6E4205; }
.ex-note.is-warn svg { color: #B26B00; }
.ex-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding-top: 4px; }
.ex-file { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ex-file > svg { flex: none; width: 42px; height: 42px; padding: 11px; border-radius: 12px; background: rgba(21,23,28,.06); color: var(--ink-2); }
.ex-file > span { display: flex; flex-direction: column; min-width: 0; }
.ex-file code { font-family: var(--mono); font-size: 13.5px; overflow-wrap: anywhere; }
/* Neues Projekt: Neu anlegen | Aus Datei importieren */
.np-mode-wrap { padding: 16px 24px 0; }
.np-mode { display: inline-flex; gap: 3px; padding: 4px; border-radius: 999px; background: rgba(21,23,28,.06); max-width: 100%; }
.np-mode button { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: none; color: var(--ink-2); font: inherit; font-size: 14.5px; font-weight: 600; cursor: pointer; }
.np-mode button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.np-mode button:focus-visible { outline: 3px solid var(--focus, #2B59C3); outline-offset: 2px; }
.np-import[hidden], .np-form[hidden] { display: none; }
.np-drop { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; text-align: center; padding: 40px 20px; border-radius: 22px; border: 2px dashed rgba(21,23,28,.22); background: rgba(255,255,255,.5); cursor: pointer; transition: border-color .15s, background .15s; }
.np-drop:hover, .np-drop.is-over { border-color: var(--ink); background: rgba(255,255,255,.85); }
.np-drop:focus-within { outline: 3px solid var(--focus, #2B59C3); outline-offset: 2px; }
.np-drop-ic { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: #fff; color: var(--ink); box-shadow: 0 10px 24px -14px rgba(16,18,26,.5); }
.np-drop strong { font-size: 17px; }
.np-link { color: #1F4FBF; font-weight: 600; text-decoration: underline; }
.np-filecard { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: #fff; box-shadow: 0 10px 24px -16px rgba(16,18,26,.5); }
.np-filecard > span:nth-child(2) { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.np-filecard .project-logo { flex: none; border-radius: 13px; }
.np-imp-row { grid-template-columns: minmax(0, 1fr) 150px; }
.np-imp-hint { margin-top: -8px; }
.np-imp-lbl { display: block; margin-bottom: 4px; font-weight: 600; color: var(--ink-2); }
.np-imp-list { margin: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 26px; }
.np-imp-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid rgba(21,23,28,.08); font-size: 14.5px; }
.np-imp-list dt { color: var(--muted); }
.np-imp-list dd { margin: 0; font-weight: 600; white-space: nowrap; }
.np-done { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 10px 4px; text-align: center; }
.np-done-ok { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: #fff; box-shadow: 0 0 0 10px var(--ok-bg); }
.np-done h3 { margin: 10px 0 0; font-size: 26px; letter-spacing: -.02em; }
.np-done p { margin: 0; max-width: 520px; color: var(--ink-2); }
.np-todo { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.np-todo a { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.95); color: inherit; text-decoration: none; }
.np-todo a:hover { background: #fff; }
.np-todo a > svg { flex: none; color: var(--ink-2); }
.np-todo-go { margin-left: auto; display: flex; align-items: center; gap: 4px; color: #1F4FBF; font-weight: 600; font-size: 14px; white-space: nowrap; }
@media (max-width: 640px) {
  .np-mode-wrap { padding: 12px 16px 0; }
  .np-mode { display: flex; }
  .np-mode button { flex: 1; justify-content: center; padding: 0 10px; font-size: 13.5px; }
  .np-imp-row { grid-template-columns: minmax(0, 1fr) 110px; }
  .np-imp-list { grid-template-columns: 1fr; }
  .np-todo a { flex-wrap: wrap; }
  .ex-foot .btn { flex: 1 1 100%; }
}
.ex-opt .switch input { z-index: 1; }
@media (max-width: 640px) { .np-mode button { white-space: nowrap; } .np-mode button svg { display: none; } }

/* Runde 17 · Anordnung bei mittlerer Breite: Inhalt als Container, Kopf bündig, Werkzeuge einzeilig, „Jetzt dran“ fließend */
.pr-bg { container: pr / inline-size; }
.page-project .project-hero { align-items: start; }
.page-project .project-hero .project-logo { margin-top: 22px; }
.page-project .project-hero h1 { font-size: clamp(36px, 6.4cqi, 56px); overflow-wrap: anywhere; }
.page-project .project-title .muted { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pr-tools { flex-wrap: nowrap; max-width: 100%; min-width: 0; border-radius: 999px; }
.pr-tools > .pr-areas { flex: none; }
.pr-tools-row { display: flex; align-items: center; gap: 0; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; }
.pr-tools-row::-webkit-scrollbar { display: none; }
.pr-tools-row > .btn { flex: none; white-space: nowrap; }
.pr-tools-row.is-scroll:not(.at-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent); }
/* „Jetzt dran“: Ergebnis rechts, wenn Platz ist – sonst darunter, als Zeile */
.pr-now.panel { display: flex; flex-direction: row; flex-wrap: wrap; align-items: flex-start; align-content: flex-start; gap: 24px 28px; }
.pr-now-main { flex: 999 1 340px; }
.pr-res { flex: 1 1 220px; flex-direction: row; flex-wrap: wrap; align-items: flex-start; gap: 14px 22px; }
.pr-res > .pr-res-ring { flex: 1 1 180px; }
.pr-res > div:not(.pr-res-ring) { flex: 1 1 220px; }
.pr-res > div.pr-res-kap { flex: 1 1 100%; }
.pr-now .pr-now-title, .pr-now-title { font-size: clamp(30px, 4.4cqi, 40px); }
