/* GEIST — Buero-Benachrichtigung ("Glocke"), Stufe 1.
 * docs/KONZEPT-BUERO-BENACHRICHTIGUNG-07-10.md Teil B, R133 'buero_glocke'.
 * Nur die Darstellung des Knopfs + Popovers — der Inhalt (Ereignisse) kommt
 * serverseitig gerendert aus apps/geist-suche/templates/base.html.
 * CI: Navy #2B61A1 (keine gruene Akzentfarbe, kein Royalblau #2563EB). */
.glocke-wrap {
  position: relative;
  display: inline-block;
}
.glocke-knopf {
  position: relative;
}
.glocke-zahl {
  display: inline-block;
  min-width: 16px;
  padding: 0 4px;
  margin-left: 4px;
  border-radius: 999px;
  background: #2B61A1;
  color: #fff;
  font-size: 11px;
  line-height: 16px;
  text-align: center;
  font-weight: 600;
}
.glocke-popover {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 50;
  width: 320px;
  max-width: 90vw;
  max-height: 60vh;
  overflow-y: auto;
  background: #fff;
  border: 1px solid #d7dbe0;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  padding: 10px;
}
.glocke-popover[hidden] {
  display: none;
}
.glocke-popover-kopf {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 6px;
  color: #1f2430;
}
.glocke-liste {
  list-style: none;
  margin: 0;
  padding: 0;
}
.glocke-eintrag {
  border-bottom: 1px solid #eef0f3;
}
.glocke-eintrag:last-child {
  border-bottom: none;
}
.glocke-eintrag-link,
.glocke-eintrag-link-erledigt {
  display: block;
  padding: 8px 4px;
  text-decoration: none;
  color: #1f2430;
}
.glocke-eintrag-link:hover,
.glocke-eintrag-link-erledigt:hover {
  background: #f3f6fa;
}
.glocke-mandant-pille {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #2B61A1;
  border: 1px solid #2B61A1;
  border-radius: 4px;
  padding: 0 4px;
  margin-right: 6px;
}
.glocke-titel {
  display: block;
  font-size: 13px;
  margin-top: 2px;
}
.glocke-zeit {
  display: block;
  font-size: 11px;
  color: #8A8F98;
  margin-top: 2px;
}
.glocke-leer {
  padding: 10px 4px;
  color: #8A8F98;
  font-size: 13px;
}

/* Tom 08.10.2026: Reiter "Offen"/"Erledigt (14 Tage)" — gelesene Eintraege
 * bleiben im "Offen"-Reiter stehen (nur grau), verschwinden erst, wenn der
 * Anlass selbst erledigt ist (dann im zweiten Reiter als Verlauf). */
.glocke-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eef0f3;
}
.glocke-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 6px 4px;
  font-size: 12px;
  color: #8A8F98;
  cursor: pointer;
}
.glocke-tab.is-aktiv {
  color: #2B61A1;
  border-bottom-color: #2B61A1;
  font-weight: 600;
}
/* Ungelesen: fett + Punkt davor (s. Template). Gelesen: grau, normal. */
.glocke-eintrag.ist-gelesen .glocke-titel,
.glocke-eintrag.ist-gelesen .glocke-mandant-pille {
  color: #8A8F98;
  font-weight: normal;
  border-color: #c9cdd3;
}
.glocke-eintrag:not(.ist-gelesen) .glocke-titel {
  font-weight: 600;
}
.glocke-punkt {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2B61A1;
  margin-right: 4px;
  vertical-align: middle;
}
.glocke-gelesen-info {
  display: block;
  font-size: 11px;
  color: #8A8F98;
  font-style: italic;
  margin-top: 2px;
}
.glocke-eintrag.ist-erledigt .glocke-titel,
.glocke-eintrag.ist-erledigt .glocke-mandant-pille {
  color: #8A8F98;
  border-color: #c9cdd3;
}
