/* =====================================================================
   ZeroDrop Newsletter — Pop-up. Fassung 1.0.0, 31.08.2026.

   Farben aus dem Markenregister:
     #389183  Markengruen — Flaeche, NIE kleiner Text (auf Weiss 3,79:1)
     #071815  Schrift auf der Markenflaeche (4,82:1)
     #12332d  tiefer Grund, Weiss darauf 13,66:1
   🔴 Alle Tappflaechen 48 px, nicht 44: die Karte faehrt mit scale(.98)
      ein, und 44 x 0,98 = 43,1 — sie faellt sonst unter das Mindestmass.
   Eigene Klassennamen mit Praefix zdn__, damit nichts aus dem Shop-Theme
   hineinwirkt und nichts von hier hinaus.
   ===================================================================== */

.zdn {
  position: fixed; inset: 0; z-index: 999999;
  display: grid; place-items: center; padding: 20px;
  background: rgba(7, 24, 21, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .26s cubic-bezier(.22, 1, .36, 1);
  font-family: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}
.zdn.da { opacity: 1; }
.zdn[hidden] { display: none; }

.zdn__karte {
  position: relative; width: min(520px, 100%);
  max-height: calc(100vh - 40px); overflow-y: auto;
  background: #12332d; color: #fff;
  border-radius: 24px; padding: clamp(30px, 5vw, 46px);
  box-shadow: 0 40px 90px -30px rgba(7, 24, 21, .8);
  transform: translateY(14px) scale(.98);
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
  box-sizing: border-box;
}
.zdn.da .zdn__karte { transform: none; }

.zdn__karte h2 {
  color: #fff; font-size: clamp(25px, 3.6vw, 33px); line-height: 1.15;
  margin: 8px 0 12px; letter-spacing: -.02em; font-weight: 800;
}
.zdn__auge {
  margin: 0; color: #92c2bb;                 /* auf #12332d: 6,93:1 */
  font: 700 12px/1 inherit; letter-spacing: .14em; text-transform: uppercase;
}
.zdn__text { color: #cfe4e0; margin: 0 0 22px; font-size: 16px; line-height: 1.6; }
.zdn__text strong { color: #fff; }

.zdn__wahl { display: grid; gap: 10px; }

.zdn__knopf {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; min-height: 52px; padding: 15px 28px;
  background: #389183; color: #071815;        /* 4,82:1 */
  border: 0; border-radius: 100px; cursor: pointer;
  font: 700 15.5px/1 inherit; letter-spacing: .01em;
  transition: background-color .25s ease, transform .25s ease;
}
.zdn__knopf:hover { background: #45a396; transform: translateY(-2px); }
.zdn__knopf[disabled] { opacity: .55; cursor: default; transform: none; }

.zdn__zu {
  position: absolute; top: 12px; right: 12px; width: 48px; height: 48px;
  border: 0; border-radius: 50%; background: rgba(255, 255, 255, .10);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background-color .25s ease;
}
.zdn__zu:hover { background: rgba(255, 255, 255, .20); }
.zdn__zu svg { width: 19px; height: 19px; }

/* Der Ausweg muss sichtbar sein. Ein verstecktes «Nein danke» ist eine
   Falle, keine Gestaltung — und kostet mehr Vertrauen als es Adressen bringt. */
.zdn__nein {
  display: block; width: 100%; margin: 18px auto 0; padding: 12px;
  min-height: 48px; background: none; border: 0; cursor: pointer;
  color: #a8c2bd; font: 400 14.5px inherit;
  text-decoration: underline; text-underline-offset: 3px;
}
.zdn__nein:hover { color: #fff; }

.zdn__form {
  display: flex; align-items: center; gap: 8px; margin: 0;
  background: rgba(255, 255, 255, .10);
  border: 2px solid rgba(255, 255, 255, .30);
  border-radius: 100px; padding: 7px 7px 7px 8px;
  transition: border-color .3s ease, background-color .3s ease, box-shadow .3s ease;
}
.zdn__form:focus-within {
  border-color: #92c2bb; background: rgba(255, 255, 255, .16);
  box-shadow: 0 0 0 5px rgba(146, 194, 187, .20);
}
.zdn__form input[type=email] {
  flex: 1 1 auto; min-width: 0; min-height: 48px;
  padding: 14px 10px 14px 20px; border: 0; background: transparent;
  color: #fff; font: 400 16px inherit;       /* nie unter 16 px: iOS zoomt sonst */
}
.zdn__form input[type=email]::placeholder { color: #b9cfca; }
.zdn__form input[type=email]:focus { outline: none; }
.zdn__form .zdn__knopf { flex: 0 0 auto; width: auto; min-height: 48px; padding: 14px 26px; }

.zdn__hinweis { margin: 12px 0 0; min-height: 1.4em; font-size: 14.5px; color: #ffd9cd; }

/* Nur fuer Screenreader — Beschriftungen und der Honigtopf. */
.zdn__weg {
  position: absolute !important; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
#zdn-web { position: absolute !important; left: -9999px; width: 1px; height: 1px; opacity: 0; }

@media (max-width: 560px) {
  .zdn__form { flex-direction: column; gap: 10px; border-radius: 26px; padding: 12px; }
  .zdn__form input[type=email] { width: 100%; padding-left: 14px; }
  .zdn__form .zdn__knopf { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .zdn, .zdn__karte, .zdn__knopf, .zdn__zu { transition: none; }
  .zdn__karte { transform: none; }
  .zdn__knopf:hover { transform: none; }
}
