/* Gemeinsame Rollen aus dem bestätigten Konzept: orange/weiß, dunkle Kundenköpfe,
   heller Lesetext, grün/gelb/rot jeweils mit vorhandenem Statuswort. */
:root{--kc-action:#e86d05;--kc-action-text:#fff;--kc-customer-name:#ff9a43;--kc-dark:#171c1e;--kc-dark-text:#fff;--kc-dark-muted:#e2e7e9;--kc-surface:#fff;--kc-page:#f3f1ed;--kc-ink:#202428;--kc-muted:#59646c;--kc-line:#ddd8d0;--kc-success:#1e6540;--kc-success-bg:#e7f4eb;--kc-warning:#755000;--kc-warning-bg:#fff5d9;--kc-error:#923131;--kc-error-bg:#ffeded;--kc-focus:#9a4100}
body{background:var(--kc-page);color:var(--kc-ink)}
button:focus-visible,a:focus-visible,summary:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid var(--kc-focus)!important;outline-offset:3px}
button:disabled,input:disabled,select:disabled,textarea:disabled{cursor:not-allowed;opacity:.65}
input:not([type=checkbox]):not([type=radio]):not([type=color]):not([type=range]),select,textarea{background:var(--kc-surface);color:var(--kc-ink)}
input[type=checkbox],input[type=radio]{accent-color:var(--kc-action);width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;max-width:22px;flex:0 0 22px;vertical-align:middle}
label:has(>input[type=checkbox]),label:has(>input[type=radio]){gap:9px;align-items:center}
.case99-identity,.case99-customer-card header h3{background:var(--kc-dark);color:var(--kc-dark-text)}
.case99-identity h2,.case99-customer-card header h3{color:var(--kc-customer-name)!important}
#caseHeader99 button:not(.case99-price),.case99-summary button:not(.secondary),.case99-overview button:not(.secondary):not(.case99-pill),#quickProject{background:var(--kc-action)!important;color:var(--kc-action-text)!important;border-color:var(--kc-action)!important;font-size:19px!important;font-weight:700!important;line-height:1.3}
.case99-overview button.secondary,.case99-summary button.secondary{background:var(--kc-surface)!important;color:var(--kc-focus)!important}
.case99-pill.success{color:var(--kc-success)!important;background:var(--kc-success-bg)!important}.case99-pill.warn{color:var(--kc-warning)!important;background:var(--kc-warning-bg)!important}.case99-pill.danger{color:var(--kc-error)!important;background:var(--kc-error-bg)!important}
/* Alte dunkle Komponenten dürfen keine dunkle Seiten-Schrift erben. */
.kc-record,.kc-alert,.kc-tag,.kc-kpi{color:var(--kc-dark-text)!important}
.kc-record :is(h2,h3,h4,strong,p,label),.kc-alert :is(h2,h3,h4,strong,p),.kc-kpi :is(strong,h2,h3){color:var(--kc-dark-text)!important}
.kc-record :is(small,.kc-muted),.kc-alert :is(small,.kc-muted),.kc-kpi :is(small,.label){color:var(--kc-dark-muted)!important;opacity:1}
.kc-record a:not(.button):not(.button-link),.kc-alert a:not(.button):not(.button-link){color:var(--kc-customer-name);text-decoration:underline}
thead th,thead td{color:var(--kc-dark-text)!important;background:#24292d!important}
input[aria-invalid=true],select[aria-invalid=true],textarea[aria-invalid=true]{border:2px solid var(--kc-error)!important}
details>summary{cursor:pointer;line-height:1.45}summary:focus-visible{border-radius:5px}
#caseNav99 button{white-space:normal;overflow-wrap:anywhere;min-height:44px}
#caseNav99 > button::before{content:attr(data-case-icon103);display:inline-block;width:22px;margin-right:9px;text-align:center;color:var(--kc-customer-name)}
@media(min-width:901px){body.kc-sidebar-collapsed #caseNav99{padding-inline:5px}body.kc-sidebar-collapsed #caseNav99>p{font-size:0;padding:0}body.kc-sidebar-collapsed #caseNav99>button{font-size:0;padding:8px!important;text-align:center}body.kc-sidebar-collapsed #caseNav99>button::before{font-size:20px;margin:0}body.kc-sidebar-collapsed #caseGlobalNav99>summary{font-size:0;padding:12px 3px;text-align:center}body.kc-sidebar-collapsed #caseGlobalNav99>summary::after{content:'⋯';font-size:22px}}
@media(max-width:900px){.topbar{position:relative!important;backdrop-filter:none!important}#caseHeader99{margin:12px}.case99-identity{gap:12px}.case99-identity h2{overflow-wrap:anywhere}.case99-price{white-space:normal}.table-wrap,.scroll-table,.kc-table-wrap,.kc51-table-wrap{overflow-x:auto!important;overscroll-behavior-x:contain}.kc51-table-wrap table,.kc-table-wrap table{min-width:620px!important;table-layout:auto!important}.kc51-table-wrap:focus-visible,.kc-table-wrap:focus-visible{outline:3px solid var(--kc-focus)}}
@media(max-width:600px){input,select,textarea{font-size:16px!important}.case99-actions{gap:8px}.case99-actions button{min-height:44px}.case99-identity{padding:16px}.case99-identity h2{font-size:26px}.case99-price strong{font-size:22px}.case99-plan-row input{width:100%}}
@media(prefers-reduced-motion:reduce){.app-shell,.sidebar,button{transition:none!important;scroll-behavior:auto!important}}
@media print{.kc-record,.kc-alert,.kc-tag,.kc-kpi,.kc-record :is(h2,h3,h4,strong,p,label,small,.kc-muted),.kc-alert :is(h2,h3,h4,strong,p,small,.kc-muted),.kc-kpi :is(strong,h2,h3,small,.label){background:white!important;color:#202428!important}thead th,thead td{background:#eee!important;color:#202428!important}}

