/* Notifications — Bell + Liste.
   Brand: Sage als Akzent, Papier-Creme Hintergrund. Keine Ausrufezeichen.
*/

/* ---------- Bell in der Nav ---------- */
.notif-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 12px;
}

.notif-bell__link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  color: var(--color-sage, #6b8a72);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

.notif-bell__link:hover,
.notif-bell__link:focus-visible {
  background-color: rgba(107, 138, 114, 0.12);
  outline: none;
}

.notif-bell__icon {
  display: block;
}

.notif-bell__count {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #c64545;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  letter-spacing: 0.02em;
  box-shadow: 0 0 0 2px var(--color-paper, #f7f3ec);
}

.notif-bell__count.is-hidden {
  display: none;
}

/* ---------- Page ---------- */
.notif-page {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-block: 24px;
}

.notif-page__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
}

.notif-page__head h1 {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 500;
}

.notif-page__lede {
  margin: 0;
  color: var(--color-ink-soft, #5a5a5a);
}

.notif-page__bulk {
  margin-left: auto;
}

.notif-empty {
  padding: 24px;
  background: var(--color-paper, #f7f3ec);
  border-radius: 8px;
  color: var(--color-ink-soft, #5a5a5a);
  text-align: center;
}

/* ---------- Liste ---------- */
.notif-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
}

.notif-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 20px;
  background: var(--color-paper, #f7f3ec);
  border-radius: 8px;
  border-left: 3px solid transparent;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.notif-card.is-unread {
  border-left-color: var(--color-sage, #6b8a72);
  background: #fbfaf6;
}

.notif-card.is-read {
  opacity: 0.7;
}

.notif-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--color-ink-soft, #5a5a5a);
}

.notif-card__pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--color-sage, #6b8a72);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.notif-card__subject {
  margin: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--color-ink, #2a2a2a);
}

.notif-card__body {
  margin: 0;
  color: var(--color-ink, #2a2a2a);
  line-height: 1.5;
}

.notif-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.notif-card__form {
  display: inline-block;
  margin: 0;
}

/* ---------- Mobile ---------- */
@media (max-width: 600px) {
  .notif-page__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .notif-page__bulk {
    margin-left: 0;
  }

  .notif-card {
    padding: 14px 16px;
  }
}

/* ---------- Nav-Tray (Bell + Dropdown) ---------- */
.nav-tray {
  position: relative;
  display: inline-flex;
  align-items: center;
  margin-right: 10px;
}

.nav-tray-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  color: var(--color-sage, #6b8a72);
  border-radius: 999px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.nav-tray-btn:hover,
.nav-tray-btn:focus-visible {
  background-color: rgba(107, 138, 114, 0.14);
  outline: none;
}

.nav-tray-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 0 0 2px var(--color-paper, #f7f3ec);
}

.nav-tray-badge[hidden] { display: none; }

.nav-tray-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 400px;
  overflow-y: auto;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(0, 0, 0, 0.06);
  z-index: 1000;
  padding: 8px 0;
}

.nav-tray-pop[hidden] { display: none; }

.nav-tray-pop header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 14px 10px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.nav-tray-pop header strong {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-ink, #2a2a2a);
}

.nav-tray-pop header .all {
  font-size: 0.85rem;
  color: var(--color-sage, #6b8a72);
  text-decoration: none;
}

.nav-tray-pop header .all:hover { text-decoration: underline; }

.nav-tray-pop ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nav-tray-pop li.muted {
  padding: 14px;
  color: var(--color-ink-soft, #5a5a5a);
  text-align: center;
  font-size: 0.9rem;
}

.nav-tray-item__link {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 14px;
  color: var(--color-ink, #2a2a2a);
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background-color 0.12s ease, border-color 0.12s ease;
}

.nav-tray-item__link:hover,
.nav-tray-item__link:focus-visible {
  background-color: rgba(107, 138, 114, 0.10);
  border-left-color: var(--color-sage, #6b8a72);
  outline: none;
}

.nav-tray-item__title {
  font-weight: 600;
  font-size: 0.92rem;
  line-height: 1.3;
}

.nav-tray-item__body {
  font-size: 0.82rem;
  color: var(--color-ink-soft, #5a5a5a);
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.nav-tray-item__meta {
  font-size: 0.72rem;
  color: var(--color-ink-soft, #5a5a5a);
  margin-top: 2px;
}

@media (max-width: 600px) {
  .nav-tray-pop {
    right: -10px;
    width: 280px;
  }
}
