/* ============================================================
   Newsletter Modal (separates System)
   Modern / poppy / background image + blur overlay
   Overlay-Basis kommt aus modal-overlay.css
   ============================================================ */

.nl-modal {
  z-index: 99999;
}

/* Card */
.nl-modal__dialog {
  width: min(860px, 100%);
  max-width: 860px;
  border-radius: 18px;
  overflow: hidden;
  position: relative;

  display: grid;
  grid-template-columns: 1.1fr 1fr;

  background: rgba(255,255,255,0.92);
  border: 1px solid rgba(255,255,255,0.55);
  box-shadow: 0 22px 70px rgba(0,0,0,0.25);
}

/* Animation wie Standard-Modals: von unten nach oben */
@keyframes nlFadeInUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nl-modal.is-open .nl-modal__dialog {
  animation: nlFadeInUp 0.3s ease;
}

/* Left media with background image */
.nl-modal__media {
  min-height: 360px;
  background-image:
    linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.15)),
    url("/wp-content/uploads/2026/01/newsletter.webp");
  background-size: cover;
  background-position: center;
}

/* Right content */
.nl-modal__body {
  padding: 28px 26px;
}

.nl-modal__badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.06);
  color: #111;
  margin-bottom: 10px;
}

.nl-modal__title {
  margin: 0 0 10px;
  font-size: 26px;
  line-height: 1.2;
  color: #111;
}

.nl-modal__text {
  margin: 0 0 18px;
  font-size: 16px;
  line-height: 1.55;
  color: #333;
  max-width: 34ch;
}

.nl-modal__actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

/* Primary button */
.nl-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  border-radius: 12px;
  padding: 12px 16px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;

  background: #111;
  color: #fff;
}

/* Secondary link-like button */
.nl-modal__link {
  border: 0;
  background: transparent;
  padding: 10px 6px;
  font-size: 14px;
  color: #333;
  cursor: pointer;
  text-decoration: underline;
}

/* Close button */
.nl-modal__close {
  position: absolute;
  top: 10px;
  right: 10px;

  width: 38px;
  height: 38px;
  border-radius: 999px;

  border: 1px solid rgba(0,0,0,0.10);
  background: rgba(255,255,255,0.85);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

/* Responsive */
@media (max-width: 820px) {
  .nl-modal__dialog {
    grid-template-columns: 1fr;
  }

  .nl-modal__media {
    min-height: 220px;
  }

  .nl-modal__text {
    max-width: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .nl-modal.is-open .nl-modal__dialog {
    animation: none;
  }
}