
*{box-sizing:border-box;margin:0;padding:0}:root{--nav:#062a56;--blue:#1b5be7;--text:#172033;--muted:#65728a;--bg:#f4f8fd;--card:#fff;--line:#dfe8f4;--shadow:0 18px 45px rgba(27,60,120,.10);--radius:18px}body{font-family:Inter,Arial,Helvetica,sans-serif;background:var(--bg);color:var(--text)}#app{display:flex;min-height:100vh}.sidebar{width:260px;background:linear-gradient(180deg,#062a56,#03234a);color:white;padding:26px 18px;position:fixed;top:0;bottom:0;left:0;display:flex;flex-direction:column}.assistant-brand{margin-bottom:28px}.avatar{width:112px;height:112px;border-radius:50%;object-fit:cover;border:4px solid rgba(255,255,255,.22);display:block;margin:0 0 16px 8px}.assistant-brand h1{font-size:30px}.assistant-brand p{color:#9fc0ff;line-height:1.5;margin-top:8px}.nav{display:grid;gap:8px}.nav button{border:0;background:transparent;color:white;text-align:left;border-radius:12px;padding:13px 16px;font-size:15px;font-weight:800;cursor:pointer}.nav button.active,.nav button:hover{background:#1b5be7}.klara-sidebar-btn{margin-top:auto;border:0;background:#1b5be7;color:white;border-radius:14px;padding:15px 16px;font-size:15px;font-weight:900;text-align:left;cursor:pointer}.main{margin-left:260px;width:calc(100% - 260px);padding:28px}.topbar{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:22px}.topbar h1{font-size:28px}.topbar p{color:var(--muted);margin-top:6px}.top-actions{display:flex;gap:12px}.date-btn,.refresh{border:1px solid var(--line);background:white;border-radius:10px;padding:12px 16px;color:#1d3b75;font-weight:800}.refresh{color:#1b5be7}.view{display:none}.active-view{display:block}.kpi-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-bottom:18px}.kpi{display:flex;gap:15px;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);min-height:140px}.kpi span{width:52px;height:52px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:28px}.kpi-blue span{background:#e7efff}.kpi-green span{background:#e8f8ee}.kpi-yellow span{background:#fff4d8}.kpi h3{font-size:13px}.kpi strong{display:block;font-size:30px;margin:8px 0}.kpi p{font-size:13px;color:var(--muted);margin-bottom:14px}.kpi a{font-size:13px;font-weight:900;color:#1b5be7;cursor:pointer}.status-badge,.report-green{display:inline-block!important;background:#22c55e!important;color:white!important;border-radius:999px!important;padding:8px 13px!important;font-size:18px!important;margin:7px 0!important}.action-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:16px;margin-bottom:18px}.action-card{position:relative;background:white;border:1px solid var(--line);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow);min-height:126px;cursor:pointer}.action-card span{font-size:28px}.action-card h3{font-size:16px;margin:10px 0}.action-card p{font-size:13px;color:#516077;line-height:1.45}.action-card button{position:absolute;right:16px;bottom:14px;width:36px;height:36px;border-radius:50%;border:1px solid #cbd8ee;background:white;color:#1b5be7;font-size:20px}.primary-action{background:linear-gradient(135deg,#f3f7ff,#eaf1ff);border:2px solid #bcd3ff}.green{background:#eefbf2}.yellow{background:#fff8e2}.purple{background:#f3edff}.blue{background:#eff6ff}.lower-grid{display:grid;grid-template-columns:1.45fr .95fr;gap:18px}.panel{background:white;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}.panel-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.panel-head h2,.panel-head h3{font-size:18px}.panel-head button,.panel-head a{border:1px solid #dce7f8;background:white;color:#1b5be7;border-radius:9px;padding:10px 14px;font-weight:900;cursor:pointer}.week-plan{width:100%;border-collapse:separate;border-spacing:0;font-size:12px}.week-plan th{background:#f7faff;padding:10px;border:1px solid var(--line);font-weight:900}.week-plan td{border:1px solid var(--line);padding:8px;text-align:center;font-weight:800}.week-plan td:first-child{text-align:left;width:120px}.empty{text-align:center!important;color:var(--muted);padding:35px!important}.pfk{background:#dff3e5}.phk{background:#e6f1ff}.bet{background:#fff2cb}.night{background:#e6dcff}.legend{display:flex;gap:14px;flex-wrap:wrap;margin-top:12px;font-size:12px}.dot{display:inline-block;width:10px;height:10px;border-radius:50%;margin-right:7px}.dot.green{background:#16a34a}.dot.blue{background:#3b82f6}.dot.yellow{background:#f59e0b}.dot.red{background:#ef4444}.dot.orange{background:#f97316}.dot.purple{background:#7c3aed}.side-panels{display:grid;grid-template-columns:1fr 1fr;gap:14px}.small-list p{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;align-items:center;font-size:12px;margin:10px 0}.quote{text-align:center}.gauge{width:150px;height:105px;margin:12px auto;border-top:16px solid #1faf62;border-left:16px solid #1faf62;border-right:16px solid #d7dde8;border-radius:150px 150px 0 0;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;padding-bottom:8px}.gauge strong{font-size:30px}.gauge span{font-size:12px;color:var(--muted)}.quote p{color:#16a34a;font-weight:900}.full-panel{min-height:650px}.toolbar{display:flex;gap:10px;margin:14px 0;flex-wrap:wrap}.toolbar input,.toolbar select{border:1px solid var(--line);border-radius:10px;padding:12px;background:white;font-weight:800}.toolbar input{width:250px}.toolbar button{border:1px solid #dce7f8;background:white;color:#1b5be7;border-radius:10px;padding:12px 14px;font-weight:900}.toolbar .active-filter{background:#1b5be7;color:white}.engine-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin:14px 0}.engine-summary div{background:#f7faff;border:1px solid var(--line);border-radius:14px;padding:14px}.engine-summary b{display:block;font-size:24px;color:#1b5be7}.engine-summary span{font-size:13px;color:var(--muted);font-weight:800}.sum-green{background:#ecfdf5!important}.sum-green b{background:#22c55e;color:white!important;border-radius:999px;padding:8px 12px;display:inline-block!important;font-size:18px!important}.full-plan-wrap{max-height:640px;overflow:auto;border:1px solid var(--line);border-radius:14px}.full-plan{min-width:2200px;border-collapse:separate;border-spacing:0;font-size:12px}.full-plan th{position:sticky;top:0;background:#f7faff;z-index:5;border:1px solid var(--line);padding:9px}.full-plan td{border:1px solid var(--line);padding:8px;text-align:center;font-weight:800}.full-plan .name,.full-plan .nameh{position:sticky;left:0;z-index:6;background:white;text-align:left;min-width:205px}.full-plan .role,.full-plan .roleh{position:sticky;left:205px;z-index:6;background:white;min-width:70px}.full-plan .nameh,.full-plan .roleh{background:#f7faff}.f{background:#e6f1ff}.z{background:#e5f7df}.s{background:#fff1c8}.n{background:#e8ddff}.x{background:#eee}.k{background:#ffd9d9;color:#c1121f}.u{background:#ffe6d3;color:#b45309}.fb{background:#dbeafe}.weekend{box-shadow:inset 0 0 0 999px rgba(20,40,70,.04)}.month-separator{border-left:4px solid #1b5be7!important}.modal{position:fixed;inset:0;background:rgba(3,20,45,.45);display:flex;align-items:center;justify-content:center;z-index:20}.modal.hidden,.hidden{display:none!important}.modal-box{background:white;border-radius:22px;width:min(620px,92vw);padding:26px;box-shadow:0 30px 80px rgba(0,0,0,.25);position:relative}.close{position:absolute;top:16px;right:16px;border:0;background:#eef3fb;border-radius:50%;width:34px;height:34px;font-size:22px}.modal-box h2{font-size:28px;margin-bottom:12px}.planner-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:18px 0}.planner-options label{font-weight:900}.planner-options select{width:100%;margin-top:8px;border:1px solid var(--line);border-radius:10px;padding:12px}.primary{border:0;background:#1b5be7;color:white;border-radius:10px;padding:13px 18px;font-weight:900}.big{width:100%;font-size:18px;padding:16px}.progress{margin-top:18px}.progress p{display:flex;gap:10px;background:#f7faff;border:1px solid var(--line);border-radius:12px;padding:11px;margin-top:8px;font-weight:800}.result{margin-top:16px;background:#ecfdf5;color:#166534;border-radius:12px;padding:14px;font-weight:800;line-height:1.45}.toast{position:fixed;right:24px;bottom:24px;background:#1b5be7;color:white;border-radius:12px;padding:14px 18px;opacity:0;transform:translateY(18px);transition:.2s;z-index:30}.toast.show{opacity:1;transform:translateY(0)}.messages{height:420px;background:#f7faff;border-radius:14px;padding:14px;overflow:auto}.msg{padding:12px;border-radius:12px;margin-bottom:10px}.bot{background:white}.user{background:#1b5be7;color:white;margin-left:auto;max-width:70%}.chat-input{display:flex;gap:10px;margin-top:12px}.chat-input input{flex:1;border:1px solid var(--line);border-radius:10px;padding:14px}.chat-input button{border:0;background:#1b5be7;color:white;border-radius:10px;padding:0 20px;font-weight:900}.staff-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}.staff-card{background:#f7faff;border:1px solid var(--line);border-radius:12px;padding:12px}.absence-grid{display:grid;gap:10px;margin-top:16px}.absence-card{border-radius:12px;padding:14px;font-weight:900}.absence-card.red{background:#ffe7e7}.absence-card.yellow{background:#fff4d8}.absence-card.purple{background:#f3edff}.form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:18px}.form-grid label{font-weight:900}.form-grid select,.form-grid input{width:100%;margin-top:8px;border:1px solid var(--line);border-radius:10px;padding:12px}.report-status{margin-top:18px;background:#dcfce7;color:#166534;border-radius:18px;padding:24px;text-align:center;font-size:26px;font-weight:900}.report-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin:18px 0}.report-grid div{background:#f7faff;border:1px solid var(--line);border-radius:14px;padding:16px}.report-grid strong{display:block;margin-top:8px;font-size:24px;color:#1b5be7}.report-details{background:#f7faff;border:1px solid var(--line);border-radius:14px;padding:16px;line-height:1.55;color:#42526b;font-weight:700}.muted{color:var(--muted);margin-top:8px}@media(max-width:1300px){.kpi-grid,.action-grid{grid-template-columns:repeat(2,1fr)}.lower-grid{grid-template-columns:1fr}.side-panels{grid-template-columns:1fr 1fr}.sidebar{position:relative;width:100%}.main{margin-left:0;width:100%}#app{display:block}.form-grid{grid-template-columns:1fr}}

/* KLARA Demo 1.1 – Mitarbeiter-Suche statt Dropdown */

.autocomplete{
    position:relative;
}

.employee-search{
    width:100%;
    margin-top:8px;
    border:1px solid var(--line);
    border-radius:10px;
    padding:12px;
    font-weight:800;
    background:white;
}

.suggestions{
    position:absolute;
    left:0;
    right:0;
    top:calc(100% + 4px);
    background:white;
    border:1px solid var(--line);
    border-radius:12px;
    box-shadow:0 18px 45px rgba(27,60,120,.18);
    overflow:hidden;
    z-index:50;
    display:none;
    max-height:260px;
    overflow-y:auto;
}

.suggestion{
    padding:11px 12px;
    cursor:pointer;
    display:flex;
    justify-content:space-between;
    gap:12px;
    font-weight:800;
    border-bottom:1px solid #eef3fb;
}

.suggestion:last-child{
    border-bottom:0;
}

.suggestion:hover,
.suggestion.active{
    background:#eaf1ff;
}

.suggestion small{
    color:var(--muted);
    font-weight:700;
}

.search-selected{
    margin-top:8px;
    background:#eefbf2;
    border:1px solid #bbf7d0;
    color:#166534;
    border-radius:10px;
    padding:9px 11px;
    font-weight:900;
}


/* KLARA Demo 1.2 – Freigabe und Quote korrekt für Demo */
.gauge strong,
#sumQuote,
#reportQuote{
    color:#111827!important;
}

