/* =====================================================================
   VOLKSSERVICE - PARTNERPORTAL STYLESHEET

   Ported verbatim (selectors, values, order) from the design prototype
   files-3/partnerportal.html <style> block. Nothing in the rules below was
   redesigned, re-colored or re-spaced - only the file location changed
   (inline <style> -> this shared stylesheet, included by header.php on
   every page) and Start/End section banners + a "PORT ADDITIONS" block
   were added (see the bottom of this file) so the static multi-page port
   can show/hide the same states the original single-page app produced by
   rewriting innerHTML at runtime (modals, wizard steps, tab panes).
===================================================================== */

/* =====================================
   Design Tokens Start
===================================== */
:root{
  --brand:#2D7D46;--brand-dark:#1E5C33;--brand-mid:#3A9C58;
  --brand-light:#EAF5EE;--brand-border:rgba(45,125,70,.2);
  --accent:#185FA5;--accent-light:#E6F1FB;
  --warn:#7A4A0A;--warn-light:#FDF0DC;
  --danger:#9B2C2C;--danger-light:#FDEAEA;
  --purple:#3C3489;--purple-light:#EEEDFE;
  --ink:#1A1C1A;--sub:#5C6560;--hint:#9AA09C;
  --bg:#F4F6F4;--surface:#FFFFFF;--surface2:#F0F3F1;
  --border:#E0E5E1;--border-s:#C8D0CA;
  --shadow:0 1px 4px rgba(0,0,0,.06);--shadow-md:0 4px 16px rgba(0,0,0,.09);
  --r:8px;--rl:12px;
}
*{box-sizing:border-box;margin:0;padding:0}
html,body{height:100%}
body{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",system-ui,sans-serif;font-size:13px;
     color:var(--ink);background:var(--bg);line-height:1.5;-webkit-font-smoothing:antialiased}
button,input,select,textarea{font-family:inherit}
/* Design Tokens End */

/* =====================================
   Demo Bar Start
===================================== */
.demo-bar{background:var(--brand);color:#fff;text-align:center;padding:7px 16px;font-size:11px;
  font-weight:500;display:flex;align-items:center;justify-content:center;gap:8px;position:sticky;top:0;z-index:200}
.demo-chip{background:rgba(255,255,255,.2);border:1px solid rgba(255,255,255,.3);border-radius:10px;
  padding:2px 9px;font-size:10px;font-weight:700;letter-spacing:.05em}
/* Demo Bar End */

/* =====================================
   App Grid Start
===================================== */
.app{display:grid;grid-template-columns:220px 1fr}
/* App Grid End */

/* =====================================
   Sidebar Navigation Start
===================================== */
.sb{background:var(--surface);border-right:1px solid var(--border);display:flex;flex-direction:column;
  position:sticky;top:30px;height:calc(100vh - 30px);overflow-y:auto}
.sb-brand{padding:16px 16px 12px;border-bottom:1px solid var(--border);display:flex;align-items:center;gap:9px}
.sb-logo-mark{width:30px;height:30px;border-radius:8px;background:var(--brand);display:flex;
  align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:13px;flex-shrink:0}
.sb-logo-text{font-size:14px;font-weight:700;letter-spacing:-.02em}
.sb-logo-sub{font-size:10px;color:var(--sub)}
.sb-nav{padding:8px;flex:1}
.sb-sec{font-size:9px;text-transform:uppercase;letter-spacing:.1em;color:var(--hint);font-weight:700;padding:10px 8px 4px}
.ni{display:flex;align-items:center;gap:9px;padding:8px 10px;border-radius:var(--r);color:var(--sub);
  cursor:pointer;font-size:12px;font-weight:500;transition:all .1s;margin:1px 0;user-select:none}
