:root{--bg:#0c0c0d;--panel:#191919;--panel2:#22211e;--gold:#c7b879;--gold2:#e2ca7c;--text:#f5f2e9;--muted:#aaa69a;--line:#39362d}*{box-sizing:border-box}body{margin:0;background:radial-gradient(ellipse at 80% 0,#29251a 0,transparent 35%),var(--bg);color:var(--text);font:15px/1.5 system-ui,-apple-system,sans-serif}.sidebar{position:fixed;inset:0 auto 0 0;width:245px;background:#090909;border-right:1px solid var(--line);padding:18px 14px;display:flex;flex-direction:column}.brand{height:100px;display:flex;align-items:center;justify-content:center;border-bottom:1px solid var(--line);margin-bottom:22px}.brand img{width:100%;max-height:75px;object-fit:contain}nav{display:grid;gap:7px}nav a,.logout{color:#e8e4d8;text-decoration:none;padding:12px 14px;border-radius:10px}nav a:before{content:'◈';color:var(--gold);margin-right:12px}nav a.selected,nav a:hover{background:linear-gradient(100deg,#b08b3f,#5a4727);color:#fff}.logout{margin-top:auto;color:var(--muted)}.main{margin-left:245px;padding:28px 34px;max-width:1700px}header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--line);padding-bottom:20px;margin-bottom:26px}header small,.muted{color:var(--muted)}h1{margin:3px 0;font-size:30px;font-weight:600}h2{margin:0 0 18px;font-size:20px}h3{margin-top:24px;color:var(--gold2)}.user{color:var(--muted)}.panel,.stat{background:linear-gradient(145deg,#20201f,#141414);border:1px solid var(--line);border-radius:15px;padding:22px;box-shadow:0 10px 30px #0005}.grid{display:grid;grid-template-columns:minmax(280px,.8fr) minmax(400px,1.5fr);gap:20px}.wide{min-width:0}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:15px;margin-bottom:20px}.stat small{display:block;color:var(--muted)}.stat b{display:block;font-size:32px;color:var(--gold2);margin-top:8px}label{display:block;color:var(--muted);font-size:13px;margin:13px 0}input,select,textarea{display:block;width:100%;margin-top:6px;background:#101010;color:var(--text);border:1px solid #555044;border-radius:8px;padding:11px;font:inherit}textarea{resize:vertical}button,.gold{background:linear-gradient(110deg,#e3c66f,#a98538);color:#17130a;border:0;border-radius:9px;padding:11px 18px;font-weight:700;cursor:pointer;text-decoration:none;display:inline-block}button:hover,.gold:hover{filter:brightness(1.08)}.item,.task{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:13px 0;border-bottom:1px solid #34312b}.item:last-child,.task:last-child{border-bottom:0}.item small,.task small{display:block;color:var(--muted);font-size:12px}.task{flex-wrap:wrap}.priority{font-size:12px;padding:4px 9px;border-radius:30px;background:#444}.priority.dringend{background:#652c27;color:#ffc3b9}.priority.normal{background:#574727;color:#f7d98c}.priority.später{background:#294638;color:#b5e5c5}.mini{background:#39342a;color:var(--gold2);padding:7px 10px;border-radius:7px;border:1px solid #615332;text-decoration:none;font-size:12px}.active{border-color:#a98b44;margin-bottom:20px}.active>b{display:block;font-size:34px;color:var(--gold2);margin:10px 0}.quick{display:flex;gap:12px;flex-wrap:wrap}.quick a{color:var(--gold2);border:1px solid var(--line);padding:10px 14px;border-radius:8px;text-decoration:none}.attachments{display:flex;gap:12px;flex-wrap:wrap;margin-top:12px}.attachments img{max-width:160px;max-height:130px;display:block;border-radius:8px}.attachments a{color:var(--gold2)}.setup{min-height:100vh;display:grid;place-items:center;padding:20px}.setupbox{width:min(520px,100%);background:#191919;border:1px solid var(--line);border-radius:18px;padding:30px;box-shadow:0 20px 60px #0009}.setup-logo{width:100%;max-height:100px;object-fit:contain;margin-bottom:20px}.error{color:#ffaaa0;background:#4b201d;padding:10px;border-radius:8px}.setupbox .muted{font-size:12px;margin-top:18px}@media(max-width:900px){.sidebar{position:static;width:auto;height:auto;padding:10px}.brand{height:55px;margin:0}.brand img{max-height:45px;width:230px}nav{display:flex;overflow:auto;gap:4px}nav a{white-space:nowrap;padding:8px}.logout{display:none}.main{margin:0;padding:18px}.grid{grid-template-columns:1fr}.stats{grid-template-columns:repeat(2,1fr)}header{align-items:flex-start;gap:10px;flex-direction:column}h1{font-size:25px}}@media print{.sidebar,header,.gold,button{display:none!important}.main{margin:0;padding:0}.panel,.stat{background:white;color:black;border:0;box-shadow:none}.item small{color:#444}}
/* Dashboard-Erweiterung */
.dashboard-stats .stat{position:relative;overflow:hidden;min-height:132px}.stat-note{display:block;color:var(--muted);font-size:12px;margin-top:3px}.dashboard-stats .stat-alert{border-color:#70413b;background:linear-gradient(145deg,#2a1c1b,#171414)}.dashboard-stats .stat-alert b{color:#e58c7e}.dashboard-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(280px,.8fr);gap:18px;margin-bottom:18px}.dashboard-main{min-width:0}.section-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-bottom:14px}.section-heading h2{margin:0}.section-heading p{margin:4px 0 0;font-size:12px}.dashboard-task{display:grid;grid-template-columns:5px minmax(130px,1fr) auto auto auto;align-items:center;gap:12px;padding:13px 0;border-bottom:1px solid #34312b}.task-mark{height:34px;border-radius:5px;background:#8b8b80}.task-mark.dringend{background:#c76558}.task-mark.normal{background:#c4a354}.task-mark.später{background:#5e9878}.task-info{min-width:0}.task-info strong,.task-info small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.task-info small,.task-date{font-size:12px;color:var(--muted)}.dashboard-quick{margin-top:18px}.dashboard-side{display:grid;gap:18px;align-content:start}.dashboard-timer>strong,.dashboard-timer>small{display:block}.dashboard-timer>small{color:var(--muted);margin-top:4px}.dashboard-timer>b{display:block;font-size:34px;color:var(--gold2);margin:12px 0}.dashboard-timer form button{width:100%}.live-dot{font-size:11px;color:#a8d7ad}.live-dot:before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:#74bd83;margin-right:6px}.today-total{display:flex;justify-content:space-between;align-items:baseline;padding:4px 0 12px;border-bottom:1px solid var(--line)}.today-total strong{font-size:28px;color:var(--gold2)}.today-total span,.today-row{color:var(--muted);font-size:12px}.today-row{display:flex;justify-content:space-between;padding-top:11px}.today-row b{color:var(--text)}.project-panel{margin-bottom:24px}.project-bar-row{display:grid;grid-template-columns:minmax(150px,1fr) minmax(100px,2fr) 70px;gap:18px;align-items:center;padding:12px 0;border-bottom:1px solid #34312b}.project-bar-row:last-child{border-bottom:0}.project-bar-label strong,.project-bar-label small{display:block}.project-bar-label small{color:var(--muted);font-size:12px}.bar-track{height:9px;border-radius:20px;background:#34312b;overflow:hidden}.bar-fill{height:100%;border-radius:20px;background:linear-gradient(90deg,#8f7138,var(--gold2))}.project-bar-row>b{text-align:right;color:var(--gold2);font-size:13px}@media(max-width:1050px){.dashboard-grid{grid-template-columns:1fr}.dashboard-side{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:650px){.dashboard-task{grid-template-columns:4px minmax(0,1fr) auto}.dashboard-task .task-date{display:none}.dashboard-task .priority{display:none}.dashboard-side{grid-template-columns:1fr}.project-bar-row{grid-template-columns:minmax(100px,1fr) 1fr 55px;gap:9px}.project-bar-label strong{font-size:13px}}
/* Navigation, aufklappbare Dashboard-Aufgaben und Live-Zeiten */
.breadcrumbs{display:flex;align-items:center;gap:9px;color:var(--muted);font-size:12px;margin:0 0 10px}.breadcrumbs a{color:var(--gold2);text-decoration:none}.breadcrumbs a:hover{text-decoration:underline}.breadcrumbs span{opacity:.75}
.dashboard-task-expand{border-bottom:1px solid #34312b}.dashboard-task-expand:last-of-type{border-bottom:0}.dashboard-task-expand summary{list-style:none;cursor:pointer}.dashboard-task-expand summary::-webkit-details-marker{display:none}.dashboard-task-expand .dashboard-task{border:0}.dashboard-task-expand summary:hover .task-info strong{color:var(--gold2)}.expand-hint{font-size:12px;color:var(--gold2);white-space:nowrap}.dashboard-task-expand[open] .expand-hint{transform:rotate(180deg)}.dashboard-task-detail{margin:0 0 14px 17px;padding:15px 18px;background:#111;border:1px solid var(--line);border-radius:10px}.dashboard-task-detail>p{margin:0 0 12px;white-space:normal;line-height:1.65}.inline-description-form{display:grid;grid-template-columns:minmax(180px,1fr) 150px 160px auto;gap:10px;align-items:end}.inline-description-form label{margin:0}.inline-description-form textarea{min-height:72px}.inline-description-form button{white-space:nowrap}.task-edit-form{max-width:850px}.task-edit-form textarea{min-height:140px}@media(max-width:900px){.inline-description-form{grid-template-columns:1fr 1fr}.inline-description-form label:first-of-type{grid-column:1/-1}}@media(max-width:600px){.dashboard-task{grid-template-columns:4px minmax(0,1fr) auto}.dashboard-task .task-date{display:none}.expand-hint{font-size:11px}.dashboard-task-detail{margin-left:0;padding:12px}.inline-description-form{grid-template-columns:1fr}.inline-description-form label:first-of-type{grid-column:auto}}

/* Kompakte, aufklappbare Verwaltungslisten */
.create-toggle summary,.entity-expand>summary,.time-edit>summary{cursor:pointer;list-style:none;color:var(--gold,#c9a45c);font-weight:600;padding:10px 0}
.create-toggle summary::-webkit-details-marker,.entity-expand>summary::-webkit-details-marker,.time-edit>summary::-webkit-details-marker{display:none}
.compact-create{display:grid;grid-template-columns:repeat(auto-fit,minmax(190px,1fr));gap:12px;padding:14px;margin:8px 0 16px;background:rgba(255,255,255,.035);border-radius:10px}
.entity-expand{border-top:1px solid rgba(255,255,255,.10);padding:4px 12px}
.entity-expand>summary{display:flex;gap:18px;align-items:center;color:inherit}
.entity-expand>summary strong{min-width:180px;color:var(--gold,#c9a45c)}
.entity-expand>summary span,.entity-expand>summary small{color:#aaa}
.nested-task{display:flex;justify-content:space-between;align-items:center;padding:10px 16px;border-top:1px solid rgba(255,255,255,.07)}
.nested-task a,.task-name-link{color:inherit;text-decoration:none;font-weight:600}
.nested-task a:hover,.task-name-link:hover{color:var(--gold,#c9a45c)}
.time-edit{margin-left:12px;min-width:100px}.time-edit .compact-create{min-width:280px}
/* Aufgaben- und Berichtserweiterungen */
.section-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:12px}
.section-heading h2{margin:0}
.plus-summary{list-style:none;cursor:pointer;color:var(--gold2);font-size:28px;font-weight:300;line-height:1;padding:2px 8px;border:1px solid #51472f;border-radius:8px;opacity:.78}
.plus-summary::-webkit-details-marker{display:none}
.plus-summary:hover{opacity:1;background:#2b261b}
.create-toggle{position:relative}
.create-toggle[open] .compact-create{position:relative;z-index:2}
.entity-report-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 0;border-bottom:1px solid #34312b}
.entity-report-row:last-child{border-bottom:0}
.entity-report-row small{display:block;color:var(--muted);font-size:12px}
.date-filter{display:flex;align-items:end;gap:12px;flex-wrap:wrap;padding:12px 0 18px;border-bottom:1px solid var(--line);margin-bottom:14px}
.date-filter label{min-width:170px;margin:0}
.report-sheet h3{margin:24px 0 8px;padding-bottom:6px;border-bottom:1px solid var(--line)}
.report-sheet h3 small{font-size:12px;font-weight:400}
.report-task{font-size:15px;margin:14px 0 4px;color:var(--text)}
.report-entry{display:grid;grid-template-columns:minmax(180px,1fr) 100px 100px;gap:12px;padding:9px 10px;border-bottom:1px solid #302e29;font-size:13px;align-items:center}
.report-entry small{grid-column:1/-1;color:var(--muted)}
.report-entry b,.report-entry>span:nth-child(2){text-align:right}
.report-total{display:flex;justify-content:space-between;gap:12px;padding:18px 10px;margin-top:18px;border-top:2px solid var(--gold);font-size:16px;color:var(--gold2)}
.total-entry{grid-template-columns:minmax(0,1fr) 100px}
.total-entry small{display:block}
@media(max-width:600px){.section-heading{align-items:center}.report-entry{grid-template-columns:minmax(0,1fr) auto;gap:6px}.report-entry>span:first-child{grid-column:1/-1}.report-entry b{text-align:right}.date-filter label{min-width:calc(50% - 8px)}.report-total{font-size:13px}}
@media print{.date-filter,.section-heading button,.section-heading a{display:none!important}.report-sheet{padding:0!important}.report-entry{color:#111;border-color:#ddd}.report-task{color:#111}.report-sheet h3{color:#222;border-color:#aaa}.report-total{color:#111;border-color:#777}}
.client-list-row{display:flex;align-items:center;gap:12px;border-bottom:1px solid #34312b}
.client-edit-expand{flex:1;min-width:0;border-bottom:0!important}
.client-report-button{flex:0 0 auto}
/* Aufgabenstatus, aufgabengebundene Zeiterfassung und Kundenarchiv */
.task-timer-box{display:flex;align-items:center;gap:18px;flex-wrap:wrap;padding:16px 18px;margin:16px 0 22px;background:#111;border:1px solid var(--line);border-radius:10px}
.task-timer-box strong{font-size:30px;letter-spacing:1px;color:var(--gold2);font-variant-numeric:tabular-nums}
.task-timer-box form{margin:0}.task-timer-box .timer-status{color:var(--muted);font-size:13px}
.task-done-toggle{display:flex;align-items:center;gap:10px;max-width:max-content;padding:9px 12px;border:1px solid var(--line);border-radius:8px}
.task-done-toggle input{width:18px;height:18px;accent-color:var(--gold2)}
.due-date-picker{cursor:pointer}
.client-archive{flex:0 0 auto;min-width:90px;color:var(--gold2);font-size:12px}
.client-archive summary{cursor:pointer;list-style:none;padding:8px 4px}.client-archive summary::-webkit-details-marker{display:none}
.archive-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:8px 10px;border-top:1px solid var(--line);color:var(--text);min-width:280px}
.archive-row form{margin:0}.invoice-mark-form{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:14px 0;border-bottom:1px solid var(--line)}
.invoice-mark-form small{font-size:12px}
@media(max-width:700px){.client-list-row{flex-wrap:wrap}.client-archive{margin-left:auto}.task-timer-box{gap:12px}.archive-row{min-width:0}}
/* V7: grouped time entries and invoice history */
.time-client-group{margin:10px 0;border-bottom:1px solid var(--line,#333);padding-bottom:8px}
.time-client-group>summary,.time-task-group>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px;cursor:pointer;list-style:none}
.time-client-group>summary::-webkit-details-marker,.time-task-group>summary::-webkit-details-marker{display:none}
.time-task-group{margin:6px 0 6px 16px;border-left:2px solid rgba(190,155,85,.35)}
.time-task-group .item{margin:6px 0 6px 14px}
.datetime-row{display:flex;align-items:center;gap:8px}
.datetime-row input{flex:1;min-width:0}
.billed-period{opacity:.58;padding:10px 12px;margin:10px 0;border-left:3px solid #888;background:rgba(130,130,130,.07)}
.billed-entry{color:#999}
.billed-total{border-top:1px solid #777;color:#999}

/* Inline-Namensbearbeitung für Aufgaben und Projekte */
.task-title-edit{display:flex;align-items:center;gap:10px;margin:0 0 14px}
.task-title-edit h2{margin:0}
.name-edit{display:inline-block;position:relative;vertical-align:middle}
.name-edit>summary{list-style:none;cursor:pointer;color:#b99a5b;font-size:15px;padding:3px 6px;border:1px solid rgba(185,154,91,.35);border-radius:5px}
.name-edit>summary::-webkit-details-marker{display:none}
.name-edit-form{display:flex;gap:7px;align-items:center;padding:9px;background:#17191b;border:1px solid rgba(185,154,91,.3);border-radius:7px;margin:6px 0 10px;max-width:420px}
.name-edit-form input{min-width:180px;flex:1}
.client-overview-button{flex:0 0 auto}
.customer-project-block{padding:18px 0;border-top:1px solid var(--line,rgba(255,255,255,.10))}
.customer-project-block h3{margin:0 0 5px}
.customer-task-list{display:flex;flex-direction:column;gap:8px;margin-top:12px}
.customer-task-row{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:11px 14px;border-radius:8px;background:rgba(255,255,255,.035)}
.customer-task-row>div{display:flex;flex-direction:column;gap:4px}
.customer-task-row small{color:var(--muted,#999);font-size:.85em}
/* V13: Zeitzeilen mit Abstand und Löschaktion */
.time-task-group .item>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:28px;flex-wrap:wrap}
.time-task-group .item>div:first-child>b{margin-left:auto;min-width:72px;text-align:right}
.time-delete-form{display:inline-block;margin-left:10px}
.time-delete-form button{color:#d58b82;border-color:rgba(213,139,130,.35)}

/* V14: umschaltbares, gedecktes helles Farbschema */
.header-tools{display:flex;align-items:center;gap:18px}.theme-toggle{padding:8px 13px;font-size:12px;background:transparent;color:var(--gold2);border:1px solid var(--line)}
body[data-theme="light"]{--bg:#e9e6df;--panel:#f4f1e9;--panel2:#e8e4d9;--gold:#9b8450;--gold2:#806b3d;--text:#34352f;--muted:#74766e;--line:#d1cbbb;background:radial-gradient(ellipse at 80% 0,#ded8c8 0,transparent 38%),var(--bg);color:var(--text)}
body[data-theme="light"] .sidebar{background:#dedacf;border-color:#c9c2b3}
body[data-theme="light"] nav a,body[data-theme="light"] .logout{color:#41433c}
body[data-theme="light"] nav a.selected,body[data-theme="light"] nav a:hover{background:linear-gradient(100deg,#b6a77e,#8f805d);color:#fff}
body[data-theme="light"] .panel,body[data-theme="light"] .stat{background:linear-gradient(145deg,#f7f4ed,#ece8de);border-color:#d0cabb;box-shadow:0 8px 24px rgba(65,57,42,.08)}
body[data-theme="light"] input,body[data-theme="light"] select,body[data-theme="light"] textarea{background:#fbf9f4;color:#34352f;border-color:#c9c2b4}
body[data-theme="light"] button,body[data-theme="light"] .gold{background:linear-gradient(110deg,#c7b98f,#a89970);color:#29271f}
body[data-theme="light"] .mini{background:#e5dfd0;color:#75623a;border-color:#c9bea2}
body[data-theme="light"] .item,body[data-theme="light"] .task,body[data-theme="light"] .dashboard-task,body[data-theme="light"] .project-bar-row,body[data-theme="light"] .entity-report-row{border-color:#d8d2c5}
body[data-theme="light"] .priority.dringend{background:#ead4ce;color:#874b43}body[data-theme="light"] .priority.normal{background:#eee3c8;color:#786132}body[data-theme="light"] .priority.später{background:#d9e5d9;color:#49694f}
body[data-theme="light"] .dashboard-task-detail,body[data-theme="light"] .task-timer-box{background:#e9e5da;border-color:#d0cabb}
body[data-theme="light"] .compact-create{background:rgba(90,80,55,.055)}
body[data-theme="light"] .entity-expand{border-color:#d8d2c5}
body[data-theme="light"] .nested-task{border-color:#ded8cc}
body[data-theme="light"] .report-entry{border-color:#d8d2c5}
body[data-theme="light"] .billed-period{background:rgba(100,100,90,.08)}
body[data-theme="light"] .name-edit-form{background:#eeeae0;border-color:#d0cabb}
body[data-theme="light"] .customer-task-row{background:rgba(90,80,55,.07)}
body[data-theme="light"] .time-task-group{border-left-color:#c6b68d}
body[data-theme="light"] .setupbox{background:#f4f1e9;color:#34352f;border-color:#d0cabb}
body[data-theme="light"] .error{background:#f0dcd7;color:#874b43}
body[data-theme="light"] .time-delete-form button{background:#ead7d2;color:#874b43}
body[data-theme="light"] .theme-toggle{background:#e4dfd3;color:#655735;border-color:#c8bea8}
@media(max-width:900px){.header-tools{width:100%;justify-content:space-between}}
@media print{body[data-theme="light"] .panel,body[data-theme="light"] .stat{background:white}}

/* V15: vollständige Farbzuweisung für den Hellmodus */
body[data-theme="light"]{
 --bg:#e9e6df;--panel:#f3f0e9;--panel2:#e8e2d6;--gold:#9b8044;--gold2:#80682f;--text:#302f2b;--muted:#716e66;--line:#d1c9b9;
 background:linear-gradient(135deg,#eeece6 0%,#e5e1d8 100%);color:var(--text)
}
body[data-theme="light"] .sidebar{background:#ded9ce;border-color:#c9c0af}
body[data-theme="light"] nav a,body[data-theme="light"] .logout{color:#454239}
body[data-theme="light"] nav a.selected,body[data-theme="light"] nav a:hover{background:linear-gradient(100deg,#b8a16d,#8e7848);color:#fff}
body[data-theme="light"] .panel,body[data-theme="light"] .stat{background:linear-gradient(145deg,#f8f6f0,#ece8df);border-color:#d1c9b9;box-shadow:0 8px 24px rgba(65,55,35,.08)}
body[data-theme="light"] input,body[data-theme="light"] select,body[data-theme="light"] textarea{background:#faf9f5;color:#302f2b;border-color:#c8c0b1}
body[data-theme="light"] .item,body[data-theme="light"] .task,body[data-theme="light"] .dashboard-task,body[data-theme="light"] .project-bar-row,body[data-theme="light"] .entity-report-row{border-color:#d5cdbf}
body[data-theme="light"] .compact-create{background:rgba(120,105,75,.08)}
body[data-theme="light"] .entity-expand{border-color:#d5cdbf}
body[data-theme="light"] .entity-expand>summary span,body[data-theme="light"] .entity-expand>summary small{color:#716e66}
body[data-theme="light"] .dashboard-task-detail,body[data-theme="light"] .task-timer-box{background:#e6e1d7;border-color:#d1c9b9}
body[data-theme="light"] .name-edit-form{background:#f6f3ec;border-color:#c8b98f}
body[data-theme="light"] .time-task-group{border-color:rgba(145,119,65,.45)}
body[data-theme="light"] .time-client-group,body[data-theme="light"] .time-task-group .item{border-color:#d5cdbf}
body[data-theme="light"] .report-entry{border-color:#d5cdbf}
body[data-theme="light"] .report-total{border-color:#9b8044;color:#80682f}
body[data-theme="light"] .billed-period{background:rgba(100,100,100,.06);border-color:#aaa;color:#777}
body[data-theme="light"] .billed-entry{color:#777}
body[data-theme="light"] .mini{background:#e6dfd0;color:#80682f;border-color:#c8b98f}
body[data-theme="light"] .quick a{color:#80682f;border-color:#c8c0b1}
body[data-theme="light"] .attachments a{color:#80682f}
body[data-theme="light"] .task-timer-box strong,body[data-theme="light"] .dashboard-timer>b,body[data-theme="light"] .today-total strong,body[data-theme="light"] .today-row b{color:#80682f}
body[data-theme="light"] .dashboard-task-expand,body[data-theme="light"] .dashboard-task-expand .dashboard-task{border-color:#d5cdbf}
body[data-theme="light"] .archive-row{color:#302f2b;border-color:#d5cdbf}
body[data-theme="light"] .setupbox{background:#f3f0e9;color:#302f2b;border-color:#d1c9b9}
body[data-theme="light"] .error{background:#f2dcd7;color:#842f25}
body[data-theme="light"] .priority{background:#ddd8ce;color:#514b40}
body[data-theme="light"] .priority.dringend{background:#f1d5cf;color:#8b352b}
body[data-theme="light"] .priority.normal{background:#eee2bf;color:#72551b}
body[data-theme="light"] .priority.später{background:#d8e7dc;color:#315e43}
body[data-theme="light"] .task-mark{background:#aaa69a}
body[data-theme="light"] .task-mark.dringend{background:#c76558}
body[data-theme="light"] .task-mark.normal{background:#c4a354}
body[data-theme="light"] .task-mark.später{background:#5e9878}
body[data-theme="light"] .bar-track{background:#d8d2c7}
body[data-theme="light"] .plus-summary:hover{background:#e6dfd0}
body[data-theme="light"] .name-edit>summary{color:#80682f;border-color:#c8b98f}
body[data-theme="light"] .task-done-toggle{border-color:#d1c9b9}
body[data-theme="light"] .client-list-row{border-color:#d5cdbf}


/* Rich-Text-Editor für Aufgabendetails */
.rich-toolbar{display:flex;flex-wrap:wrap;gap:7px;align-items:center;padding:9px 10px;border:1px solid var(--line,#555);border-radius:10px 10px 0 0;background:rgba(120,110,90,.10)}
.rich-toolbar button,.rich-image-button{border:1px solid var(--line,#777);border-radius:6px;padding:7px 10px;background:rgba(130,120,100,.12);color:inherit;cursor:pointer;font:inherit;font-size:13px}
.rich-toolbar button:hover,.rich-image-button:hover{background:rgba(180,155,95,.22)}
.rich-toolbar>span{width:1px;height:24px;background:var(--line,#777);margin:0 3px}
.rich-image-button{display:inline-flex;align-items:center}
.rich-editor{min-height:210px;padding:14px 16px;border:1px solid var(--line,#555);border-top:0;border-radius:0 0 10px 10px;background:var(--field-bg,rgba(255,255,255,.04));color:var(--text,inherit);outline:none;line-height:1.55;overflow-wrap:anywhere}
.rich-editor:focus{border-color:#b49a58;box-shadow:0 0 0 2px rgba(180,154,88,.16)}
.rich-editor:empty:before{content:attr(data-placeholder);color:var(--muted,#999);pointer-events:none}
.rich-editor.dragover{outline:2px dashed #b49a58;outline-offset:-6px;background:rgba(180,154,88,.10)}
.rich-editor img,.task-inline-image{display:block;max-width:100%;height:auto;max-height:520px;margin:12px 0;border-radius:7px}
.rich-hint{display:block;margin:6px 0 14px}
body[data-theme="light"] .rich-toolbar{background:#e9e3d7;border-color:#cfc6b6}
body[data-theme="light"] .rich-toolbar button,body[data-theme="light"] .rich-image-button{background:#f3f0e9;color:#403b32;border-color:#cfc6b6}
body[data-theme="light"] .rich-editor{background:#fbfaf6;color:#302f2b;border-color:#cfc6b6}

/* Internes Speicherfeld des Rich-Text-Editors niemals anzeigen */
textarea.rich-source[hidden], .rich-source { display: none !important; }

.rich-toolbar button[data-cmd="strikeThrough"]{min-width:34px}
.rich-toolbar button[data-cmd="checklist"]{white-space:nowrap}
.rich-editor .task-checklist{list-style:none;padding-left:4px}
.rich-editor .task-checklist li{display:flex;align-items:flex-start;gap:9px;margin:7px 0}
.rich-editor .task-checklist input[type="checkbox"]{margin-top:.35em;flex:0 0 auto;accent-color:#ad9252}
.dashboard-task-hierarchy{display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.dashboard-task-hierarchy .dashboard-client-name{font-weight:800;font-size:1.05em;color:var(--gold,#c7b36f);text-decoration:none}
.dashboard-task-hierarchy .dashboard-project-name{font-size:.88em;opacity:.8}
.dashboard-task-hierarchy .dashboard-task-name{font-size:.95em;font-weight:500}
