/* TickTick-Look für Vikunja 2.8.0 (ENTWURF, nicht live). Stand 2026-11-20.
   Basis: ausgeliefertes Frontend (CSS-Variablen --primary-*, --scheme-main, --site-background;
   Klassen .fancy-checkbox, .single-task, .tasktext, .priority-label, .menu-container, .navbar, .tag).
   Dark-Mode: Vikunja setzt die Klasse .dark bzw. .light; wir überschreiben nur Variablen und Akzente. */

/* ---------- Akzent #4772FA (hsl 226 95% 63%) + TickTick-Farben ---------- */
:root, .light, .dark {
  --primary-h: 226deg; --primary-s: 95%; --primary-l: 63%;
  --tt-red: #F2415A; --tt-orange: #F5A623; --tt-blue: #4772FA; --tt-green: #2FB170;
  --tt-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
}
/* ---------- hell: viel Weiss, kaum Rahmen ---------- */
:root:not(.dark), .light {
  --site-background: #ffffff;
  --scheme-main: #ffffff;
  --border: #eceef2;
  --card-border-color: #eceef2;
}
/* ---------- dunkel: tiefes Grau statt Vikunja-Blaugrau ---------- */
.dark {
  --site-background: #1c1c1e;
  --scheme-main: #1c1c1e;
  --border: #2c2c2e;
  --card-border-color: #2c2c2e;
}

/* ---------- Systemschrift ---------- */
html, body, button, input, textarea, select, .input, .textarea {
  font-family: var(--tt-font) !important;
  letter-spacing: 0;
}
body { font-size: 15px; -webkit-font-smoothing: antialiased; }

/* ---------- Seitenleiste: ruhig, TickTick-„Listen“ ---------- */
.menu-container { background: #f7f8fa; border-inline-end: 1px solid var(--border); }
.dark .menu-container { background: #232325; }
.menu-container .menu-list-link, .menu-container .list-menu-link { border-radius: 8px; margin: 1px 8px; }
.menu-container .menu-list-link:hover, .menu-container .list-menu-link:hover { background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), .08); }
.menu-container .router-link-exact-active, .menu-container .list-menu-link.router-link-exact-active {
  background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), .12); color: var(--tt-blue); font-weight: 600; }
.color-bubble { border-radius: 50%; }
.navbar { border-bottom: 1px solid var(--border); box-shadow: none; }

/* ---------- Aufgabenliste: Trenner statt Karten ---------- */
.tasks .task, .single-task { background: transparent; border: 0; border-bottom: 1px solid var(--border);
  border-radius: 0; box-shadow: none; padding: 10px 6px; transition: background .12s; }
.tasks .task:hover, .single-task:hover { background: hsla(var(--primary-h), var(--primary-s), var(--primary-l), .05); }
.tasktext { font-size: 15px; font-weight: 400; }
.tasktext.done { color: var(--grey-500); }
.dueDate { font-size: 12px; color: var(--grey-500); font-style: normal !important; }
.dueDate.overdue, .dueDate.is-danger, .dueDate[class*="danger"] { color: var(--tt-red); }
.tag { border-radius: 10px; font-size: 11px; font-weight: 500; }

/* Schnell-Eingabe als ruhiges Feld */
.task-add .add-task-textarea, .add-task-textarea {
  border: 0; background: #f2f4f7; border-radius: 10px; box-shadow: none; padding: 10px 14px; }
.dark .add-task-textarea { background: #2c2c2e; }
.add-task-textarea:focus { box-shadow: 0 0 0 2px hsla(var(--primary-h), var(--primary-s), var(--primary-l), .35); }

/* ---------- Runde Checkboxen (SVG ausblenden, Kreis per ::after) ---------- */
.fancy-checkbox .fancy-checkbox__icon { opacity: 0; }
.fancy-checkbox .base-checkbox__label { display: inline-block; inline-size: 20px; block-size: 20px; }
.fancy-checkbox .base-checkbox__label::after {
  content: ""; position: absolute; inset: 0; box-sizing: border-box; border-radius: 50%;
  border: 2px solid #c8ccd4; background: transparent; transition: all .15s; pointer-events: none; }
.fancy-checkbox:hover .base-checkbox__label::after { border-color: var(--tt-blue); }
.fancy-checkbox:has(input:checked) .base-checkbox__label::after {
  background: var(--tt-blue) center / 12px no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='4 12 10 18 20 6'/%3E%3C/svg%3E");
  border-color: var(--tt-blue); }
.dark .fancy-checkbox .base-checkbox__label::after { border-color: #5a5a5e; }

/* ---------- Prioritäten: rot / orange / blau ---------- */
.priority-label { color: var(--tt-orange); font-weight: 600; font-size: 12px; }
.priority-label .high-priority, .high-priority { color: var(--tt-red) !important; }
.priority-label.not-so-high { color: var(--tt-orange); } /* mittel = orange; hoch/dringend = rot; niedrig (ohne Label) = Standard/blau über Akzent */

/* ---------- Buttons / Karten: flach, rund ---------- */
.button { border-radius: 8px; box-shadow: none; }
.button.is-primary { background: var(--tt-blue); }
.card, .modal-content, .box { border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.kanban .bucket, .bucket { background: #f2f4f7; border-radius: 12px; }
.dark .kanban .bucket, .dark .bucket { background: #2c2c2e; }

/* Fix 2026-11-20 (UX v3): Checkbox-Kreis relativ positionieren, sonst riesige Ellipse auf der Aufgabenseite */
.fancy-checkbox .base-checkbox__label{position:relative}

/* 2026-11-20 (Annika): Doppelte Sichten ausblenden, das Dashboard ersetzt sie.
   Seitenleiste: gespeicherte Ansichten (Favoriten, Aktivität, Heute, Überfällig ... = Projekt-IDs < 0), Übersicht, Anstehend, Teams.
   Die Links bleiben im Seitenbaum vorhanden (untere Leiste klickt "Heute" programmgesteuert). Rücknahme: diesen Block entfernen. */
.menu-container li.list-menu:has(a[href^="/projects/-"]),
.menu-container li:has(> a[href="/"]),
.menu-container li:has(> a[href="/tasks/by/upcoming"]),
.menu-container li:has(> a[href="/teams"]) { display: none !important; }
