/* Homeoffice – Bluzelle-Newsletter. Ergänzt app.css und nutzt deren Farben und Bausteine (.card, .btn, .field, .check, .hint, .eyebrow).
   Ab 1000px: Ausgabe + Vorschau links, Anleitung/Einstellungen/Archiv rechts; darunter eine Spalte. */
.nl { display: grid; gap: 20px; min-width: 0; }
.nl:focus { outline: none; }
.nl h3 { margin: 0; font: 700 19px/1.25 var(--f-display); letter-spacing: -.01em; }
.nl-msg { padding: 8px 0; display: grid; gap: 10px; justify-items: start; color: var(--muted); }
.nl-msg p { margin: 0; }

/* Kopf */
.nl .card.nl-head { padding: 24px 26px; display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; }
.nl-head-text { display: grid; gap: 6px; min-width: 0; flex: 1 1 320px; }
.nl-head h2 { margin: 0; font: 700 clamp(22px, 3.4vw, 30px)/1.12 var(--f-display); letter-spacing: -.02em; }
.nl-head .btn { flex: none; }
.nl-alert { margin: 0; padding: 14px 18px; border-radius: var(--r-tile); background: var(--minus-soft); color: var(--minus); font-weight: 500; font-size: 14px; }

/* Raster */
.nl-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1000px) { .nl-grid { grid-template-columns: minmax(0, 1fr) 340px; } }
.nl-main, .nl-side { display: grid; gap: 20px; min-width: 0; align-content: start; }
.nl .card { padding: 22px 24px; display: grid; gap: 14px; align-content: start; }
@media (max-width: 480px) { .nl .card { padding: 18px 16px; } .nl .card.nl-head { padding: 20px 16px; } }
.nl-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 12px; flex-wrap: wrap; }

/* Status-Pille */
.nl-pill { display: inline-block; padding: 3px 11px; border-radius: 980px; font-size: 12.5px; font-weight: 500; line-height: 1.35; background: var(--surface-3); color: var(--ink); white-space: nowrap; }
.nl-pill[data-s="bereit"] { background: var(--plus-soft); color: var(--plus); }
.nl-pill[data-s="ersetzt"] { background: var(--surface-2); color: var(--muted); }
.nl-badge { display: inline-block; padding: 1px 8px; border-radius: 980px; background: var(--plus-soft); color: var(--plus); font-size: 12px; font-weight: 600; }

/* Aktuelle Ausgabe */
.nl-warn { margin: 0; padding: 12px 16px 12px 32px; border-radius: var(--r-tile); background: var(--vac-soft); color: var(--vac); font-size: 13.5px; display: grid; gap: 4px; }
.nl-copy label { display: flex; justify-content: space-between; gap: 8px; }
.nl-count { font-weight: 400; color: var(--faint); font-variant-numeric: tabular-nums; }
.nl-copy-row { display: flex; gap: 8px; min-width: 0; }
.nl-copy-row input { flex: 1 1 auto; min-width: 0; background: var(--surface-2); }
.nl-copy-row .btn { flex: none; min-height: 44px; }
.nl-actions { display: flex; flex-wrap: wrap; gap: 10px; padding-top: 4px; }
.nl .btn.is-ok { background: var(--plus); color: #FFFFFF; }
.nl-details { font-size: 14px; color: var(--muted); }
.nl-details summary { cursor: pointer; font-weight: 500; color: var(--ink); padding: 4px 0; }
.nl-prods { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 4px; }
.nl-prods li { display: flex; justify-content: space-between; gap: 12px; padding: 8px 12px; border-radius: 10px; background: var(--surface-2); }
.nl-prods li span:first-child { min-width: 0; overflow-wrap: anywhere; }
.nl-prods .num { white-space: nowrap; color: var(--ink); }
.nl-meta { margin: 0; }
.nl-clip { position: fixed; top: 0; left: -9999px; opacity: 0; }

/* Vorschau */
.nl-frame { display: grid; justify-items: center; background: #F2F4F0; border-radius: var(--r-tile); padding: 12px 0; overflow: hidden; }
.nl-frame iframe { display: block; width: 100%; max-width: 640px; height: 1400px; border: 0; background: #F2F4F0; }
@media (max-width: 480px) { .nl-frame { padding: 0; margin-inline: -8px; } .nl-frame iframe { height: 1600px; } }

/* Anleitung */
.nl-steps ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; font-size: 14.5px; }
.nl-steps li::marker { font-weight: 600; color: var(--muted); }

/* Einstellungen */
.nl-form { display: grid; gap: 14px; }
.nl-form .check { align-items: flex-start; line-height: 1.4; }
.nl-form .check input { margin-top: 1px; flex: none; }
.nl-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.nl-form .btn { justify-self: start; }

/* Archiv */
.nl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 520px; overflow: auto; }
.nl-list button { appearance: none; border: 0; width: 100%; text-align: left; display: grid; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; transition: background-color .15s; }
.nl-list button:hover { background: var(--surface-3); }
.nl-list button[aria-current="true"] { background: var(--ink); color: #FFFFFF; }
.nl-list button[aria-current="true"] .nl-pill { background: rgb(255 255 255 / .18); color: #FFFFFF; }
.nl-l1 { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.nl-l2 { font-size: 13px; opacity: .8; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Marken-Symbol oben links in dieser Ansicht */
body[data-view="newsletter"] .brand-mark .mk-news { display: block; }
