/*!
 * WIBFIN ProcessSim · © 2026 WIBFIN Wirtschaftsberatungs- und Forschungsinstitut GmbH · https://wibfin.de
 * Nutzung gemäß nutzungsbedingungen.html. Bei Weitergabe bitte Quelle angeben: „WIBFIN ProcessSim – https://wibfin.de“.
 * Dieser Hinweis darf nicht entfernt werden.
 */
/* WIBFIN ProcessSim – Hilfeseite */
:root {
  --teal: #2e6c6b; --teal-dark: #1f4d4c; --teal-light: #e8f1f1; --text: #222; --soft: #555; --line: #e3e8e8;
  color-scheme: light only;
}
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 76px; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Verdana, Arial, sans-serif; color: var(--text); background: #fff; }
body[data-lang="de"] .en, body[data-lang="en"] .de { display: none !important; }
a { color: var(--teal); }

.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 16px; padding: 8px 20px;
       background: var(--teal-light); border-bottom: 1px solid rgba(46,108,107,.2); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--teal-dark); text-decoration: none; }
.brand img { height: 40px; width: auto; }
.brand strong { display: block; font-size: 15px; }
.brand small { display: block; font-size: 12px; color: var(--soft); }
.toApp { margin-left: auto; font-size: 14px; font-weight: 600; text-decoration: none; padding: 6px 12px; border-radius: 6px;
         background: #fff; border: 1px solid rgba(46,108,107,.35); white-space: nowrap; }
.toApp:hover { background: #d8ece9; }
.lang-switch { display: flex; gap: 2px; font-size: 13px; font-weight: 600; letter-spacing: .04em; }
.lang-switch a { padding: 4px 5px; color: var(--soft); text-decoration: none; }
.lang-switch a.is-active { color: var(--teal-dark); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lang-switch .sep { color: rgba(0,0,0,.25); }

.wrap { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 40px; max-width: 1180px; margin: 0 auto; padding: 24px 20px 60px; }
.wrap.single { grid-template-columns: minmax(0, 1fr); max-width: 880px; }
.toc { position: sticky; top: 80px; align-self: start; display: flex; flex-direction: column; gap: 2px; font-size: 14px;
       max-height: calc(100vh - 100px); overflow-y: auto; }
.toc b { color: var(--teal-dark); margin-bottom: 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.toc a { text-decoration: none; color: var(--soft); padding: 4px 8px; border-left: 2px solid var(--line); }
.toc a:hover { color: var(--teal-dark); border-left-color: var(--teal); background: var(--teal-light); }

main { max-width: 820px; }
h1 { font-size: 32px; line-height: 1.15; color: var(--teal-dark); margin: 0 0 10px; }
.lead { font-size: 18px; color: var(--soft); margin: 0 0 28px; }
h2 { font-size: 23px; color: var(--teal-dark); margin: 44px 0 12px; padding-top: 14px; border-top: 1px solid var(--line); }
h3 { font-size: 17px; color: var(--teal); margin: 24px 0 8px; }
p, li, dd { color: #333; }
ul, ol { padding-left: 22px; }
li { margin-bottom: 6px; }
dl { margin: 0 0 16px; }
dt { font-weight: 700; color: var(--teal-dark); margin-top: 10px; }
dd { margin: 2px 0 0 0; }
code { font: 14px/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; background: #f3f6f6; border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; white-space: nowrap; }
kbd { border: 1px solid #c4ccd6; border-radius: 3px; padding: 0 5px; font-size: 13px; background: #f1f3f5; }
.small { font-size: 14px; color: var(--soft); }

table { width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 15px; }
th { text-align: left; color: var(--teal-dark); font-size: 13px; font-weight: 700; padding: 8px 10px; border-bottom: 2px solid var(--teal); background: #f7fafa; }
td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.num td:not(:first-child), table.num th:not(:first-child) { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }

.m { display: inline-block; padding: 2px 9px; border-radius: 5px; border: 1px solid #46505c; font-size: 13px; font-weight: 600; line-height: 1.3; text-align: center; white-space: nowrap; }
.m small { font-weight: 400; font-size: 11px; color: #3d4752; }
.m.create { background: #ffe8a3; } .m.process { background: #b9dcf5; } .m.decide { background: #ffd3b0; }
.m.assign { background: #f6cfe0; } .m.record { background: #ddd5fb; } .m.dispose { background: #c3ecd0; }
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; color: var(--soft); font-size: 18px;
        padding: 14px; background: #fbfcfc; border: 1px solid var(--line); border-radius: 10px; }
.flow .m { padding: 6px 12px; }

.note { background: var(--teal-light); border-left: 4px solid var(--teal); border-radius: 0 8px 8px 0; padding: 12px 16px; margin: 16px 0; }
.open { margin: 4px 0 14px; }
.btn { display: inline-block; background: var(--teal); color: #fff; text-decoration: none; font-weight: 600; font-size: 14px; padding: 7px 14px; border-radius: 6px; }
.btn:hover { background: var(--teal-dark); }
.dcard { border: 1px solid var(--line); border-radius: 12px; padding: 4px 18px 10px; margin: 18px 0; background: #fff; }
.dcard h3 { margin-top: 14px; }
.dcard h3 code { font-size: 13px; margin-left: 6px; vertical-align: 2px; }
.params { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; margin: 8px 0 4px; font-size: 13px; color: var(--soft); }
.params label { display: flex; flex-direction: column; gap: 2px; }
.params input { width: 110px; padding: 6px 8px; font-size: 15px; border: 1px solid #c4ccd6; border-radius: 6px; }
.params input.wide { width: 260px; }
.params input:focus { outline: 2px solid #b5dcd9; border-color: var(--teal); }
.params .syn { margin-left: auto; }
.dchart { display: block; width: 100%; height: 230px; margin-top: 6px; }
.dchart .grid { stroke: #edf1f1; } .dchart .axis { stroke: #8a959e; }
.dchart .ax { font-size: 11px; fill: #6b7785; } .dchart .lbl { font-size: 12px; font-weight: 600; fill: var(--teal-dark); }
.dchart .area { fill: rgba(46,108,107,.16); } .dchart .curve { fill: none; stroke: var(--teal); stroke-width: 2.5; }
.dchart .hist { fill: rgba(240,140,0,.45); } .dchart .bar { fill: rgba(46,108,107,.75); }
.dchart .meanLine { stroke: var(--teal-dark); stroke-dasharray: 4 3; } .dchart .neg { fill: rgba(201,42,42,.06); }
.stats { font-size: 14px; color: var(--soft); margin: 2px 0 4px; }
.hcheck { display: flex; gap: 8px; align-items: center; font-size: 14px; color: var(--soft); cursor: pointer; margin-bottom: 8px; }
.formula { background: #f7fafa; border-radius: 8px; padding: 12px 14px; font-family: "Cambria Math", "Times New Roman", serif; font-size: 17px; line-height: 2; color: #222; }
.formula .mom { font-size: 15px; line-height: 1.5; margin-top: 4px; color: #3d4752; }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 3px; line-height: 1.25; }
.frac > span:first-child { border-bottom: 1px solid #333; padding: 0 3px; }
.frac > span:last-child { padding: 0 3px; }
footer { margin-top: 50px; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--soft); }

@media (max-width: 860px) {
  .wrap { grid-template-columns: minmax(0, 1fr); padding: 16px 14px 40px; gap: 10px; }
  .toc { position: static; max-height: none; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
  .top { padding: 6px 12px; gap: 10px; }
  .brand div { display: none; }
  .brand img { height: 34px; }
  .toApp { font-size: 13px; padding: 5px 9px; }
  h1 { font-size: 26px; }
  table { font-size: 14px; display: block; overflow-x: auto; }
  code { white-space: normal; }
  .params .syn { margin-left: 0; }
  .params input.wide { width: 100%; }
  .formula { font-size: 15px; }
}
