/* NEONEX Process Design Studio – Stylesheet.
 * App-Shell, Seitenleistengruppen, Seitenkopf (Hero) und Topbar folgen Process Studio und dem
 * NEONEX_SHARED_DESIGN_STANDARD.md; die Shell-Maße liefert die zuletzt geladene neonex-shared-shell.css.
 * Statuswerte tragen immer auch Text, Farbe allein ist keine Bedeutung (WEB_DESIGN_STANDARD.md). */
:root {
  --sidebar: 268px; --topbar: 78px;
  --navy: #17396f; --navy2: #203f73; --coral: #ec6b58; --ink: #162f59; --muted: #67778b;
  --line: #d5dde7; --soft: #f2f5f8; --white: #fff; --green: #27765f; --amber: #a96d13; --red: #b64b4b;
  --shadow: 0 10px 28px rgba(22, 47, 89, .07);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; max-width: 100%; overflow-x: clip; color: var(--ink); background: #f4f6f8; font-size: 16px; font-family: "soleil", "Avenir Next", Avenir, "Segoe UI", Arial, sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); background: #18345f; color: #fff; z-index: 20; display: flex; flex-direction: column; }
.sidebar nav { display: grid; overflow-y: auto; align-content: start; scrollbar-width: thin; scrollbar-color: #62799a transparent; }
.sidebar-foot { margin-top: auto; border-top: 1px solid #31507b; padding: 20px; display: grid; gap: 4px; }
.sidebar-foot img { display: block; width: 150px; height: auto; margin-bottom: 8px; }
.sidebar-foot strong { font-size: 14px; }
.sidebar-foot small { color: #aebdd0; }
.sidebar-nav-group { margin-top: 8px; border-top: 1px solid rgba(255, 255, 255, .18); background: #142d53; }
.sidebar-nav-group > .sidebar-group-toggle { min-height: 52px; padding: 8px 15px; font-size: 17px; font-weight: 800; background: #102849; border-left-color: transparent; }
.sidebar-nav-group > .sidebar-group-toggle:hover { background: #213f6b; }
.sidebar-nav-group.route-active > .sidebar-group-toggle { background: #213f6b; border-left-color: var(--coral); }
.sidebar-nav-group > .sidebar-group-toggle .nav-icon { display: grid; place-items: center; width: 27px; height: 27px; flex: 0 0 27px; border: 1px solid rgba(236, 107, 88, .8); color: #fff; font-size: 12px; letter-spacing: .04em; }
.sidebar-nav-group > .sidebar-group-toggle .nav-label { color: #fff; font-size: 17px; line-height: 1.1; }
.sidebar-group-toggle .sidebar-caret { margin-left: auto; color: #aebdd0 !important; font-size: 12px; transition: transform .18s ease; }
.sidebar-nav-group.collapsed .sidebar-caret { transform: rotate(-90deg); }
.sidebar-nav-group.collapsed .sidebar-subnav { display: none; }
.sidebar-subnav { position: relative; padding: 5px 7px 7px 43px; background: #1b3762; }
.sidebar-subnav::before { content: ""; position: absolute; left: 31px; top: 0; bottom: 8px; width: 1px; background: rgba(236, 107, 88, .7); }
.sidebar-subnav button { position: relative; width: 100%; min-height: 35px !important; padding: 6px 10px !important; gap: 0 !important; font-size: 13px !important; border: 0 !important; border-radius: 2px; color: #cbd6e4 !important; }
.sidebar-subnav button:hover { background: rgba(255, 255, 255, .06) !important; color: #fff !important; }
.sidebar-subnav button.active { background: #fff !important; color: var(--navy) !important; font-weight: 800; box-shadow: inset 4px 0 0 var(--coral); }
.sidebar-subnav button.active::before { content: ""; position: absolute; left: -16px; width: 7px; height: 7px; background: var(--coral); transform: rotate(45deg); }
.sidebar-subnav .nav-label { color: inherit !important; font-weight: 600 !important; line-height: 1.18; }
.sidebar-subnav button.active .nav-label { font-weight: 800 !important; }
.topbar { position: sticky; top: 0; z-index: 15; display: flex; align-items: center; }
.project-nav { display: flex; flex: 0 1 auto; align-self: stretch; min-width: 0; overflow-x: auto; scrollbar-width: thin; }
.project-nav[hidden] { display: none; }
.project-nav button { flex: 0 0 auto; border: 0; border-bottom: 4px solid transparent; background: none; padding: 0 13px; color: var(--ink); font-size: 12px; font-weight: 700; white-space: nowrap; }
.project-nav button:hover { background: #f0f4f8; }
.project-nav button.active { border-bottom-color: var(--coral); color: var(--navy); font-weight: 800; }
.topbar-spacer { flex: 1 1 0; min-width: 0; }
@media (max-width: 1699px) { .topbar.has-project-nav .project-badge { display: none; } }
.global-history { display: flex; align-items: center; flex: 0 0 auto; gap: 0; border: 1px solid #b9c5d4; background: #fff; }
.global-undo { flex: 0 0 auto; height: 36px; min-height: 36px; padding: 0 11px; border: 0; border-right: 1px solid #dce4ee; background: #fff; color: #263451; font-size: 10px; font-weight: 700; white-space: nowrap; }
.global-history .global-undo:last-child { border-right: 0; }
.global-undo:hover:not(:disabled) { background: #fff7f4; }
.global-undo:disabled { opacity: .42; cursor: default; }
.save-status { padding: 7px 10px; border-left: 3px solid #5b8a70; background: #edf4ef; color: #315f48; font-size: 11px; font-weight: 800; white-space: nowrap; }
.project-badge { border-left: 3px solid var(--coral); padding: 7px 12px; display: grid; gap: 3px; background: #f5f7fa; min-width: 220px; max-width: 280px; }
.project-badge span { font-size: 9px; letter-spacing: .12em; color: var(--muted); font-weight: 800; }
.project-badge strong { font-size: 12px; line-height: 1.2; overflow-wrap: anywhere; }
.view { display: none; }
.view.active { display: block; }
.hero { position: sticky; z-index: 14; background: var(--navy2); color: #fff; padding: 24px 34px; display: flex; justify-content: space-between; align-items: center; box-shadow: 0 4px 10px #102d5824; }
.hero .eyebrow, .panel-label { display: block; font-size: 10px; font-weight: 800; letter-spacing: .18em; text-transform: uppercase; color: #8293aa; }
.hero .eyebrow { color: #aebdd0; }
.hero h1 { margin: 5px 0 3px; font-size: 30px; line-height: 1.1; }
.hero h1 em { font-style: normal; color: var(--coral); }
.hero p { margin: 0; color: #d8e0eb; max-width: 900px; }
.content { padding: 22px 28px 44px; min-width: 0; }
.content-grid { display: grid; gap: 18px; margin-bottom: 18px; }
.panel { min-width: 0; margin-bottom: 18px; padding: 24px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); }
.content-grid > .panel { margin-bottom: 0; }
.panel-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.panel h2 { margin: 6px 0 10px; font-size: 22px; line-height: 1.15; }
.panel h3 { margin: 6px 0 8px; }
.panel p { color: var(--muted); line-height: 1.5; }
.panel-intro { max-width: 900px; margin-top: -4px; margin-bottom: 18px; }
.capability-matrix-panel .panel-intro { margin: 8px 0 0; font-size: 13px; }
.capability-detail-panel .panel-header { margin-bottom: 14px; }
@media (max-width: 1550px) {
  .capability-matrix-panel .family-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1150px) {
  .capability-layout { grid-template-columns: 1fr; }
  .capability-detail-panel { position: static; max-height: none; }
  .capability-matrix-panel .family-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .capability-matrix-panel .panel-header { display: grid; }
  .capability-kpis { width: max-content; }
  .capability-matrix-panel .family-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  /* Schmale Fenster: Unterseiten der Seitenleiste als durchgehende Leiste, damit alle Seiten erreichbar bleiben. */
  .sidebar-nav-group { display: flex; align-items: stretch; margin: 0; border: 0; background: none; }
  .sidebar-nav-group > .sidebar-group-toggle { display: none; }
  .sidebar-nav-group .sidebar-subnav, .sidebar-nav-group.collapsed .sidebar-subnav { display: flex !important; padding: 0; background: none; }
  .sidebar-subnav::before, .sidebar-subnav button.active::before { display: none; }
  .sidebar-subnav button { width: auto; min-width: 0; min-height: 56px !important; padding: 8px 14px !important; white-space: nowrap; border-radius: 0; }
  .sidebar-subnav button.active { box-shadow: inset 0 -4px 0 var(--coral); }
  .hero { flex-direction: column; align-items: flex-start; padding: 20px 18px; }
  .hero h1 { font-size: 26px; }
  .content { padding: 18px 14px 40px; }
  .two-column { grid-template-columns: 1fr; }
  .roadmap-summary { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .panel { padding: 18px; }
  .project-card-foot { flex-direction: column; align-items: flex-start; }
  .detail-list > div { grid-template-columns: 1fr; gap: 4px; }
  .task-list li { flex-direction: column; align-items: flex-start; gap: 6px; }
  .project-badge { min-width: 0; }
}
:root { --s1: #b64b4b; --s2: #d9822b; --s3: #8c9a2a; --s4: #27765f; }
@media (max-width: 1100px) {
  .rs-row { grid-template-columns: 1fr; gap: 6px; }
  .rs-row.rs-head { display: none; }
  .rs-cell[data-label]::before { content: attr(data-label); display: block; color: var(--muted); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 2px; }
  .rs-cell.rs-title::before { display: none; }
}
.rs-summary .panel-header { align-items: center; margin-bottom: 14px; }
@container (max-width: 860px) {
  .zb-grid { grid-template-columns: 1fr 1fr; }
  .zb-center { grid-column: 1 / -1; grid-row: 2; }
  .zb-cells { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@container (max-width: 560px) { .zb-grid { grid-template-columns: 1fr; } .zb-cells { grid-template-columns: 1fr; } }
:root {
  --s1: #9f6c6c; --s2: #b58a58; --s3: #84905b; --s4: #5f8774;
  --bp-muted-blue: #71809a; --bp-muted-coral: #b8847b; --bp-muted-violet: #8b82a8;
  --bp-muted-teal: #6f958d; --bp-muted-olive: #9a925b; --bp-muted-slate: #7c8da5;
  --bp-muted-rose: #a77c91; --bp-muted-green: #6f917d;
}
.frame-summary-grid > .panel { margin-bottom: 0; }
.reference-graphic .panel-header { margin-bottom: 12px; }
.reference-graphic .panel-intro { max-width: 980px; margin-bottom: 0; }
.rs-theme-metrics > * { grid-column: auto !important; }
@media (max-width: 900px) {
  .frame-summary-grid { grid-template-columns: 1fr; }
  .landscape-canvas { grid-template-columns: 1fr; }
  .landscape-flow { grid-column: auto; }
  .target-canvas { grid-template-columns: 1fr; }
  .target-core, .target-flow { grid-column: auto; }
  .target-layers { grid-template-columns: 1fr; }
  .capability-layout { grid-template-columns: 1fr; }
  .capability-detail-panel { position: static; max-height: none; }
  .capability-group { grid-template-columns: 1fr; }
  .capability-group-head { min-height: auto; border-right: 0; border-bottom: 1px solid #d8e0e7; }
  .capability-group-items { grid-column: 1; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
  .rs-theme-metrics { grid-template-columns: 38px minmax(120px, 1fr) 55px minmax(105px, 1fr); }
}
.topbar .language-control { display: block; flex: 0 0 58px; margin: 0 10px 0 0; }
.topbar .language-control select { width: 58px; height: 36px; min-height: 36px; padding: 0 22px 0 9px; border: 1px solid #b9c5d4; background-color: #fff; color: var(--navy); font: 700 12px inherit; font-family: inherit; }
.hero.hero-compact { padding: 12px 34px; }
.hero.hero-compact h1 { margin: 2px 0 0; font-size: 24px; }
.content:has(.frame-compact) { padding: 14px 28px 12px; }
.graphic-dialog-bar button { min-width: 36px; height: 34px; border: 1px solid #ffffff55; background: transparent; color: #fff; font-size: 16px; cursor: pointer; }
.graphic-dialog-bar button:hover { background: #ffffff22; }
.cp-crumbs button { border: 0; background: none; padding: 2px 4px; color: var(--navy); font-weight: 700; cursor: pointer; text-decoration: underline; }
.cp-crumbs button.is-current { text-decoration: none; color: var(--ink); cursor: default; }
@media (max-width: 1400px) { .cp-row { grid-template-columns: minmax(180px, 1fr) minmax(180px, 1.2fr) minmax(180px, 1.2fr) 100px 100px 64px 92px; } .cp-spider { grid-template-columns: 1fr; } .cp-spider-panel { position: static; } }
.rm-beyond-list button, .rm-link { padding: 2px 0; border: 0; background: none; color: var(--navy); font: inherit; font-size: 13px; font-weight: 600; text-align: left; cursor: pointer; text-decoration: underline; }
/* --- Prozessbaum (Referenz) --- */
.pds-toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-bottom: 14px; }
.pds-badge { display: inline-block; padding: 3px 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
.pds-badge.draft { background: #fff4e0; border-color: #e8c98a; color: var(--amber); }
.pds-badge.published { background: #e6f3ee; border-color: #a9d2c3; color: var(--green); }
.pds-crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 16px; padding: 0; list-style: none; font-size: 14px; }
.pds-crumbs li + li::before { content: "›"; margin-right: 6px; color: var(--muted); }
.pds-crumbs button, .pds-card { font: inherit; }
.pds-crumbs button { background: none; border: 0; padding: 2px 0; color: var(--navy); text-decoration: underline; }
.pds-crumbs [aria-current] { font-weight: 800; }
.pds-group { margin: 22px 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pds-card { display: grid; gap: 6px; width: 100%; min-height: 96px; padding: 14px 16px; text-align: left; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--navy); box-shadow: var(--shadow); }
.pds-card:hover, .pds-card:focus-visible { border-left-color: var(--coral); outline: none; }
.pds-card strong { font-size: 16px; }
.pds-card small { color: var(--muted); }
.pds-code { font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); }
.pds-note { margin: 0 0 14px; padding: 10px 14px; background: var(--soft); border-left: 4px solid var(--coral); }
.pds-error { margin: 0 0 14px; padding: 10px 14px; background: #fbeaea; border-left: 4px solid var(--red); color: var(--red); }
.pds-empty { color: var(--muted); }
.pds-h { margin: 0 0 8px; font-size: 18px; }
.pds-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; }
.pds-sub { color: var(--muted); font-size: 14px; }
.pds-line { margin: 0 0 6px; }
.pds-detail { margin-top: 14px; }
.pds-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 16px; align-items: start; margin-top: 6px; }
.pds-layout.single { grid-template-columns: minmax(0, 1fr); }
.pds-mini { background: #fff; border: 1px solid var(--line); padding: 8px; display: grid; gap: 2px; }
.pds-mini button { display: flex; gap: 8px; align-items: center; width: 100%; padding: 7px 8px; border: 0; background: none; text-align: left; font-size: 14px; }
.pds-mini button.on { background: #fdeceb; font-weight: 800; }
.pds-mini i { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-style: normal; font-size: 12px; }
.pds-tabs { display: flex; flex-wrap: wrap; gap: 2px; border-bottom: 2px solid var(--line); margin-bottom: 14px; }
.pds-tabs button { font-size: 14px; padding: 9px 8px; border: 0; background: none; font-weight: 700; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.pds-tabs button.on { color: var(--navy); border-bottom-color: var(--coral); }
.pds-count { display: inline-block; margin-left: 4px; padding: 0 7px; font-size: 12px; background: var(--soft); border: 1px solid var(--line); color: var(--ink); }
.pds-nav-btn { padding: 8px 14px; border: 1px solid var(--line); background: #fff; font-weight: 700; color: var(--navy); }
.pds-nav-btn:disabled { color: var(--muted); background: var(--soft); }
.pds-detail .panel { margin-bottom: 12px; padding: 14px 18px; }
.pds-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; }
.pds-head .pds-crumbs { margin: 0; }
.pds-head .pds-toolbar { margin: 0; }
.pds-meta { margin: 0 0 8px; font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .pds-layout { grid-template-columns: minmax(0, 1fr); } }
.pj-form { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }
.pj-form input[type=text] { min-width: 260px; }
.pj-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0 12px; }
.pj-check { display: inline-flex; align-items: center; gap: 4px; }
.pj-status { font-size: 13px; color: var(--green); font-weight: 700; margin-left: auto; }
.pj-status.err { color: var(--red); }
.pj-treewrap { max-height: 70vh; overflow: auto; }
.pj-tree { list-style: none; margin: 0; padding-left: 0; }
.pj-tree .pj-tree { padding-left: 14px; border-left: 1px solid var(--line); margin-left: 10px; }
.pj-tree button { width: 100%; text-align: left; padding: 6px 8px; border: 0; background: none; font-size: 14px; }
.pj-tree button.on { background: #fdeceb; font-weight: 800; }
.pj-sum { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 10px; }
.pj-sum div { background: #fff; border: 1px solid var(--line); padding: 6px 14px; min-width: 130px; }
.pj-sum b { display: block; font-size: 22px; }
.pj-scroll { overflow-x: auto; border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); }
.pj-matrix { border-collapse: collapse; table-layout: fixed; width: 100%; min-width: calc(120px + var(--cols, 2) * 280px); font-size: 13px; }
.pj-matrix th, .pj-matrix td { border: 1px solid var(--line); padding: 7px 9px; vertical-align: top; text-align: left; }
.pj-matrix th.col { background: #e8eef6; }
.pj-matrix th.rowh { background: var(--navy); color: #fff; width: 120px; position: sticky; left: 0; z-index: 1; }
.pj-matrix td.ist { background: #fffaf0; }
.pj-matrix td.mass { background: #f3f8f5; }
.pj-matrix td.ist select, .pj-matrix td.ist input[type=number], .pj-matrix td.ist input[type=text], .pj-matrix td.ist textarea { width: 100%; margin: 2px 0; padding: 5px 7px; border: 1px solid var(--line); background: #fff; }
.pj-matrix td.devi-yes { background: #fdeceb; }
.pj-matrix td.devi-partial { background: #fff4e0; }
.pj-matrix td.devi-none { background: #e6f3ee; }
.chips { display: flex; flex-wrap: wrap; gap: 4px; }
.chips label { border: 1px solid var(--line); padding: 2px 7px; background: #fff; font-size: 12px; }
.pj-measures { list-style: none; margin: 6px 0; padding: 0; display: grid; gap: 4px; }
.pj-measures li { display: flex; gap: 6px; align-items: center; }
.pj-measures li span { flex: 1; }
.pj-x { border: 1px solid var(--line); background: #fff; width: 26px; height: 26px; }
.pj-own { display: flex; gap: 6px; margin-top: 6px; }
.pj-own input { flex: 1; min-width: 0; padding: 5px 7px; border: 1px solid var(--line); }
.ed-i18n { display: grid; gap: 4px; }
.ed-lang { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 6px; align-items: center; font-size: 12px; font-weight: 800; color: var(--muted); }
.ed-lang input, .ed-lang textarea, .ed-row input[type=text], .ed-row select, .ed-inline input[type=text], .ed-inline select { padding: 5px 7px; border: 1px solid var(--line); background: #fff; font: inherit; }
.ed-lang textarea { resize: vertical; }
.ed-field { margin: 0 0 10px; }
.ed-label { display: block; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--muted); margin-bottom: 3px; }
.ed-inline { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.ed-check { display: inline-flex; gap: 4px; align-items: center; font-size: 14px; }
.ed-row { display: flex; gap: 8px; align-items: flex-start; border-top: 1px solid var(--line); padding: 10px 0; }
.ed-rowbody { flex: 1; min-width: 0; display: grid; gap: 6px; }
.ed-rowbody > .panel { box-shadow: none; margin: 4px 0 0; padding: 10px 12px; background: var(--soft); }
.ed-add { margin-top: 8px; }
.ed-node { display: flex; align-items: center; gap: 4px; }
.ed-node > button:first-child { flex: 1; }
.ed-status .ed-ok { color: var(--green); font-weight: 700; margin: 6px 0 0; }
.ed-save { position: sticky; bottom: 12px; box-shadow: var(--shadow); }
.language-control select { width: 104px; min-height: 36px; padding: 0 8px; border: 1px solid #ffffff55; background: #ffffff1f; color: #fff; }
.language-control select option { color: var(--ink); }
