/* Newsletter: Formular (Footer und /news), dazu die Seiten /news/bestaetigt und /news/einstellungen. */

/* ===== Formular ===== */
.nl-form, .nl-form * { box-sizing: border-box; }
.nl-form { width: 100%; max-width: 460px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.nl-form[hidden], .nl-form [hidden] { display: none !important; }
.nl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.nl-row input { flex: 1 1 220px; min-width: 0; height: 46px; padding: 0 16px; border-radius: 999px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.14); color: #F0EDE6; font: inherit; font-size: 16px; }
.nl-row input::placeholder { color: rgba(255, 255, 255, 0.4); }
.nl-row input:focus-visible { outline: 2px solid rgba(134, 168, 131, 0.8); outline-offset: 2px; }
.nl-row input[aria-invalid="true"] { border-color: #E8A838; }
.nl-row button { height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: #86A883; color: #1A1B1E; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.nl-row button:hover { background: #96B693; }
.nl-row button:disabled { opacity: .6; cursor: default; }
.nl-row button:focus-visible { outline: 2px solid rgba(134, 168, 131, 0.8); outline-offset: 2px; }
.nl-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.nl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nl-form .nl-status { margin: 0; font-size: 13px; line-height: 1.45; color: #E8A838; }
.nl-form .nl-note { margin: 0; font-size: 12px; line-height: 1.5; color: rgba(255, 255, 255, 0.5); }
.nl-form .nl-note a { color: rgba(240, 237, 230, 0.75); text-decoration: underline; text-underline-offset: 2px; }
.nl-done { width: 100%; max-width: 460px; margin: 0 auto; padding: 12px 16px; border-radius: 14px; background: rgba(134, 168, 131, 0.12); font-size: 14px; line-height: 1.5; color: #F0EDE6; text-align: center; }
.nl-done:focus { outline: none; }
@media (max-width: 880px) { .nl-row button { width: 100%; } }

/* ===== Footer: Newsletterblock (Anordnung des Footers: footer.css) ===== */
/* 440px are wide enough that the consent line fits the pill's text area on two lines. */
.nl-form.nl-form--footer { max-width: 440px; gap: 16px; }
.nl-form .nl-title { margin: 0; font-size: 17px; font-weight: 500; line-height: 1.4; color: #F0EDE6; }
.nl-form .nl-sub { margin: 4px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, 0.45); text-wrap: balance; }
/* One pill: the row carries the field's look, the input is plain, and the button sits inside with a 4px inset.
   Input and button are flex neighbours, so the text can never run under the button. */
.nl-form--footer .nl-row { flex-wrap: nowrap; gap: 0; align-items: center; height: 46px; padding: 4px; border-radius: 999px; background: rgba(0, 0, 0, 0.25); border: 1px solid rgba(255, 255, 255, 0.14); }
.nl-form--footer .nl-row input { flex: 1 1 0; height: 36px; padding: 0 10px 0 14px; border: 0; background: transparent; }
.nl-form--footer .nl-row input:focus-visible { outline: none; }
.nl-form--footer .nl-row input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #141417 inset; -webkit-text-fill-color: #F0EDE6; }
.nl-form--footer .nl-row button { flex: 0 0 auto; width: auto; height: 36px; padding: 0 18px; }
.nl-form--footer .nl-row:has(input:focus-visible) { outline: 2px solid rgba(134, 168, 131, 0.8); outline-offset: 2px; }
.nl-form--footer .nl-row:has(input[aria-invalid="true"]) { border-color: #E8A838; }
/* Disabled after success: the whole pill dims once, not the button on top of it. */
.nl-form--footer .nl-row:has(input:disabled) { opacity: .6; }
.nl-form--footer .nl-row:has(input:disabled) button:disabled { opacity: 1; }
/* Consent line and messages share one slot, aligned with the text in the field (1px border + 4px inset + 14px padding).
   The message is taken out of the flow and the hidden line keeps its height, so nothing moves;
   the minimum is two lines of text plus the link. */
.nl-slot { position: relative; margin-top: 8px; padding-left: 19px; min-height: 58px; }
.nl-form--footer .nl-note, .nl-form--footer .nl-status { margin: 0; font-size: 12px; line-height: 18px; text-wrap: balance; }
.nl-form--footer .nl-note { color: rgba(255, 255, 255, 0.45); }
.nl-form--footer .nl-note a { display: block; width: fit-content; margin-top: 4px; color: rgba(255, 255, 255, 0.6); text-decoration: underline; text-underline-offset: 2px; transition: color 0.2s ease; }
.nl-form--footer .nl-note a:hover { color: #86A883; }
.nl-form--footer .nl-status { position: absolute; top: 0; left: 19px; right: 0; }
.nl-form--footer .nl-status.is-success { color: #A4C2A1; }
.nl-form--footer .nl-status:focus { outline: none; }
.nl-form--footer.has-message .nl-note { visibility: hidden; }
@media (max-width: 720px) {
  .nl-form--footer .nl-row button { padding: 0 14px; }
}
/* Phones: the two sentences on their own lines; consent text and messages at the heading's left edge. */
@media (max-width: 600px) {
  .nl-sub-line { display: block; }
  .nl-slot { padding-left: 0; }
  .nl-form--footer .nl-status { left: 0; }
}
/* ===== /news ===== */
.nl-news { max-width: 620px; margin: 0 auto; padding: clamp(132px, 18vh, 200px) 24px 24px; text-align: center; }
.nl-news h1 { margin-top: 14px; font-size: clamp(36px, 4.6vw, 56px); font-weight: 600; letter-spacing: -0.035em; line-height: 1.06; text-wrap: balance; }
.nl-news .nl-news-sub { margin: 18px auto 32px; font-size: 18px; line-height: 1.55; color: rgba(240, 237, 230, 0.72); text-wrap: pretty; }
.nl-news .nl-noscript { font-size: 15px; line-height: 1.55; color: rgba(240, 237, 230, 0.72); }
.nl-news .nl-noscript a { color: #A4C2A1; }

/* ===== /news/bestaetigt und /news/einstellungen ===== */
.nl-page-body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; align-items: center; padding: 24px; background-color: #1A1B1E; color: #F0EDE6; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
.nl-page-body *, .nl-page-body *::before, .nl-page-body *::after { box-sizing: border-box; }
.nl-page-content { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding-top: 24px; }
.nl-page-logo { display: block; margin-bottom: 32px; }
.nl-page-logo img { display: block; width: 120px; height: auto; }
.nl-card { width: 100%; max-width: 460px; padding: 40px; border-radius: 32px; background-color: rgba(134, 168, 131, 0.08); border: 1px solid rgba(134, 168, 131, 0.18); }
.nl-card h1 { margin: 0 0 12px; font-size: 28px; font-weight: 300; letter-spacing: -0.6px; line-height: 1.2; }
.nl-card p { margin: 0; font-size: 16px; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }
.nl-card p a { color: #A4C2A1; }
.nl-card .nl-card-next { margin-top: 12px; }
.nl-page-footer { padding: 32px 0 8px; font-size: 13px; color: rgba(255, 255, 255, 0.35); text-align: center; }
.nl-page-footer a { color: rgba(255, 255, 255, 0.45); text-decoration: none; transition: color 0.2s ease; }
.nl-page-footer a:hover { color: #86A883; }
@media (max-width: 600px) { .nl-card { padding: 32px 24px; border-radius: 28px; } }

/* ===== Abstellen: Zustände ===== */
.nl-state { display: none; }
html[data-state="loading"] .nl-state-loading,
html[data-state="form"] .nl-state-form,
html[data-state="unsubscribed"] .nl-state-unsubscribed,
html[data-state="invalid"] .nl-state-invalid,
html[data-state="failed"] .nl-state-failed { display: block; }

.nl-topics { margin: 24px 0 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 14px; }
.nl-topic { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; font-size: 16px; line-height: 1.4; color: #F0EDE6; }
.nl-topic small { display: block; margin-top: 2px; font-size: 13px; color: rgba(255, 255, 255, 0.5); }
.nl-topic input { appearance: none; -webkit-appearance: none; flex-shrink: 0; width: 22px; height: 22px; margin: 0; border-radius: 7px; border: 1px solid rgba(255, 255, 255, 0.24); background: rgba(0, 0, 0, 0.25) no-repeat center / 16px; cursor: pointer; }
.nl-topic:hover input { border-color: rgba(255, 255, 255, 0.4); }
.nl-topic input:checked { background-color: #86A883; border-color: #86A883; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A1B1E' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.nl-topic input:focus-visible { outline: 2px solid rgba(134, 168, 131, 0.8); outline-offset: 2px; }
.nl-btn { display: block; width: 100%; height: 50px; margin-top: 24px; border-radius: 16px; border: 0; background: #86A883; color: #1A1B1E; font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.nl-btn:hover { background: #96B693; }
.nl-btn--quiet { height: 46px; margin-top: 10px; background: transparent; border: 1px solid rgba(255, 255, 255, 0.18); color: rgba(240, 237, 230, 0.75); font-weight: 500; }
.nl-btn--quiet:hover { background: rgba(255, 255, 255, 0.05); }
.nl-btn:disabled { opacity: .6; cursor: default; }
.nl-btn:focus-visible { outline: 2px solid rgba(134, 168, 131, 0.8); outline-offset: 2px; }
.nl-card .nl-manage-status { margin-top: 14px; font-size: 14px; color: #A4C2A1; text-align: center; }
.nl-card .nl-manage-status.is-error { color: #E8A838; }
.nl-card .nl-manage-status[hidden] { display: none; }
.nl-card .nl-manage-hint { margin-top: 14px; font-size: 13px; color: rgba(255, 255, 255, 0.45); }
