
.fgw-orgchart{position:relative;width:100%;border:1px solid #dfe4ec;border-radius:16px;background:#eef1f5;box-sizing:border-box;overflow:hidden;box-shadow:none}
.fgw-orgchart__toolbar{display:flex;align-items:center;justify-content:flex-end;gap:8px;padding:10px 12px;border-bottom:1px solid #e1e5ed;background:#eef1f5}
.fgw-orgchart__button{appearance:none;border:1px solid #d9dee7;background:#fff;color:#3f4b5f;min-width:34px;height:34px;border-radius:10px;cursor:pointer;font:inherit;box-shadow:none}.fgw-orgchart__button:hover,.fgw-orgchart__button:focus{border-color:#6e87a8;outline:none}.fgw-orgchart__button--text{padding:0 10px}.fgw-orgchart__zoom-label{min-width:50px;text-align:center;font-size:12px;font-weight:600;color:#000}
.fgw-orgchart__viewport{position:relative;width:100%;overflow:hidden;background:#eef1f5;cursor:grab;touch-action:none;outline:none}.fgw-orgchart__viewport.is-panning{cursor:grabbing}.fgw-orgchart__stage{position:absolute;inset:0}.fgw-orgchart__pan{position:absolute;left:0;top:0}.fgw-orgchart__world{position:absolute;left:0;top:0;transform:none;transform-origin:0 0}.fgw-orgchart__svg,.fgw-orgchart__nodes{position:absolute;inset:0}.fgw-orgchart__svg{z-index:1;overflow:visible}.fgw-orgchart__nodes{z-index:2;pointer-events:none}
.fgw-org-node{position:absolute;-webkit-font-smoothing:auto;text-rendering:optimizeLegibility;box-sizing:border-box;background:#fff;border:1px solid #dfe4ec;border-radius:16px;color:#000;font-family:inherit;font-size:14px;line-height:1.3;box-shadow:0 5px 16px rgba(30,41,59,.055);overflow:hidden}
.fgw-org-node__contactbox{margin-top:12px;padding-top:10px;border-top:1px solid #e7ebf0;display:flex;align-items:baseline;justify-content:space-between;gap:12px;color:#536174}.fgw-org-node__contactbox-label{font-size:9.5px;line-height:1.1;text-transform:uppercase;letter-spacing:.07em;font-weight:600;color:#4f5d6d}.fgw-org-node__contactbox-value{font-size:12px;line-height:1.3;font-weight:500;text-align:right;color:#111;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:120px}
.fgw-org-node__body{padding:15px 16px 14px;white-space:pre-line}.fgw-org-node__rubric{display:block;font-size:17px;line-height:1.2;font-weight:600;color:#005b7e;letter-spacing:-.01em}.fgw-org-node__text{margin-top:7px;color:#111;font-size:12.5px;line-height:1.42}
.fgw-org-edge{fill:none;stroke:#568498;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}.fgw-org-edge.is-lateral{stroke:#8b97a7;stroke-dasharray:5 4}.fgw-orgchart__svg marker path{fill:#568498}
.fgw-orgchart:fullscreen{width:100vw;height:100vh;background:#eef1f5;border-radius:0}.fgw-orgchart:fullscreen .fgw-orgchart__viewport{height:calc(100vh - 92px)!important}.fgw-orgchart.is-faux-fullscreen{position:fixed!important;z-index:999999;inset:0;width:100vw;height:100vh;background:#eef1f5;border-radius:0}.fgw-orgchart.is-faux-fullscreen .fgw-orgchart__viewport{height:calc(100vh - 92px)!important}
@media(max-width:640px){.fgw-orgchart__toolbar{justify-content:center;flex-wrap:wrap}.fgw-orgchart__button{height:36px}.fgw-org-node__rubric{font-size:16px}.fgw-org-node__contactbox{align-items:flex-start;flex-direction:column;gap:4px}.fgw-org-node__contactbox-value{text-align:left;max-width:none}}


/* 1.5: dezentes FGW-Wasserzeichen + mobile Pan/Zoom-Darstellung */
.fgw-orgchart__viewport::before{content:'';position:absolute;z-index:0;left:50%;top:50%;width:min(62%,760px);height:min(56%,520px);transform:translate(-50%,-50%);background-image:var(--fgw-orgchart-logo);background-repeat:no-repeat;background-position:center;background-size:contain;opacity:.035;pointer-events:none;filter:grayscale(1)}
.fgw-orgchart__stage{z-index:1}.fgw-orgchart__toolbar{position:relative;z-index:5}
@media(max-width:720px){
  .fgw-orgchart{border-radius:14px}
  .fgw-orgchart__toolbar{position:absolute;right:10px;top:10px;z-index:10;width:auto;padding:5px;gap:4px;border:1px solid rgba(217,222,231,.9);border-radius:12px;background:rgba(255,255,255,.9);box-shadow:0 3px 12px rgba(30,41,59,.07);backdrop-filter:blur(8px)}
  .fgw-orgchart__button{min-width:32px;height:32px;border-radius:9px;background:transparent}
  .fgw-orgchart__button--text{padding:0 8px;font-size:11px}
  .fgw-orgchart__zoom-label{min-width:42px;font-size:11px}
  .fgw-orgchart__viewport{min-height:500px;cursor:grab}
  .fgw-orgchart__viewport::before{width:76%;height:48%;opacity:.028}
  .fgw-org-node__contactbox{align-items:baseline;flex-direction:row;gap:8px}
  .fgw-org-node__contactbox-value{text-align:right;max-width:115px}
}


/* 1.6.1: kontrollierte Zeilenumbrüche + mehrere Ansprechpartner */
.fgw-org-node__rubric,
.fgw-org-node__text,
.fgw-org-node__contactbox-value{white-space:pre-line;overflow-wrap:anywhere;word-break:normal}
.fgw-org-node__contactbox{align-items:flex-start}
.fgw-org-node__contactbox-label{flex:0 0 auto;padding-top:2px}
.fgw-org-node__contactbox-value{flex:1 1 auto;min-width:0;max-width:62%;white-space:pre-line;overflow:visible;text-overflow:clip;text-align:right}
@media(max-width:720px){.fgw-org-node__contactbox-value{max-width:64%}}


/* 1.6.2: lesbare Startansicht – Organigramm startet groß und links an der Wurzel. */
@media(min-width:721px){
  .fgw-orgchart__toolbar{padding:8px 10px}
  .fgw-orgchart__button{height:32px;min-width:32px}
}


/* 1.6.6: Beim Verschieben des Organigramms keine Textauswahl erzeugen. */
.fgw-orgchart__viewport,
.fgw-orgchart__stage,
.fgw-orgchart__pan,
.fgw-orgchart__world,
.fgw-orgchart__nodes,
.fgw-org-node{
  -webkit-user-select:none;
  user-select:none;
  -webkit-touch-callout:none;
}


/* 1.6.10: identische Card-Typografie in Frontend und Backend (WYSIWYG). */
.fgw-org-node,
.fgw-org-node *,
.fgw-org-node *::before,
.fgw-org-node *::after{
  box-sizing:border-box;
}
.fgw-org-node{
  font-family:Arial,"Helvetica Neue",Helvetica,sans-serif!important;
  font-size:14px;
  line-height:1.3;
  -webkit-font-smoothing:auto;
  text-rendering:optimizeLegibility;
}
.fgw-org-node__body,
.fgw-org-node__rubric,
.fgw-org-node__text,
.fgw-org-node__contactbox,
.fgw-org-node__contactbox-label,
.fgw-org-node__contactbox-value{
  margin-left:0;
  margin-right:0;
}
.fgw-org-node__rubric{
  margin-top:0;
  margin-bottom:0;
  font-family:inherit!important;
  font-size:17px;
  line-height:1.2;
  font-weight:600;
}
.fgw-org-node__text{
  margin-top:7px;
  margin-bottom:0;
  font-family:inherit!important;
  font-size:12.5px;
  line-height:1.42;
  font-weight:400;
}
.fgw-org-node__contactbox{
  margin-bottom:0;
}
.fgw-org-node__contactbox-label{
  margin:0;
  font-family:inherit!important;
  font-size:9.5px;
  line-height:1.1;
}
.fgw-org-node__contactbox-value{
  margin:0;
  font-family:inherit!important;
  font-size:12px;
  line-height:1.3;
  font-weight:500;
}
