/* ============================================================
   Bewertbares Sicherheitskonzept – Design System
   Showcase von ARO Advisory Services
   ============================================================ */

:root {
  --c-bg: #f4f6f9;
  --c-surface: #ffffff;
  --c-surface-2: #f8fafc;
  --c-border: #e2e8f0;
  --c-border-strong: #cbd5e1;
  --c-text: #0f172a;
  --c-text-2: #475569;
  --c-text-3: #94a3b8;

  --c-sidebar: #0d1526;
  --c-sidebar-2: #131f38;
  --c-sidebar-text: #cbd5e1;
  --c-sidebar-muted: #64748b;

  --c-accent: #2563eb;
  --c-accent-soft: #eff6ff;
  --c-accent-border: #bfdbfe;

  /* Status-Farben: tragen Bedeutung, nicht Dekoration */
  --c-ok: #15803d;        --c-ok-bg: #f0fdf4;      --c-ok-bd: #bbf7d0;
  --c-warn: #b45309;      --c-warn-bg: #fffbeb;    --c-warn-bd: #fde68a;
  --c-crit: #b91c1c;      --c-crit-bg: #fef2f2;    --c-crit-bd: #fecaca;
  --c-unknown: #7c3aed;   --c-unknown-bg: #f5f3ff; --c-unknown-bd: #ddd6fe;
  --c-neutral: #475569;   --c-neutral-bg: #f1f5f9; --c-neutral-bd: #e2e8f0;
  --c-info: #0369a1;      --c-info-bg: #f0f9ff;    --c-info-bd: #bae6fd;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow: 0 1px 3px rgba(15,23,42,.06), 0 4px 16px rgba(15,23,42,.05);
  --shadow-lg: 0 8px 40px rgba(15,23,42,.18);
  --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Code", "SF Mono", Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body {
  font-family: var(--font);
  background: var(--c-bg);
  color: var(--c-text);
  font-size: 14.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.noscript-hint {
  padding: 24px; background: var(--c-warn-bg); color: var(--c-warn);
  border-bottom: 1px solid var(--c-warn-bd); text-align: center;
}

/* ---------- Layout ---------- */
.app-shell { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.view-root { flex: 1; padding: 28px 34px 60px; max-width: 1480px; width: 100%; margin: 0 auto; }

/* ---------- Sidebar ---------- */
.sidebar {
  width: 268px; flex-shrink: 0; background: var(--c-sidebar); color: var(--c-sidebar-text);
  display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.sidebar-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px 18px 14px;
  color: inherit;
  text-decoration: none;
}
.sidebar-brand:hover .brand-title { color: #ffffff; }
.lang-switch--sidebar { display: inline-flex; gap: 8px; padding: 0 18px 12px; }
.lang-switch__btn {
  width: 34px; height: 34px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16);
  background-color: rgba(255,255,255,.04); color: transparent; cursor: pointer;
  font-size: 0; line-height: 0; position: relative; overflow: hidden;
}
.lang-switch__btn::before {
  content: "";
  width: 19px;
  height: 19px;
  display: block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
}
.lang-switch__btn[data-lang="de"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect width='18' height='6' fill='%23000000'/%3E%3Crect y='6' width='18' height='6' fill='%23dd0000'/%3E%3Crect y='12' width='18' height='6' fill='%23ffce00'/%3E%3C/svg%3E");
}
.lang-switch__btn[data-lang="en"]::before {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Crect width='18' height='18' fill='%23012169'/%3E%3Cpath d='M0 0l18 18M18 0L0 18' stroke='%23fff' stroke-width='4'/%3E%3Cpath d='M0 0l18 18M18 0L0 18' stroke='%23C8102E' stroke-width='2'/%3E%3Cpath d='M9 0v18M0 9h18' stroke='%23fff' stroke-width='6'/%3E%3Cpath d='M9 0v18M0 9h18' stroke='%23C8102E' stroke-width='3'/%3E%3C/svg%3E");
}
.lang-switch__btn.is-active { border-color: #e3b96e; background-color: rgba(227,185,110,.16); }
.sidebar-home-link {
  display: inline-flex;
  align-items: center;
  margin: 0 18px 14px;
  color: #cbd5e1;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
}
.sidebar-home-link:hover { color: #f8fafc; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 10px; flex-shrink: 0;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: #fff; font-weight: 700; font-size: 15px;
  display: flex; align-items: center; justify-content: center; letter-spacing: .5px;
}
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-title { font-weight: 600; color: #f1f5f9; font-size: 15px; }
.brand-sub { font-size: 11px; color: var(--c-sidebar-muted); line-height: 1.3; }

.project-switch { padding: 8px 14px 12px; border-bottom: 1px solid rgba(148,163,184,.12); }
.project-switch .ps-row { display: flex; align-items: center; gap: 8px; }
.project-switch select {
  width: 100%; background: var(--c-sidebar-2); color: #e2e8f0; border: 1px solid rgba(148,163,184,.25);
  border-radius: var(--radius-sm); padding: 8px 10px; font-size: 13px; font-family: var(--font);
}
.project-switch .ps-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; color: var(--c-sidebar-muted); margin-bottom: 5px; display:block; }
.project-switch .ps-delete {
  flex: 0 0 auto; width: 38px; height: 38px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-sm); border: 1px solid rgba(148,163,184,.25); background: var(--c-sidebar-2);
  color: #f8b4b4; cursor: pointer; transition: background .2s ease, border-color .2s ease, color .2s ease, transform .2s ease;
}
.project-switch .ps-delete:hover {
  background: rgba(127, 29, 29, 0.24); border-color: rgba(248, 113, 113, 0.45); color: #fecaca; transform: translateY(-1px);
}
.project-switch .ps-delete.is-disabled,
.project-switch .ps-delete:disabled {
  opacity: .45; cursor: not-allowed; color: var(--c-sidebar-muted); transform: none;
}

.sidebar-nav { flex: 1; padding: 10px 10px 20px; }
.nav-group-label {
  font-size: 10.5px; text-transform: uppercase; letter-spacing: .9px;
  color: var(--c-sidebar-muted); padding: 14px 10px 5px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin: 1px 0;
  border-radius: var(--radius-sm); color: var(--c-sidebar-text); text-decoration: none;
  font-size: 13.5px; cursor: pointer; border: none; background: none; width: 100%; text-align: left;
  font-family: var(--font);
}
.nav-item:hover { background: rgba(148,163,184,.1); color: #f1f5f9; }
.nav-item.active { background: rgba(37,99,235,.22); color: #93c5fd; font-weight: 600; }
.nav-item .nav-ico { width: 20px; text-align: center; opacity: .85; flex-shrink: 0; }
.nav-item .nav-count {
  margin-left: auto; font-size: 11px; background: rgba(148,163,184,.16); border-radius: 999px;
  padding: 1px 8px; color: #cbd5e1;
}
.nav-item .nav-count.crit { background: rgba(239,68,68,.25); color: #fca5a5; }

.sidebar-footer { padding: 12px 14px 16px; border-top: 1px solid rgba(148,163,184,.12); }
.user-context { margin-bottom: 12px; }
.user-context .uc-row { display: flex; align-items: center; gap: 9px; cursor: pointer; padding: 6px 6px; border-radius: var(--radius-sm); }
.user-context .uc-row:hover { background: rgba(148,163,184,.1); }
.uc-avatar {
  width: 30px; height: 30px; border-radius: 50%; background: #334155; color: #e2e8f0;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.uc-name { font-size: 13px; color: #e2e8f0; line-height: 1.2; }
.uc-role { font-size: 11px; color: var(--c-sidebar-muted); }

/* Dezentes ARO-Branding */
.aro-credit {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  padding: 8px; border-radius: var(--radius-sm); opacity: .78; transition: opacity .15s;
}
.aro-credit:hover { opacity: 1; background: rgba(148,163,184,.08); }
.aro-logo { width: 34px; height: 34px; object-fit: contain; border-radius: 6px; }
.aro-credit-text { font-size: 10.5px; color: var(--c-sidebar-muted); line-height: 1.35; }
.aro-credit-text strong { color: #94a3b8; font-weight: 600; }

/* ---------- Kopfbereiche ---------- */
.page-head { margin-bottom: 22px; }
.page-head h1 { margin: 0 0 4px; font-size: 22px; font-weight: 650; letter-spacing: -.02em; }
.page-head .page-sub { color: var(--c-text-2); font-size: 13.5px; max-width: 860px; }
.page-head__title-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.page-head-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.page-head-ai-notice {
  flex: 1 1 280px;
  max-width: 360px;
  padding: 10px 12px;
  border: 1px solid rgba(201,152,70,.52);
  border-radius: 10px;
  background: rgba(201,152,70,.13);
  color: #f3d9a8;
  font-size: 11.5px;
  line-height: 1.45;
}

.breadcrumb { font-size: 12px; color: var(--c-text-3); margin-bottom: 6px; }
.breadcrumb a { color: var(--c-text-3); text-decoration: none; }
.breadcrumb a:hover { color: var(--c-accent); }

/* ---------- Karten & Kacheln ---------- */
.card {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 20px 22px; margin-bottom: 18px;
}
.card h2 { margin: 0 0 12px; font-size: 15.5px; font-weight: 650; }
.card h3 { margin: 18px 0 8px; font-size: 13.5px; font-weight: 650; color: var(--c-text-2); }
.card .card-hint { font-size: 12.5px; color: var(--c-text-3); margin-top: -6px; margin-bottom: 12px; }

.tile-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 14px; margin-bottom: 20px; }
.tile {
  background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius);
  padding: 16px 18px; box-shadow: var(--shadow); position: relative; overflow: hidden;
}
.tile::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--c-neutral-bd); }
.tile.t-ok::before { background: var(--c-ok); }
.tile.t-warn::before { background: #f59e0b; }
.tile.t-crit::before { background: #ef4444; }
.tile.t-unknown::before { background: var(--c-unknown); }
.tile.t-info::before { background: var(--c-accent); }
.tile .tile-label { font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--c-text-3); font-weight: 600; }
.tile .tile-value { font-size: 26px; font-weight: 700; margin: 4px 0 2px; letter-spacing: -.02em; }
.tile .tile-value.small { font-size: 16.5px; line-height: 1.3; margin-top: 8px; }
.tile .tile-foot { font-size: 12px; color: var(--c-text-2); }

/* ---------- Badges / Status ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px;
  font-size: 11.5px; font-weight: 600; border: 1px solid; white-space: nowrap; line-height: 1.5;
}
.b-ok { color: var(--c-ok); background: var(--c-ok-bg); border-color: var(--c-ok-bd); }
.b-warn { color: var(--c-warn); background: var(--c-warn-bg); border-color: var(--c-warn-bd); }
.b-crit { color: var(--c-crit); background: var(--c-crit-bg); border-color: var(--c-crit-bd); }
.b-unknown { color: var(--c-unknown); background: var(--c-unknown-bg); border-color: var(--c-unknown-bd); }
.b-neutral { color: var(--c-neutral); background: var(--c-neutral-bg); border-color: var(--c-neutral-bd); }
.b-info { color: var(--c-info); background: var(--c-info-bg); border-color: var(--c-info-bd); }
.b-accent { color: var(--c-accent); background: var(--c-accent-soft); border-color: var(--c-accent-border); }

.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex-shrink: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 15px; border-radius: 8px;
  font-size: 13.5px; font-weight: 600; cursor: pointer; border: 1px solid var(--c-border-strong);
  background: var(--c-surface); color: var(--c-text); font-family: var(--font); text-decoration: none;
  transition: background .12s, border-color .12s;
}
.btn:hover { background: var(--c-surface-2); border-color: #94a3b8; }
.btn.primary { background: var(--c-accent); border-color: var(--c-accent); color: #fff; }
.btn.primary:hover { background: #1d4ed8; }
.btn.danger { color: var(--c-crit); border-color: var(--c-crit-bd); background: var(--c-crit-bg); }
.btn.ghost { border-color: transparent; background: transparent; color: var(--c-text-2); }
.btn.ghost:hover { background: var(--c-neutral-bg); }
.btn.sm { padding: 4px 10px; font-size: 12.5px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--c-border); border-radius: var(--radius); background: var(--c-surface); box-shadow: var(--shadow); }
table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th {
  text-align: left; padding: 10px 14px; background: var(--c-surface-2); color: var(--c-text-2);
  font-size: 11.5px; text-transform: uppercase; letter-spacing: .5px; border-bottom: 1px solid var(--c-border);
  white-space: nowrap; cursor: pointer; user-select: none;
}
table.data th.sorted::after { content: " ↕"; color: var(--c-accent); }
table.data td { padding: 10px 14px; border-bottom: 1px solid var(--c-border); vertical-align: top; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr { cursor: pointer; }
table.data tbody tr:hover { background: var(--c-accent-soft); }
table.data .td-title { font-weight: 600; color: var(--c-text); }
table.data .td-sub { font-size: 12px; color: var(--c-text-3); margin-top: 2px; }

.table-toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.table-toolbar input[type="search"], .table-toolbar select {
  padding: 7px 11px; border: 1px solid var(--c-border-strong); border-radius: 8px; font-size: 13px;
  font-family: var(--font); background: var(--c-surface); color: var(--c-text);
}
.table-toolbar input[type="search"] { min-width: 220px; }

/* ---------- Formulare ---------- */
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px 18px; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field.full { grid-column: 1 / -1; }
.field label { font-size: 12.5px; font-weight: 600; color: var(--c-text-2); display: flex; align-items: center; gap: 6px; }
.field .req { color: var(--c-crit); }
.field input, .field select, .field textarea {
  padding: 8px 11px; border: 1px solid var(--c-border-strong); border-radius: 8px; font-size: 13.5px;
  font-family: var(--font); background: var(--c-surface); color: var(--c-text); width: 100%;
}
.field textarea { min-height: 74px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--c-accent-border); border-color: var(--c-accent); }
.field .field-hint { font-size: 11.5px; color: var(--c-text-3); }
.field .field-note { font-size: 12px; color: var(--gold-bright); display: block; margin-top: 4px; }
.field .field-error { font-size: 12px; color: var(--c-crit); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--c-crit); }

/* Info-Tooltip für Fachbegriffe */
.term { border-bottom: 1px dotted var(--c-accent); cursor: help; position: relative; }
.term:hover::after {
  content: attr(data-info); position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 60;
  background: #1e293b; color: #f1f5f9; padding: 9px 12px; border-radius: 8px; font-size: 12px;
  width: 290px; line-height: 1.5; box-shadow: var(--shadow-lg); font-weight: 400; white-space: normal;
}

/* ---------- Side Panel (Drawer) ---------- */
.drawer-backdrop {
  position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 90; display: flex; justify-content: flex-end;
}
.drawer {
  width: min(720px, 96vw); background: var(--c-surface); height: 100%; overflow-y: auto;
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column;
  animation: drawerIn .18s ease-out;
}
@keyframes drawerIn { from { transform: translateX(40px); opacity: .4; } to { transform: none; opacity: 1; } }
.drawer-head {
  padding: 18px 24px; border-bottom: 1px solid var(--c-border); display: flex; align-items: flex-start;
  justify-content: space-between; gap: 12px; position: sticky; top: 0; background: var(--c-surface); z-index: 2;
}
.drawer-head h2 { margin: 0; font-size: 17px; }
.drawer-head .drawer-sub { font-size: 12.5px; color: var(--c-text-3); margin-top: 3px; }
.drawer-body { padding: 20px 24px 30px; flex: 1; }
.drawer-foot {
  padding: 14px 24px; border-top: 1px solid var(--c-border); display: flex; gap: 10px; justify-content: flex-end;
  position: sticky; bottom: 0; background: var(--c-surface);
}
.drawer .close-x { background: none; border: none; font-size: 20px; cursor: pointer; color: var(--c-text-3); padding: 2px 8px; }
.drawer .close-x:hover { color: var(--c-text); }

.drawer-section { margin-bottom: 22px; }
.drawer-section > h3 {
  font-size: 12px; text-transform: uppercase; letter-spacing: .7px; color: var(--c-text-3);
  margin: 0 0 10px; padding-bottom: 6px; border-bottom: 1px solid var(--c-border);
}

/* ---------- Meta-/Integritätsleiste an Objekten ---------- */
.meta-strip {
  display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 12px; background: var(--c-surface-2);
  border: 1px solid var(--c-border); border-radius: var(--radius-sm); font-size: 12px; color: var(--c-text-2);
  margin-bottom: 16px; align-items: center;
}
.meta-strip .ms-item { display: inline-flex; gap: 5px; align-items: center; }
.meta-strip .ms-sep { color: var(--c-border-strong); }

/* ---------- Listenblöcke (verknüpfte Objekte) ---------- */
.link-list { display: flex; flex-direction: column; gap: 8px; }
.link-item {
  border: 1px solid var(--c-border); border-radius: var(--radius-sm); padding: 10px 13px;
  background: var(--c-surface); display: flex; gap: 10px; align-items: flex-start; font-size: 13px;
}
.link-item.clickable { cursor: pointer; }
.link-item.clickable:hover { border-color: var(--c-accent-border); background: var(--c-accent-soft); }
.link-item .li-body { flex: 1; min-width: 0; }
.link-item .li-title { font-weight: 600; }
.link-item .li-sub { font-size: 12px; color: var(--c-text-2); margin-top: 2px; }

/* ---------- Begründungs-/Ableitungsboxen ---------- */
.derivation-box {
  background: var(--c-info-bg); border: 1px solid var(--c-info-bd); border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: 12.5px; color: var(--c-text-2); margin: 10px 0;
}
.derivation-box .db-title { font-weight: 700; margin-bottom: 5px; display: flex; gap: 6px; align-items: center; }
.derivation-box ul { margin: 4px 0 0; padding-left: 18px; }
.derivation-box li { margin: 2px 0; }

.assumption-box {
  background: var(--c-unknown-bg); border: 1px solid var(--c-unknown-bd); border-radius: var(--radius-sm);
  padding: 10px 13px; font-size: 12.5px; color: #5b21b6; margin: 8px 0;
}

.warn-box {
  background: var(--c-warn-bg); border: 1px solid var(--c-warn-bd); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 13px; color: #78350f; margin: 10px 0;
}
.crit-box {
  background: var(--c-crit-bg); border: 1px solid var(--c-crit-bd); border-radius: var(--radius-sm);
  padding: 11px 14px; font-size: 13px; color: #7f1d1d; margin: 10px 0;
}

/* ---------- Fortschritt ---------- */
.progress-bar { height: 8px; border-radius: 999px; background: var(--c-neutral-bg); overflow: hidden; }
.progress-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--c-accent); transition: width .3s; }
.progress-bar.p-warn > span { background: #f59e0b; }
.progress-bar.p-crit > span { background: #ef4444; }
.progress-row { display: flex; align-items: center; gap: 12px; margin: 7px 0; font-size: 13px; }
.progress-row .pr-label { width: 190px; flex-shrink: 0; color: var(--c-text-2); }
.progress-row .pr-val { width: 88px; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.progress-row .progress-bar { flex: 1; }

/* ---------- Wizard ---------- */
.wizard-shell { max-width: 780px; margin: 0 auto; }
.wizard-progress { display: flex; gap: 5px; margin-bottom: 26px; }
.wizard-progress span { flex: 1; height: 5px; border-radius: 999px; background: var(--c-neutral-bg); }
.wizard-progress span.done { background: var(--c-accent); }
.wizard-progress span.current { background: #93c5fd; }
.wizard-q { font-size: 20px; font-weight: 650; margin: 0 0 6px; letter-spacing: -.01em; }
.wizard-hint { color: var(--c-text-2); font-size: 13.5px; margin-bottom: 18px; }
.wizard-example {
  background: var(--c-surface-2); border-left: 3px solid var(--c-accent-border); padding: 10px 14px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0; font-size: 12.5px; color: var(--c-text-2); margin-bottom: 18px;
}
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; margin-bottom: 8px; }
.choice {
  border: 1.5px solid var(--c-border-strong); border-radius: var(--radius); padding: 13px 15px; cursor: pointer;
  background: var(--c-surface); font-size: 13.5px; transition: border-color .12s, background .12s; font-family: var(--font);
  text-align: left; display: flex; flex-direction: column; gap: 3px; color: var(--c-text);
}
.choice:hover { border-color: var(--c-accent); }
.choice.selected { border-color: var(--c-accent); background: var(--c-accent-soft); color: var(--c-text); }
.choice.unknown-choice.selected { border-color: var(--c-unknown); background: var(--c-unknown-bg); color: var(--c-text); }
.choice .ch-label { font-weight: 600; }
.choice .ch-sub { font-size: 11.5px; color: var(--c-text-3); }
.wizard-impact {
  margin-top: 14px; font-size: 12.5px; border-radius: var(--radius-sm); padding: 10px 13px;
  background: var(--c-unknown-bg); border: 1px solid var(--c-unknown-bd); color: var(--c-text-2);
}
.wizard-nav { display: flex; justify-content: space-between; margin-top: 26px; }
.tag-input-list { display: flex; flex-wrap: wrap; gap: 7px; margin: 10px 0; }
.tag-chip {
  background: var(--c-accent-soft); border: 1px solid var(--c-accent-border); color: var(--c-accent);
  padding: 4px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; display: inline-flex; gap: 7px; align-items: center;
}
.tag-chip button { border: none; background: none; cursor: pointer; color: inherit; font-size: 13px; padding: 0; line-height: 1; }

/* ---------- Architektur (SVG) ---------- */
.arch-canvas-wrap { overflow: auto; border: 1px solid var(--c-border); border-radius: var(--radius); background: #fbfcfe; box-shadow: var(--shadow); }
svg.arch { display: block; font-family: var(--font); }
svg.arch .zone-rect { fill: rgba(37,99,235,.035); stroke: #94a3b8; stroke-dasharray: 7 5; stroke-width: 1.4; rx: 12; }
svg.arch .zone-label { font-size: 11px; fill: #64748b; text-transform: uppercase; letter-spacing: .8px; font-weight: 600; }
svg.arch .node-rect { fill: #ffffff; stroke: #cbd5e1; stroke-width: 1.4; rx: 9; filter: drop-shadow(0 1px 2px rgba(15,23,42,.10)); }
svg.arch .node-rect.exposed { stroke: #ef4444; stroke-width: 2; }
svg.arch .node-rect.gapped { stroke-dasharray: 5 3; }
svg.arch .node-title { font-size: 12.5px; font-weight: 600; fill: #0f172a; }
svg.arch .node-sub { font-size: 10.5px; fill: #64748b; }
svg.arch .flow-line { stroke: #64748b; stroke-width: 1.6; fill: none; marker-end: url(#arrow); }
svg.arch .flow-line.tb-cross { stroke: #b45309; stroke-dasharray: 6 4; }
svg.arch .flow-label { font-size: 10px; fill: #475569; }
svg.arch .gap-badge { fill: #7c3aed; }
svg.arch .gap-badge-text { fill: #fff; font-size: 10px; font-weight: 700; }
svg.arch .exp-badge { fill: #ef4444; }
.arch-legend { display: flex; flex-wrap: wrap; gap: 16px; font-size: 12px; color: var(--c-text-2); padding: 12px 4px 2px; }
.arch-legend .al-item { display: inline-flex; align-items: center; gap: 7px; }

/* ---------- Modal ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.5); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; }
.modal { background: var(--c-surface); border-radius: var(--radius); box-shadow: var(--shadow-lg); width: min(560px, 94vw); max-height: 88vh; overflow-y: auto; }
.modal-head { padding: 18px 22px 0; }
.modal-head h2 { margin: 0; font-size: 17px; }
.modal-body { padding: 14px 22px; }
.modal-foot { padding: 0 22px 18px; display: flex; gap: 10px; justify-content: flex-end; }

/* ---------- Toast ---------- */
#toast-root { position: fixed; bottom: 22px; right: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast {
  background: #1e293b; color: #f1f5f9; padding: 11px 17px; border-radius: 9px; font-size: 13px;
  box-shadow: var(--shadow-lg); max-width: 380px; animation: toastIn .2s ease-out;
}
.toast.t-err { background: #7f1d1d; }
@keyframes toastIn { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Empty States ---------- */
.empty-state {
  text-align: center; padding: 44px 20px; color: var(--c-text-2); background: var(--c-surface);
  border: 1.5px dashed var(--c-border-strong); border-radius: var(--radius);
}
.empty-state .es-icon { font-size: 30px; margin-bottom: 8px; }
.empty-state h3 { margin: 0 0 6px; color: var(--c-text); }
.empty-state p { margin: 0 auto 16px; max-width: 460px; font-size: 13.5px; }

/* ---------- Audit ---------- */
.audit-entry { display: flex; gap: 12px; padding: 10px 4px; border-bottom: 1px solid var(--c-border); font-size: 13px; }
.audit-entry .ae-time { width: 150px; flex-shrink: 0; color: var(--c-text-3); font-family: var(--mono); font-size: 11.5px; }
.audit-entry .ae-hash { font-family: var(--mono); font-size: 10.5px; color: var(--c-text-3); word-break: break-all; }
.hash-chip { font-family: var(--mono); font-size: 10.5px; background: var(--c-neutral-bg); padding: 2px 7px; border-radius: 5px; color: var(--c-text-2); word-break: break-all; }

/* ---------- Kanban-artige Spalten (Lücken) ---------- */
.col-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }

/* ---------- Utility ---------- */
.muted { color: var(--c-text-3); }
.small { font-size: 12px; }
.mono { font-family: var(--mono); font-size: 12px; }
.mt0 { margin-top: 0; } .mb0 { margin-bottom: 0; }
.flex { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 980px) { .grid-2 { grid-template-columns: 1fr; } }
hr.sep { border: none; border-top: 1px solid var(--c-border); margin: 18px 0; }

/* ============================================================
   Geführtes Konzept (Copilot) – Chat-Design
   Hinweis: Die CSP (style-src 'self') blockiert Inline-Styles –
   alles Visuelle gehört deshalb hierher.
   ============================================================ */
.cp-layout { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 1080px) { .cp-layout { grid-template-columns: 1fr; } }

.cp-card {
  display: flex; flex-direction: column; min-height: 520px;
  background: var(--c-surface); border: 1px solid var(--c-border);
  border-radius: 16px; box-shadow: var(--shadow);
  overflow: hidden;
}
.cp-chat {
  flex: 1; display: flex; flex-direction: column; gap: 14px;
  padding: 22px 22px 14px;
  max-height: 62vh; overflow-y: auto; scroll-behavior: smooth;
  background:
    radial-gradient(1200px 400px at 80% -10%, #eff6ff 0%, transparent 60%),
    linear-gradient(180deg, #fbfcfe 0%, #f6f8fc 100%);
}

.cp-msg { display: flex; gap: 10px; max-width: 86%; animation: cpIn .28s ease both; }
.cp-msg.me { align-self: flex-end; flex-direction: row-reverse; }
@keyframes cpIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.cp-avatar {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px; font-weight: 700; margin-top: 2px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%);
  color: #fff; box-shadow: 0 2px 6px rgba(37, 99, 235, .35);
}
.cp-msg.me .cp-avatar {
  background: #e2e8f0; color: var(--c-text-2); box-shadow: none;
  font-size: 12.5px;
}

.cp-bubble {
  padding: 11px 15px; font-size: 14px; line-height: 1.55;
  white-space: pre-wrap; word-break: break-word;
  background: var(--c-surface); color: var(--c-text);
  border: 1px solid var(--c-border);
  border-radius: 4px 16px 16px 16px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
}
.cp-msg.me .cp-bubble {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #fff; border: none;
  border-radius: 16px 4px 16px 16px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .30);
}
.cp-who { font-size: 10.5px; text-transform: uppercase; letter-spacing: .6px; color: var(--c-text-3); margin: 0 0 4px; }
.cp-msg.me .cp-who { text-align: right; }

/* Tipp-Indikator */
.cp-typing .cp-bubble { display: inline-flex; gap: 5px; align-items: center; padding: 14px 16px; }
.cp-typing .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-text-3); animation: cpDot 1.2s infinite; }
.cp-typing .dot:nth-child(2) { animation-delay: .18s; }
.cp-typing .dot:nth-child(3) { animation-delay: .36s; }
@keyframes cpDot { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }

/* Eingabezeile */
.cp-inputbar { padding: 14px 18px 16px; border-top: 1px solid var(--c-border); background: var(--c-surface); }
.cp-inputrow { display: flex; gap: 10px; align-items: flex-end; }
.cp-inputrow textarea {
  flex: 1; min-height: 52px; max-height: 160px; resize: vertical;
  padding: 12px 14px; font-family: var(--font); font-size: 14px; color: var(--c-text);
  border: 1.5px solid var(--c-border-strong); border-radius: 12px; background: var(--c-surface);
  transition: border-color .15s, box-shadow .15s;
}
.cp-inputrow textarea:focus { outline: none; border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .15); }
.cp-inputrow textarea:disabled { background: var(--c-surface-2); color: var(--c-text-3); }
.cp-send {
  height: 52px; padding: 0 22px; border: none; border-radius: 12px; cursor: pointer;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); color: #fff;
  font-family: var(--font); font-size: 14px; font-weight: 650;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .35);
  transition: transform .1s, box-shadow .15s, filter .15s;
}
.cp-send:hover:not(:disabled) { filter: brightness(1.07); box-shadow: 0 4px 14px rgba(37, 99, 235, .4); }
.cp-send:active:not(:disabled) { transform: translateY(1px); }
.cp-send:disabled { opacity: .55; cursor: default; box-shadow: none; }
.cp-inputhint { display: flex; justify-content: space-between; align-items: center; margin-top: 7px; font-size: 11.5px; color: var(--c-text-3); }
.cp-skiplink { background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font); font-size: 11.5px; color: var(--c-accent); text-decoration: underline; text-underline-offset: 2px; }
.cp-skiplink:hover { color: #1d4ed8; }
.cp-skiplink:disabled { color: var(--c-text-3); cursor: default; }

/* Abschluss-Zustand */
.cp-donebox { margin: 0 22px 8px; padding: 14px 16px; border: 1px solid var(--c-ok-bd); background: var(--c-ok-bg); border-radius: 12px; font-size: 13.5px; }
.cp-donebox .db-title { font-weight: 650; color: var(--c-ok); margin-bottom: 3px; }
.cp-doneactions { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 22px 18px; }

/* Live-Panel rechts */
.cp-live { position: sticky; top: 20px; }
.cp-live .lp-row { display: flex; justify-content: space-between; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--c-border); font-size: 13px; }
.cp-live .lp-row:last-of-type { border-bottom: none; }
.cp-live .lp-label { color: var(--c-text-3); font-size: 12.5px; }
.cp-live .lp-val { font-weight: 650; font-variant-numeric: tabular-nums; }
.cp-live .lp-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }

/* ============================================================
   Standard-Bausteine – Auswahlkarten
   ============================================================ */
.std-panel {
  border: 1px solid var(--c-accent-border); border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #eff6ff 100%);
  padding: 16px 16px 14px; margin: 2px 22px 4px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .8);
}
.std-panel.in-drawer { margin: 0; }
.std-head { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.std-head .std-ico {
  width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #7c3aed 100%); color: #fff;
}
.std-head .std-title { font-weight: 700; font-size: 14.5px; }
.std-sub { font-size: 12.5px; color: var(--c-text-2); margin: 0 0 12px; line-height: 1.5; }

.std-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.std-item {
  position: relative; display: flex; gap: 11px; align-items: flex-start;
  padding: 12px 13px; cursor: pointer;
  background: var(--c-surface); border: 1.5px solid var(--c-border); border-radius: 13px;
  transition: border-color .15s, box-shadow .15s, transform .1s;
}
.std-item:hover { border-color: var(--c-border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.std-item:has(input:checked) { border-color: var(--c-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12); }
.std-item.taken { opacity: .75; cursor: default; background: var(--c-ok-bg); border-color: var(--c-ok-bd); }
.std-item.taken:hover { transform: none; box-shadow: none; }
.std-item input[type="checkbox"] {
  width: 19px; height: 19px; margin: 1px 0 0; flex-shrink: 0;
  accent-color: var(--c-accent); cursor: pointer;
}
.std-item.taken input[type="checkbox"] { accent-color: var(--c-ok); cursor: default; }
.std-body { flex: 1; min-width: 0; }
.std-name { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; font-weight: 650; font-size: 13.5px; margin-bottom: 3px; }
.std-was { font-size: 12.5px; color: var(--c-text-2); line-height: 1.45; }
.std-reason {
  margin-top: 7px; padding: 7px 10px; font-size: 12px; line-height: 1.45;
  background: var(--c-accent-soft); border: 1px solid var(--c-accent-border); border-radius: 8px;
  color: #1e40af;
}
.std-reason strong { font-weight: 650; }
.std-why { margin-top: 6px; font-size: 11.5px; color: var(--c-text-3); line-height: 1.4; }
.std-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 13px; flex-wrap: wrap; }
.std-foot .std-note { font-size: 11.5px; color: var(--c-text-3); }
.std-apply {
  border: none; border-radius: 11px; padding: 11px 22px; cursor: pointer;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%); color: #fff;
  font-family: var(--font); font-size: 13.5px; font-weight: 650;
  box-shadow: 0 2px 8px rgba(37, 99, 235, .35);
  transition: filter .15s, transform .1s;
}
.std-apply:hover { filter: brightness(1.07); }
.std-apply:active { transform: translateY(1px); }

/* Projektliste: Aktionszeile & Gruppentitel (CSP-konform) */
.li-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.group-title { margin: 18px 0 8px; font-size: 15px; }
.group-hint { font-size: 12px; color: var(--c-text-3); margin-bottom: 8px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .app-shell { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .view-root { padding: 18px 16px 50px; }
}

/* ---------- Print (Berichtsansicht) ---------- */
@media print {
  .sidebar, .page-actions, .table-toolbar, .btn, #toast-root, #modal-root { display: none !important; }
  body { background: #fff; }
  .card, .tile, .table-wrap { box-shadow: none; }
}

/* ============================================================
   THEME: ARO Advisor (Deep-Dark · Gold)
   Angeglichen an das Design von aro-security.de
   (ai-governance-advisor): dunkle Tiefen-Palette #071019,
   Gold-Akzent #C99846, Serif-Display-Typo, dezente Glows.
   Dieser Block überschreibt die Design-Tokens und alle
   hartkodierten Hell-Werte weiter oben.
   ============================================================ */
:root {
  --gold: #C99846;
  --gold-bright: #E3B96E;
  --gold-dim: #85622B;
  --gold-glow: rgba(201, 152, 70, 0.22);

  --c-bg: #071019;
  --c-surface: #0D1822;
  --c-surface-2: #12202B;
  --c-border: rgba(206, 218, 232, 0.10);
  --c-border-strong: rgba(230, 236, 244, 0.22);
  --c-text: #F7F5F0;
  --c-text-2: rgba(240, 237, 230, 0.72);
  --c-text-3: rgba(232, 232, 226, 0.45);

  --c-sidebar: #050B12;
  --c-sidebar-2: #0D1822;
  --c-sidebar-text: rgba(240, 237, 230, 0.78);
  --c-sidebar-muted: rgba(232, 232, 226, 0.40);

  --c-accent: #C99846;
  --c-accent-soft: rgba(201, 152, 70, 0.12);
  --c-accent-border: rgba(201, 152, 70, 0.38);

  --c-ok: #6FCF97;      --c-ok-bg: rgba(52, 168, 83, 0.12);    --c-ok-bd: rgba(52, 168, 83, 0.32);
  --c-warn: #EDB458;    --c-warn-bg: rgba(237, 180, 88, 0.10); --c-warn-bd: rgba(237, 180, 88, 0.32);
  --c-crit: #F0857D;    --c-crit-bg: rgba(239, 83, 80, 0.12);  --c-crit-bd: rgba(239, 83, 80, 0.34);
  --c-unknown: #C4B5FD; --c-unknown-bg: rgba(139, 92, 246, 0.12); --c-unknown-bd: rgba(139, 92, 246, 0.34);
  --c-neutral: rgba(240, 237, 230, 0.72); --c-neutral-bg: rgba(255, 255, 255, 0.06); --c-neutral-bd: rgba(230, 236, 244, 0.16);
  --c-info: #8FC7E8;    --c-info-bg: rgba(56, 152, 199, 0.12); --c-info-bd: rgba(56, 152, 199, 0.32);

  --shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 28px 60px rgba(0, 0, 0, 0.32);
  --font: 'Aptos', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Iowan Old Style', 'Palatino Linotype', 'Book Antiqua', Georgia, serif;
}

body {
  background:
    radial-gradient(circle at top, rgba(201, 152, 70, 0.08), transparent 24%),
    radial-gradient(circle at 78% 18%, rgba(126, 147, 178, 0.10), transparent 18%),
    linear-gradient(180deg, #09121c 0%, #071019 38%, #0b1721 100%);
  background-attachment: fixed;
}

/* Display-Typografie wie auf der Advisor-Seite */
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 26px; letter-spacing: 0; }
.wizard-q { font-family: var(--font-display); font-weight: 600; }
.drawer-head h2, .modal-head h2 { font-family: var(--font-display); font-weight: 600; }

/* Sidebar & Branding */
.sidebar { border-right: 1px solid var(--c-border); }
.brand-mark { background: linear-gradient(135deg, var(--gold) 0%, var(--gold-dim) 100%); color: #071019; }
.brand-title { color: var(--c-text); font-family: var(--font-display); }
.nav-item.active { background: var(--c-accent-soft); color: var(--gold-bright); }
.nav-item:hover { background: rgba(255, 255, 255, 0.05); color: var(--c-text); }
.nav-item .nav-count { background: rgba(255, 255, 255, 0.08); color: var(--c-text-2); }
.project-switch select { background: var(--c-sidebar-2); color: var(--c-text); border-color: var(--c-border-strong); }
.uc-avatar { background: var(--c-surface-2); color: var(--gold-bright); }
.uc-name { color: var(--c-text); }
.aro-credit-text strong { color: var(--gold); }

/* Buttons */
.btn:hover { background: var(--c-surface-2); border-color: var(--c-accent-border); }
.btn.primary { background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-dim) 130%); border-color: var(--gold-dim); color: #071019; font-weight: 700; }
.btn.primary:hover { background: linear-gradient(135deg, #EFC77E 0%, var(--gold-bright) 60%, var(--gold) 130%); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.06); }

/* Tiles / Fortschritt */
.tile.t-warn::before { background: var(--c-warn); }
.tile.t-crit::before { background: var(--c-crit); }
.progress-bar.p-warn > span { background: var(--c-warn); }
.progress-bar.p-crit > span { background: var(--c-crit); }
.wizard-progress span.current { background: var(--gold-bright); }

/* Boxen: Textfarben für dunklen Grund */
.derivation-box { color: #BFE0F2; }
.assumption-box { color: #D6C9FA; }
.warn-box { color: #F3D9A8; }
.crit-box { color: #F5C1BD; }
.term:hover::after { background: #12202B; border: 1px solid var(--c-border-strong); }

/* Tabellen / Drawer / Modal */
.drawer-backdrop, .modal-backdrop { background: rgba(3, 8, 13, 0.62); backdrop-filter: blur(6px); }
.toast { background: #12202B; border: 1px solid var(--c-border-strong); }
.toast.t-err { background: #3B1210; border-color: var(--c-crit-bd); }

/* Architektur-SVG auf dunklen Grund */
.arch-canvas-wrap { background: #0A141E; }
svg.arch .zone-rect { fill: rgba(201, 152, 70, 0.05); stroke: rgba(230, 236, 244, 0.30); }
svg.arch .zone-label { fill: rgba(232, 232, 226, 0.50); }
svg.arch .node-rect { fill: #12202B; stroke: rgba(230, 236, 244, 0.30); }
svg.arch .node-title { fill: #F7F5F0; }
svg.arch .node-sub { fill: rgba(232, 232, 226, 0.55); }
svg.arch .flow-line { stroke: rgba(232, 232, 226, 0.55); }
svg.arch .flow-label { fill: rgba(240, 237, 230, 0.72); }

/* Copilot-Chat */
.cp-chat {
  background:
    radial-gradient(900px 320px at 80% -10%, rgba(201, 152, 70, 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #0B1620 0%, #0A141E 100%);
}
.cp-card { border-radius: 16px; }
.cp-avatar { background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-dim) 100%); color: #071019; box-shadow: 0 2px 10px var(--gold-glow); }
.cp-msg.me .cp-avatar { background: var(--c-surface-2); color: var(--c-text-2); }
.cp-bubble { background: var(--c-surface-2); border-color: var(--c-border-strong); box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cp-msg.me .cp-bubble { background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 60%, var(--gold-dim) 140%); color: #071019; box-shadow: 0 4px 14px var(--gold-glow); }
.cp-inputbar { background: var(--c-surface); }
.cp-inputrow textarea { background: var(--c-surface-2); }
.cp-inputrow textarea:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.cp-send { background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-dim) 130%); color: #071019; box-shadow: 0 2px 10px var(--gold-glow); }
.cp-send:hover:not(:disabled) { box-shadow: 0 4px 16px var(--gold-glow); }
.cp-skiplink { color: var(--gold-bright); }
.cp-skiplink:hover { color: var(--gold); }
.cp-donebox { color: var(--c-text-2); }
.cp-donebox .db-title { color: var(--c-ok); }

/* Standard-Bausteine */
.std-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.04) 0%, rgba(201, 152, 70, 0.07) 100%);
  border-color: var(--c-accent-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.std-head .std-ico { background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold-dim) 100%); color: #071019; }
.std-item { background: var(--c-surface); }
.std-item:hover { border-color: var(--c-border-strong); }
.std-item:has(input:checked) { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-glow); }
.std-item input[type="checkbox"] { accent-color: var(--gold); }
.std-reason { color: var(--gold-bright); }
.std-apply { background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-dim) 130%); color: #071019; box-shadow: 0 2px 10px var(--gold-glow); }

/* ARO-Logo oben rechts (transparent, rein dekorativ) */
.corner-logo {
  position: fixed;
  top: 16px;
  right: 26px;
  height: 118px;
  width: auto;
  opacity: 0.9;
  pointer-events: none;   /* verdeckt nie Buttons oder Links */
  z-index: 60;
  filter: drop-shadow(0 2px 12px rgba(0, 0, 0, 0.40));
}
@media (max-width: 1100px) { .corner-logo { display: none; } }
@media print { .corner-logo { display: none; } }

/* Platz für das Logo: Kopfbereich rückt vom rechten Rand ab,
   der Beschreibungstext bricht gleichmäßig verteilt um */
.page-head-row { padding-right: 170px; }
.page-head .page-sub {
  max-width: 640px;
  text-wrap: balance;   /* verteilt den Text gleichmäßig auf die Zeilen */
}
@media (max-width: 1100px) { .page-head-row { padding-right: 0; } }
@media (max-width: 700px) {
  .page-head-ai-notice { flex-basis: 100%; max-width: none; }
}

/* === July 2026 usability refinements === */
.sidebar-brand {
  padding: 24px 22px 18px;
}

.brand-mark {
  width: 60px;
  height: 60px;
  border-radius: 16px;
  font-size: 22px;
  font-weight: 800;
}

.brand-title {
  font-size: 1.02rem;
}

.brand-sub {
  font-size: 0.9rem;
  color: rgba(240, 237, 230, 0.58);
}

.project-switch .ps-label,
.nav-group-label {
  color: rgba(232, 232, 226, 0.52);
}

.nav-item {
  color: rgba(247, 245, 240, 0.88);
}

.nav-item .nav-ico {
  color: rgba(247, 245, 240, 0.76);
}

.page-sub,
.wizard-hint,
.wizard-example,
.choice .ch-sub,
.std-sub,
.std-was,
.std-why,
.muted,
.small {
  color: rgba(240, 237, 230, 0.78);
}

.wizard-example {
  border-left-color: rgba(201, 152, 70, 0.42);
}

.page-actions .btn,
.wizard-nav .btn.primary,
.cp-doneactions .btn,
.std-apply {
  min-height: 44px;
}

.cp-card .btn:not(.ghost) {
  background: linear-gradient(135deg, var(--gold-bright) 0%, var(--gold) 55%, var(--gold-dim) 130%);
  border-color: var(--gold-dim);
  color: #071019;
  font-weight: 700;
}

.cp-card .btn:not(.ghost):hover {
  background: linear-gradient(135deg, #EFC77E 0%, var(--gold-bright) 60%, var(--gold) 130%);
}

.hash-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid var(--c-border-strong);
  color: rgba(247, 245, 240, 0.88);
}
