/* =======================
   Basis-Layout
======================= */

.mfp-hide {
  display: none !important;
}

.mfp-bg {
  background: rgba(0, 0, 0, 0.6);
}

#newsletter-popup-form {
  position: relative;
  background: linear-gradient(to bottom, #000000 0%, #000000 55%, #ffffff 45%, #ffffff 100%);
  color: #fff;
  max-width: 500px;
  width: 90%; /* macht es flexibel */
  margin: 0 auto;
  border-radius: 5px;
  overflow: hidden;
  padding: 2rem;
  box-sizing: border-box;
}

.popup-top,
.popup-bottom {
  padding: 1.5rem 1rem;
  text-align: center;
}

.popup-bottom {
  color: #000;
}

/* =======================
   Text & Inputs
======================= */

#newsletter-popup-form h2 {
  font-size: 2.2rem;
  margin-bottom: 1.2rem;
  color: inherit;
  font-weight: bold;
}

#newsletter-popup-form p {
  font-size: 1rem;
  margin-bottom: 1.5rem;
  color: inherit;
}

input[type="email"] {
  padding: 0.5rem;
  width: 80%;
  max-width: 300px;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

/* =======================
   Close Button (eigen)
======================= */

.mfp-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  background-color: red;
  color: white;
  border-radius: 50%;
  font-size: 24px;
  font-weight: bold;
  line-height: 30px;
  text-align: center;
  cursor: pointer;
  border: none;
  box-shadow: 0 0 5px rgba(0,0,0,0.3);
  user-select: none;
  z-index: 10000;
}

.mfp-close::before {
  content: "×";
  display: block;
  line-height: 30px;
}

/* =======================
   Responsive Design
======================= */

@media (max-width: 480px) {
  #newsletter-popup-form {
    padding: 1.2rem;
  }

  #newsletter-popup-form h2 {
    font-size: 1.5rem;
  }

  #newsletter-popup-form p {
    font-size: 0.95rem;
  }

  input[type="email"] {
    width: 100%;
  }

  .mfp-close {
    width: 26px;
    height: 26px;
    font-size: 20px;
    line-height: 26px;
  }
}
