/**
 * Conversion: Sticky CTA, Modal, Exit-Intent
 * z-index über Cursor (99998) und Navigation (9997)
 */
.ek-sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 100000;
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  pointer-events: none;
}

.ek-sticky-cta__inner {
  pointer-events: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(10, 22, 36, 0.92);
  box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.35);
  padding: 0.5rem 0.75rem;
  backdrop-filter: blur(12px);
}

.ek-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 100001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.ek-modal-overlay.ek-modal-overlay--open {
  opacity: 1;
  visibility: visible;
}

.ek-modal {
  width: 100%;
  max-width: 28rem;
  max-height: min(90vh, 640px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(165deg, #121f2e 0%, #0a1624 100%);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
}

.ek-modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.ek-modal__body {
  padding: 1.25rem;
  overflow-y: auto;
}

.ek-exit-overlay {
  position: fixed;
  inset: 0;
  z-index: 100002;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.ek-exit-overlay.ek-exit-overlay--open {
  opacity: 1;
  visibility: visible;
}

.ek-exit-card {
  max-width: 26rem;
  border-radius: 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #121f2e;
  padding: 1.5rem;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.ek-countdown-bar {
  border-radius: 0.75rem;
  border: 1px solid rgba(19, 111, 92, 0.45);
  background: rgba(19, 111, 92, 0.14);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  line-height: 1.45;
}

body.ek-modal-open {
  overflow: hidden;
}

@media (prefers-reduced-motion: reduce) {
  .ek-modal-overlay,
  .ek-exit-overlay {
    transition: none;
  }
}