.ni:hover{background:var(--surface2);color:var(--ink)}
.ni.active{background:var(--brand-light);color:var(--brand-dark);font-weight:600}
.ni svg{width:15px;height:15px;flex-shrink:0}
.ni-badge{margin-left:auto;background:var(--brand);color:#fff;font-size:9px;font-weight:700;padding:1px 6px;border-radius:9px}
.ni-badge.w{background:var(--warn)}
.ni-badge.d{background:var(--danger)}
.ni-badge.n{background:var(--surface2);color:var(--sub)}
.sb-user{border-top:1px solid var(--border);padding:10px 12px;display:flex;align-items:center;gap:9px}
.sb-av{width:30px;height:30px;border-radius:50%;background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sb-uname{font-size:12px;font-weight:600}
.sb-urole{font-size:10px;color:var(--sub)}
/* Sidebar Navigation End */

/* =====================================
   Main Area / Topbar Start
===================================== */
.main{display:flex;flex-direction:column;min-width:0}
.topbar{height:50px;background:var(--surface);border-bottom:1px solid var(--border);display:flex;
  align-items:center;padding:0 22px;gap:12px;position:sticky;top:30px;z-index:10}
.tb-title{font-size:15px;font-weight:600}
.tb-sp{flex:1}
.tb-btn{height:32px;padding:0 11px;border:1.5px solid var(--border);background:var(--surface);
  border-radius:var(--r);cursor:pointer;display:flex;align-items:center;gap:6px;color:var(--sub);
  font-size:11.5px;font-weight:600;transition:all .12s}
.tb-btn:hover{background:var(--surface2);color:var(--ink)}
.tb-btn svg{width:14px;height:14px}
.content{padding:20px 24px 48px;max-width:1400px;width:100%}
.ph{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.ptitle{font-size:18px;font-weight:700;margin-bottom:3px}
.psub{font-size:12px;color:var(--sub)}
/* Main Area / Topbar End */

/* =====================================
   Buttons Start
===================================== */
.btn{padding:7px 13px;border-radius:var(--r);font-size:12px;font-weight:600;cursor:pointer;
  border:1.5px solid transparent;display:inline-flex;align-items:center;gap:6px;transition:all .14s;white-space:nowrap}
.btn svg{width:13px;height:13px}
.bp{background:var(--brand);color:#fff;border-color:var(--brand)}
.bp:hover{background:var(--brand-dark)}
.bs{background:var(--surface);color:var(--ink);border-color:var(--border)}
.bs:hover{background:var(--surface2);border-color:var(--border-s)}
.bw{background:var(--warn);color:#fff;border-color:var(--warn)}
.bw:hover{filter:brightness(1.1)}
.bd{background:var(--danger-light);color:var(--danger);border-color:transparent}
.bd:hover{background:#f5d0d0}
.btn.sm{padding:4px 9px;font-size:11px}
.iBtn{width:30px;height:30px;border:none;background:transparent;border-radius:var(--r);cursor:pointer;
  display:flex;align-items:center;justify-content:center;color:var(--sub);transition:all .12s}
.iBtn:hover{background:var(--surface2);color:var(--ink)}
.iBtn svg{width:14px;height:14px}
/* Buttons End */

/* =====================================
   KPI Cards Start
===================================== */
.kpi-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:18px}
.kpi{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:14px 16px;
  position:relative;box-shadow:var(--shadow)}
.kpi-label{font-size:10px;color:var(--sub);text-transform:uppercase;letter-spacing:.05em;margin-bottom:7px;font-weight:600}
.kpi-val{font-size:24px;font-weight:700;line-height:1}
.kpi-val.g{color:var(--brand-dark)}
.kpi-val.a{color:var(--warn)}
.kpi-val.b{color:var(--accent)}
.kpi-val.d{color:var(--danger)}
.kpi-val.p{color:var(--purple)}
.kpi-delta{font-size:11px;margin-top:5px;color:var(--sub)}
.kpi-icon{position:absolute;top:14px;right:14px;width:28px;height:28px;border-radius:7px;
  display:flex;align-items:center;justify-content:center;font-size:13px}
.ki-g{background:var(--brand-light);color:var(--brand-dark)}
.ki-b{background:var(--accent-light);color:var(--accent)}
.ki-a{background:var(--warn-light);color:var(--warn)}
.ki-d{background:var(--danger-light);color:var(--danger)}
.ki-p{background:var(--purple-light);color:var(--purple)}
/* KPI Cards End */

/* =====================================
   Panels Start
===================================== */
.panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);overflow:hidden;
  margin-bottom:16px;box-shadow:var(--shadow)}
.ph2-t{font-size:13px;font-weight:600}
.ph2-s{font-size:11px;color:var(--sub);margin-top:1px}
.p-hdr{padding:12px 16px;border-bottom:1px solid var(--border);display:flex;align-items:center;
  justify-content:space-between;gap:12px}
.p-body{padding:14px 16px}
.p-empty{padding:34px;text-align:center;font-size:12px;color:var(--sub)}
/* Panels End */

/* =====================================
   Table Start
===================================== */
.tbl{width:100%;border-collapse:collapse;font-size:12px}
.tbl thead tr{background:var(--surface2);border-bottom:1.5px solid var(--border)}
.tbl thead th{padding:7px 12px;text-align:left;font-size:10px;font-weight:700;text-transform:uppercase;
  letter-spacing:.04em;color:var(--sub);white-space:nowrap}
.tbl thead th.r,.tbl tbody td.r{text-align:right}
.tbl tbody td{padding:8px 12px;border-bottom:1px solid var(--border);vertical-align:middle}
.tbl tbody tr:last-child td{border-bottom:none}
.tbl tbody tr.klick{cursor:pointer}
.tbl tbody tr.klick:hover{background:var(--surface2)}
/* Table End */

/* =====================================
   Badges Start
===================================== */
.badge{display:inline-flex;align-items:center;padding:2px 8px;border-radius:12px;font-size:10px;
  font-weight:600;white-space:nowrap}
.badge.dot::before{content:"";width:5px;height:5px;background:currentColor;border-radius:50%;margin-right:4px;opacity:.65}
.bg-g{background:var(--brand-light);color:var(--brand-dark)}
.bg-b{background:var(--accent-light);color:var(--accent)}
.bg-a{background:var(--warn-light);color:var(--warn)}
.bg-d{background:var(--danger-light);color:var(--danger)}
.bg-n{background:var(--surface2);color:var(--sub)}
.bg-p{background:var(--purple-light);color:var(--purple)}
/* Badges End */

/* =====================================
   Modal Start
===================================== */
.overlay{position:fixed;inset:0;background:rgba(26,28,26,.5);z-index:100;display:flex;
  align-items:center;justify-content:center;padding:20px;backdrop-filter:blur(2px)}
.modal{background:var(--surface);border-radius:14px;width:100%;max-width:640px;
  max-height:calc(100vh - 60px);display:flex;flex-direction:column;overflow:hidden;
  box-shadow:0 16px 48px rgba(0,0,0,.2)}
.m-hdr{padding:16px 20px;border-bottom:1px solid var(--border);display:flex;align-items:center;justify-content:space-between}
.m-title{font-size:15px;font-weight:700}
.m-sub{font-size:11px;color:var(--sub);margin-top:2px}
.m-x{border:none;background:transparent;cursor:pointer;padding:6px;border-radius:6px;color:var(--sub);
  display:flex;align-items:center;font-size:17px}
.m-x:hover{background:var(--surface2);color:var(--ink)}
.m-body{padding:18px 20px;overflow-y:auto;flex:1}
.m-foot{padding:12px 20px;border-top:1px solid var(--border);display:flex;justify-content:space-between;
  align-items:center;gap:12px;background:var(--surface2)}
/* Modal End */

/* =====================================
   Form Controls Start
===================================== */
.ff{display:flex;flex-direction:column;gap:4px;margin-bottom:12px}
.fl{font-size:11px;font-weight:600;color:var(--ink)}
.fi,.fs,.fta{padding:8px 11px;border:1.5px solid var(--border);border-radius:var(--r);font-size:12px;
  font-family:inherit;transition:all .14s;color:var(--ink);background:var(--surface);width:100%}
.fi:focus,.fs:focus,.fta:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(45,125,70,.1)}
.fta{resize:vertical;min-height:70px}
.fgrid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.fhint{font-size:10px;color:var(--sub)}
.req{color:var(--danger)}
.fchk{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;border:1.5px solid var(--border);
  border-radius:var(--r);cursor:pointer;font-size:11.5px;font-weight:600;color:var(--sub);background:var(--surface)}
.fchk.on{border-color:var(--brand);background:var(--brand-light);color:var(--brand-dark)}
.fchk input{width:14px;height:14px;cursor:pointer;accent-color:var(--brand)}
/* Form Controls End */

/* =====================================
   Avatar Start
===================================== */
.av{width:26px;height:26px;border-radius:50%;background:linear-gradient(135deg,var(--brand),var(--brand-dark));
  color:#fff;font-size:9px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.av.blue{background:linear-gradient(135deg,var(--accent),#0c4478)}
.av.purple{background:linear-gradient(135deg,var(--purple),#1e1870)}
.av.amber{background:linear-gradient(135deg,#c47a15,#7a4a0a)}
.av.lg{width:34px;height:34px;font-size:11px}
/* Avatar End */

/* =====================================
   Progress Bar Start
===================================== */
.status-progress{height:6px;border-radius:3px;background:var(--surface2);overflow:hidden;margin-top:6px}
.status-fill{height:100%;border-radius:3px;background:var(--brand);transition:width .3s}
.status-fill.warn{background:var(--warn)}
.status-fill.danger{background:var(--danger)}
/* Progress Bar End */

/* =====================================
   Task List Start
===================================== */
.task{display:flex;align-items:center;gap:12px;padding:11px 16px;border-bottom:1px solid var(--border);
  cursor:pointer;transition:background .12s}
.task:last-child{border-bottom:none}
.task:hover{background:var(--surface2)}
.task-ic{width:30px;height:30px;border-radius:7px;display:flex;align-items:center;justify-content:center;
  font-size:13px;flex-shrink:0}
.task-t{font-size:12px;font-weight:600}
.task-s{font-size:11px;color:var(--sub);margin-top:1px}
/* Task List End */

/* =====================================
   Partner Card Start
===================================== */
.pcard{background:var(--surface);border:1px solid var(--border);border-radius:var(--rl);padding:12px 15px;
  display:flex;align-items:center;gap:13px;margin-bottom:9px;cursor:pointer;transition:all .12s;box-shadow:var(--shadow)}
.pcard:hover{border-color:var(--brand);box-shadow:var(--shadow-md)}
.pc-ic{width:36px;height:36px;border-radius:9px;display:flex;align-items:center;justify-content:center;
  font-size:16px;flex-shrink:0}
/* Partner Card End */

/* =====================================
   Log List Start
===================================== */
.log{display:flex;align-items:flex-start;gap:11px;padding:11px 16px;border-bottom:1px solid var(--border)}
.log:last-child{border-bottom:none}
.log-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0;margin-top:5px}
/* Log List End */

/* =====================================
   Anmeldung (Login) Start
===================================== */
.login-wrap{min-height:100vh;display:grid;grid-template-columns:1fr 440px;background:var(--bg)}
.login-links{padding:48px 52px;display:flex;flex-direction:column;justify-content:space-between}
.login-rechts{background:var(--surface);border-left:1px solid var(--border);display:flex;
  align-items:center;justify-content:center;padding:32px 44px}
.login-card{width:100%;max-width:340px}
.nur-schmal{display:none}
.login-merk{display:flex;align-items:flex-start;gap:12px;padding:12px 0}
.login-merk-ic{width:30px;height:30px;border-radius:8px;background:var(--brand-light);
  color:var(--brand-dark);display:flex;align-items:center;justify-content:center;font-size:13px;flex-shrink:0}
@media(max-width:900px){
  .login-wrap{grid-template-columns:1fr}
  .login-links{display:none}
  .login-rechts{padding:28px 20px}
  .nur-schmal{display:flex!important}
}
/* Anmeldung (Login) End */

/* =====================================
   Toast Message Start
===================================== */
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:900;padding:11px 20px;
  border-radius:var(--r);background:var(--ink);color:#fff;font-size:12.5px;font-weight:600;
  box-shadow:var(--shadow-md);display:flex;align-items:center;gap:8px}
.toast.warn{background:var(--warn)}
/* Toast Message End */

/* =====================================
   Responsive (<=1100px) Start
===================================== */
@media(max-width:1100px){
  .app{grid-template-columns:1fr}
  .sb{position:static;height:auto;flex-direction:row;overflow-x:auto;border-right:none;
      border-bottom:1px solid var(--border)}
  .sb-nav{display:flex;gap:4px;padding:8px}
  .sb-sec,.sb-user,.sb-brand{display:none}
  .kpi-grid{grid-template-columns:repeat(2,1fr)}
}
/* Responsive (<=1100px) End */


/* =====================================================================
   PORT ADDITIONS
   Everything below is NEW - it did not exist in the prototype's <style>
   block. The prototype was a single HTML file that rewrote #app's
   innerHTML on every click (see zeichnen() in partnerportal.html), so a
   "selected chip" or "open modal" was simply never printed into the
   markup. A static multi-page port cannot regenerate markup on click, so
   the same visual states are pre-rendered once and toggled with plain
   CSS/JS (assets/js/partnerportal.js) instead. Values below are copied
   from the inline styles the prototype's JS used for these exact states,
   so the result is pixel-identical - only the mechanism changed.
===================================================================== */

/* =====================================
   Generic [hidden] Override Start
   Needed because .overlay sets display:flex, which otherwise wins over
   the browser's default "[hidden]{display:none}" rule.
===================================== */
[hidden]{display:none!important}
/* Generic [hidden] Override End */

/* =====================================
   Anchor Reset Start
   The prototype built .ni / .btn / .iBtn / .sb-user's account block as
   plain <div>/<button> elements with an onclick handler (a client-side
   SPA has no real URLs to link to). This port turns the ones that lead
   to another page into real <a href> elements for real navigation and
   right-click/"open in new tab" support - but a bare <a> carries the
   browser's default underline, which those classes never accounted for.
===================================== */
.ni,.btn,.iBtn,.sb-user a{text-decoration:none}
/* Anchor Reset End */

/* =====================================
   Anspruch pruefen - Step Indicator Start
   (pruefungSeite() step chips, files-3/partnerportal.html ~L1230)
   Simplification vs. the prototype: the prototype also drew a distinct
   "done" (checkmark) state for steps already passed, derived from live
   wizard progress. This static port has no progress to track (every step
   pane is pre-rendered and freely reachable), so a step chip only has an
   active / inactive state here - the checkmark state was dropped.
===================================== */
.pr-step{flex:1;min-width:130px;display:flex;align-items:center;gap:9px;padding:10px 13px;
  border:1.5px solid var(--border);border-radius:var(--rl);background:var(--surface);cursor:pointer}
.pr-step .pr-step-num{width:24px;height:24px;border-radius:50%;background:var(--border-s);color:#fff;
  display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0}
.pr-step .pr-step-lbl{font-size:12px;font-weight:500;color:var(--hint)}
.pr-step.active{border-color:var(--brand);background:var(--brand-light)}
.pr-step.active .pr-step-num{background:var(--brand)}
.pr-step.active .pr-step-lbl{font-weight:700;color:var(--brand-dark)}
/* Anspruch pruefen - Step Indicator End */

/* =====================================
   Tab Pills Start
   Shared by the Zuweisungen status tabs and the Rueckmeldungen reiter
   (identical inline styles in the prototype's zuweisungenSeite() /
   nachrichtenSeite() - reiter.map(...) - factored into one class here).
===================================== */
.pp-tab{padding:9px 14px;border:none;background:transparent;color:var(--sub);font-size:12.5px;
  font-weight:500;cursor:pointer;font-family:inherit;white-space:nowrap;border-bottom:2px solid transparent}
.pp-tab.active{color:var(--brand-dark);font-weight:700;border-bottom-color:var(--brand)}
/* Tab Pills End */

/* =====================================
   Anspruch pruefen - Step 1 Leistungen Start
   (pruefungSeite() Schritt 1 cards, files-3/partnerportal.html ~L1257)
===================================== */
.pr-service{flex:1;min-width:220px;display:flex;align-items:center;gap:12px;padding:13px 15px;
  border:1.5px solid var(--border);border-radius:var(--rl);background:var(--surface);cursor:pointer}
.pr-service-lbl{font-size:13px;font-weight:600;color:var(--ink)}
.pr-service-check{width:20px;height:20px;border-radius:6px;border:1.5px solid var(--border-s);
  background:var(--surface);color:#fff;display:flex;align-items:center;justify-content:center;
  font-size:12px;flex-shrink:0}
.pr-service.on{border-color:var(--brand);background:var(--brand-light)}
.pr-service.on .pr-service-lbl{color:var(--brand-dark)}
.pr-service.on .pr-service-check{border-color:var(--brand);background:var(--brand)}
/* Anspruch pruefen - Step 1 Leistungen End */

/* =====================================
   Anspruch pruefen - Step 2 Fragen Chips Start
   (pruefungSeite() Schritt 2 answer chips, files-3/partnerportal.html ~L1295)
===================================== */
.pr-chip{padding:7px 13px;border:1.5px solid var(--border);border-radius:var(--r);background:var(--surface);
  color:var(--sub);font-size:12px;font-weight:600;cursor:pointer}
.pr-chip.wide{padding:7px 22px}
.pr-chip.on{border-color:var(--brand);background:var(--brand-light);color:var(--brand-dark)}
/* Anspruch pruefen - Step 2 Fragen Chips End */

/* Anspruch pruefen wizard panes (Schritt 1-5) share the generic [data-switch-pane-group] /
   [hidden] mechanism above - no extra CSS needed beyond the [hidden] override. */
