/* Dunkelmodus: Logo-Wechsel und dunkle Varianten der semantischen Farben, die nicht über Tokens laufen.
   theme.js setzt data-theme="dark" je nach Einstellung (Wie Gerät / Hell / Dunkel). */
.foxdeck-brand .logo-dark{display:none}
[data-theme="dark"] .foxdeck-brand .logo-light{display:none}
[data-theme="dark"] .foxdeck-brand .logo-dark{display:block}

[data-theme="dark"] .topbar{background:rgba(30,24,20,.97)}
[data-theme="dark"] .badge,[data-theme="dark"] .avatar{color:var(--ink-2)}
[data-theme="dark"] .task-check,[data-theme="dark"] .check-button{border-color:var(--muted)}
[data-theme="dark"] .overdue,[data-theme="dark"] .list-sort-status,[data-theme="dark"] .inspector-footer .danger-link{color:var(--danger)}
[data-theme="dark"] .notice.success{color:var(--success);background:var(--success-soft);border-color:var(--success-soft)}
[data-theme="dark"] .module-card:hover{border-color:var(--line-strong)}

/* Modul-Tags, Noten und Prioritäten */
[data-theme="dark"] .tag-blue{background:#1e2b45;color:#a9c4ff}
[data-theme="dark"] .tag-orange{background:#3d2a12;color:#f2c27a}
[data-theme="dark"] .tag-purple{background:#2d2445;color:#c9b6ff}
[data-theme="dark"] .tag-green{background:#173328;color:#8fd6b0}
[data-theme="dark"] .grade-green{background:#173328;color:#8fd6b0}
[data-theme="dark"] .grade-orange{background:#3d2a12;color:#f2c27a}
[data-theme="dark"] .grade-red{background:#45201c;color:#ff9d90}
[data-theme="dark"] .priority{color:#f2c27a}
[data-theme="dark"] .priority.priority--1{color:#8fb4ff}
[data-theme="dark"] .priority.priority-1{color:#f5d062;background:#3a3010}
[data-theme="dark"] .priority.priority-2{color:#ff8a7a}
[data-theme="dark"] .check-button.priority--1,[data-theme="dark"] .task-check.priority--1{border-color:#8fb4ff}
[data-theme="dark"] .check-button.priority-2,[data-theme="dark"] .task-check.priority-2{border-color:#ff8a7a}

/* Kalender */
[data-theme="dark"] .event-study{background:#183026;color:#9fdcbc}
[data-theme="dark"] .event-other{background:#26213a;color:#c7b9f2}
[data-theme="dark"] .timeline-event button.calendar-event{border-top-color:var(--line-strong);border-right-color:var(--line-strong);border-bottom-color:var(--line-strong)}
[data-theme="dark"] .calendar-event.area-study,[data-theme="dark"] .timeline-event button.area-study{background:var(--primary-softer)}
[data-theme="dark"] .calendar-event.area-private,[data-theme="dark"] .timeline-event button.area-private{background:#2b2238}
[data-theme="dark"] .calendar-event.area-work,[data-theme="dark"] .timeline-event button.area-work{background:#3a2c14}
[data-theme="dark"] .calendar-event.area-focus,[data-theme="dark"] .timeline-event button.area-focus{background:#17302a}
[data-theme="dark"] .all-day-cell .calendar-task{background:var(--surface-hover)}

/* Statistik */
[data-theme="dark"] .statistics-card,[data-theme="dark"] .chart-tooltip{background:var(--surface);border-color:var(--line);box-shadow:none}
[data-theme="dark"] .statistics-card,[data-theme="dark"] .chart-tooltip,[data-theme="dark"] .statistics-values strong,[data-theme="dark"] .focus-ring-label strong{color:var(--ink)}
[data-theme="dark"] .semester-selection legend,[data-theme="dark"] .semester-status,[data-theme="dark"] .statistics-controls label,[data-theme="dark"] .statistics-average,
[data-theme="dark"] .statistics-data,[data-theme="dark"] .statistics-data summary,[data-theme="dark"] .statistics-more summary,[data-theme="dark"] .focus-ring-label span,
[data-theme="dark"] .focus-group-values,[data-theme="dark"] .statistics-empty,[data-theme="dark"] .statistics-note{color:var(--muted)}
[data-theme="dark"] .statistics-average strong{color:var(--primary-text)}
[data-theme="dark"] .semester-module-list,[data-theme="dark"] .statistics-values>div{border-color:var(--line)}
[data-theme="dark"] .semester-bar-track,[data-theme="dark"] .focus-group-track{background:var(--surface-hover)}
[data-theme="dark"] .chart-grid{stroke:var(--line)}
[data-theme="dark"] .chart-axis{fill:var(--muted)}
[data-theme="dark"] .future-axis{fill:var(--line-strong)}

/* Übungsvorschläge */
[data-theme="dark"] .exercise-row{border-color:var(--line)}
[data-theme="dark"] .exercise-row:hover{background:var(--surface-hover)}
[data-theme="dark"] .exercise-row small,[data-theme="dark"] .exercise-source small{color:var(--muted)}
[data-theme="dark"] .exercise-warning,[data-theme="dark"] .exercise-confirm{background:#3a2c14}
[data-theme="dark"] .exercise-form .errorlist{color:var(--danger)}
[data-theme="dark"] svg circle[stroke="#eceef3"]{stroke:var(--surface-hover)}

[data-theme="dark"] .badge.shopping-later{background:#1e2b45;color:#a9c4ff}
