/* Newsletter Popup Störer */
.newsletter-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.newsletter-popup.active {
  opacity: 1;
  visibility: visible;
}

.newsletter-popup-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.newsletter-popup-content {
  position: relative;
  background: linear-gradient(135deg, #080808 0%, #000000 100%);
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(118, 48, 247, 0.5);
  max-width: 540px;
  width: 90%;
  margin: 20px;
  animation: popupSlideIn 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  border: 3px solid #7630F7;
}

@media (max-width: 576px) {
  .newsletter-popup-content {
    max-width: 100%;
    margin: 10px;
    border-radius: 16px;
  }
}

@keyframes popupSlideIn {
  0% {
    transform: scale(0.7) translateY(-30px);
    opacity: 0;
  }
  100% {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

.newsletter-popup-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: rgba(250, 250, 250, 0.1);
  border: 2px solid #7630F7;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10;
}

.newsletter-popup-close svg {
  color: #FAFAFA;
  transition: transform 0.3s ease;
}

.newsletter-popup-close:hover {
  background: #7630F7;
  transform: rotate(90deg);
}

.newsletter-popup-close:hover svg {
  color: #FAFAFA;
}

.newsletter-popup-close:focus {
  outline: 2px solid #7630F7;
  outline-offset: 2px;
}

.newsletter-popup-inner {
  padding: 40px 30px 30px;
}

@media (max-width: 576px) {
  .newsletter-popup-inner {
    padding: 40px 20px 24px;
  }
}

.newsletter-popup-header {
  text-align: center;
  margin-bottom: 28px;
}

.newsletter-popup-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #B045FF;
  margin-bottom: 12px;
  line-height: 1.2;
  font-family: "Plus Jakarta Sans", sans-serif;
}

@media (max-width: 576px) {
  .newsletter-popup-header h2 {
    font-size: 24px;
  }
}

.newsletter-popup-header p {
  font-size: 16px;
  color: #CFCFCF;
  margin: 0;
  font-family: "Open Sans", sans-serif;
}

@media (max-width: 576px) {
  .newsletter-popup-header p {
    font-size: 14px;
  }
}

/* Popup-spezifische Formular-Styles */
#sib-form-popup .newsletter-email-input {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid #7630F7;
  border-radius: 10px;
  font-size: 16px;
  transition: all 0.3s ease;
  background: rgba(118, 48, 247, 0.1);
  color: #FAFAFA;
  font-family: "Open Sans", sans-serif;
}

#sib-form-popup .newsletter-email-input:focus {
  border-color: #B045FF;
  outline: none;
  box-shadow: 0 0 0 4px rgba(176, 69, 255, 0.2);
}

#sib-form-popup .newsletter-email-input::placeholder {
  color: #9E9E9E;
}

#sib-form-popup .newsletter-action-row {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

#sib-form-popup .sib-optin {
  margin: 0;
}

#sib-form-popup .newsletter-optin-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1.5;
  color: #CFCFCF;
  font-family: "Open Sans", sans-serif;
}

#sib-form-popup .newsletter-checkbox {
  margin-top: 3px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  flex-shrink: 0;
}

#sib-form-popup .newsletter-optin-text {
  flex: 1;
}

#sib-form-popup .newsletter-optin-text a {
  color: #B045FF;
  text-decoration: underline;
}

#sib-form-popup .newsletter-optin-text a:hover {
  color: #7630F7;
}

#sib-form-popup .cus-btn {
  width: 100%;
  padding: 14px 28px;
  background: #7630F7;
  color: #FAFAFA;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  font-family: "Plus Jakarta Sans", sans-serif;
}

#sib-form-popup .cus-btn span {
  position: relative;
  z-index: 2;
  display: inline-block;
  transition: transform 0.3s ease;
}

#sib-form-popup .cus-btn span:first-child {
  display: inline;
}

#sib-form-popup .cus-btn span:last-child {
  display: none;
}

#sib-form-popup .cus-btn:hover {
  background: #B045FF;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

#sib-form-popup .cus-btn:hover span:first-child {
  display: none;
}

#sib-form-popup .cus-btn:hover span:last-child {
  display: inline;
}

#sib-form-popup .cus-btn:active {
  transform: translateY(0);
}

/* Popup-spezifische Nachrichten */
#popup-error-message,
#popup-success-message {
  margin-bottom: 16px;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  animation: messageSlideIn 0.3s ease;
}

#popup-error-message {
  background: #fee;
  border: 1px solid #fcc;
  color: #c33;
}

#popup-success-message {
  background: #efe;
  border: 1px solid #cfc;
  color: #3c3;
}

@keyframes messageSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