.sum-green,
.kpi-green{
    background:#ecfdf5!important;
}

.status-badge,
.report-green{
    background:#22c55e!important;
    color:#ffffff!important;
}


/* KLARA Demo 1.3 Fixes */
.demo-note{
    margin:8px 0 16px;
    color:#65728a;
    font-weight:800;
}

.employee-search::placeholder{
    color:#8a96aa;
    font-weight:800;
}

.status-badge,
.report-green{
    display:inline-block!important;
    background:#22c55e!important;
    color:#fff!important;
    border-radius:999px!important;
    padding:8px 13px!important;
    font-size:18px!important;
}


/* KLARA Demo 1.4 */
.demo-note{
    margin:8px 0 16px;
    color:#65728a;
    font-weight:800;
}

.employee-search::placeholder{
    color:#8a96aa;
    font-weight:800;
}

.status-badge,
.report-green{
    display:inline-block!important;
    background:#22c55e!important;
    color:#fff!important;
    border-radius:999px!important;
    padding:8px 13px!important;
    font-size:18px!important;
}


/* KLARA Demo 1.6 – Dashboard zeigt Dienstplan-Tabelle */
.dashboard-plan td:first-child,
.dashboard-plan th:first-child{
    width:190px!important;
    text-align:left!important;
}

.dashboard-plan td{
    font-size:13px;
}

