/* DStratiCX - Leadformular vor dem Download (Dialog auf der Publikationsseite + Seite download.php)
   Baut auf styles.css auf (Farben, Schrift, .modal, .btn, .icon-btn, .check, .form__privacy). */

.lead-modal{
  width: min(580px, calc(100% - 24px));
  max-height: calc(100dvh - 24px);
  overflow: auto;
}
.lead-modal::backdrop{
  background: rgba(7,61,87,.45);
  backdrop-filter: blur(8px);
}
.lead-modal[open]{
  animation: leadIn .28s cubic-bezier(.2,.8,.2,1);
}
@keyframes leadIn{
  from{ opacity:0; transform: translateY(14px) scale(.98); }
  to{ opacity:1; transform: none; }
}
@media (prefers-reduced-motion: reduce){
  .lead-modal[open]{ animation: none; }
}

.lead-modal__inner{
  padding: 36px 40px 32px;
}
.lead-modal__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 20px;
  margin-bottom: 14px;
}
.lead-modal__eyebrow{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0 0 10px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--primary);
}
.lead-modal__dot{
  width: 22px;
  height: 4px;
  border-radius: 2px;
  background: var(--gradient-warm);
  flex-shrink: 0;
}
.lead-modal__title{
  margin:0;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.01em;
  color: var(--text);
}
.lead-modal__close{
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  margin: -4px -8px 0 0;
}
.lead-modal__lead{
  margin: 0 0 24px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

/* Formular */
.lead-form{
  display:flex;
  flex-direction: column;
  gap: 16px;
}
.lead-form__row{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.lead-field{
  display:flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
}
.lead-field__req{ color: var(--primary); }
.lead-field__opt{
  font-weight: 400;
  color: var(--muted-light);
}
.lead-field input{
  width:100%;
  border-radius: var(--radius-sm);
  border: 2px solid var(--line);
  background: #ffffff;
  color: var(--text);
  padding: 13px 16px;
  font: inherit;
  font-weight: 400;
  font-size: 16px;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lead-field input:focus{
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(11,92,128,.18);
}
.lead-field input[aria-invalid="true"]{
  border-color: #c2410c;
  box-shadow: 0 0 0 4px rgba(194,65,12,.12);
}
.lead-field__err{
  font-size: 13px;
  font-weight: 500;
  color: #c2410c;
}
.lead-field__err[hidden]{ display:none; }
.lead-form__consent{ font-weight: 500; }
.lead-form__consent .lead-field__err{ display:block; margin-top:4px; }
.lead-form__error{
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: rgba(194,65,12,.08);
  border: 1px solid rgba(194,65,12,.25);
  color: #9a3412;
  font-size: 14px;
}
.lead-form__error[hidden]{ display:none; }
.lead-modal button.btn, .lead-card button.btn{
  font-family: inherit;
  font-weight: 700;
}
.lead-form__submit{
  margin-top: 6px;
  justify-content: center;
}
.lead-form__submit:disabled{
  opacity: .7;
  cursor: progress;
  transform: none;
}
.lead-form__privacy{
  margin: 0;
  font-size: 13px;
  text-align: center;
}

/* Dankeschön */
.lead-done{
  text-align: center;
  padding: 8px 0 4px;
}
.lead-done[hidden], .lead-step[hidden]{ display:none; }
.lead-done__icon{
  width: 64px;
  height: 64px;
  margin: 6px auto 18px;
  border-radius: 50%;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#fff;
  background: var(--gradient-primary);
  box-shadow: 0 14px 30px rgba(11,92,128,.30), 0 0 0 6px rgba(241,166,22,.18);
}
.lead-done__title{
  margin: 0 0 10px;
  font-size: 24px;
  color: var(--text);
}
.lead-done__text{
  margin: 0 auto 10px;
  max-width: 420px;
  color: var(--muted);
  line-height: 1.6;
}
.lead-done__retry{
  margin: 0 0 24px;
  font-size: 14px;
  color: var(--muted-light);
}
.lead-done__retry a{ color: var(--primary); font-weight: 600; }
.lead-done__actions{
  display:flex;
  gap: 12px;
  justify-content:center;
  flex-wrap: wrap;
}
.lead-done__actions .btn{ padding: 13px 26px; }

/* Eigene Seite download.php */
.lead-page__main{ padding: 40px 0 64px; }
.lead-page__main .container{ min-height: 0; }
.lead-card{
  max-width: 620px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  border: 2px solid rgba(11,92,128,.20);
  background: #ffffff;
  box-shadow: 0 8px 32px rgba(11,92,128,.12);
}
.lead-page__back{
  max-width: 620px;
  margin: 20px auto 0;
  text-align: center;
  font-size: 15px;
}
.lead-page__back a{ color: var(--primary); font-weight: 600; text-decoration: none; }
.lead-page__back a:hover{ text-decoration: underline; }
.lead-page__footer{
  padding: 28px 0;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}
.lead-page__footer a{ color: inherit; }

@media (max-width: 600px){
  .lead-modal__inner{ padding: 26px 22px 24px; }
  .lead-modal__title{ font-size: 22px; }
  .lead-form__row{ grid-template-columns: 1fr; }
}
