/* ZBA Infoveranstaltung Popup — Styles
   Farben aus dem Veranstaltungsflyer gesampelt. */

@font-face{
  font-family:'ZBA Baloo 2';
  font-style:normal;
  font-weight:400 800;
  font-display:swap;
  src:url('baloo2.woff2') format('woff2');
}
@font-face{
  font-family:'ZBA Nunito';
  font-style:normal;
  font-weight:400 800;
  font-display:swap;
  src:url('nunito.woff2') format('woff2');
}

#zbaPopupRoot, #zbaPopupRoot *{ box-sizing:border-box; }
#zbaPopupRoot{
  --ink:#1f286d;
  --ink-soft:#565d8c;
  --purple:#723ea2;
  --purple-deep:#4f2b73;
  --green:#2eb77f;
  --green-deep:#23935f;
  --paper:#ffffff;
  --tint:#f5f2fa;
  --line:#e5dff0;
  font-family:'ZBA Nunito','Segoe UI',sans-serif;
}

#zbaPopupRoot{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:none;
}
#zbaPopupRoot.is-open{ display:block; }

#zbaPopupRoot .zba-overlay{
  position:absolute; inset:0;
  background:rgba(21,15,36,.6);
  backdrop-filter:blur(6px);
  -webkit-backdrop-filter:blur(6px);
  opacity:0;
  animation:zbaFade .35s ease forwards;
}

#zbaPopupRoot .zba-modal{
  position:absolute;
  left:50%; top:50%;
  transform:translate(-50%,-50%) scale(.96);
  width:min(940px,94vw);
  max-height:92vh;
  display:grid;
  grid-template-columns:40% 60%;
  background:var(--paper);
  border-radius:28px;
  overflow:hidden;
  box-shadow:0 30px 80px -20px rgba(31,40,109,.45),0 10px 30px -12px rgba(31,40,109,.3);
  opacity:0;
  animation:zbaPop .4s cubic-bezier(.2,.8,.3,1) .05s forwards;
}

@keyframes zbaFade{ to{ opacity:1; } }
@keyframes zbaPop{ to{ opacity:1; transform:translate(-50%,-50%) scale(1); } }

#zbaPopupRoot .zba-close{
  position:absolute; top:14px; right:14px; z-index:5;
  width:36px; height:36px; border-radius:50%;
  background:rgba(255,255,255,.92); color:var(--ink);
  border:none; display:flex; align-items:center; justify-content:center;
  cursor:pointer; box-shadow:0 4px 14px rgba(0,0,0,.18);
  transition:transform .15s ease, background .15s ease;
  padding:0; line-height:1;
}
#zbaPopupRoot .zba-close:hover{ background:#fff; transform:scale(1.07); }
#zbaPopupRoot .zba-close:focus-visible{ outline:3px solid var(--green); outline-offset:2px; }

#zbaPopupRoot .zba-visual{ position:relative; overflow:hidden; background:var(--ink); }
#zbaPopupRoot .zba-photo{ width:100%; height:100%; object-fit:cover; display:block; margin:0; }
#zbaPopupRoot .zba-visual-scrim{
  position:absolute; inset:0;
  background:linear-gradient(180deg,rgba(31,40,109,0) 45%,rgba(31,40,109,.55) 100%);
}
#zbaPopupRoot .zba-logo-chip{
  position:absolute; top:16px; left:16px; width:132px; height:auto;
  border-radius:10px; box-shadow:0 6px 18px rgba(0,0,0,.25);
}
#zbaPopupRoot .zba-eyebrow{
  position:absolute; left:0; bottom:64px;
  background:var(--purple); color:#fff;
  font-family:'ZBA Baloo 2',sans-serif; font-weight:700; font-size:1rem;
  padding:9px 20px 9px 18px;
  border-radius:0 999px 999px 0;
  box-shadow:0 6px 16px rgba(0,0,0,.2);
}
#zbaPopupRoot .zba-pill{
  position:absolute; left:14px; bottom:20px;
  background:var(--green); color:#fff;
  font-family:'ZBA Baloo 2',sans-serif; font-weight:700; font-size:.92rem;
  padding:7px 16px; border-radius:999px;
  transform:rotate(-1.5deg);
  box-shadow:0 6px 16px rgba(0,0,0,.2);
}