.dashboard-plan small{
    display:block;
    color:#65728a;
    font-size:11px;
    margin-top:2px;
}

.dashboard-plan .f,
.dashboard-plan .z,
.dashboard-plan .s,
.dashboard-plan .n,
.dashboard-plan .x,
.dashboard-plan .k,
.dashboard-plan .u,
.dashboard-plan .fb{
    font-weight:900;
}


/* KLARA Demo 1.8 – Arbeitszeitkonto, Resturlaub, Feiertagsvorbereitung */
.account-summary{
    display:grid;
    grid-template-columns:repeat(4,1fr);
    gap:12px;
    margin:14px 0 16px;
}

.account-summary div{
    background:#f7faff;
    border:1px solid var(--line);
    border-radius:14px;
    padding:14px;
}

.account-summary b{
    display:block;
    color:#1b5be7;
    font-size:26px;
}

.account-summary span{
    color:var(--muted);
    font-weight:800;
    font-size:13px;
}

.account-table-wrap{
    max-height:620px;
    overflow:auto;
    border:1px solid var(--line);
    border-radius:14px;
    background:white;
}

.account-table{
    width:100%;
    min-width:980px;
    border-collapse:separate;
    border-spacing:0;
    font-size:13px;
}

.account-table th{
    position:sticky;
    top:0;
    background:#f7faff;
    z-index:3;
    border:1px solid var(--line);
    padding:10px;
    text-align:left;
}

