/* newsletter-Modul — globale Variablen, automatisch theme-konform */
.module-band--newsletter {
  padding: 2.5rem 0;
  background: var(--color-secondary);
  color: var(--color-on-secondary, var(--color-text));
  text-align: center;
  border-top: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--color-text) 8%, transparent);
}
.module-band--newsletter h3 {
  margin: 0 0 .35rem;
  color: var(--color-primary);
  font-size: 1.4rem;
}
.module-band--newsletter p {
  margin: 0 0 1.25rem;
  opacity: .85;
}
.module-band--newsletter .newsletter-form {
  display: inline-flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: center;
  max-width: 520px;
  margin: 0 auto;
}
.module-band--newsletter input[type=email] {
  flex: 1 1 240px;
  padding: .65rem .9rem;
  border-radius: .4rem;
  border: 1px solid color-mix(in srgb, var(--color-text) 15%, transparent);
  background: var(--color-background);
  color: var(--color-text);
  font: inherit;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.module-band--newsletter input[type=email]:focus {
  outline: 0;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary) 25%, transparent);
}
.module-band--newsletter .btn {
  padding: .65rem 1.25rem;
  background: var(--color-primary);
  color: var(--color-on-primary, #fff);
  border: 0;
  border-radius: .4rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease;
}
.module-band--newsletter .btn:hover {
  background: var(--color-primary-dark);
}

/* Inline-Variante (z.B. via [newsletter mode=inline] im Quill) */
.module-band--newsletter.is-inline {
  background: transparent;
  border: 0;
  padding: 1rem 0;
}

/* DSGVO-Consent-Checkbox unter dem Form */
.module-band--newsletter .newsletter-consent {
  display: flex;
  gap: .5rem;
  align-items: flex-start;
  max-width: 520px;
  margin: .9rem auto 0;
  font-size: .8rem;
  text-align: left;
  color: var(--color-text);
  opacity: .85;
}
.module-band--newsletter .newsletter-consent input[type=checkbox] {
  margin-top: .25rem;
  flex-shrink: 0;
}
.module-band--newsletter .newsletter-consent a {
  color: var(--color-primary);
  text-decoration: underline;
}

/* Info-Seite (Bestätigung / Abmeldung) */
.newsletter-info .alert {
  padding: 1rem 1.25rem;
  border-radius: .5rem;
  font-size: 1rem;
}
.newsletter-info .alert-success {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
}
.newsletter-info .alert-error {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fca5a5;
}