#zbaPopupRoot .zba-content{ position:relative; overflow-y:auto; max-height:92vh; background:var(--paper); }
#zbaPopupRoot .zba-content-inner,
#zbaPopupRoot .zba-success{ padding:28px 34px 24px; }

#zbaPopupRoot .zba-title{
  font-family:'ZBA Baloo 2',sans-serif; font-weight:700; color:var(--ink);
  font-size:1.38rem; line-height:1.2; margin:0 0 14px; padding:0; text-wrap:balance;
}
#zbaPopupRoot .zba-title em{ font-style:normal; color:var(--purple); }

#zbaPopupRoot .zba-facts{ list-style:none; margin:0 0 16px; padding:0; display:flex; flex-direction:column; gap:8px; }
#zbaPopupRoot .zba-facts li{
  display:flex; align-items:flex-start; gap:11px; margin:0; padding:0;
  color:var(--ink-soft); font-size:.93rem; line-height:1.35;
}
#zbaPopupRoot .zba-fact-ico{
  flex:0 0 auto; width:27px; height:27px; margin-top:-3px;
  border-radius:8px; background:var(--tint); color:var(--purple);
  display:flex; align-items:center; justify-content:center;
}
#zbaPopupRoot .zba-fact-ico svg{ width:15px; height:15px; }
#zbaPopupRoot .zba-facts strong{ color:var(--ink); }

#zbaPopupRoot .zba-form{ border-top:1px solid var(--line); padding-top:16px; margin:0; }

#zbaPopupRoot .zba-row{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
#zbaPopupRoot .zba-field{ margin-bottom:10px; display:flex; flex-direction:column; gap:5px; }
#zbaPopupRoot .zba-field label{ font-size:.82rem; font-weight:700; color:var(--ink); margin:0; }
#zbaPopupRoot .zba-field label span{ font-weight:400; color:var(--ink-soft); }

#zbaPopupRoot .zba-field input{
  font-family:'ZBA Nunito',sans-serif; font-size:.94rem; color:var(--ink);
  padding:9px 12px; border-radius:11px; border:1.5px solid var(--line);
  background:var(--tint); outline:none; width:100%; margin:0;
  transition:border-color .15s ease, background .15s ease;
}
#zbaPopupRoot .zba-field input:focus{ border-color:var(--purple); background:#fff; box-shadow:none; }
#zbaPopupRoot .zba-field input:invalid:not(:placeholder-shown){ border-color:#d64545; }

/* Honeypot: unsichtbar für Menschen, sichtbar für Bots */
#zbaPopupRoot .zba-hp{
  position:absolute !important;
  left:-9999px !important;
  width:1px; height:1px; overflow:hidden;
}

#zbaPopupRoot .zba-consent{
  display:flex; gap:10px; align-items:flex-start; margin:4px 0 12px;
  font-size:.78rem; line-height:1.35; color:var(--ink-soft); cursor:pointer;
}
#zbaPopupRoot .zba-consent input{ margin:3px 0 0; width:16px; height:16px; accent-color:var(--purple); flex:0 0 auto; }
#zbaPopupRoot .zba-consent a{ color:var(--purple); font-weight:700; text-decoration:underline; }

#zbaPopupRoot .zba-form-error{
  background:#fdecec; color:#a52a2a; border:1px solid #f0c4c4;
  border-radius:10px; padding:10px 14px; font-size:.85rem; margin:0 0 14px;
}

#zbaPopupRoot .zba-submit{
  width:100%; display:flex; align-items:center; justify-content:center; gap:10px;
  background:var(--green); color:var(--ink);
  font-family:'ZBA Baloo 2',sans-serif; font-weight:700; font-size:1.05rem;
  border:none; border-radius:13px; padding:13px 18px; cursor:pointer;
  box-shadow:0 10px 24px -8px rgba(46,183,127,.65);
  transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
  text-transform:none; line-height:1.2; margin:0;
}
#zbaPopupRoot .zba-submit:hover{ background:var(--green-deep); transform:translateY(-1px); box-shadow:0 14px 28px -8px rgba(46,183,127,.7); }
#zbaPopupRoot .zba-submit:focus-visible{ outline:3px solid var(--purple); outline-offset:2px; }
#zbaPopupRoot .zba-submit:disabled{ opacity:.6; cursor:wait; transform:none; }
#zbaPopupRoot .zba-submit svg{ transition:transform .15s ease; }
#zbaPopupRoot .zba-submit:hover svg{ transform:translateX(3px); }