.account-table td{
    border:1px solid var(--line);
    padding:9px 10px;
    font-weight:800;
}

.account-table td.num{
    text-align:right;
}

.saldo-plus{
    color:#166534;
    background:#dcfce7;
    border-radius:999px;
    padding:5px 9px;
    display:inline-block;
}

.saldo-minus{
    color:#991b1b;
    background:#fee2e2;
    border-radius:999px;
    padding:5px 9px;
    display:inline-block;
}

.holiday-note{
    margin-top:14px;
    background:#fff8e2;
    border:1px solid #fde68a;
    color:#7c5200;
    border-radius:14px;
    padding:14px;
    font-weight:800;
    line-height:1.45;
}


/* KLARA Demo 2.0 – finaler Demo-Chat und Hauptbutton */
.dienstplan-head{
    display:flex;
    flex-direction:column;
    align-items:center;
    text-align:center;
    gap:14px;
}

.main-plan-btn{
    background:#1b5be7!important;
    color:#fff!important;
    border:0!important;
    border-radius:16px!important;
    padding:17px 34px!important;
    min-width:320px;
    font-size:18px!important;
    font-weight:900!important;
    box-shadow:0 14px 30px rgba(27,91,231,.28)!important;
    cursor:pointer;
}

.main-plan-btn:hover{
    background:#174dcc!important;
}

