/* ============================================================
   Newsletter-Plugin — Anmeldeformular (ShortCode [[NEWSLETTER]])
   und Ergebnisseiten. Nutzt die Design-Tokens des Themes
   (--blue, --orange, --r-md …) aus style.css.
   ============================================================ */

/* ---------- Anmeldeformular (Seite) ----------
   Helles Panel, das sich in eine Inhaltsseite einfügt (dunkler, gut lesbarer
   Text auf hellem Grund). Marken-Identität über eine schmale Akzentleiste
   (Blau → Orange) und orange Detail-Akzente statt einer dunklen Vollfläche. */
.nl-signup {
  margin: 8px 0 4px;
}
.nl-signup__card {
  position: relative;
  background: linear-gradient(180deg, #ffffff 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}
/* schmale Marken-Akzentleiste oben */
.nl-signup__card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
}
.nl-signup__body {
  padding: 40px 40px 34px;
  color: var(--text);
}
.nl-signup__eyebrow {
  display: inline-block;
  font-family: var(--ff-head);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 10px;
}
.nl-signup__title {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 26px;
  line-height: 1.2;
  letter-spacing: -.015em;
  margin: 0 0 10px;
  color: var(--blue-ink);
}
.nl-signup__intro {
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-mid);
  margin: 0 0 22px;
  max-width: 60ch;
}
.nl-signup__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.nl-signup__row {
  display: flex;
  gap: 10px;
  align-items: stretch;
}
.nl-signup__input {
  flex: 1 1 auto;
  min-width: 0;
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-sm);
  padding: 14px 18px;
  color: var(--text);
  font-family: var(--ff-body);
  font-size: 15px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.nl-signup__input::placeholder { color: var(--text-mid); }
.nl-signup__input:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(243, 146, 0, .15);
}
.nl-signup__btn { white-space: nowrap; flex: 0 0 auto; }

.nl-signup__consent {
  display: flex;
  gap: 11px;
  align-items: flex-start;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-mid);
  cursor: pointer;
}
.nl-signup__consent input {
  margin-top: 3px;
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  accent-color: var(--blue);
}
.nl-signup__consent a { color: var(--blue); text-decoration: underline; }

.nl-signup__doi {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 2px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  font-size: 13px;
  color: var(--text-mid);
}
.nl-signup__doi svg { flex: 0 0 auto; color: var(--orange); }

/* ---------- Ergebnisseite (Bestätigung/Abmeldung) ---------- */
.nl-message {
  max-width: 620px;
  margin: 12px auto;
  padding: 46px 40px;
  text-align: center;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--card-shadow);
}
.nl-message__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 70px;
  height: 70px;
  border-radius: 50%;
  margin-bottom: 22px;
}
.nl-message--success .nl-message__icon { background: #e8f6ec; color: #1a8f43; }
.nl-message--info .nl-message__icon    { background: var(--bg-softer); color: var(--blue); }
.nl-message--error .nl-message__icon   { background: #fdecec; color: #c8362f; }
.nl-message__title {
  font-family: var(--ff-head);
  font-weight: 800;
  font-size: 26px;
  letter-spacing: -.015em;
  margin: 0 0 12px;
  color: var(--blue-ink);
}
.nl-message__text {
  font-size: 16px;
  line-height: 1.65;
  color: var(--text-mid);
  margin: 0 auto 26px;
  max-width: 46ch;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .nl-signup__body { padding: 30px 24px 28px; }
  .nl-signup__title { font-size: 22px; }
  .nl-signup__row { flex-direction: column; }
  .nl-signup__btn { width: 100%; justify-content: center; }
  .nl-message { padding: 36px 24px; }
}
