/*
  Benachrichtigungen (App notifications): Glocke in der Kopfzeile mit Zahl ungelesener, Liste unter
  /benachrichtigungen/, Karten auf dem Dashboard. Farben aus static/css/app.css; Zustand nie nur über Farbe.
*/

.nav-bell {
  gap: var(--space-1);
}

.nav-bell svg {
  width: 1.25rem;
  height: 1.25rem;
  flex: none;
}

.nav-bell-count {
  min-width: 1.4rem;
  padding: 0 0.4rem;
  border-radius: 999px;
  background: var(--color-header-text);
  color: var(--color-header-bg);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.4rem;
  text-align: center;
}

/* Installationsangebot nie in der installierten App (E-41); install.js prüft dasselbe */
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  [data-card="notifications.install"] {
    display: none !important;
  }
}

/* `hidden` gilt auch für Knöpfe, deren Klasse `display` setzt (push.js, install.js blenden sie so aus) */
.push-control [hidden],
.install-offer [hidden],
.permissions-offer [hidden] {
  display: none !important;
}

.push-control {
  margin: var(--space-3) 0;
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  background: var(--color-surface-2);
}

.push-control .form-actions {
  margin-bottom: 0;
}

.notification-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--space-4);
}

.notification-list > li {
  padding: var(--space-3) var(--space-4);
  margin-bottom: var(--space-2);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
}

.notification-list > li.notification-unread {
  border-left: 4px solid var(--color-accent);
}

.notification-list h2 {
  margin: 0 0 var(--space-1);
  font-size: 1rem;
}

.notification-list .notification-body {
  margin: 0 0 var(--space-2);
  white-space: pre-line;
}

.notification-meta {
  margin: 0;
  font-size: 0.875rem;
}

.share-box {
  margin: var(--space-4) 0;
}
