/* 4smile-Designsprache (siehe 4smile-ui-design): Navy-Flächen, Mint = aktiv,
   Accent (Rosé) = sekundär, warmes Canvas, Space Grotesk, Pillen, dicke Rahmen. */
:root {
  --brand-50: #f8f5f3;
  --brand-100: #f2dfdc;
  --brand-200: #ecc9c3;
  --brand-300: #d8ecec;
  --brand-400: #b4ddde;
  --brand-500: #b5c4db;
  --brand-600: #627596;
  --brand-700: #2d4267;
  --brand-800: #192946;
  --brand-900: #121f36;
  --accent: #ecc9c3;
  --mint: #b4ddde;
  --steel: #b5c4db;
  --canvas: #fffdfa;
  --ink: #1d1d1b;
  --muted: #627596;

  /* Ampel: Super-grün / Ziel / Mindestwert / darunter */
  --st-super: #2f8f83;
  --st-target: #7cc4bd;
  --st-min: #e3b04b;
  --st-below: #c8553d;
  --st-none: #b5c4db;

  --shadow-card: 0 20px 60px rgba(25, 41, 70, 0.12);
  --shadow-inset: inset 0 -3px 0 rgba(25, 41, 70, 0.18);
  --font: "Space Grotesk", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
  line-height: 1.45;
}
a { color: var(--brand-700); }
h1, h2, h3 { font-weight: 700; margin: 0; line-height: 1.1; }
button, select, input { font: inherit; }

/* ---------- Shell ---------- */
.shell { display: flex; gap: 24px; padding: 20px; min-height: 100vh; }
.sidebar {
  width: 300px; flex-shrink: 0;
  position: sticky; top: 20px; height: calc(100vh - 40px);
  display: flex; flex-direction: column; gap: 18px;
  background: var(--brand-800); color: #fff;
  border: 4px solid var(--brand-800); border-radius: 34px;
  padding: 20px; box-shadow: var(--shadow-card);
  overflow-y: auto;
}
.logo-box { background: #fff; border-radius: 26px; padding: 16px 18px; }
.logo-box img { display: block; width: 100%; max-width: 180px; }
.nav { display: flex; flex-direction: column; gap: 10px; }
.nav a {
  display: block; text-decoration: none;
  border: 2px solid rgba(255,255,255,.15); background: rgba(255,255,255,.1); color: #fff;
  border-radius: 999px; padding: 12px 18px;
  font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
  transition: background .15s, border-color .15s, color .15s;
}
.nav a:hover { border-color: var(--accent); background: var(--accent); color: var(--brand-800); }
.nav a.active { border-color: var(--brand-400); background: var(--mint); color: var(--brand-800); }
.session {
  margin-top: auto;
  border: 1px solid rgba(255,255,255,.2); background: rgba(255,255,255,.1);
  border-radius: 28px; padding: 16px;
  display: flex; flex-direction: column; gap: 8px;
}
.mobile-bar { display: none; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 24px; outline: none; }

/* ---------- Typo-Bausteine ---------- */
.eyebrow {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .18em;
  color: var(--muted); font-weight: 600; margin: 0;
}
.eyebrow--light { color: rgba(255,255,255,.7); }
.headline {
  display: inline-block; background: var(--accent); color: var(--brand-800);
  padding: 8px 14px; font-size: clamp(1.8rem, 3.5vw, 2.6rem);
}
.muted { color: var(--muted); }
.small { font-size: .85rem; }

/* ---------- Karten ---------- */
.card {
  background: rgba(255,255,255,.88); backdrop-filter: blur(6px);
  border: 4px solid var(--brand-800); border-radius: 30px;
  padding: 20px; box-shadow: var(--shadow-card);
  min-width: 0;
}
.card h2 { font-size: 1.25rem; margin-bottom: 4px; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 24px; }
.grid--main { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); align-items: start; }
.stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ---------- Kopfbereich Dashboard ---------- */
.hero { display: flex; flex-direction: column; gap: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 2px solid var(--brand-800); background: #fff; color: var(--brand-800);
  border-radius: 999px; padding: 6px 14px; cursor: pointer;
  font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em;
}
.chip:hover { background: var(--brand-50); }
.chip[aria-pressed="true"] { background: var(--mint); border-color: var(--brand-800); }
.chip small { font-weight: 500; text-transform: none; letter-spacing: 0; opacity: .75; }
.demo-note {
  border: 2px dashed var(--brand-600); border-radius: 22px;
  padding: 10px 16px; font-size: .85rem; color: var(--brand-700); background: var(--brand-50);
}

