/* /assets/css/newsletter-cta.css
   CTA-Modul + Popup für Newsletter
   Greift deine bestehenden Glass-/Neon-Variablen auf
*/

/* ============================================
   Inline-CTA als Section-Modul
   ============================================ */

.newsletter-cta-section {
  margin-top: 4.5rem;
  max-width: 90%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (max-width: 768px) {
  .newsletter-cta-section {
    max-width: 95%;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.newsletter-cta {
  position: relative;
  overflow: hidden;
}

/* Glow im Hintergrund */
.newsletter-cta::before {
  content: "";
  position: absolute;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  right: -120px;
  bottom: -160px;
  background:
    radial-gradient(circle at 30% 20%,
      rgba(232,255,58,0.65) 0,
      rgba(232,255,58,0.1) 40%,
      transparent 70%);
  opacity: 0.9;
  filter: blur(3px);
  pointer-events: none;
}

/* Inhalt-Grid */
.newsletter-cta-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 2.5rem;
  align-items: center;
}

@media (max-width: 960px) {
  .newsletter-cta-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
}

/* Copy-Spalte */
.newsletter-cta-copy {
  max-width: 540px;
}

.newsletter-cta-eyebrow {
  font-size: 0.8rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: rgba(229, 231, 235, 0.9);
  margin-bottom: 0.35rem;
}

.newsletter-cta-title {
  font-size: 1.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--yellow, #E8FF3A);
  margin-bottom: 0.5rem;
}

.newsletter-cta-subtitle {
  font-size: 0.95rem;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 1.3rem;
}

.newsletter-cta-benefits {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: rgba(209, 213, 219, 0.96);
}

.newsletter-cta-benefits li + li {
  margin-top: 0.25rem;
}

/* Formular-Spalte */
.newsletter-cta-form-wrapper {
  position: relative;
}

.newsletter-cta-form {
  position: relative;
  z-index: 1;
  padding: 1.4rem 1.4rem 1.6rem;
  border-radius: 1.4rem;
  background: rgba(15, 23, 42, 0.96);
  border: 1px solid rgba(148, 163, 184, 0.7);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.97),
    0 0 0 1px rgba(15, 23, 42, 0.9);
}

/* Alerts */
.newsletter-cta-alert {
  padding: 0.7rem 0.8rem;
  border-radius: 0.9rem;
  font-size: 0.85rem;
  margin-bottom: 0.8rem;
}

.newsletter-cta-alert--success {
  background: rgba(22, 163, 74, 0.15);
  border: 1px solid rgba(22, 163, 74, 0.5);
  color: #bbf7d0;
}

.newsletter-cta-alert--error {
  background: rgba(185, 28, 28, 0.18);
  border: 1px solid rgba(248, 113, 113, 0.7);
  color: #fecaca;
}

/* Formular-Felder */
.newsletter-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
}

.newsletter-cta-field {
  width: 100%;
  margin-bottom: 0.8rem;
}

.newsletter-cta-row .newsletter-cta-field {
  flex: 1 1 0;
}

.newsletter-cta-field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(209, 213, 219, 0.96);
  margin-bottom: 0.2rem;
}

.newsletter-cta-field input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: rgba(15, 23, 42, 0.9);
  color: #E5E7EB;
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.newsletter-cta-field input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.newsletter-cta-field input:focus-visible {
  outline: none;
  border-color: var(--yellow, #E8FF3A);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(232, 255, 58, 0.8);
}

/* Checkbox */
.newsletter-cta-checkbox {
  margin-top: 0.2rem;
  font-size: 0.8rem;
  color: rgba(156, 163, 175, 0.95);
}

.newsletter-cta-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.newsletter-cta-checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 0.1rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

.newsletter-cta-checkbox a {
  color: var(--yellow, #E8FF3A);
  text-decoration: none;
}

.newsletter-cta-checkbox a:hover {
  text-decoration: underline;
}

/* Pflichthinweis */
.newsletter-required {
  color: var(--yellow, #E8FF3A);
  margin-left: 0.25rem;
}

/* Actions / Button */
.newsletter-cta-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 1rem;
}

.newsletter-cta-submit-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.1rem 0.45rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 250, 250, 0.18);
  background: rgba(15, 23, 42, 0.95);
  color: #E5E7EB;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.96),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.newsletter-cta-submit-btn:hover {
  transform: translateY(-1px);
  background: rgba(15, 23, 42, 0.98);
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.98),
    inset 0 1px 0 rgba(255, 255, 255, 0.09);
}

