/* ============================================================
   Nonno Franco e Luca – Ernte-Popup
   Einbinden per: <link rel="stylesheet" href="popup.css">
   ============================================================ */

.nfl-overlay {
  position: fixed;
  inset: 0;
  background: rgba(46, 36, 22, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease, visibility 0.35s ease;
}

.nfl-overlay.nfl-open {
  opacity: 1;
  visibility: visible;
}

.nfl-popup {
  background: #f0ebe1;
  border-radius: 20px;
  padding: 48px 44px 40px;
  max-width: 460px;
  width: 100%;
  position: relative;
  box-shadow: 0 24px 72px rgba(46, 36, 22, 0.22);
  transform: translateY(18px) scale(0.98);
  transition: transform 0.35s ease;
}

.nfl-overlay.nfl-open .nfl-popup {
  transform: translateY(0) scale(1);
}

/* Schließen-Button */
.nfl-close {
  position: absolute;
  top: 16px;
  right: 18px;
  background: none;
  border: none;
  cursor: pointer;
  color: #5c4f3a;
  font-size: 1.4rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
  font-family: 'Jost', sans-serif;
}
.nfl-close:hover {
  color: #2e2416;
  background: rgba(90, 70, 40, 0.08);
}

/* Eyebrow */
.nfl-eyebrow {
  font-family: 'Jost', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #7a6a3a;
  margin-bottom: 12px;
}

/* Headline */
.nfl-popup h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(1.7rem, 4vw, 2.2rem);
  font-weight: 700;
  color: #2e2416;
  line-height: 1.15;
  margin-bottom: 14px;
}

/* Body text */
.nfl-popup p.nfl-body {
  font-family: 'Jost', sans-serif;
  font-size: 0.97rem;
  font-weight: 300;
  color: #5c4f3a;
  line-height: 1.8;
  margin-bottom: 28px;
}

/* Formular */
.nfl-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nfl-input {
  background: rgba(255, 255, 255, 0.65);
  border: 1px solid rgba(90, 70, 40, 0.18);
  border-radius: 12px;
  padding: 13px 16px;
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  color: #2e2416;
  outline: none;
  transition: border-color 0.2s, background 0.2s;
  width: 100%;
  -webkit-appearance: none;
}
.nfl-input:focus {
  border-color: #7a6a3a;
  background: rgba(255, 255, 255, 0.9);
}
.nfl-input::placeholder {
  color: rgba(92, 79, 58, 0.4);
}

.nfl-submit {
  background: #6b5e32;
  color: #f5f0e8;
  border: none;
  padding: 14px 32px;
  border-radius: 50px;
  font-family: 'Jost', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
}
.nfl-submit:hover {
  background: #4e4522;
  transform: translateY(-1px);
}
.nfl-submit:disabled {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* Datenschutz-Hinweis */
.nfl-privacy {
  font-family: 'Jost', sans-serif;
  font-size: 0.75rem;
  color: #8a7a60;
  line-height: 1.65;
  margin-top: 6px;
}
.nfl-privacy a {
  color: #7a6a3a;
  text-decoration: underline;
  text-decoration-color: rgba(122, 106, 58, 0.4);
  transition: color 0.2s;
}
.nfl-privacy a:hover {
  color: #4e4522;
}

/* Erfolgsmeldung */
.nfl-success {
  display: none;
  text-align: center;
  padding: 16px 8px 8px;
}
.nfl-success-icon {
  font-size: 2.4rem;
  margin-bottom: 14px;
}
.nfl-success h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.7rem;
  font-weight: 700;
  color: #2e2416;
  margin-bottom: 10px;
}
.nfl-success p {
  font-family: 'Jost', sans-serif;
  font-size: 0.95rem;
  font-weight: 300;
  color: #5c4f3a;
  line-height: 1.8;
}

/* Mobil */
@media (max-width: 600px) {
  .nfl-popup {
    padding: 36px 24px 28px;
    border-radius: 16px;
    max-height: 90vh;
    overflow-y: auto;
  }
  .nfl-overlay {
    align-items: flex-end;
    padding: 0;
  }
  .nfl-popup {
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    max-width: 100%;
    width: 100%;
  }
}