/* ---------- Wichtigste Zahl ---------- */
.big-numbers { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 16px; }
.big {
  border: 4px solid var(--brand-800); border-radius: 26px; background: #fff;
  padding: 16px 18px; display: flex; flex-direction: column; gap: 6px;
  position: relative; overflow: hidden;
}
.big::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 8px; background: var(--status, var(--st-none)); }
.big .value { font-size: 2rem; font-weight: 700; color: var(--brand-800); line-height: 1; }
.big .label { font-weight: 600; font-size: .95rem; }

/* ---------- Status ---------- */
.status {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  white-space: nowrap;
}
.status::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--status, var(--st-none)); }
[data-status="super"]  { --status: var(--st-super); }
[data-status="target"] { --status: var(--st-target); }
[data-status="min"]    { --status: var(--st-min); }
[data-status="below"]  { --status: var(--st-below); }
[data-status="none"]   { --status: var(--st-none); }

/* ---------- Quellen-Link ---------- */
.source {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: .75rem; font-weight: 600; text-decoration: none;
  border-radius: 999px; padding: 3px 10px;
  background: var(--brand-300); color: var(--brand-800); border: 1px solid var(--brand-400);
  white-space: nowrap;
}
a.source:hover { background: var(--mint); }
.source--missing { background: var(--brand-50); border-style: dashed; border-color: var(--steel); color: var(--muted); }

/* ---------- Tabellen ---------- */
.table-wrap { overflow-x: auto; border-radius: 18px; }
table.kpi { width: 100%; border-collapse: collapse; font-size: .85rem; }
table.kpi th {
  background: var(--brand-800); color: #fff; text-transform: uppercase; font-weight: 600;
  font-size: .72rem; letter-spacing: .06em; text-align: left;
  padding: 8px 10px; border-bottom: 2px solid var(--accent);
}
table.kpi td { padding: 7px 10px; border-bottom: 1px solid var(--brand-100); vertical-align: top; }
table.kpi td.num, table.kpi th.num { text-align: right; white-space: nowrap; }
table.kpi tr:nth-child(even) td { background: var(--brand-50); }
table.kpi .kpi-name { font-weight: 600; }
table.kpi .kpi-result { font-size: .78rem; color: var(--muted); }
.cell-value { display: inline-flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.cell-value strong { font-size: .95rem; }
.targets { font-size: .72rem; color: var(--muted); white-space: nowrap; }

/* ---------- Listen ---------- */
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.list li { padding: 10px 12px; border-radius: 18px; background: var(--brand-50); }
.list .meta { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.badge {
  display: inline-block; border-radius: 999px; padding: 2px 10px;
  background: #fff; border: 1px solid var(--brand-100);
  font-size: .72rem; font-weight: 600; color: var(--brand-800);
}
.badge--accent { background: var(--accent); border-color: var(--accent); }
.badge--mint { background: var(--mint); border-color: var(--mint); }
.routine { display: flex; gap: 10px; align-items: flex-start; }
.routine input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--brand-700); flex-shrink: 0; }
.routine.done .routine-title { text-decoration: line-through; color: var(--muted); }
.routine-title { font-weight: 600; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 4px 12px; font-size: .88rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
details.role-block { border-top: 2px solid var(--brand-100); padding-top: 10px; margin-top: 10px; }
details.role-block:first-of-type { border-top: 0; margin-top: 0; padding-top: 0; }
details.role-block summary { cursor: pointer; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 8px; }
details.role-block summary::after { content: "+"; font-weight: 700; }
details.role-block[open] summary::after { content: "–"; }
details.role-block ul { margin: 8px 0 0; padding-left: 18px; font-size: .88rem; }

/* ---------- Formulare ---------- */
.select {
  width: 100%; border: 2px solid var(--brand-800); border-radius: 22px;
  padding: 10px 14px; background: #fff; color: var(--brand-800);
}
.select--dark { border-color: var(--brand-400); }
.select:focus { outline: 3px solid var(--brand-300); }
.btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 44px;
  border-radius: 999px; border: 1px solid var(--brand-400); background: var(--mint); color: var(--brand-800);
  padding: 10px 18px; font-size: .82rem; font-weight: 700; text-transform: uppercase; letter-spacing: .02em;
  box-shadow: var(--shadow-inset); cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--brand-300); }
