/* ═══════════════════════════════════════════════════════════════════
   CLUSTERATTACKE MITSTOPPEN
   Eigene Datei wie bei der Akutnotiz. Durchgehend über Farbvariablen,
   damit der dunkle Modus von selbst stimmt: Eine feste Flächenfarbe als
   Schriftfarbe kippt beim Umschalten und wird unlesbar.

   Die Knöpfe sind größer als sonst in der App. Sie werden mitten in einer
   Attacke bedient, mit Tränen im Auge und einer Hand, und ein danebengehender
   Tipp kostet dann die Uhrzeit.
   ═══════════════════════════════════════════════════════════════════ */
.cluster-laeuft {
  background: var(--lavender-soft);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.cluster-seit { font-size: 0.88rem; color: var(--gray-text); }
.cluster-dauer {
  font-size: 1.35rem; font-weight: 800; line-height: 1.2; margin-top: 3px;
  color: var(--purple-dark);
  font-variant-numeric: tabular-nums;
}
.cluster-lang {
  font-size: 0.8rem; line-height: 1.5; margin-bottom: 12px;
  background: #fff3dc; color: #7a5300;
  border-radius: 10px; padding: 10px 12px;
}
.cluster-aktionen { display: flex; flex-wrap: wrap; gap: 8px; }
.cluster-btn {
  font-family: inherit; font-size: 0.86rem; font-weight: 600; cursor: pointer;
  padding: 11px 15px; border-radius: 10px;
  border: 1px solid var(--purple-light);
  background: var(--white); color: var(--purple-dark);
}
/* Dunkle Schrift auf den Farbflächen, in BEIDEN Modi. Weiß auf diesen Tönen
   liegt unter dem lesbaren Kontrast, und im Dunkelmodus werden die Variablen
   noch heller: Der Knopf wäre dann weiß auf hellviolett. */
.cluster-btn-start {
  width: 100%; font-size: 1rem; padding: 16px 18px;
  background: var(--purple-mid); color: #14101f; border-color: var(--purple-mid);
}
.cluster-btn-stop {
  background: var(--teal-mid); color: #14101f; border-color: var(--teal-mid);
  font-size: 0.95rem; padding: 13px 20px;
}
.cluster-btn-weg { color: var(--text-muted); }
.cluster-hinweis {
  font-size: 0.78rem; line-height: 1.5; margin-top: 10px;
  color: var(--text-muted);
}
.cluster-gemeldet {
  font-size: 0.84rem; line-height: 1.5; margin-bottom: 12px;
  background: var(--lavender-soft); color: var(--gray-text);
  border-radius: 10px; padding: 10px 12px;
}
.cluster-gemeldet a { color: var(--purple-dark); font-weight: 700; }
.cluster-heute-knopf {
  display: block; width: 100%; text-align: left; margin-top: 14px;
  font-family: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer;
  background: none; border: none; padding: 6px 0;
  color: var(--purple-dark);
}
.cluster-heute { padding: 2px 0 0; }
.cluster-zeile {
  display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
  font-size: 0.84rem; color: var(--gray-text);
  padding: 8px 0; border-bottom: 1px solid var(--gray-light);
  font-variant-numeric: tabular-nums;
}
.cluster-zeile:last-child { border-bottom: none; }
.cluster-zeile-nr { font-weight: 700; color: var(--purple-dark); min-width: 16px; }
.cluster-zeile-dauer { color: var(--teal-mid); font-weight: 700; font-size: 0.78rem; margin-left: auto; white-space: nowrap; }
.cluster-zeile-weg { border: none; background: none; cursor: pointer; font-size: 0.9rem; padding: 2px; }

/* Jede Uhrzeit ist ein Feld, keine Anzeige: Der Knopf allein trifft nie
   genau, wenn jemand erst später zum Handy kommt. */
.cluster-endezeile input[type=time],
.cluster-nach-felder input[type=time] {
  font-family: inherit; font-size: 0.86rem; color: var(--gray-text);
  padding: 6px 8px; border: 1px solid var(--purple-light); border-radius: 8px;
  background: var(--white);
}
/* In der Liste enger gesetzt: Nummer, zwei Zeitfelder, Dauer und Papierkorb
   müssen auf einer Handybreite nebeneinander bleiben, sonst rutscht der
   Papierkorb allein in eine zweite Zeile. */
.cluster-zeile input[type=time] {
  font-family: inherit; font-size: 0.78rem; color: var(--gray-text);
  padding: 5px 5px; border: 1px solid var(--purple-light); border-radius: 7px;
  background: var(--white);
}
.cluster-zeit-gross {
  font-family: inherit; font-size: 1.3rem; font-weight: 800;
  color: var(--purple-dark); background: var(--white);
  border: 1px solid var(--purple-light); border-radius: 8px;
  padding: 5px 9px; margin-top: 3px;
  font-variant-numeric: tabular-nums;
}
.cluster-endezeile {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-top: 12px; font-size: 0.84rem; color: var(--text-muted);
}
.cluster-nachtragen-knopf {
  display: block; width: 100%; margin-top: 10px; padding: 9px 0;
  font-family: inherit; font-size: 0.84rem; font-weight: 600; cursor: pointer;
  background: none; border: none; color: var(--purple-dark);
  text-decoration: underline;
}
.cluster-nachtragen {
  margin-top: 10px; padding: 12px 13px;
  background: var(--gray-light); border-radius: 10px;
}
.cluster-nach-felder {
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
  margin-bottom: 10px; font-size: 0.84rem; color: var(--gray-text);
}
.cluster-nach-fehler {
  font-size: 0.8rem; color: #b26a00; margin-bottom: 9px; font-weight: 600;
}
/* Der Standard-Linkstil ist auf diesen Flächen zu dunkel, im Dunkelmodus
   sogar deutlich. Über die Variable stimmt er in beiden Fassungen. */
.cluster-hinweis a, .cluster-nachtragen a { color: var(--purple-mid); font-weight: 700; }

/* Erinnerung an Tage, die über die Karte entstanden sind und denen noch die
   Medikamentenangabe fehlt. Führt mit einem Tipp auf genau diesen Tag. */
.cluster-offen {
  display: block; margin-top: 14px; padding: 11px 13px;
  background: var(--lavender-soft); border-radius: 10px;
  font-size: 0.82rem; line-height: 1.5; color: var(--gray-text);
  text-decoration: none;
}
.cluster-offen strong { color: var(--purple-dark); }

:root[data-theme="dark"] .cluster-lang { background: #3a3220; color: #f0d9a0; }
:root[data-theme="dark"] .cluster-nach-fehler { color: #f0d9a0; }
