/* =========================================================
   styles.css – komplett
   ---------------------------------------------------------
   • Variables & clean Inter-Font
   • 3 Panels:   Meine Aufgaben / Aufgaben des Anderen / Aktivität
   • Einheitliche Karten-Optik, überfällige Tasks rot
========================================================= */

/* ---------- Farb- & Layout-Variablen ------------------- */
:root {
  --blue:   #3498db;
  --danger: #d70000;
  --bg:     #fafafa;
  --radius: 8px;
  --shadow: 0 2px 4px rgba(0,0,0,.06);
  --font:   'Inter', sans-serif;
}

/* ---------- Global ------------------------------------ */
* { box-sizing: border-box; margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  max-width: 820px;
  margin: 0 auto;
  padding: 24px;
  color: #333;
  line-height: 1.5;
}
h1 { margin-bottom: 20px; }

/* ---------- Tabs / Navigation -------------------------- */
.tabs { display: flex; gap: 8px; margin-bottom: 20px; }
.tab {
  flex: 1;
  padding: 10px;
  border: none;
  border-radius: var(--radius);
  background: #e0e0e0;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}
.tab.active,
.tab:hover { background: var(--blue); color: #fff; }

/* ---------- Panel-Grundlayout -------------------------- */
.panel { display: none; }
.panel.active { display: block; }

/* ---------- Listen-Container (Cards) ------------------- */
/*  Alle Panels nutzen identische Karten-Optik            */
#taskList li,
#otherList li,
#activityList li {
  list-style: none;
  background: #fff;
  border-radius: var(--radius);
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: var(--shadow);
}

/* ---------- Überfällige Aufgaben rot ------------------- */
#taskList li.overdue h3,
#otherList li.overdue h3 { color: var(--danger); }

/* ---------- Buttons (nur eigene Tasks) ----------------- */
#taskList button {
  float: right;
  margin-top: -4px;
  border: none;
  border-radius: var(--radius);
  background: var(--blue);
  color: #fff;
  padding: 6px 12px;
  cursor: pointer;
  transition: opacity .2s;
}
#taskList button:disabled { opacity: .4; cursor: default; }

/* ---------- Aktivitäts-Timeline ------------------------ */
#activityList li {
  position: relative;
  padding-left: 16px;          /* Platz für Linie/Kreis   */
}
#activityList li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--blue);
}
#activityList li + li::after { /* vertikale Linie */
  content: '';
  position: absolute;
  left: 2.5px;
  top: -12px;
  width: 1px;
  height: calc(100% + 12px);
  background: var(--blue);
}