.main-plan-btn:disabled{
    opacity:.8;
    cursor:wait;
}

.chat-examples{
    display:flex;
    gap:8px;
    flex-wrap:wrap;
    margin-top:12px;
}

.chat-examples strong{
    color:#65728a;
    margin-right:4px;
    align-self:center;
}

.chat-example{
    border:1px solid #dce7f8;
    background:#fff;
    color:#1b5be7;
    border-radius:999px;
    padding:8px 12px;
    font-weight:800;
    cursor:pointer;
}

.chat-example:hover{
    background:#eaf1ff;
}


/* KLARA Demo 2.1 – fachlich bereinigte Demo */
.pa{background:#edf7ff}.kf{background:#d8ecff}.ks{background:#ffe0bf}.tu{background:#dff7df;color:#166534}.f{background:#cfe4ff}.z{background:#d8f3f1}.s{background:#ffd2a8}.n{background:#e3d8ff}.x{background:#f1f3f5}.fb{background:#d9dde3;color:#344054}.shift-legend{display:flex;gap:10px;flex-wrap:wrap;align-items:center;margin-top:10px;padding:10px 12px;border:1px solid var(--line);border-radius:14px;background:#fbfdff;font-size:12px;color:#344054}.shift-legend span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}.shift-legend .lg{display:inline-flex;align-items:center;justify-content:center;min-width:28px;height:22px;border-radius:7px;padding:0 6px;font-size:11px}.shift-legend .lg.kf{background:#d8ecff}.shift-legend .lg.f{background:#cfe4ff}.shift-legend .lg.z{background:#d8f3f1}.shift-legend .lg.ks{background:#ffe0bf}.shift-legend .lg.s{background:#ffd2a8}.shift-legend .lg.n{background:#e3d8ff}.shift-legend .lg.x{background:#f1f3f5}.shift-legend .lg.fb{background:#d9dde3}.shift-legend .lg.tu{background:#dff7df;color:#166534}.gauge strong{font-size:22px}.kpi strong#kpiQuote{font-size:22px}.report-grid strong#reportQuote{font-size:22px}


/* KLARA Demo 2.3: kompaktere Kacheln, Personalbedarf-Grafik, Exportleiste */
.kpi-grid{grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:16px}
.kpi{min-height:118px;padding:15px;gap:12px}
.kpi span{width:46px;height:46px;font-size:24px}
.kpi strong{font-size:27px;margin:6px 0}
.action-grid{grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.action-card{min-height:104px;padding:15px}
.action-card span{font-size:24px}
.action-card h3{font-size:15px;margin:8px 0 6px}
.action-card p{font-size:12px;line-height:1.35;max-width:82%}
.action-card button{width:32px;height:32px;right:14px;bottom:13px}
.panel-subtitle{color:var(--muted);font-size:13px;margin-top:4px}.qualmix-card{text-align:left}.qualmix-content{display:flex;align-items:center;gap:18px;margin-top:14px}.qualmix-donut{width:138px;height:138px;border-radius:50%;background:conic-gradient(#16a34a 0 52.8%,#3b82f6 52.8% 67.9%,#f59e0b 67.9% 92.4%,#7c3aed 92.4% 100%);position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;flex-shrink:0}.qualmix-donut:after{content:"";position:absolute;width:82px;height:82px;border-radius:50%;background:white}.qualmix-donut strong,.qualmix-donut span{position:relative;z-index:1}.qualmix-donut strong{font-size:30px}.qualmix-donut span{font-size:12px;color:var(--muted)}.qualmix-legend{flex:1}.qualmix-legend p{display:grid;grid-template-columns:auto 1fr auto auto;gap:8px;align-items:center;font-size:12px;margin:8px 0}.qualmix-legend b{font-weight:900}.qualmix-legend em{font-style:normal;color:var(--muted)}.qualmix-ok{color:#16a34a;font-weight:900;text-align:center;margin-top:10px}.export-actions{display:flex;gap:10px;flex-wrap:wrap;margin:0 0 14px 0}.export-actions button{border:1px solid #dce7f8;background:white;color:#1b5be7;border-radius:10px;padding:10px 14px;font-weight:900;cursor:pointer}.export-actions button:hover{background:#eff6ff}


.replacement-list{display:grid;gap:10px;margin-top:12px}
.replacement-card{display:flex;justify-content:space-between;align-items:center;gap:14px;background:#f7faff;border:1px solid var(--line);border-radius:12px;padding:12px 14px}
.replacement-card span{color:var(--muted);font-weight:800}
.replacement-card button{border:0;background:#1b5be7;color:white;border-radius:9px;padding:10px 16px;font-weight:900;cursor:pointer}
.sick-no-candidate{background:#fff7ed;border:1px solid #fdba74;color:#9a3412;border-radius:12px;padding:12px 14px;margin-top:12px;font-weight:700}


.mintello-note{margin-top:10px!important;color:#cfe1ff!important;font-size:13px!important;line-height:1.35!important}
.settings-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px;margin-top:18px}
.settings-card{background:#f7faff;border:1px solid var(--line);border-radius:14px;padding:16px;line-height:1.45}
.settings-card h3{margin-bottom:8px}
.settings-card p{color:#42526b;margin:5px 0}
.mintello-card{background:linear-gradient(135deg,#f3f7ff,#eaf1ff);border:2px solid #bcd3ff}
@media(max-width:900px){.settings-grid{grid-template-columns:1fr}}

.sick-day-block{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:14px;
  margin:14px 0;
}
.sick-day-block h3{
  color:#166534;
  margin-bottom:6px;
}
.sick-day-block p{
  color:#516077;
  font-weight:800;
  margin-bottom:10px;
}
.sick-day-block .replacement-card button{
  min-width:190px;
}
.sick-day-off{
  background:#f8fafc;
  border-style:dashed;
}
.sick-day-off h3{
  color:#64748b;
}
.sick-day-off p{
  color:#94a3b8;
  font-weight:600;
}
.ghost{
  border:1px solid var(--line);
  background:white;
  color:#65728a;
  border-radius:10px;
  padding:13px 18px;
  font-weight:800;
  cursor:pointer;
}
.ghost:hover{
  background:#fff2f2;
  color:#c1121f;
  border-color:#fecaca;
}
#freigabeBtn{
  border:0;
  cursor:pointer;
}
#freigabeBtn:disabled{
  background:#94a3b8!important;
  cursor:not-allowed;
}
.freigabe-status{
  margin-top:14px;
  border-radius:14px;
  padding:14px 16px;
  font-weight:800;
}
.freigabe-status.ok{
  background:#dcfce7;
  color:#166534;
}
.freigabe-status.blocked{
  background:#fff7ed;
  color:#9a3412;
  border:1px solid #fdba74;
}
.k{background:#ffd9d9!important;color:#c1121f!important}
