:root{--navy:#16324a;--navy2:#234e6f;--teal:#16828f;--tealsoft:#e6f4f5;--bg:#f4f7f9;--surface:#fff;--text:#17232c;--muted:#667986;--line:#dbe4e9;--danger:#b93838;--warning:#b06a00;--success:#26754a;--shadow:0 12px 35px rgba(21,50,74,.10);--radius:16px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:var(--text);background:var(--bg)}button,input,select,textarea{font:inherit}button{cursor:pointer}.hidden{display:none!important}.muted{color:var(--muted)}
.login-screen{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(135deg,#10283b,#234e6f)}.login-card{width:min(440px,100%);background:white;border-radius:20px;padding:30px;box-shadow:0 30px 80px rgba(0,0,0,.28)}.login-card h2{margin:26px 0 4px}.login-brand{color:var(--navy)}.form-error{min-height:22px;color:var(--danger);font-weight:700}
.app-shell{min-height:100vh;display:grid;grid-template-columns:250px 1fr}.sidebar{position:sticky;top:0;height:100vh;padding:24px 18px;background:linear-gradient(180deg,var(--navy),#10283b);color:#fff;display:flex;flex-direction:column;gap:24px}.brand{display:flex;align-items:center;gap:12px;padding:0 8px}.brand-mark{width:44px;height:44px;border-radius:13px;display:grid;place-items:center;font-weight:900;letter-spacing:.04em;background:white;color:var(--navy)}.brand h1{font-size:16px;line-height:1.15;margin:0}.brand small{color:#b8cbd7;font-size:12px}.nav{display:grid;gap:8px}.nav button{border:0;color:#d9e6ed;background:transparent;text-align:left;padding:12px 14px;border-radius:10px;font-weight:750}.nav button.active,.nav button:hover{background:rgba(255,255,255,.12);color:white}.sidebar-user{margin-top:auto;padding:14px;border-radius:12px;background:rgba(255,255,255,.08);display:grid;gap:6px}.sidebar-user span{color:#cbdbe3;font-size:12px}.inverse{background:transparent!important;color:white!important;border-color:rgba(255,255,255,.35)!important}
main{min-width:0;padding:28px}.warning-banner{background:#fff3d9;border:1px solid #efd58d;color:#785200;padding:12px 16px;border-radius:12px;margin-bottom:18px;font-weight:700}.topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}.topbar h2{margin:0 0 4px;font-size:27px}.topbar p{margin:0;color:var(--muted)}.top-actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:flex-end}.btn{border:1px solid var(--line);background:white;color:var(--text);padding:10px 14px;border-radius:10px;font-weight:800;display:inline-flex;align-items:center;justify-content:center;gap:7px;text-decoration:none}.btn:hover{transform:translateY(-1px);box-shadow:0 6px 15px rgba(15,44,65,.08)}.btn.primary{color:white;background:var(--teal);border-color:var(--teal)}.btn.secondary{color:white;background:var(--navy2);border-color:var(--navy2)}.btn.danger{color:var(--danger);border-color:#eccaca;background:#fff8f8}.btn.small{padding:7px 10px;font-size:13px}.btn.full{width:100%;margin-top:10px}
.view{display:none}.view.active{display:block}.grid-kpis{display:grid;grid-template-columns:repeat(5,minmax(140px,1fr));gap:14px;margin-bottom:18px}.kpi,.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.kpi{padding:18px;min-height:116px}.kpi .label{color:var(--muted);font-weight:800;font-size:13px}.kpi .number{font-size:32px;font-weight:900;margin:8px 0 2px;color:var(--navy)}.kpi .hint{color:var(--muted);font-size:12px}.card{padding:18px;margin-bottom:18px}.card-header{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:14px}.card-header h3,.card h3{margin-top:0}.card-header h3{margin-bottom:0;font-size:18px}.card-header p{margin:3px 0 0;color:var(--muted);font-size:13px}.workflow{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:8px}.workflow-step{padding:14px 10px;border-radius:12px;background:#eef3f6;text-align:center;font-weight:900;font-size:12px;line-height:1.3;min-height:76px;overflow-wrap:anywhere}.workflow-step strong{display:block;font-size:20px;color:var(--navy);margin-bottom:4px}
.filters{display:grid;grid-template-columns:2fr repeat(3,minmax(150px,1fr));gap:10px;margin-bottom:14px}.field{margin-bottom:12px}.field input,.field select,.field textarea,.filters input,.filters select{width:100%;border:1px solid #cdd9df;background:white;border-radius:9px;padding:10px 11px;color:var(--text);outline:none}.field input:focus,.field select:focus,.field textarea:focus,.filters input:focus,.filters select:focus{border-color:var(--teal);box-shadow:0 0 0 3px rgba(22,130,143,.12)}.field textarea{min-height:96px;resize:vertical}.field label{display:block;font-size:12px;font-weight:900;color:#405663;margin:0 0 6px}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:12px}table{width:100%;border-collapse:collapse;min-width:980px;background:white}th{position:sticky;top:0;z-index:1;text-align:left;background:#edf3f6;color:#445a68;font-size:12px;letter-spacing:.02em;padding:11px;border-bottom:1px solid var(--line)}td{padding:11px;border-bottom:1px solid #edf1f3;vertical-align:top;font-size:13px}tr:hover td{background:#fafcfd}.actions{display:flex;gap:5px;white-space:nowrap;flex-wrap:wrap}.link-button{border:0;background:transparent;padding:0;font-weight:900;color:var(--navy2);text-align:left}.tag{display:inline-flex;padding:5px 8px;border-radius:999px;font-size:11px;font-weight:900;background:#edf3f6;color:#3f5969}.status-Anfrage{background:#eef1f4}.status-Angebot{background:#fff3d9;color:#865d00}.status-Projektbeurteilung{background:#e9ecff;color:#3e4e9b}.status-Begehung{background:#e6f5fa;color:#17657b}.status-Abnahmekontrolle{background:#f2eafb;color:#65408b}.status-Schlussbericht{background:#e6f4f5;color:#166c75}.status-Erledigt{background:#e8f5ec;color:#26754a}.status-Pausiert{background:#fdecec;color:#993d3d}.priority-high{color:var(--danger);font-weight:900}.priority-medium{color:var(--warning);font-weight:900}.empty{text-align:center;padding:38px;color:var(--muted)}
.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:18px}.section-title{margin:6px 0 12px;font-size:15px;color:var(--navy)}.form-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.form-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.technical-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.quantity-field input{text-align:right;font-variant-numeric:tabular-nums}.quantity-field label{color:var(--teal)}.field.span-2{grid-column:span 2}.field.span-3{grid-column:1/-1}details{border:1px solid var(--line);border-radius:12px;margin:12px 0;background:white}details>summary{cursor:pointer;font-weight:900;padding:14px 16px;color:var(--navy)}details>.details-body{padding:0 16px 16px}.sticky-card{position:sticky;top:18px}.sticky-card hr{border:0;border-top:1px solid var(--line);margin:16px 0}.meta-list{display:grid;gap:10px;margin-top:12px}.meta-row{display:flex;justify-content:space-between;gap:10px;padding-bottom:8px;border-bottom:1px solid #edf1f3;font-size:13px}.meta-row span:first-child{color:var(--muted)}
.import-zone{border:2px dashed #b8cbd4;border-radius:14px;padding:30px;text-align:center;background:#fafcfd}.import-zone.drag{border-color:var(--teal);background:var(--tealsoft)}.import-result{margin-top:16px}.result-box{padding:14px;border-radius:12px;background:#f3faf6;border:1px solid #c7e4d1}.result-box.error{background:#fff5f5;border-color:#edcaca}.mapping-list{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.mapping-list>div{background:#edf3f6;border-radius:8px;padding:12px;font-size:12px}.two-column{display:grid;grid-template-columns:1fr 1fr;gap:18px}
.toast{position:fixed;right:22px;bottom:22px;z-index:99;max-width:420px;background:#172f41;color:white;padding:13px 16px;border-radius:12px;box-shadow:var(--shadow);transform:translateY(120px);opacity:0;transition:.25s ease}.toast.show{transform:translateY(0);opacity:1}.toast.error{background:#8f3030}.toast.success{background:#236c47}.modal-backdrop{position:fixed;inset:0;background:rgba(10,28,40,.55);z-index:50;display:none;align-items:center;justify-content:center;padding:20px}.modal-backdrop.open{display:flex}.modal{width:min(820px,100%);max-height:calc(100vh - 40px);overflow-y:auto;background:white;border-radius:16px;padding:20px;box-shadow:0 30px 80px rgba(0,0,0,.25)}.modal h3{margin-top:0}.modal-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:18px}
@media(max-width:1180px){.technical-grid{grid-template-columns:repeat(2,1fr)}.grid-kpis{grid-template-columns:repeat(3,1fr)}.workflow{grid-template-columns:repeat(4,1fr)}.form-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:860px){.app-shell{grid-template-columns:1fr}.sidebar{position:static;height:auto}.nav{grid-template-columns:repeat(3,1fr)}.sidebar-user{margin-top:0}main{padding:18px}.topbar{align-items:flex-start;flex-direction:column}.top-actions{justify-content:flex-start}.filters{grid-template-columns:1fr 1fr}.editor-layout,.two-column{grid-template-columns:1fr}.sticky-card{position:static}}@media(max-width:600px){.nav{grid-template-columns:1fr 1fr}.grid-kpis{grid-template-columns:1fr 1fr}.workflow{grid-template-columns:1fr 1fr}.filters,.form-grid,.form-grid.two,.mapping-list{grid-template-columns:1fr}.field.span-2,.field.span-3{grid-column:auto}}
.field-hint{display:block;margin-top:5px;color:var(--muted);font-size:11px;line-height:1.35}.technical-section{padding:4px 0 18px}.technical-section+ .technical-section{border-top:1px solid var(--line);padding-top:18px}.technical-section h4{margin:0 0 4px;color:var(--navy);font-size:15px}.section-help{margin:0 0 10px;color:var(--muted);font-size:12px}.component-table-wrap{overflow:auto;border:1px solid var(--line);border-radius:11px}.component-table{min-width:820px}.component-table th{position:static}.component-table td{vertical-align:middle;padding:8px}.component-table td:first-child{font-weight:800;color:#344c5b;min-width:180px}.component-table input{width:100%;border:1px solid #cdd9df;border-radius:8px;padding:8px 9px}.component-table input[type=number]{text-align:right;font-variant-numeric:tabular-nums}.component-table input[readonly]{background:#edf3f6;color:var(--navy);font-weight:900}.import-options{max-width:420px;margin-bottom:14px}

.status-process-1{background:#eef1f4;color:#3f5969}.status-process-2{background:#fff3d9;color:#865d00}.status-process-3{background:#f6eddc;color:#785a20}.status-process-4{background:#fdecec;color:#993d3d}.status-process-5{background:#e9ecff;color:#3e4e9b}.status-process-6{background:#e6f5fa;color:#17657b}.status-process-7{background:#edf0ff;color:#46539a}.status-process-8{background:#e6f4f5;color:#166c75}.status-process-9{background:#f2ecfa;color:#67458d}.status-process-10{background:#f2eafb;color:#65408b}.status-process-11{background:#fff0e8;color:#9a4c20}.status-process-12{background:#e9f4ef;color:#2f7055}.status-process-13{background:#e8f5ec;color:#26754a}

.party-section{padding:6px 0 18px}.party-section+.party-section{border-top:1px solid var(--line);padding-top:18px}.party-section h4{margin:0 0 12px;color:var(--navy);font-size:15px}.party-section:first-child h4{color:var(--teal)}

.modal-section-title{margin:6px 0 0;color:var(--navy)}
.reminder-modal{width:min(680px,100%)}.overdue-reminder-modal{width:min(650px,100%);border-top:6px solid #b9473f}.reminder-popup-list{display:grid;gap:10px;margin:16px 0}.reminder-popup-item{padding:14px;border-radius:10px;background:#fff2ef;border:1px solid #e9b4ad}.reminder-popup-item p{margin:7px 0 0;white-space:pre-wrap}.reminder-note{min-width:240px;white-space:pre-wrap}.reminder-overdue-row{background:#fff7f5}.reminder-status{display:inline-block;padding:4px 8px;border-radius:999px;font-size:12px;font-weight:700}.reminder-status.overdue{background:#f6d4cf;color:#842b25}.reminder-status.upcoming{background:#e9f1f6;color:#315b73}.reminder-status.seen{background:#dff0e6;color:#236c47}.reminder-status.waiting{background:#fff0c7;color:#745400}
.reminder-history-modal{width:min(780px,100%)}.reminder-history-item{margin:10px 0;border:1px solid var(--line);border-radius:10px}.reminder-history-item summary{padding:13px;font-weight:700;cursor:pointer}.reminder-events{margin:10px 0;padding-left:20px}.reminder-events li{margin:6px 0}.sticky-card>.btn.full+.btn.full{margin-top:8px}.import-change-list{display:grid;gap:8px;max-height:50vh;overflow:auto;margin:16px 0}.import-change-row{display:grid;grid-template-columns:auto 1fr;gap:10px;align-items:start;padding:12px;border:1px solid var(--line);border-radius:10px;background:#fff}.import-change-row input{margin-top:4px}.import-change-row span{display:grid;gap:4px}.import-change-row small{display:block;overflow-wrap:anywhere}.import-change-row small:last-child{color:#236c47;font-weight:600}
.login-help-link{display:block;margin:12px auto 0}.forgot-password-modal{width:min(520px,100%)}#setPasswordMessage:not(:empty),#forgotPasswordMessage:not(:empty){margin-top:12px}

.finance-kpis{grid-template-columns:repeat(4,minmax(170px,1fr))}.finance-number{font-size:22px!important;line-height:1.2}.finance-filters{grid-template-columns:2fr minmax(220px,1fr)}.finance-table{min-width:1120px}.finance-modal{width:min(900px,100%)}
@media(max-width:860px){.finance-kpis{grid-template-columns:repeat(2,1fr)}}@media(max-width:600px){.finance-kpis,.finance-filters{grid-template-columns:1fr}}

.overview-process{padding:12px;border-radius:11px;background:var(--tealsoft);border:1px solid #c3e1e4}.overview-process label{color:var(--navy)}.report-history{margin-top:16px;padding-top:14px;border-top:1px solid var(--line)}.report-history h4{margin:0 0 10px;color:var(--navy);font-size:14px}.report-history-item{display:grid;gap:2px;padding:9px 0;border-bottom:1px solid #edf1f3}.report-history-item strong{font-size:12px;color:var(--navy)}.report-history-item span,.report-history-item small{font-size:11px;color:var(--muted)}.report-history-empty{font-size:12px;margin:0}.btn:disabled{opacity:.65;cursor:wait;transform:none!important}

.form-section-divider{
  grid-column:1/-1;
  min-height:1px;
  border-top:1px solid var(--line);
  margin:4px 0 8px;
}

@media(max-width:600px){
  .form-section-divider{
    grid-column:1/-1;
    margin:2px 0 6px;
  }
}

/* GIB 2.23 */
button.workflow-step{
  width:100%;
  border:1px solid transparent;
  color:var(--text);
  font-family:inherit;
  transition:
    transform .15s ease,
    box-shadow .15s ease,
    background .15s ease;
}
button.workflow-step:hover{
  transform:translateY(-2px);
  box-shadow:0 7px 18px rgba(21,50,74,.12);
  border-color:#bfd0d9;
}
button.workflow-step.active{
  background:var(--navy);
  color:#fff;
  border-color:var(--navy);
  box-shadow:0 8px 20px rgba(21,50,74,.24);
}
button.workflow-step.active strong{
  color:#fff;
}
.finance-rest-row td{
  background:#f1faf6;
  border-top:2px solid #a9d5bd;
}
.finance-rest-row:hover td{
  background:#e8f6ef;
}
.finance-rest-row td:first-child strong{
  color:var(--success);
}

/* GIB 2.38 – bearbeitbares technisches WLA-Datenblatt */
.wla-technical-section{
  margin:16px 0 22px;
}
.wla-technical-section>h4{
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  padding:11px 13px;
  border:1px solid #bdd4df;
  border-bottom:0;
  border-radius:11px 11px 0 0;
  background:#dcebf2;
  color:var(--navy);
  font-size:14px;
}
.wla-technical-section>h4 span{
  display:inline-grid;
  min-width:38px;
  min-height:28px;
  place-items:center;
  border-radius:7px;
  background:var(--navy);
  color:#fff;
  font-size:12px;
}
.wla-technical-wrap{
  overflow-x:auto;
  border:1px solid #bdd4df;
  border-radius:0 0 11px 11px;
}
.wla-table-group+.wla-table-group{
  margin-top:18px;
}
.wla-table-group h5{
  margin:0;
  padding:10px 13px;
  border:1px solid #8db7c8;
  border-bottom:0;
  border-radius:10px 10px 0 0;
  background:#dfeef4;
  color:#173e53;
  font-size:13px;
}
.wla-table-group .wla-technical-wrap{
  border-radius:0 0 11px 11px;
}
.wla-matrix-table{min-width:620px}
.wla-matrix-table thead th{
  width:auto!important;
  text-align:center;
}
.wla-matrix-table .wla-matrix-unit{
  display:block;
  margin-top:2px;
  color:#607987;
  font-size:10px;
  font-weight:700;
}
.wla-matrix-table tbody td{padding:6px}
.wla-technical-table{
  min-width:720px;
  table-layout:fixed;
}
.wla-technical-table thead th{
  position:static;
  background:#edf5f8;
  color:#365365;
}
.wla-technical-table thead th:nth-child(1){width:48%}
.wla-technical-table thead th:nth-child(2){width:16%}
.wla-technical-table thead th:nth-child(3){width:36%}
.wla-technical-table tbody th{
  position:static;
  padding:9px 11px;
  border-right:1px solid #d8e5eb;
  border-bottom:1px solid #e2eaee;
  background:#fff;
  color:#2d4656;
  font-size:12px;
  font-weight:800;
}
.wla-technical-table tbody td{
  padding:6px 8px;
  border-right:1px solid #d8e5eb;
  background:#fff;
  vertical-align:middle;
}
.wla-technical-table .wla-unit{
  color:#526a78;
  font-size:12px;
  font-weight:800;
}
.wla-technical-table tbody td:last-child{border-right:0}
.wla-technical-table tbody .wla-subsection-row th{
  padding:15px 13px 9px;
  border-top:8px solid #fff;
  border-right:0;
  border-bottom:2px solid #8db7c8;
  background:#dfeef4;
  color:#173e53;
  font-size:13px;
  letter-spacing:.01em;
  text-align:left;
}
.wla-technical-table tbody .wla-subsection-row:first-child th{border-top-width:0}
.wla-technical-table tbody .wla-subsection-row:hover th{background:#dfeef4}
.six-column-section .wla-technical-table{
  min-width:1460px;
}
.six-column-section .wla-technical-table thead th:nth-child(1){width:260px}
.six-column-section .wla-technical-table thead th:nth-child(2){width:105px}
.six-column-section .wla-technical-table thead th:nth-child(n+3){width:180px}
.six-column-section .wla-technical-table tbody tr:first-child input{
  font-weight:800;
  color:#087aa5;
}
.wla-technical-table input,
.wla-technical-table select,
.wla-technical-table textarea{
  width:100%;
  min-height:36px;
  border:1px solid #a9c8d7;
  border-radius:7px;
  padding:7px 9px;
  outline:none;
  background:#eaf5fa;
  color:var(--text);
}
.wla-technical-table textarea{
  min-height:62px;
  resize:vertical;
}
.wla-technical-table input:focus,
.wla-technical-table select:focus,
.wla-technical-table textarea:focus{
  border-color:var(--teal);
  box-shadow:0 0 0 3px rgba(22,130,143,.12);
  background:#fff;
}
.wla-technical-table tr:hover th,
.wla-technical-table tr:hover td{
  background:#f8fbfc;
}
.wla-technical-table tr:hover input,
.wla-technical-table tr:hover select,
.wla-technical-table tr:hover textarea{
  background:#fff;
}
.wla-import-pair{
  display:grid;
  grid-template-columns:minmax(230px,40%) minmax(240px,1fr);
  align-items:center;
}
.wla-import-pair label{
  color:var(--muted);
  font-size:12px;
}
.wla-import-pair input{
  width:100%;
  border:1px solid #c4d7df;
  border-radius:8px;
  padding:8px 9px;
  background:#fff;
  color:var(--text);
}
.wla-import-pair input:focus{
  border-color:var(--teal);
  box-shadow:0 0 0 3px rgba(22,130,143,.12);
  outline:none;
}
@media(max-width:600px){
  .wla-import-pair{grid-template-columns:1fr}
}
