/* Ergänzung zum vorhandenen Kapitalstern-Design. */
.lead-popup-dialog { overscroll-behavior: contain; max-height: min(92dvh, 860px); }
.lead-popup-topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .75rem;
  padding: .35rem 0;
  margin-bottom: .65rem;
  background: #fff;
}
.lead-popup-brand { margin: 0; color: #29454f; font-size: .85rem; font-weight: 700; }
.lead-popup-topbar .lead-popup-close { position: static; flex: 0 0 44px; width: 44px; height: 44px; }
.lead-popup-close:focus-visible { outline: 3px solid #0b5e69; outline-offset: 3px; }
[data-popup-main-form] { margin-top: 1rem; }
[data-popup-main-form][hidden], .popup-lead-form[hidden] { display: none !important; }
.consent { z-index: 1100; }
@media (max-width: 620px) {
  .lead-popup { padding: .5rem; }
  .lead-popup-dialog { padding: 1rem; border-radius: 18px; }
  .lead-popup-dialog h2 { font-size: 1.6rem; margin-right: 0; }
  .lead-popup-intro { font-size: .95rem; }
  [data-popup-main-form] .step-q { font-size: 1.3rem; }
}
