/* Kleinere Module nach dem ClanPortal-Design (v2/design/incoming/clanportal-prototyp/):
   Benachrichtigungen (nt-*). */

/* ----- Benachrichtigungen ----- */
.nt-toolbar { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-bottom: .85rem; }
.nt-toolbar .form-control { flex: 1 1 200px; }
.nt-chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.nt-chip {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .38rem .8rem; border-radius: 999px;
  border: 1px solid var(--border); background: var(--bg-elev);
  color: var(--fg-muted); font-size: .84rem; font-weight: 600; cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
}
.nt-chip b { font-size: .74rem; padding: .05rem .4rem; border-radius: 999px; background: color-mix(in srgb, var(--fg) 8%, transparent); color: var(--fg-muted); }
.nt-chip:hover { color: var(--fg); border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }
.nt-chip.is-active { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.nt-chip.is-active b { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }

.nt-list { display: flex; flex-direction: column; gap: .6rem; }
.nt-item { display: flex; align-items: flex-start; gap: .8rem; margin: 0; }
.nt-item__icon { color: var(--fg-muted); font-size: 1.1rem; margin-top: .2rem; width: 1.3rem; text-align: center; flex-shrink: 0; }
.nt-item__icon.is-unread { color: var(--accent); }
.nt-item__body { flex: 1; min-width: 0; }
.nt-item__head { display: flex; justify-content: space-between; align-items: baseline; gap: .75rem; }
.nt-item__head b { color: var(--fg); }
.nt-item__time { color: var(--fg-muted); font-size: .8rem; white-space: nowrap; flex-shrink: 0; }
.nt-item__meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .25rem; color: var(--fg-muted); font-size: .8rem; }
.nt-item__text { color: var(--fg-muted); font-size: .9rem; margin-top: .35rem; overflow-wrap: anywhere; }
.nt-item__text :is(h1, h2, h3, h4) { font-size: .98rem; color: var(--fg); margin: .5rem 0 .25rem; }
.nt-item__text ul { margin: .25rem 0; padding-left: 1.2rem; }
.nt-item__actions { display: flex; gap: .45rem; flex-wrap: wrap; margin-top: .6rem; }
.nt-item__seen { margin-left: auto; }
.nt-empty {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: 2.2rem 1rem; border: 1px dashed var(--border); border-radius: 14px;
  color: var(--fg-muted); text-align: center;
}
.nt-empty i { font-size: 1.6rem; color: var(--accent); margin-bottom: .3rem; }
.nt-empty b { color: var(--fg); }

