/* Newsletter: Kennzahlen, Code-Pruefung, Liste der Angemeldeten. Baut auf
   .kpis/.kpi und .home-karte aus home.css auf. */
.nl-admin { display: grid; gap: 14px; max-width: 1120px; }
.nl-raster { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.nl-hinweis { margin: 0 0 12px; color: var(--muted); font-size: 13px; line-height: 1.5; }
.nl-hinweis strong { color: var(--paper); font-weight: 600; }

.nl-code__form { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.nl-feld { flex: 1 1 220px; display: grid; gap: 6px; font-size: 12px; color: var(--muted); }
.nl-feld input {
  height: 46px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px;
  background: var(--bg); color: var(--paper); font: inherit; font-size: 16px; letter-spacing: 0.04em;
}
.nl-feld input:focus { outline: 2px solid var(--line2); outline-offset: 1px; }
.nl-code__form .btn, .nl-einloesen .btn, .nl-brevo__link {
  min-height: 46px; padding: 0 18px; border-radius: 10px; font-size: 12px;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit;
}
.nl-code__form .btn--solid, .nl-einloesen .btn--solid { color: #070707; }

.nl-code__ergebnis { margin-top: 14px; display: grid; gap: 12px; }
.nl-code__ergebnis:empty { display: none; }
.nl-daten { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel2); font-size: 14px; }
.nl-daten dt { color: var(--muted); }
.nl-daten dd { margin: 0; overflow-wrap: anywhere; }
.nl-einloesen { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; }

.nl-chip { display: inline-block; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.nl-chip--ok { background: rgba(127, 158, 130, 0.16); color: #a9c7ac; }
.nl-chip--warn { background: rgba(184, 154, 101, 0.16); color: #d8bd8c; }
.nl-chip--bad { background: rgba(189, 107, 99, 0.16); color: #e2a19a; }

.nl-meldung { margin: 0; padding: 10px 12px; border-left: 2px solid var(--line2); background: var(--panel2); border-radius: 0 10px 10px 0; font-size: 13px; }
.nl-meldung--ok { border-left-color: var(--ok); }
.nl-meldung--warn { border-left-color: var(--warn); margin-bottom: 12px; }
.nl-meldung--bad { border-left-color: var(--danger); }

.nl-liste { list-style: none; margin: 0; padding: 0; }
.nl-person {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 12px;
  min-height: 56px; padding: 10px 2px; border-top: 1px solid var(--line); font-size: 14px;
}
.nl-person:first-child { border-top: 0; }
.nl-person__mail { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nl-person__seit { grid-column: 1 / -1; color: var(--faint); font-size: 12px; font-variant-numeric: tabular-nums; }
.nl-code-mini { color: var(--muted); }
.nl-chip--aus { background: var(--panel3); color: var(--muted); }

/* Kopf mit Filter bzw. "Alle ansehen" */
.nl-liste__kopf, .nl-home__kopf { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.nl-liste__kopf h3, .nl-home__kopf h3 { margin: 0; }
.nl-home__kopf .text-btn { font-size: 13px; min-height: 36px; }
.nl-home__zahlen { margin: 0 0 6px; color: var(--muted); font-size: 14px; }
.nl-home__zahlen strong { color: var(--paper); font-size: 22px; font-weight: 800; margin-right: 4px; font-variant-numeric: tabular-nums; }
.nl-liste--kurz .nl-person { min-height: 50px; }

/* Newsletter-Entwurf */
.nl-entwurf { display: flex; gap: 8px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 4px; }
.nl-feld--klein { flex: 0 0 auto; }
.nl-feld select {
  height: 46px; padding: 0 12px; border: 1px solid var(--line2); border-radius: 10px;
  background: var(--bg); color: var(--paper); font: inherit; font-size: 16px;
}
.nl-entwurf .btn { min-height: 46px; padding: 0 18px; border-radius: 10px; font-size: 12px; color: #070707; }
.nl-brevo .nl-brevo__link { margin-top: 12px; }
.nl-meldung a { color: var(--paper); }

@media (max-width: 1050px) {
  .nl-raster { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .nl-entwurf .btn { flex: 1 1 100%; }
  .nl-code__form .btn, .nl-einloesen .btn { flex: 1 1 100%; }
}