.btn--secondary { background: var(--accent); border-color: var(--brand-800); }
.btn--secondary:hover { background: var(--brand-100); }
.icon-btn {
  width: 48px; height: 48px; border-radius: 18px; border: 2px solid var(--brand-800);
  background: #fff; color: var(--brand-800); font-size: 1.3rem; cursor: pointer;
}

/* ---------- Unternehmen ---------- */
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.value-card { border-radius: 22px; background: var(--brand-50); padding: 14px; border-left: 6px solid var(--mint); }
.value-card strong { display: block; margin-bottom: 4px; }
.progress { height: 10px; border-radius: 999px; background: var(--brand-100); overflow: hidden; }
.progress span { display: block; height: 100%; background: var(--brand-700); }
.okr + .okr { border-top: 2px solid var(--brand-100); margin-top: 14px; padding-top: 14px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid--main { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  .shell { flex-direction: column; padding: 12px 16px; gap: 16px; }
  .mobile-bar {
    display: flex; justify-content: space-between; align-items: center;
    border: 4px solid var(--brand-800); border-radius: 28px; padding: 10px 14px; background: #fff;
  }
  .mobile-bar img { height: 34px; }
  .sidebar { display: none; position: static; width: 100%; height: auto; border-radius: 30px; }
  .sidebar.open { display: flex; }
  .card { padding: 16px; border-radius: 24px; }
  /* Tabelle -> gestapelte Karten */
  table.kpi thead { display: none; }
  table.kpi, table.kpi tbody, table.kpi tr, table.kpi td { display: block; width: 100%; }
  table.kpi tr { border: 2px solid var(--brand-800); border-radius: 22px; padding: 10px; margin-bottom: 10px; background: #fff; }
  table.kpi tr:nth-child(even) td { background: transparent; }
  table.kpi td { border: 0; padding: 4px 2px; }
  table.kpi td.num { text-align: left; display: flex; justify-content: space-between; gap: 8px; }
  table.kpi td[data-label]::before { content: attr(data-label); margin-right: 8px; color: var(--muted); font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; }
  .cell-value { align-items: flex-end; }
}
.kpi-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 4px; }
.big .targets { white-space: normal; }

/* ---------- Status-Badges (Rocks/Ziele) ---------- */
.badge--warn { background: #f6e3b8; border-color: #f6e3b8; }
.badge--done { background: var(--brand-800); border-color: var(--brand-800); color: #fff; }

/* ---------- Unter-Navigation (Strategie, Rollen) ---------- */
a.chip { text-decoration: none; display: inline-block; }
.chip[aria-current="page"] { background: var(--mint); }
.chip--missing { border-style: dashed; color: var(--muted); }
.role-tabs { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Aktivität ---------- */
.activity { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.activity-tile { border-radius: 22px; background: var(--brand-50); padding: 14px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.counts { display: flex; gap: 14px; flex-wrap: wrap; }
.counts strong { font-size: 1.6rem; color: var(--brand-800); margin-right: 4px; }
.rhythm { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.rhythm li { display: grid; grid-template-columns: 1fr auto auto; gap: 4px 8px; align-items: center; font-size: .85rem; }
.rhythm .progress { grid-column: 1 / -1; height: 6px; }
.rhythm-title { font-weight: 600; }
.rhythm-count { font-weight: 700; color: var(--brand-800); white-space: nowrap; }

/* ---------- Quartals-Fokus ---------- */
.focus-head { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.focus-head > div { background: var(--brand-50); border-radius: 18px; padding: 10px 12px; }
.list .meta { display: inline-flex; }

/* ---------- Strategie ---------- */
.fields { display: flex; flex-direction: column; gap: 18px; margin-top: 8px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field-text { margin: 0; white-space: pre-line; }
.canvas { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.canvas-tile {
  display: block; text-decoration: none; color: inherit;
  border: 2px solid var(--brand-800); border-radius: 22px; padding: 14px; background: #fff;
  transition: background .15s;
}
.canvas-tile:hover { background: var(--brand-300); }
.mini { margin: 6px 0 0; padding-left: 18px; font-size: .85rem; }
.input {
  width: 100%; border: 2px solid var(--brand-800); border-radius: 18px;
  padding: 10px 12px; background: #fff; color: var(--ink); font: inherit;
}
textarea.input { border-radius: 22px; resize: vertical; }
.input:focus { outline: 3px solid var(--brand-300); }
.edit-table { display: flex; flex-direction: column; gap: 8px; }
.edit-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)) 40px; gap: 6px; align-items: center; }
.edit-row .input { padding: 8px 10px; }
.icon-btn--small { width: 40px; height: 40px; border-radius: 14px; font-size: 1.1rem; }
.btn--ghost { background: transparent; border-color: transparent; box-shadow: none; align-self: flex-start; }
.btn--ghost:hover { background: var(--brand-50); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.form-error { color: var(--st-below); font-weight: 600; margin: 0; }
.edit-form { display: flex; flex-direction: column; gap: 16px; }

/* ---------- Rollenprofile ---------- */
.role-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.role-card {
  display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit;
  border: 2px solid var(--brand-800); border-radius: 22px; padding: 14px; background: #fff;
}
.role-card:hover { background: var(--brand-300); }
.role-card--missing { border-style: dashed; color: var(--muted); background: var(--brand-50); }
.most-important { background: var(--brand-800); color: #fff; }
.most-important .eyebrow { color: rgba(255,255,255,.7); }
.big-text { font-size: 1.6rem; font-weight: 700; margin: 6px 0 0; }
.grid--two { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* ---------- Setcards je Funktion ---------- */
.setcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.setcard {
  border: 4px solid var(--brand-800); border-radius: 26px; overflow: hidden; background: #fff;
  display: flex; flex-direction: column;
}
.setcard-head { background: var(--brand-800); color: #fff; padding: 14px 16px 12px; border-bottom: 6px solid var(--status, var(--accent)); }
.setcard-head h3 { font-size: 1.5rem; }
.setcard-sub { margin: 2px 0 0; font-size: .82rem; color: rgba(255,255,255,.8); }
.setcard-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.setcard-hero { background: var(--brand-50); border-radius: 18px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.setcard-hero .label { font-weight: 600; }
.setcard-hero .value { font-size: 2rem; font-weight: 700; color: var(--brand-800); line-height: 1; }
.hero-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.setcard-kpis { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.setcard-kpis li {
  display: grid; grid-template-columns: 1fr auto auto; gap: 8px; align-items: center;
  padding: 6px 0; border-bottom: 1px solid var(--brand-100); font-size: .84rem;
}
.setcard-kpis li:last-child { border-bottom: 0; }
.kpi-label { min-width: 0; }
.kpi-val { font-weight: 700; white-space: nowrap; color: var(--brand-800); }
.setcard-kpis .status::before { margin: 0; }
.dots { display: inline-flex; gap: 3px; }
.dot { width: 10px; height: 10px; border-radius: 50%; background: var(--status, var(--st-none)); }
.status-bar { display: flex; width: 100%; height: 8px; border-radius: 999px; overflow: hidden; gap: 2px; background: var(--brand-100); }
.status-bar span { background: var(--status); }
.setcard-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.btn--small { min-height: 36px; padding: 6px 14px; font-size: .75rem; }
.setcard-hero .targets { white-space: normal; }

/* ---------- Rocks & Aktivität (volle Breite) ---------- */
.rhythm { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px 16px; }
.rhythm li { align-content: start; }
.okr-teaser { margin-top: 14px; background: var(--brand-50); border-radius: 18px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.rhythm li { grid-template-columns: 1fr auto; }
.rhythm .rhythm-title { grid-column: 1 / -1; }
.rhythm .badge { justify-self: start; }

/* ---------- Rock-Archiv & Verlauf ---------- */
.quarter { margin-top: 10px; }
.quarter-title { font-weight: 700; margin: 0 0 6px; cursor: default; }
details.quarter--past > summary { cursor: pointer; list-style: none; }
details.quarter--past > summary::before { content: "▸ "; color: var(--muted); }
details.quarter--past[open] > summary::before { content: "▾ "; }
.canvas-row { margin: 16px 0 8px; }
.canvas-row:first-of-type { margin-top: 0; }
.list li.mine { border-left: 6px solid var(--accent); }

/* ---------- Schwärzung (ohne Login) ---------- */
.main-body { display: flex; flex-direction: column; gap: 24px; min-width: 0; outline: none; }
.redaction-note {
  margin: 0; padding: 10px 16px; border-radius: 22px;
  background: var(--brand-800); color: #fff; font-size: .85rem;
}

/* ================= Unternehmensstrategie ================= */
.field-label { margin: 0 0 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 700; color: var(--brand-700); }
.fields--grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 28px; margin-top: 14px; }
.fields--grid .field--wide { grid-column: 1 / -1; }
.fields--columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 14px; }
.fields--columns .field { border-radius: 22px; padding: 16px; background: var(--brand-50); border-top: 6px solid var(--steel); }
.fields--columns .field:nth-child(1) { border-top-color: var(--mint); }
.fields--columns .field:nth-child(2) { border-top-color: var(--accent); }

.quote {
  margin: 0; padding: 12px 18px; border-left: 6px solid var(--mint);
  background: var(--brand-50); border-radius: 0 18px 18px 0; font-size: 1.02rem; line-height: 1.5;
}
.quote--big { font-size: 1.3rem; font-weight: 600; color: var(--brand-800); border-left-color: var(--accent); line-height: 1.35; }

.nice-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.nice-list li { position: relative; padding: 6px 10px 6px 26px; border-radius: 14px; background: var(--brand-50); font-size: .92rem; }
.nice-list li::before { content: ""; position: absolute; left: 10px; top: 13px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-600); }
.nice-list li.muted { background: none; }
.nice-list li.muted::before { display: none; }
.num-list { margin: 0; padding: 0; list-style: none; counter-reset: n; display: flex; flex-direction: column; gap: 6px; }
.num-list li { counter-increment: n; display: flex; gap: 10px; align-items: baseline; font-size: .92rem; }
.num-list li::before { content: counter(n); flex-shrink: 0; width: 22px; height: 22px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--brand-800); color: #fff; font-size: .72rem; font-weight: 700; }

.pill-list { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { border: 2px solid var(--brand-800); border-radius: 999px; padding: 5px 14px; font-size: .85rem; font-weight: 600; background: #fff; }

.value-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.value-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 16px 16px 14px; border-radius: 22px; background: var(--brand-800); color: #fff; overflow: hidden; }
.value-tile strong { font-size: 1.1rem; }
.value-tile .small { color: rgba(255,255,255,.82); }
.value-num { position: absolute; right: 12px; top: 2px; font-size: 3rem; font-weight: 700; color: rgba(180,221,222,.25); line-height: 1; }

.group-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.group-card { border: 2px solid var(--brand-800); border-radius: 22px; padding: 14px; background: #fff; }

.item-cards { display: flex; flex-direction: column; gap: 10px; }
.item-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start;
  border: 2px solid var(--brand-800); border-left: 8px solid var(--status, var(--st-none)); border-radius: 20px;
  padding: 12px 14px; background: #fff;
}
.item-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-50); font-weight: 700; color: var(--brand-800); }
.item-body strong { display: block; }
.item-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin: 4px 0 0; font-size: .82rem; }
.item-meta div { display: flex; gap: 4px; }
.item-meta dt { color: var(--muted); }
.item-meta dt::after { content: ":"; }
.item-meta dd { margin: 0; }

.timeline { position: relative; padding-left: 22px; border-left: 3px solid var(--brand-100); margin-left: 6px; display: flex; flex-direction: column; gap: 16px; }
.timeline .quarter { margin: 0; }
.timeline-dot { position: absolute; left: -31px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--steel); border: 3px solid var(--canvas); }
.quarter-title { position: relative; }
.quarter--now .timeline-dot { background: var(--mint); box-shadow: 0 0 0 3px var(--brand-800); }
details.quarter--past > summary::before { content: none; }
details.quarter--past > summary::after { content: " ▸"; color: var(--muted); }
details.quarter--past[open] > summary::after { content: " ▾"; }
details.quarter--past[open] > summary { margin-bottom: 8px; }

/* Überblick: Growth Canvas */
.canvas-identity {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 24px;
  background: var(--brand-800); color: #fff; border-radius: 30px; padding: 26px 28px; box-shadow: var(--shadow-card);
}
.identity-purpose { font-size: clamp(1.3rem, 2.4vw, 1.8rem); font-weight: 700; line-height: 1.25; margin: 6px 0 16px; }
.identity-values { display: flex; flex-wrap: wrap; gap: 8px; }
.value-pill { border-radius: 999px; padding: 6px 14px; background: var(--mint); color: var(--brand-800); font-weight: 700; font-size: .85rem; cursor: help; }
.identity-side { border-left: 1px solid rgba(255,255,255,.2); padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.identity-list { margin: 0; padding-left: 18px; font-size: .9rem; display: flex; flex-direction: column; gap: 4px; }
.identity-side .more-link { color: var(--mint); }
.more-link { font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-700); text-decoration: none; align-self: flex-start; }
.more-link:hover { text-decoration: underline; }
.bhag-banner {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(200px, 1fr); gap: 24px; align-items: center;
  background: var(--accent); border: 4px solid var(--brand-800); border-radius: 30px; padding: 22px 26px;
}
.bhag-text { font-size: clamp(1.15rem, 2vw, 1.5rem); font-weight: 700; color: var(--brand-800); margin: 6px 0 0; line-height: 1.3; }
.bhag-motto { background: #fff; border-radius: 22px; padding: 14px 16px; }
.bhag-motto p:last-child { margin: 4px 0 0; font-weight: 600; font-style: italic; }
.exec-chain { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.exec-step { position: relative; display: flex; flex-direction: column; gap: 10px; background: var(--brand-50); border-radius: 22px; padding: 16px; }
.exec-step + .exec-step::before {
  content: "→"; position: absolute; left: -24px; top: 50%; transform: translateY(-50%);
  font-size: 1.4rem; font-weight: 700; color: var(--brand-600);
}
.exec-step h3 { font-size: 1.1rem; }
.exec-q { margin: 0; font-size: .72rem; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 600; }
.exec-vision { margin: 0; color: var(--brand-700); }
.strategy-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 16px; }
.strategy-cell { border-top: 4px solid var(--brand-800); padding-top: 10px; }
.swt-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.swt-col { border-radius: 22px; padding: 14px; background: var(--brand-50); border-top: 6px solid var(--steel); }
.swt--s { border-top-color: var(--mint); }
.swt--w { border-top-color: var(--accent); }

@media (max-width: 900px) {
  .fields--grid, .canvas-identity, .bhag-banner, .exec-chain, .swt-grid { grid-template-columns: 1fr; }
  .identity-side { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.2); padding-top: 14px; }
  .exec-step + .exec-step::before { content: "↓"; left: 50%; top: -22px; transform: translateX(-50%); }
}

/* ================= Rollenprofile ================= */
.role-group { display: flex; flex-direction: column; gap: 12px; }
.role-group-head { display: flex; align-items: baseline; gap: 12px; border-bottom: 3px solid var(--brand-800); padding-bottom: 6px; }
.role-group-head h2 { font-size: 1.35rem; }
.role-grid2 { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.role-card2 {
  display: flex; flex-direction: column; text-decoration: none; color: inherit; overflow: hidden;
  border: 4px solid var(--brand-800); border-radius: 26px; background: #fff; box-shadow: var(--shadow-card);
  transition: transform .15s, box-shadow .15s;
}
.role-card2:hover { transform: translateY(-3px); box-shadow: 0 24px 60px rgba(25,41,70,.2); }
.role-card2-head { background: var(--brand-800); color: #fff; padding: 14px 16px 12px; border-bottom: 6px solid var(--mint); display: flex; flex-direction: column; gap: 2px; }
.role-code { font-size: 1.5rem; font-weight: 700; line-height: 1.1; }
.role-title { font-size: .82rem; color: rgba(255,255,255,.8); }
.role-card2-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.role-mi { background: var(--brand-50); border-radius: 16px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.role-stats { display: flex; gap: 14px; flex-wrap: wrap; font-size: .8rem; color: var(--muted); }
.role-stats strong { color: var(--brand-800); font-size: 1.05rem; }
.role-holders { display: flex; flex-wrap: wrap; gap: 6px; }
.role-card2 .more-link { margin-top: auto; }
.role-card2--missing { border-style: dashed; box-shadow: none; background: var(--brand-50); }
.role-card2--missing .role-card2-head { background: var(--brand-600); border-bottom-color: var(--steel); }

.role-hero {
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 24px; align-items: start;
  background: var(--brand-800); color: #fff; border-radius: 30px; padding: 26px 28px; box-shadow: var(--shadow-card);
}
.role-hero-code { font-size: clamp(2rem, 4vw, 2.8rem); margin-top: 4px; }
.role-hero-title { margin: 4px 0 0; font-size: 1.05rem; color: var(--mint); font-weight: 600; }
.role-hero-objective { margin: 6px 0 0; line-height: 1.55; color: rgba(255,255,255,.9); }
.role-hero-mi { background: var(--accent); color: var(--brand-800); border-radius: 24px; padding: 18px; }
.role-hero-mi-text { font-size: 1.35rem; font-weight: 700; margin: 6px 0 0; line-height: 1.25; }

.org-line { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.org-box { width: min(100%, 460px); text-align: center; border: 2px solid var(--brand-800); border-radius: 18px; padding: 10px 14px; background: #fff; }
.org-box--self { background: var(--brand-800); color: #fff; }
.org-arrow { font-size: 1.2rem; color: var(--brand-600); font-weight: 700; }

.kpi-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.kpi-card { border: 2px solid var(--brand-800); border-radius: 22px; padding: 14px 16px; background: #fff; display: flex; flex-direction: column; gap: 10px; }
.kpi-card h3 { font-size: 1.02rem; }
.corridor { display: flex; flex-direction: column; gap: 6px; }
.corridor-bar { display: grid; grid-template-columns: 1fr 1fr 1fr 1fr; height: 12px; border-radius: 999px; overflow: hidden; gap: 2px; }
.corridor-bar span { background: var(--status); }
.corridor-marks { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 0 12.5%; text-align: center; font-size: .72rem; color: var(--muted); }
.corridor-marks strong { display: block; color: var(--brand-800); font-size: .85rem; }
.corridor-dir { font-size: .7rem; color: var(--muted); text-align: right; }

@media (max-width: 900px) {
  .role-hero { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .item-card { grid-template-columns: auto minmax(0, 1fr); }
  .item-card > .badge { grid-column: 2; justify-self: start; }
}

/* ---------- Behandlerprofil-Link ---------- */
.profile-link {
  display: inline-flex; align-items: center; gap: 6px; align-self: stretch; justify-content: center;
  border: 2px solid var(--brand-800); border-radius: 999px; padding: 6px 12px;
  font-size: .78rem; font-weight: 700; color: var(--brand-800); background: var(--mint); text-decoration: none;
}
a.profile-link:hover { background: var(--brand-300); }
.profile-link--missing { background: var(--brand-50); border-style: dashed; color: var(--muted); font-weight: 600; text-align: center; }


/* ---------- Widgets (Apps aus dem 4smile Portal) ---------- */
.widgets { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); grid-auto-rows: minmax(170px, auto); grid-auto-flow: dense; gap: 14px; }
.widget {
  --w-bg: var(--steel); --w-fg: var(--brand-800); --w-sub: rgba(25,41,70,.7); --w-row: rgba(255,255,255,.55);
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 14px 16px 16px;
  border-radius: 26px; background: var(--w-bg); color: var(--w-fg); text-decoration: none;
  box-shadow: 0 10px 30px rgba(25,41,70,.12); transition: transform .15s, box-shadow .15s; min-width: 0;
}
a.widget:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(25,41,70,.2); }
.widget--m { grid-column: span 2; }
.tone-steel      { --w-bg: #b5c4db; }
.tone-mint       { --w-bg: #b4ddde; }
.tone-mint-light { --w-bg: #d8ecec; }
.tone-rose       { --w-bg: #f2dfdc; }
.tone-white      { --w-bg: #fff; border: 2px solid var(--brand-100); }
.tone-steel-dark, .tone-navy, .tone-navy-dark { --w-fg: #fff; --w-sub: rgba(255,255,255,.75); --w-row: rgba(255,255,255,.12); }
.tone-steel-dark { --w-bg: #627596; }
.tone-navy       { --w-bg: #2d4267; }
.tone-navy-dark  { --w-bg: #192946; }
.w-head { display: flex; align-items: center; gap: 8px; }
.w-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--w-row); flex-shrink: 0; }
.w-icon .icon { width: 18px; height: 18px; }
.w-name { font-weight: 700; font-size: .85rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-tag { margin-left: auto; font-size: .6rem; text-transform: uppercase; letter-spacing: .14em; color: var(--w-sub); white-space: nowrap; }
.w-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.w-stat { display: flex; flex-direction: column; gap: 2px; }
.w-num { font-size: 2.1rem; font-weight: 700; line-height: 1; letter-spacing: -.01em; }
.widget--s .w-num { font-size: 2.3rem; }
.w-label { font-size: .82rem; font-weight: 600; }
.w-sub { font-size: .74rem; color: var(--w-sub); }
.w-rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.w-rows li { display: flex; align-items: center; gap: 8px; padding: 5px 10px; border-radius: 12px; background: var(--w-row); font-size: .8rem; min-width: 0; }
.w-rows li > span:first-child { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-val { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; white-space: nowrap; }
.w-muted { color: var(--w-sub); font-weight: 500; }
.w-project { flex-wrap: wrap; }
.w-bar { flex-basis: 100%; height: 5px; border-radius: 999px; background: rgba(25,41,70,.15); overflow: hidden; }
.w-bar span { display: block; height: 100%; background: var(--brand-800); }
.w-points { display: flex; gap: 22px; flex-wrap: wrap; align-items: flex-end; }
.w-points .w-stat:first-child .w-num { color: var(--mint); font-size: 2.6rem; }
.w-points .w-stat:not(:first-child) .w-num { font-size: 1.4rem; }
.w-chip { align-self: flex-start; border-radius: 999px; padding: 3px 10px; background: var(--accent); color: var(--brand-800); font-size: .72rem; font-weight: 700; }
.w-missing { margin-top: auto; font-size: .66rem; text-transform: uppercase; letter-spacing: .12em; color: var(--w-sub); }
.widget .dot { flex-shrink: 0; }
@media (max-width: 420px) { .widgets { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.w-num--text, .widget--s .w-num--text { font-size: 1.3rem; line-height: 1.15; overflow-wrap: anywhere; }
.widget { overflow: hidden; }
