/* ===========================================================================
 * "Auf dem Laufenden bleiben" — landing-page newsletter sign-up (phpList relay).
 * Reuses the .public-form field/label/input/consent styles from submit_form.css;
 * this file only adds the section chrome, the two-column layout, the captcha
 * row and the success state. Tokens live in application.css.
 * =========================================================================*/

.newsletter {
  padding-block: var(--pad-y);
  background: var(--bg-warm);
  border-top: 1px solid var(--rule-soft);
}

.newsletter-head {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.newsletter-head .section-title {
  max-width: 22ch;
}
.newsletter-lede {
  margin-top: 1.2rem;
  max-width: 52ch;
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(1.02rem, 1.4vw, 1.18rem);
  line-height: 1.6;
  color: var(--ink-soft);
}
.newsletter-lede a {
  color: var(--moss-bright);
  border-bottom: 1px solid var(--rule);
}
.newsletter-lede a:hover {
  color: var(--cotton);
  border-bottom-color: var(--cotton);
}

.newsletter-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(2.4rem, 5vw, 4rem);
  align-items: start;
}
@media (min-width: 880px) {
  .newsletter-grid {
    grid-template-columns: 1.4fr 1fr;
  }
}

/* ---------- the form ---------- */
.newsletter-form {
  gap: 1.8rem;
}
.newsletter-lists legend {
  margin-bottom: 0.8rem;
}
.newsletter-lists .consent-row {
  cursor: pointer;
}

/* ---------- captcha ---------- */
.newsletter-captcha .captcha-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}
.captcha-image {
  height: 96px;
  border: 1px solid var(--rule);
  border-radius: 4px;
  background: #fff;
  display: block;
}
.captcha-refresh {
  appearance: none;
  border: 1px solid var(--rule);
  background: color-mix(in srgb, var(--bg) 70%, white);
  color: var(--ink-soft);
  border-radius: 4px;
  width: 2.6rem;
  height: 2.6rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.captcha-refresh:hover {
  border-color: var(--moss-bright);
  color: var(--moss-bright);
}
[data-theme="dark"] .captcha-refresh {
  background: color-mix(in srgb, var(--bg) 70%, black);
}
.newsletter-captcha input[type="text"] {
  margin-top: 0.9rem;
  max-width: 18rem;
}

.newsletter-actions {
  margin-top: 0.4rem;
}
.newsletter-actions .btn {
  justify-content: center;
}

/* ---------- explanatory aside ---------- */
.newsletter-note {
  border-top: 1px solid var(--rule);
  padding-top: 1.4rem;
}
.newsletter-note h4 {
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--moss-bright);
  margin-bottom: 1rem;
}
.newsletter-note p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--ink-soft);
}
.newsletter-note p + p {
  margin-top: 0.9rem;
}
.newsletter-note strong {
  color: var(--ink);
  font-weight: 500;
}
.newsletter-note a {
  color: var(--moss-bright);
  border-bottom: 1px solid var(--rule);
}
.newsletter-note a:hover {
  color: var(--cotton);
  border-bottom-color: var(--cotton);
}

/* ---------- success state ---------- */
.newsletter-success {
  background: var(--bg-elev);
  border: 1px solid var(--rule);
  border-left: 3px solid var(--moss-bright);
  border-radius: 0 6px 6px 0;
  padding: clamp(1.4rem, 3vw, 2rem);
}
.newsletter-success h4 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 1.3rem;
  color: var(--ink);
  margin-bottom: 0.8rem;
}
.newsletter-success p {
  font-family: var(--serif);
  font-weight: 300;
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
}
.newsletter-success p + p {
  margin-top: 0.8rem;
}
.newsletter-success .hint {
  font-size: 0.86rem;
  color: var(--ink-mute);
}
.newsletter-success strong {
  color: var(--ink);
  font-weight: 500;
}
