/* KSF Launch-Overlay – nutzt die Design-Tokens des ksf-fertiora-Themes */
html.ksfl-locked, html.ksfl-locked body { overflow: hidden !important; }

.ksfl-overlay {
  position: fixed; inset: 0; z-index: 100001;
  display: flex; align-items: center; justify-content: center;
  padding: 24px 16px;
  overflow-y: auto;
  background: rgba(46, 32, 56, .72);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  animation: ksfl-fade .25s ease;
}
.ksfl-overlay[hidden] { display: none; }

.ksfl-card {
  position: relative;
  width: min(560px, 100%);
  margin: auto;
  padding: 44px 40px 36px;
  border: 1px solid var(--ksf-line, #e8e2eb);
  border-radius: 32px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(46, 32, 56, .28);
  color: var(--ksf-ink, #30283a);
  font-family: "Avenir Next", Avenir, Montserrat, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px; line-height: 1.65;
  text-align: left;
  animation: ksfl-rise .3s cubic-bezier(.2, .8, .2, 1);
  outline: none;
  overflow: hidden;
}

.ksfl-close {
  position: absolute; top: 16px; right: 16px;
  width: 42px; height: 42px; padding: 0;
  display: grid; place-items: center;
  border: 0; border-radius: 50%;
  background: var(--ksf-lilac, #f3eef7);
  color: var(--ksf-plum, #412d4d);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.ksfl-close:hover, .ksfl-close:focus-visible { background: var(--ksf-rose-pale, #f7e7ec); }

.ksfl-mark {
  width: 52px; height: 52px; margin-bottom: 18px;
  display: grid; place-items: center;
  border: 1px solid #d9cfdf; border-radius: 50%;
  background: linear-gradient(145deg, #fff, var(--ksf-lilac, #f3eef7));
  box-shadow: 0 7px 18px rgba(65, 45, 77, .10);
  color: var(--ksf-plum, #412d4d);
  font-size: 12px; font-weight: 800; letter-spacing: .05em;
}

.ksfl-eyebrow {
  margin: 0 0 8px !important;
  color: var(--ksf-rose, #d7879a);
  font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
}
.ksfl-card h2 {
  margin: 0 0 14px; padding: 0;
  color: var(--ksf-plum, #412d4d);
  font-family: inherit !important; font-size: clamp(26px, 3.4vw, 34px) !important; font-weight: 750 !important;
  line-height: 1.15 !important; letter-spacing: -.03em !important;
}
.ksfl-card h2 em { display: block; color: var(--ksf-rose, #d7879a); font-style: normal; }
.ksfl-card p { margin: 0 0 16px; padding: 0; }

.ksfl-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.ksfl-button {
  min-height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 13px 26px;
  border: 0; border-radius: 999px;
  background: var(--ksf-plum, #412d4d);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(65, 45, 77, .18);
  font: inherit; font-size: 15px; font-weight: 750;
  text-decoration: none !important; cursor: pointer;
  transition: transform .2s ease, background .2s ease;
}
.ksfl-button:hover, .ksfl-button:focus-visible { background: var(--ksf-violet, #745b82); transform: translateY(-2px); }
.ksfl-button[disabled] { opacity: .7; cursor: wait; transform: none; }
.ksfl-button-secondary {
  background: #fff; color: var(--ksf-plum, #412d4d) !important;
  border: 1px solid rgba(65, 45, 77, .2); box-shadow: none;
}
.ksfl-button-secondary:hover, .ksfl-button-secondary:focus-visible { background: var(--ksf-lilac, #f3eef7); }

.ksfl-switch {
  margin: 26px 0 0 !important; padding: 18px 20px !important;
  border-radius: 18px;
  background: var(--ksf-rose-pale, #f7e7ec);
  font-size: 15px;
}
.ksfl-switch a, .ksfl-check a {
  color: var(--ksf-link, #a13f5a) !important; font-weight: 800;
  text-decoration: underline !important; text-underline-offset: 3px;
}

.ksfl-form { display: grid; gap: 14px; margin-top: 22px; }
.ksfl-form label { display: grid; gap: 6px; margin: 0; font-size: 14px; font-weight: 700; color: var(--ksf-plum, #412d4d); }
.ksfl-form input[type="email"], .ksfl-form input:not([type]) {
  width: 100%; min-height: 52px; padding: 12px 18px;
  border: 1px solid var(--ksf-line, #e8e2eb); border-radius: 16px;
  background: var(--ksf-mist, #f8f6fa);
  color: var(--ksf-ink, #30283a); font: inherit; font-size: 16px;
}
.ksfl-form input:focus { outline: 2px solid var(--ksf-rose, #d7879a); outline-offset: 1px; background: #fff; }
.ksfl-form .ksfl-check { display: flex; align-items: flex-start; gap: 10px; font-size: 13px; font-weight: 500; line-height: 1.5; color: var(--ksf-muted, #6d6573); }
.ksfl-check input { flex: 0 0 auto; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ksf-plum, #412d4d); }
.ksfl-form .ksfl-button { width: 100%; margin-top: 4px; }
.ksfl-error { min-height: 1em; margin: 0 !important; color: var(--ksf-link, #a13f5a); font-size: 14px; font-weight: 700; }
.ksfl-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@keyframes ksfl-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes ksfl-rise { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .ksfl-overlay { align-items: flex-end; padding: 16px 0 0; }
  .ksfl-card { width: 100%; padding: 36px 20px 28px; border-radius: 28px 28px 0 0; }
  .ksfl-actions .ksfl-button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ksfl-overlay, .ksfl-card { animation: none; } }