.newsletter-cta-submit-btn:active {
  transform: translateY(0);
  box-shadow:
    0 11px 26px rgba(15, 23, 42, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* Ball im Button */
.newsletter-cta-submit-ball {
  position: relative;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, #fffbe6 0, #fef08a 26%, #facc15 50%, #eab308 72%, #b45309 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 18px rgba(232, 255, 58, 0.9),
    0 10px 22px rgba(15, 23, 42, 0.95);
}

.newsletter-cta-submit-ball::before,
.newsletter-cta-submit-ball::after {
  content: "";
  position: absolute;
  inset: 20% 22%;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-left-color: transparent;
  border-right-color: transparent;
  mix-blend-mode: screen;
}

.newsletter-cta-submit-ball::before {
  transform: rotate(20deg);
}

.newsletter-cta-submit-ball::after {
  transform: rotate(-20deg);
}

@keyframes newsletterBallFloat {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

.newsletter-cta-submit-btn:hover .newsletter-cta-submit-ball {
  animation: newsletterBallFloat 0.8s ease-in-out infinite;
}

/* ============================================
   Popup-CTA
   ============================================ */

.newsletter-popup-overlay {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.newsletter-popup-overlay.newsletter-popup-visible {
  opacity: 1;
  pointer-events: auto;
}

.newsletter-popup-card {
  max-width: 540px;
  width: 100%;
  border-radius: 1.6rem;
  padding: 1.8rem 1.6rem 1.9rem;
  position: relative;
  transform: translateY(14px) scale(0.96);
  transition: transform 0.4s var(--ease-spring, cubic-bezier(.22,.61,.36,1));
}

.newsletter-popup-overlay.newsletter-popup-visible .newsletter-popup-card {
  transform: translateY(0) scale(1);
}

.newsletter-popup-close {
  position: absolute;
  top: 0.75rem;
  right: 0.9rem;
  background: transparent;
  border: none;
  color: rgba(248, 250, 252, 0.85);
  font-size: 1.3rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.1rem 0.25rem;
  border-radius: 999px;
}

.newsletter-popup-close:hover {
  background: rgba(15, 23, 42, 0.7);
}

.newsletter-popup-inner {
  text-align: left;
}

.newsletter-popup-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.5rem;
  font-size: 1.3rem;
  background:
    radial-gradient(circle at 30% 20%, #fffbe6 0, #fef08a 26%, #facc15 50%, #eab308 72%, #b45309 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.26),
    0 0 18px rgba(232, 255, 58, 0.9),
    0 10px 22px rgba(15, 23, 42, 0.95);
}

.newsletter-popup-title {
  font-size: 1.4rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--yellow, #E8FF3A);
  margin-bottom: 0.4rem;
}

.newsletter-popup-subtitle {
  font-size: 0.9rem;
  color: rgba(226, 232, 240, 0.9);
  margin-bottom: 1rem;
}

/* Formular im Popup */
.newsletter-popup-form {
  margin-top: 0.2rem;
}

.newsletter-popup-field {
  display: block;
  margin-bottom: 0.8rem;
}

.newsletter-popup-field span {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(209, 213, 219, 0.96);
  margin-bottom: 0.2rem;
}

.newsletter-popup-field input {
  width: 100%;
  border-radius: 0.9rem;
  border: 1px solid rgba(148, 163, 184, 0.75);
  background: rgba(15, 23, 42, 0.9);
  color: #E5E7EB;
  font-size: 0.9rem;
  padding: 0.65rem 0.8rem;
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
}

.newsletter-popup-field input::placeholder {
  color: rgba(148, 163, 184, 0.9);
}

.newsletter-popup-field input:focus-visible {
  outline: none;
  border-color: var(--yellow, #E8FF3A);
  box-shadow:
    0 18px 40px rgba(15, 23, 42, 0.98),
    0 0 0 1px rgba(232, 255, 58, 0.8);
}

.newsletter-popup-checkbox {
  margin-top: 0.3rem;
  font-size: 0.8rem;
  color: rgba(156, 163, 175, 0.95);
}

.newsletter-popup-checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
}

.newsletter-popup-checkbox input {
  width: 16px;
  height: 16px;
  margin-top: 0.1rem;
  border-radius: 0.3rem;
  border: 1px solid rgba(148, 163, 184, 0.9);
  background: rgba(15, 23, 42, 0.9);
}

.newsletter-popup-checkbox a {
  color: var(--yellow, #E8FF3A);
  text-decoration: none;
}

.newsletter-popup-checkbox a:hover {
  text-decoration: underline;
}

/* Button im Popup */
.newsletter-popup-submit-btn {
  margin-top: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 1.1rem 0.45rem 1.25rem;
  border-radius: 999px;
  border: 1px solid rgba(250, 250, 250, 0.18);
  background:
    radial-gradient(circle at 0% 0%, #fefce8 0, #eab308 35%, #a16207 100%);
  color: #111827;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  box-shadow:
    0 14px 34px rgba(15, 23, 42, 0.96),
    inset 0 1px 0 rgba(255, 255, 255, 0.6);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease;
}

.newsletter-popup-submit-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow:
    0 20px 40px rgba(15, 23, 42, 0.98),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.newsletter-popup-submit-btn:active {
  transform: translateY(0);
  box-shadow:
    0 11px 26px rgba(15, 23, 42, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

/* Ball neben Button-Text im Popup */
.newsletter-popup-submit-ball {
  position: relative;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 20%, #fffbe6 0, #fef08a 26%, #facc15 50%, #eab308 72%, #b45309 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.28),
    0 0 18px rgba(232, 255, 58, 0.9),
    0 10px 22px rgba(15, 23, 42, 0.95);
}

.newsletter-popup-submit-ball::before,
.newsletter-popup-submit-ball::after {
  content: "";
  position: absolute;
  inset: 20% 22%;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.9);
  border-left-color: transparent;
  border-right-color: transparent;
  mix-blend-mode: screen;
}

.newsletter-popup-submit-ball::before {
  transform: rotate(20deg);
}

.newsletter-popup-submit-ball::after {
  transform: rotate(-20deg);
}

@media (max-width: 600px) {
  .newsletter-popup-card {
    padding: 1.4rem 1.2rem 1.6rem;
  }

  .newsletter-popup-title {
    font-size: 1.2rem;
  }
}