#zbaPopupRoot .zba-microcopy{ text-align:center; font-size:.76rem; color:var(--ink-soft); margin:9px 0 0; }
#zbaPopupRoot .zba-contact{ text-align:center; font-size:.82rem; color:var(--ink-soft); margin:12px 0 0; }
#zbaPopupRoot .zba-contact a{ color:var(--ink); font-weight:700; text-decoration:none; border-bottom:1.5px solid var(--green); }

#zbaPopupRoot .zba-success:not([hidden]){ text-align:center; display:flex; flex-direction:column; align-items:center; }
#zbaPopupRoot .zba-success-badge{
  width:56px; height:56px; border-radius:50%; background:var(--tint); color:var(--green-deep);
  display:flex; align-items:center; justify-content:center; margin-bottom:18px;
  border:2px solid var(--green);
}
#zbaPopupRoot .zba-success .zba-title{ text-align:center; }
#zbaPopupRoot .zba-success-text{ color:var(--ink-soft); font-size:.96rem; line-height:1.5; margin:0 0 6px; }
#zbaPopupRoot .zba-success-close{ margin-top:22px; }

@media (max-width:760px){
  #zbaPopupRoot .zba-modal{
    left:0; top:auto; bottom:0; transform:translateY(16px);
    width:100%; max-width:100%; max-height:92dvh;
    border-radius:22px 22px 0 0;
    display:flex; flex-direction:column;
    animation:zbaSlideUp .4s cubic-bezier(.2,.8,.3,1) .05s forwards;
  }
  @keyframes zbaSlideUp{ to{ opacity:1; transform:translateY(0); } }
  #zbaPopupRoot .zba-visual{ height:110px; flex:0 0 auto; }
  #zbaPopupRoot .zba-logo-chip{ width:104px; top:12px; left:12px; }
  #zbaPopupRoot .zba-eyebrow{ bottom:12px; font-size:.9rem; padding:7px 16px 7px 14px; }
  #zbaPopupRoot .zba-pill{ display:none; }
  #zbaPopupRoot .zba-content{ overflow-y:auto; flex:1 1 auto; max-height:none; }
  #zbaPopupRoot .zba-content-inner,
  #zbaPopupRoot .zba-success{ padding:16px 18px 20px; }
  #zbaPopupRoot .zba-title{ font-size:1.14rem; margin-bottom:10px; }
  #zbaPopupRoot .zba-facts{ margin-bottom:12px; gap:6px; }
  #zbaPopupRoot .zba-facts li{ font-size:.88rem; }
  #zbaPopupRoot .zba-form{ padding-top:12px; }
  #zbaPopupRoot .zba-row{ grid-template-columns:1fr; gap:0; }
  #zbaPopupRoot .zba-contact{ margin-top:10px; }
}

/* Niedrige Mobil-Displays (z.B. iPhone SE): zusätzliche Kompakt-Stufe,
   damit der CTA ohne Scrollen sichtbar bleibt. */
@media (max-width:760px) and (max-height:700px){
  #zbaPopupRoot .zba-modal{ max-height:96dvh; }
  #zbaPopupRoot .zba-visual{ height:78px; }
  #zbaPopupRoot .zba-logo-chip{ width:92px; top:10px; left:10px; }
  #zbaPopupRoot .zba-eyebrow{ display:none; }
  #zbaPopupRoot .zba-content-inner,
  #zbaPopupRoot .zba-success{ padding:14px 16px 16px; }
  #zbaPopupRoot .zba-title{ font-size:1.06rem; margin-bottom:8px; }
  #zbaPopupRoot .zba-facts{ margin-bottom:10px; gap:5px; }
  #zbaPopupRoot .zba-field{ margin-bottom:8px; }
  #zbaPopupRoot .zba-field input{ padding:8px 11px; }
  #zbaPopupRoot .zba-consent{ margin-bottom:10px; }
  #zbaPopupRoot .zba-submit{ padding:12px 16px; }
}

@media (prefers-reduced-motion:reduce){
  #zbaPopupRoot .zba-overlay,#zbaPopupRoot .zba-modal{ animation:none !important; opacity:1 !important; transform:translate(-50%,-50%) !important; }
}
@media (prefers-reduced-motion:reduce) and (max-width:760px){
  #zbaPopupRoot .zba-modal{ transform:none !important; }
}