.nt-send { max-width: 620px; }
.nt-targets { display: flex; gap: .5rem; flex-wrap: wrap; }
.nt-target {
  flex: 1 1 150px; display: flex; align-items: center; gap: .5rem;
  padding: .7rem .85rem; border-radius: 10px; cursor: pointer;
  border: 1px solid var(--border); background: var(--bg); color: var(--fg); font-weight: 600; text-align: left;
}
.nt-target i { color: var(--fg-muted); }
.nt-target.is-active { border-color: var(--accent); background: var(--accent-soft); }
.nt-target.is-active i { color: var(--accent); }
.nt-list > .nt-item.card { margin: 0; padding: .95rem 1.15rem; }
.nt-item__meta:empty { display: none; }
.nt-go { color: var(--accent); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.nt-go:hover { background: var(--accent-soft); }

/* ----- Account ----- */
.tw-switch { position: relative; display: inline-flex; align-items: center; gap: .65rem; cursor: pointer; user-select: none; }
.tw-switch__track { width: 40px; height: 22px; border-radius: 999px; background: var(--bg-elev-2); border: 1px solid var(--border); position: relative; flex: none; transition: background .15s, border-color .15s; }
.tw-switch__thumb { position: absolute; top: 1px; left: 1px; width: 18px; height: 18px; border-radius: 50%; background: var(--fg-muted); transition: transform .15s, background .15s; }
.tw-switch.is-on .tw-switch__track { background: var(--accent-soft); border-color: var(--accent); }
.tw-switch.is-on .tw-switch__thumb { transform: translateX(18px); background: var(--accent); }
.tw-switch__label { font-size: .9rem; color: var(--fg); }
.cb-preview { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.cb-preview__status { display: inline-block; padding: .25rem .7rem; border-radius: 8px; color: #fff; font-weight: 600; font-size: .82rem; }
.account-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 1rem; align-items: stretch; }
.account-grid > .card { margin: 0; }
@media (max-width: 560px) { .account-grid { grid-template-columns: 1fr; } }
.tw-switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.account-grid .spec-tank-label { display: flex; align-items: center; gap: .5rem; margin: .3rem 0; cursor: pointer; }
.acc-wg-list { display: flex; flex-direction: column; gap: .6rem; }
.acc-wg { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; padding: .75rem .85rem; border: 1px solid var(--border); border-radius: 12px; background: color-mix(in srgb, var(--bg-elev-2) 55%, transparent); }
.acc-wg__logo { display: inline-grid; place-items: center; width: 46px; height: 46px; border-radius: 10px; background: #d9243c; color: #fff; font-weight: 800; font-size: .8rem; flex: none; }
.acc-wg__info { flex: 1; min-width: 200px; }
.acc-wg__name { font-weight: 700; display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.acc-wg__sub { color: var(--fg-muted); font-size: .83rem; margin-top: .15rem; }
.acc-wg__auto { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--fg-muted); margin-top: .35rem; cursor: pointer; }
.acc-wg__actions { display: flex; gap: .4rem; flex: none; }

/* ----- Farbenblind-Modus: Rot → Violett ----- */
html[data-cb="1"] { --danger: #8b6cf6; }
html[data-cb="1"][data-bs-theme="light"] { --danger: #6d3fe0; }

/* ----- Benachrichtigungs-Popup (Glocke): Aufgaben, Liste, Gesendet ----- */
.nt-pop { display: grid; gap: .6rem; }
.nt-section { font-size: .66rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--fg-muted); margin-top: .4rem; }
.nt-tasks { display: grid; gap: .45rem; }
.nt-task { display: flex; align-items: center; gap: .7rem; width: 100%; text-align: left; padding: .6rem .8rem; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-elev-2); color: var(--fg); cursor: pointer; font: inherit; transition: border-color .15s, transform .12s; }
.nt-task:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); transform: translateY(-1px); }
.nt-task > i:first-child { color: var(--accent); width: 1.2rem; text-align: center; }
.nt-task__txt { flex: 1; min-width: 0; display: grid; }
.nt-task__txt b { font-size: .9rem; }
.nt-task__txt small { font-size: .74rem; color: var(--fg-muted); }
.nt-task__go { color: var(--fg-muted); font-size: .75rem; }
.nt-pop > *, .nt-pop .nt-list, .nt-tasks > * { min-width: 0; }
.nt-task__txt b { overflow-wrap: anywhere; }
/* Zeilen sind <button>: Browser-Standard (grauer Hintergrund, Rahmen) zurücksetzen und schrumpfen lassen */
.nt-row { cursor: pointer; font: inherit; color: inherit; width: 100%; min-width: 0; text-align: left;
  background: var(--bg-elev-2); border: 1px solid var(--border); border-left: 3px solid var(--accent); border-radius: 12px; padding: .7rem .85rem; }
.nt-row:hover { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); }
.nt-row .nt-item__head { flex-wrap: wrap; row-gap: .1rem; }
.nt-row__snip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nt-row__link { display: inline-flex; align-items: center; gap: .35rem; align-self: center; font-size: .76rem; font-weight: 700; color: var(--accent); white-space: nowrap; }
.nt-sent { align-items: start; }
.nt-sent__read { display: flex; align-items: center; gap: .6rem; font-size: .74rem; color: var(--fg-muted); margin-top: .35rem; }
.nt-sent__read .rc-share { flex: 1; max-width: 220px; }
.nt-sent__actions { display: flex; gap: .3rem; }

/* ----- Mitteilungen: Gruppen aus Clan-Rollen ----- */
.nt-hint { font-size: .78rem; color: var(--fg-muted); margin-top: .35rem; }
.nt-hint:empty { display: none; }
.nt-hint--box { margin: 0 0 .85rem; padding: .6rem .8rem; border: 1px dashed var(--border); border-radius: 10px; }
.nt-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .75rem; }
.nt-group.card { margin: 0; padding: .9rem 1.05rem; display: grid; gap: .55rem; align-content: start; }
.nt-group__head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.nt-group__roles { display: flex; flex-wrap: wrap; gap: .35rem; }
.nt-role { font-size: .74rem; font-weight: 600; padding: .18rem .55rem; border-radius: 999px; background: var(--accent-soft); color: var(--accent); }
