/* Automatisch erzeugt aus app.css von bin/build-dark-css.py – nicht von Hand ändern. */
html[data-theme-active="dark"]{color-scheme:dark}
html[data-theme-active="dark"]{--bg:#202521;--surface:#202521;--soft:#191e1a;--text:#dbdcdf;--muted:#b8b9bc;--line:#3b3e45;--green-soft:#253229;--amber-soft:#3b2f1c}
html[data-theme-active="dark"] body{background:#202521}
html[data-theme-active="dark"] .sidebar{background:#202521}
html[data-theme-active="dark"] .mark{color:#ffffff}
html[data-theme-active="dark"] .navitem{color:#aeb0b4}
html[data-theme-active="dark"] .navitem:hover{background:#262a31}
html[data-theme-active="dark"] .navitem.active{background:#202521}
html[data-theme-active="dark"] .navicon{color:#c9cbcd}
html[data-theme-active="dark"] .topline{border-bottom:1px solid #38383c}
html[data-theme-active="dark"] .card{border:1px solid #3a3c44;background:#202521}
html[data-theme-active="dark"] .metric small,html[data-theme-active="dark"] .metric-inline small{color:#cacbce}
html[data-theme-active="dark"] .button{background:#202521}
html[data-theme-active="dark"] .button.primary{color:#ffffff}
html[data-theme-active="dark"] input,html[data-theme-active="dark"] select,html[data-theme-active="dark"] textarea{background:#202521}
html[data-theme-active="dark"] .mutedbadge{background:#141815}
html[data-theme-active="dark"] .notice{background:#1c243b;color:#7e97d8}
html[data-theme-active="dark"] .plusmark{background:#1c233b}
html[data-theme-active="dark"] .customer-number{color:#9397a0}
html[data-theme-active="dark"] .project-card{border-top:1px solid #343840}
html[data-theme-active="dark"] .service-manager{border-top:1px solid #343840}
html[data-theme-active="dark"] .dashboard-metric:hover{border-color:#3b3e48}
html[data-theme-active="dark"] .dashboard-metric.highlight{border-color:#363942;background:linear-gradient(120deg,#1d221e,#202521)}
html[data-theme-active="dark"] .dashboard-metric .metric-icon{background:#181c19;color:#b1b4ba}
html[data-theme-active="dark"] .dashboard-metric.highlight .metric-icon{background:#1c253b}
html[data-theme-active="dark"] .legend-all,html[data-theme-active="dark"] .bar-all{background:#3d4148}
html[data-theme-active="dark"] .month-chart{background:repeating-linear-gradient(to bottom,transparent 0,transparent 45px,#151916 46px,#151916 47px)}
html[data-theme-active="dark"] .status-tabs{background:#1c201d}
html[data-theme-active="dark"] .status-tabs a.active{background:#202521}
html[data-theme-active="dark"] .status-tabs small{background:#141815}
html[data-theme-active="dark"] .billing-summary{background:#1d221e}
html[data-theme-active="dark"] .billing-actions{background:rgba(31,31,31,0.949)}
html[data-theme-active="dark"] .client-card:focus-within{border-color:#3a3d47}
html[data-theme-active="dark"] .management-create details:hover{border-color:#40444e}
html[data-theme-active="dark"]{--line:#3b4639;--soft:#171a17}
html[data-theme-active="dark"] body{background:#191d1a}
html[data-theme-active="dark"] .sidebar{background:#2b3026}
html[data-theme-active="dark"] .navitem.active{background:#131714;color:#cfd9d3;border-color:#3b483c}
html[data-theme-active="dark"] .dashboard-metric.highlight{border-color:#3b483c;background:linear-gradient(120deg,#293125,#202521)}
html[data-theme-active="dark"] .dashboard-metric.highlight .metric-icon,html[data-theme-active="dark"] .metric-icon{background:#131614;color:#90b09c}
html[data-theme-active="dark"] .billing-actions{background:rgba(31,33,28,0.949)}
html[data-theme-active="dark"] .entry-symbol{background:#293126;color:#8ab393}
html[data-theme-active="dark"] .step-heading>span{background:#121512;color:#cad6ce}
html[data-theme-active="dark"] .project-chip{background:#202521}
html[data-theme-active="dark"] .project-chip:hover,html[data-theme-active="dark"] .project-chip.selected{background:#293125}
html[data-theme-active="dark"] .entry-label select:disabled{background:#171a17;color:#cbceca}
html[data-theme-active="dark"] .selected-rate{color:#91b09a}
html[data-theme-active="dark"] .duration-presets button{background:#202521;color:#cfd4cf}
html[data-theme-active="dark"] .duration-presets button:hover,html[data-theme-active="dark"] .duration-presets button.selected{background:#283126;color:#cfd9d3}
html[data-theme-active="dark"] .billable-toggle{background:#1c201d}
html[data-theme-active="dark"] .year-stat-icon{background:#141714;color:#93b399}
html[data-theme-active="dark"] .entry-new{border:1px dashed #435246;background:#1b1f1c}
html[data-theme-active="dark"] .entry-new legend{color:#91b09a}
html[data-theme-active="dark"] .textbtn.danger{color:#d39a96}
html[data-theme-active="dark"] .entry-form.is-editing{outline:2px solid #414f44}
html[data-theme-active="dark"] .flat-badge{background:#1f2537;color:#a0aacd}
html[data-theme-active="dark"] .flat-row td{background:#1e231f}
html[data-theme-active="dark"] .badge.sent{background:#1f2537;color:#a0aacd}
html[data-theme-active="dark"] .entry-line.is-editing{outline:2px solid #414f44}
html[data-theme-active="dark"] .lf{border:1px solid #3f493c;background:#202521}
html[data-theme-active="dark"] .lf>small{color:#c8cac7}
html[data-theme-active="dark"] .combo-dot{background:#40483d}
html[data-theme-active="dark"] .combo-rate{color:#c8cac7;background:#202521}
html[data-theme-active="dark"] .combo-list{background:#202521;border:1px solid #3f493c}
html[data-theme-active="dark"] .combo-list li.on{background:#151916}
html[data-theme-active="dark"] .combo-list .combo-group{color:#c8cac7}
html[data-theme-active="dark"] .combo-opt-rate{color:#c8cac7}
html[data-theme-active="dark"] .line-save .kbd{border:1px solid rgba(51,51,51,0.376)}
html[data-theme-active="dark"] .line-new{border:1px dashed #435246;background:#1b1f1c}
html[data-theme-active="dark"] .line-hint{color:#c8cac7}
html[data-theme-active="dark"] .day-head{color:#a9aca8}
html[data-theme-active="dark"] .day-row{border-top:1px solid #3c4136}
html[data-theme-active="dark"] .day-acts .textbtn{color:#c8cac7}
html[data-theme-active="dark"] .day-row:hover .day-acts .textbtn.danger{color:#d39a96}
html[data-theme-active="dark"] .ic-inline{color:#c8cac7}
html[data-theme-active="dark"] .h1-ic{background:#131714}
html[data-theme-active="dark"] .einvoice-status.ok .ic{color:#66d194}
html[data-theme-active="dark"] .einvoice-status.warn .ic{color:#ebb16e}
html[data-theme-active="dark"] .einv-badge.ok{color:#66d194}
html[data-theme-active="dark"] .einv-badge.warn{color:#d7d2cc}
html[data-theme-active="dark"] .einv-reason-box{background:#282a2f;color:#ffffff}
html[data-theme-active="dark"] .trk-dot{border:1.5px solid #434f45;background:#202521;color:#ffffff}
html[data-theme-active="dark"] .trk-lbl small{color:#cacbce}
html[data-theme-active="dark"] .trk-step.done .trk-lbl{color:#d0d9d3}
html[data-theme-active="dark"] .trk-step.now .trk-lbl{color:#d6d2cb}
html[data-theme-active="dark"] .trk-bar{background:#3d483f}
html[data-theme-active="dark"] .doc-tools .einv-badge.warn{color:#e0bd80}
html[data-theme-active="dark"] .ibtn{background:#202521;color:#cdd5d0}
html[data-theme-active="dark"] .ibtn:hover{background:#171a17;border-color:#3f4d41}
html[data-theme-active="dark"] .ibtn.danger{color:#d39a96}
html[data-theme-active="dark"] .ibtn.danger:hover{background:#37211f}
html[data-theme-active="dark"] .split-main,html[data-theme-active="dark"] .split-toggle{color:#ffffff}
html[data-theme-active="dark"] .split-toggle{border-left-color:rgba(51,51,51,0.35)}
html[data-theme-active="dark"] .split-menu{background:#202521}
html[data-theme-active="dark"] .done-note .ic{color:#66d194}
html[data-theme-active="dark"] .cx-chip{background:#202521;color:#d4d4d4}
html[data-theme-active="dark"] .cx-chip.on{background:#282a2f;color:#ffffff}
html[data-theme-active="dark"] .cx-list{background:#202521}
html[data-theme-active="dark"] .cx-item.sel{background:#171a17;border-color:#3e4c41}
html[data-theme-active="dark"] .cx-item:not(.sel):hover{background:#191e1a}
html[data-theme-active="dark"] .cx-warn-ic{color:#e0bd80}
html[data-theme-active="dark"] .cx-add{border:1px dashed #414f41;color:#cad6ce}
html[data-theme-active="dark"] .cx-add-ic{background:#141714}
html[data-theme-active="dark"] .cx-pill{background:#151916;color:#d0d0d0}
html[data-theme-active="dark"] .cx-pill.ok{background:#131714;color:#cfd9d3}
html[data-theme-active="dark"] .cx-pill.warn{background:#3b301c;color:#d6d1cb}
html[data-theme-active="dark"] .cx-pill.blue{background:#1e2739;color:#899ece}
html[data-theme-active="dark"] .cx-pill.soft{background:#181c19}
html[data-theme-active="dark"] .cx-kpis{background:#2b3026}
html[data-theme-active="dark"] .cx-proj-ic.hour{background:#131714;color:#87a991}
html[data-theme-active="dark"] .cx-proj-ic.flat{background:#352f22;color:#d6d1cb}
html[data-theme-active="dark"] .cx-proj-open{color:#d6d2cb}
html[data-theme-active="dark"] .ibtn[aria-expanded="true"]{background:#131714;border-color:#404e43;color:#cfd9d3}
html[data-theme-active="dark"] .cx-proj-edit{background:#2b3026}
html[data-theme-active="dark"] .cx-alert{background:#3b301c;color:#d6d1cb}
@media(max-width:900px){html[data-theme-active="dark"] .cx-item{background:#202521}
html[data-theme-active="dark"] .cx-item.sel{background:#202521}
html[data-theme-active="dark"] .cx-stats b.amber{color:#d6d2cb}
html[data-theme-active="dark"] .cx-add{border:1px dashed #414f41}
html[data-theme-active="dark"] .cx-back{color:#cad6ce}}
html[data-theme-active="dark"] .pill-act{background:#202521}
html[data-theme-active="dark"] .pill-ic{color:#ffffff}
html[data-theme-active="dark"] .pill-act:hover{border-color:#415045;background:#2b3026}
html[data-theme-active="dark"] .pill-chip{background:#151916;color:#d0d0d0}
html[data-theme-active="dark"] .pill-chip:hover,html[data-theme-active="dark"] .pill-chip[aria-expanded="true"]{background:#121512;color:#cfd9d3}
html[data-theme-active="dark"] .menu-item:hover{background:#171b18}
html[data-theme-active="dark"] .menu-item.danger{color:#d39a96}
html[data-theme-active="dark"] .menu-item.danger:hover{background:#37211f}
@media(max-width:650px){html[data-theme-active="dark"] body{background:#181c19}
html[data-theme-active="dark"] .mtabs{background:rgba(31,31,31,0.94);border-top:1px solid #3e473a}
html[data-theme-active="dark"] .mtab{color:#c8cac7}
html[data-theme-active="dark"] .mtab.on{color:#cfd9d3}
html[data-theme-active="dark"] .mfab-b{color:#ffffff}
html[data-theme-active="dark"] .tsheet-dim,html[data-theme-active="dark"] .msheet-dim{background:rgba(39,48,41,0.4)}
html[data-theme-active="dark"] .tsheet{background:#202521}
html[data-theme-active="dark"] .grab{background:#41473d}
html[data-theme-active="dark"] .ts-date{background:#151916;color:#cdd5d0}
html[data-theme-active="dark"] .ts-lbl{color:#b9bbb8}
html[data-theme-active="dark"] .tchip{background:#202521;border:1px solid #3f483b}
html[data-theme-active="dark"] .tchip.on{background:#131714;border-color:#48584c;color:#d2dcd6}
html[data-theme-active="dark"] .ts-dur{background:#171a17}
html[data-theme-active="dark"] .ts-dur small{color:#b9bbb8}
html[data-theme-active="dark"] .ts-step{border:1px solid #3f483b;background:#202521;color:#cdd5d0}
html[data-theme-active="dark"] .ts-toggle i{background:#3f473d}
html[data-theme-active="dark"] .ts-toggle i::after{background:#202521}
html[data-theme-active="dark"] .m-title small{color:#b9bbb8}
html[data-theme-active="dark"] .m-circ{background:#202521;border:1px solid #3e473a;color:#cdd5d0}
html[data-theme-active="dark"] .m-hero{background:#223429;color:#ffffff}
html[data-theme-active="dark"] .m-hero-pill{background:rgba(31,31,31,0.14)}
html[data-theme-active="dark"] .m-hbtn{background:rgba(31,31,31,0.14);color:#ffffff}
html[data-theme-active="dark"] .m-hbtn.light{background:#202521;color:#d6dfd9}
html[data-theme-active="dark"] .m-lbl{color:#b9bbb8}
html[data-theme-active="dark"] .m-lbl-row a{color:#cad6ce}
html[data-theme-active="dark"] .m-card{background:#202521;border:1px solid #3e4639}
html[data-theme-active="dark"] .m-li{border-top:1px solid #3c4136}
html[data-theme-active="dark"] .m-li-t small{color:#b9bbb8}
html[data-theme-active="dark"] .m-sq.send{background:#1e2739;color:#99abd1}
html[data-theme-active="dark"] .m-sq.due{background:#3b301c;color:#d6d2cb}
html[data-theme-active="dark"] .m-sq.flat{background:#352f22;color:#d6d1cb}
html[data-theme-active="dark"] .m-chipbtn{border:1px solid #3f483b;background:#202521}
html[data-theme-active="dark"] .m-go{color:#cbceca}
html[data-theme-active="dark"] .m-empty{color:#b9bbb8}
html[data-theme-active="dark"] .m-empty b{color:#cad6ce}
html[data-theme-active="dark"] .inv2 tr{background:#202521;border:1px solid #3e4639!important}
html[data-theme-active="dark"] .inv2 .c-no::after{color:#b9bbb8}
html[data-theme-active="dark"] .inv2 .pill-act{color:#ffffff}
html[data-theme-active="dark"] .inv2 .pill-main{color:#ffffff}
html[data-theme-active="dark"] [data-split] .split-menu::before{background:#41473d}
html[data-theme-active="dark"] .menu-item{border-top:1px solid #3b4035}
html[data-theme-active="dark"] .billing-table tbody tr{border-top:1px solid #3c4136}
html[data-theme-active="dark"] .billing-table td:nth-child(2){color:#b9bbb8}
html[data-theme-active="dark"] .billing-table td:nth-child(4) small{color:#b9bbb8}
html[data-theme-active="dark"] .billing-table td:nth-child(6){color:#b9bbb8}
html[data-theme-active="dark"] .billing-actions{background:#292a2e;color:#ffffff}
html[data-theme-active="dark"] .billing-actions .muted{color:rgba(255,255,255,0.75)}
html[data-theme-active="dark"] .billing-actions .muted b{color:#ffffff}
html[data-theme-active="dark"] .cx-search input{background:#121512}
html[data-theme-active="dark"] .cx-list{background:#202521!important;border:1px solid #3e4639!important}
html[data-theme-active="dark"] .cx-item{border-top:1px solid #3c4136!important}
html[data-theme-active="dark"] .cx-add{border-top:1px solid #3c4136!important}}
html[data-theme-active="dark"] .theme-prev{background:#191d1a;border:1px solid #3e473a}
html[data-theme-active="dark"] .theme-prev i{background:#202521;border:1px solid #3e473a}
html[data-theme-active="dark"] .theme-prev i:first-child{background:#141714}
html[data-theme-active="dark"] .theme-prev-dark{background:#272f29}
html[data-theme-active="dark"] .theme-prev-dark i{background:#273029}
html[data-theme-active="dark"] .theme-prev-dark i:first-child{background:#27302a}
html[data-theme-active="dark"] .theme-prev-auto{background:linear-gradient(135deg,#191d1a 50%,#272f29 50%)}
html[data-theme-active="dark"] .theme-prev-auto i{background:rgba(31,31,31,0.6);border-color:rgba(128,128,128,0.3)}
html[data-theme-active="dark"] .theme-txt .ic{color:#87a991}
@media(max-width:650px){html[data-theme-active="dark"] .page-invoices .card:has(.inv2) .invoice-overview{background:#202521;border:1px solid #3e4639}}
html[data-theme-active="dark"] .mail-tab{background:#202521;color:#d4d4d4}
html[data-theme-active="dark"] .mail-tab.on{background:#282a2f;color:#ffffff}
html[data-theme-active="dark"] .ml-row:hover{background:#191e1a}
html[data-theme-active="dark"] .ml-subj{color:#d0d0d0}
html[data-theme-active="dark"] .ml-att{color:#c5c5c5}
html[data-theme-active="dark"] .ml-state.ok{color:#66d194}
html[data-theme-active="dark"] .ml-state.warn{color:#e0bd80}
html[data-theme-active="dark"] .ml-state.bad{color:#d39a96}
html[data-theme-active="dark"] .ml-fail{color:#d39a96}
html[data-theme-active="dark"] .mail-err{background:#37211f;color:#cc7771}
html[data-theme-active="dark"] .mc-row input:focus{outline:2px solid rgba(66,107,80,0.35)}
html[data-theme-active="dark"] .mc-static{color:#d4d4d4}
html[data-theme-active="dark"] .mc-file{background:#2b3026}
html[data-theme-active="dark"] .mc-file-ic{background:#352f22;color:#d6d1cb}
html[data-theme-active="dark"] .notice-error{border-color:#4c403e}
html[data-theme-active="dark"] .cx-headbtn{background:#202521;color:#d2dcd7}
html[data-theme-active="dark"] .cx-headbtn:hover{background:#171a17;border-color:#3f4d41}
html[data-theme-active="dark"] .cx-headbtn.on{background:#131714;border-color:#404e43;color:#cfd9d3}

/* Feinheiten (assets/theme-dark.extra.css) */
/* Handgeschriebene Feinheiten für das dunkle Theme */
html[data-theme-active="dark"] body{background:#121613;color:#e3e6e1}
html[data-theme-active="dark"] .sidebar{background:#161b17;border-color:#262d28}
html[data-theme-active="dark"] .portal-logo,html[data-theme-active="dark"] .brand-logo{filter:invert(1) hue-rotate(180deg) brightness(1.1)}
html[data-theme-active="dark"] .cx-num{filter:invert(.88) hue-rotate(180deg) saturate(1.3)}
html[data-theme-active="dark"] input,html[data-theme-active="dark"] select,html[data-theme-active="dark"] textarea{background:#1a201c;color:#e3e6e1;border-color:#323b35}
html[data-theme-active="dark"] input::placeholder,html[data-theme-active="dark"] textarea::placeholder{color:#7f877f}
html[data-theme-active="dark"] .button.primary,html[data-theme-active="dark"] .split-date .button.primary{background:#4f8062;border-color:#4f8062;color:#fff}
html[data-theme-active="dark"] .m-hero{background:#1f3327}
html[data-theme-active="dark"] .m-hbtn.light{background:#e9efe9;color:#1f3327}
html[data-theme-active="dark"] .mtabs{background:rgba(20,25,21,.92);border-color:#262d28}
html[data-theme-active="dark"] .mtab.on{color:#9fd0ae}
html[data-theme-active="dark"] .mfab-b{background:#4f8062;box-shadow:0 8px 22px rgba(0,0,0,.5)}
html[data-theme-active="dark"] .billing-actions{background:#2a332d}
html[data-theme-active="dark"] .cx-chip.on{background:#e3e6e1;border-color:#e3e6e1;color:#141815}
html[data-theme-active="dark"] .cx-chip.on b{color:#555}
html[data-theme-active="dark"] .pill-act.send .pill-ic,html[data-theme-active="dark"] .inv2 .pill-act.send{background:#4b6fc0}
html[data-theme-active="dark"] .theme-prev{border-color:#323b35}
html[data-theme-active="dark"] .tsheet,html[data-theme-active="dark"] [data-split] .split-menu{background:#1b211d}
html[data-theme-active="dark"] .ts-toggle i::after{background:#e9ece8}
html[data-theme-active="dark"] .trk-dot{background:#1b211d}
html[data-theme-active="dark"] .trk-step.done .trk-dot{background:#4f8062;border-color:#4f8062}
html[data-theme-active="dark"] .trk-step.now .trk-dot{box-shadow:0 0 0 3px rgba(201,138,28,.25)}
html[data-theme-active="dark"] .tsheet-dim,html[data-theme-active="dark"] .msheet-dim{background:rgba(0,0,0,.55)}
html[data-theme-active="dark"] .theme-prev-light{background:#f7f8f5;border-color:#3a433d}
html[data-theme-active="dark"] .theme-prev-light i{background:#fff;border-color:#e3e7e1}
html[data-theme-active="dark"] .theme-prev-light i:first-child{background:#eef3ee}
html[data-theme-active="dark"] .theme-prev-auto{background:linear-gradient(135deg,#f7f8f5 50%,#141815 50%)}
html[data-theme-active="dark"] .theme-prev-auto i{background:rgba(255,255,255,.6);border-color:rgba(128,128,128,.3)}
html[data-theme-active="dark"] .theme-prev-dark{background:#141815}
html[data-theme-active="dark"] .theme-prev-dark i{background:#1f2621;border-color:#2e3631}
html[data-theme-active="dark"] .theme-prev-dark i:first-child{background:#1a201c}
html[data-theme-active="dark"] .m-sq.send{background:#1e2a44;color:#8fb0f0}
html[data-theme-active="dark"] .m-sq.due{background:#3a2e17;color:#e3b25c}
html[data-theme-active="dark"] .m-sq.flat{background:#33291b;color:#d8a866}
html[data-theme-active="dark"] .tchip.on,html[data-theme-active="dark"] .ts-presets .tchip.on{background:#25402f;border-color:#4f8062;color:#d2ecd9}
html[data-theme-active="dark"] .cx-item.sel{background:#1f2a23;border-color:#35503f}
html[data-theme-active="dark"] select{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9b3ac' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")}
html[data-theme-active="dark"] select:hover{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239fd0ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m7 10 5 5 5-5'/%3E%3C/svg%3E")}
