/* ============================================================
   FUNNEL-MODAL — Lausitz Digital
   ============================================================ */

.lf-modal {
  position: fixed;
  inset: 0;
  z-index: 2500;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lf-modal.open { display: flex; }

.lf-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(20, 19, 18, 0.45);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  opacity: 0;
  animation: lf-backdrop-in 0.18s ease-out forwards;
}

.lf-card {
  position: relative;
  background: var(--bg-surface);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 780px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: clamp(28px, 4vw, 48px);
  animation: lf-card-in 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.lf-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-deep);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out), transform 0.25s var(--ease-out);
  z-index: 3;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.lf-close svg { width: 16px; height: 16px; display: block; }
.lf-close:hover { background: var(--ink); color: var(--ink-inverse); transform: rotate(90deg); }

/* Head */
.lf-head {
  text-align: center;
  margin-bottom: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}
.lf-tag {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink-muted);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lf-h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.8vw, 52px);
  font-variation-settings: 'opsz' 48, 'wght' 500;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--ink);
  margin-bottom: 14px;
}
.lf-h1 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'opsz' 48, 'wght' 500, 'ital' 1;
}
.lf-sub {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
  max-width: 52ch;
  margin: 0 auto 22px;
}

.lf-progress {
  display: flex;
  gap: 5px;
  max-width: 380px;
  margin: 0 auto;
}
.lf-progress-step {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  position: relative;
}
.lf-progress-step::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}
.lf-progress-step.done::after { transform: scaleX(1); }
.lf-progress-step.current::after {
  transform: scaleX(1);
  background: var(--accent);
  box-shadow: 0 0 0 2px rgba(255, 92, 38, 0.18);
}

/* Stage / Steps */
.lf-stage {
  position: relative;
  min-height: 360px;
}
.lf-step {
  display: none;
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.4s var(--ease-out), transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lf-step.active {
  display: block;
  opacity: 1;
  transform: translateX(0);
}
.lf-step.leaving {
  transform: translateX(-40px);
  opacity: 0;
}

.lf-step-num {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.lf-step-num strong { color: var(--accent); font-weight: 600; }
.lf-step-num .pill {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 38, 0.18);
}

.lf-question {
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  font-variation-settings: 'opsz' 32, 'wght' 500;
  letter-spacing: -0.025em;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 10px;
  hyphens: manual;
  -webkit-hyphens: manual;
}
.lf-hint {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 22px;
}

/* Options */
.lf-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}
.lf-option {
  background: var(--bg-surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 14px 18px;
  cursor: pointer;
  text-align: left;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 14px;
  width: 100%;
  transition: border-color 0.25s var(--ease-out), background 0.25s var(--ease-out), transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s var(--ease-out);
  opacity: 0;
  transform: translateY(12px);
}
.lf-step.active .lf-option {
  animation: lf-option-in 0.45s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
.lf-step.active .lf-option:nth-child(1) { animation-delay: 0.10s; }
.lf-step.active .lf-option:nth-child(2) { animation-delay: 0.16s; }
.lf-step.active .lf-option:nth-child(3) { animation-delay: 0.22s; }
.lf-step.active .lf-option:nth-child(4) { animation-delay: 0.28s; }
.lf-step.active .lf-option:nth-child(5) { animation-delay: 0.34s; }
.lf-step.active .lf-option:nth-child(6) { animation-delay: 0.40s; }

.lf-option:hover {
  border-color: var(--ink);
  background: var(--bg);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(20, 19, 18, 0.06);
}
.lf-option.selected {
  border-color: var(--accent);
  background: var(--accent-tint);
  color: var(--accent-deep);
}
.lf-option-icon {
  width: 36px; height: 36px;
  border-radius: 10px;
  background: var(--bg-deep);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.25s var(--ease-out), color 0.25s var(--ease-out);
}
.lf-option-icon svg { width: 20px; height: 20px; }
.lf-option.selected .lf-option-icon {
  background: var(--accent);
  color: #fff;
}
.lf-option-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.lf-option-label { font-weight: 500; }
.lf-option-sub { font-size: 13px; color: var(--ink-muted); margin-top: 2px; }
.lf-option.selected .lf-option-sub { color: var(--accent-deep); opacity: 0.78; }
.lf-option-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  color: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s var(--ease-out);
}
.lf-option-check svg { width: 14px; height: 14px; }
.lf-option.selected .lf-option-check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

/* Form */
.lf-form { display: flex; flex-direction: column; gap: 14px; }
.lf-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 600px) { .lf-form-row { grid-template-columns: 1fr; } }
.lf-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.lf-label small { text-transform: none; font-weight: 400; color: var(--ink-muted); letter-spacing: 0; }
.lf-label input {
  font-family: var(--font-body);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--ink);
  letter-spacing: 0;
  text-transform: none;
  transition: border-color 0.2s var(--ease-out), background 0.2s var(--ease-out);
}
.lf-label input:focus {
  outline: none;
  border-color: var(--ink);
  background: var(--bg-surface);
}
.lf-form-note {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.5;
  margin: 4px 0 0;
}
.lf-form-note a {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Footer / Controls */
.lf-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}
.lf-back {
  background: transparent;
  border: 0;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
}
.lf-back svg { width: 16px; height: 16px; }
.lf-back:hover { color: var(--ink); background: var(--bg-deep); }
.lf-back:disabled { opacity: 0; pointer-events: none; }

.lf-next {
  opacity: 0.4;
  pointer-events: none;
  transition: opacity 0.25s var(--ease-out);
}
.lf-next.ready { opacity: 1; pointer-events: auto; }

/* Result */
.lf-result-summary {
  background: var(--bg-deep);
  border-radius: var(--radius-md);
  padding: 22px 24px;
  margin-bottom: 22px;
  animation: lf-fade-up 0.55s 0.05s var(--ease-out) backwards;
}
.lf-result-eyebrow {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.lf-result-mirror {
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  margin: 0;
}
.lf-result-mirror em {
  font-style: italic;
  color: var(--accent-deep);
  font-weight: 500;
}

.lf-result-card {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  animation: lf-fade-up 0.6s 0.18s var(--ease-out) backwards;
}
.lf-result-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px;
  background: var(--accent-tint);
  color: var(--accent-deep);
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.lf-result-tag .dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 38, 0.22);
}
.lf-result-card h3 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.6vw, 40px);
  font-variation-settings: 'opsz' 40, 'wght' 500;
  letter-spacing: -0.025em;
  line-height: 1;
  margin-bottom: 6px;
  color: var(--ink);
}
.lf-result-card h3 em {
  font-style: italic;
  color: var(--accent);
  font-variation-settings: 'opsz' 40, 'wght' 500, 'ital' 1;
}
.lf-result-tagline {
  font-size: 15px;
  color: var(--ink-soft);
  margin: 0 0 18px;
}

.lf-result-price {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  margin-bottom: 22px;
}
@media (max-width: 540px) {
  .lf-result-price { grid-template-columns: 1fr; }
}
.lf-result-price > div { display: flex; flex-direction: column; }
.lf-price-line {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.015em;
  color: var(--ink);
  font-variation-settings: 'opsz' 24, 'wght' 500;
}
.lf-price-line strong { color: var(--ink); font-weight: 500; }
.lf-price-strike {
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
  color: var(--ink-muted);
  font-size: 14px;
  margin-left: 6px;
}
.lf-price-final {
  color: var(--accent);
  font-weight: 600;
}
.lf-price-sub {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 4px;
  font-family: var(--font-body);
}

.lf-result-reasons { margin-bottom: 22px; }
.lf-result-reasons h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 12px;
}
.lf-result-reasons ul { list-style: none; padding: 0; margin: 0; }
.lf-result-reasons li {
  position: relative;
  padding-left: 22px;
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 8px;
}
.lf-result-reasons li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 600;
}

.lf-result-bonus {
  background: linear-gradient(135deg, #FFF5EE 0%, #FFEAD9 100%);
  border: 1.5px solid rgba(255, 92, 38, 0.32);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  margin-bottom: 22px;
  animation: lf-bonus-glow 2.4s ease-in-out infinite;
}
.lf-bonus-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.lf-bonus-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: #DC2626;
  color: #fff;
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.5);
  animation: lf-tag-pulse 1.6s ease-in-out infinite;
}
.lf-bonus-tag .dot {
  width: 4px; height: 4px; border-radius: 50%; background: #fff;
}
.lf-bonus-timer {
  font-size: 12px;
  color: var(--ink-soft);
  font-variant-numeric: tabular-nums;
}
.lf-bonus-timer span {
  color: var(--accent-deep);
  font-weight: 600;
}
.lf-result-bonus strong {
  display: block;
  font-size: 15px;
  color: var(--ink);
  margin-bottom: 4px;
}
.lf-result-bonus small {
  font-size: 12px;
  color: var(--ink-muted);
}

/* Bonus bereits eingelöst — gedämpfte Variante, ohne Glow */
.lf-result-bonus-spent {
  background: var(--bg-deep);
  border-color: var(--border);
  animation: none;
  box-shadow: none;
  padding: 14px 18px;
}
.lf-result-bonus-spent strong {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.lf-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.lf-cta-primary { flex: 1; min-width: 240px; }

.lf-restart {
  background: transparent;
  border: 0;
  color: var(--ink-muted);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 6px 0;
}
.lf-restart:hover { color: var(--ink); }

/* Keyframes */
@keyframes lf-backdrop-in { from { opacity: 0 } to { opacity: 1 } }
@keyframes lf-card-in {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
@keyframes lf-option-in {
  to { opacity: 1; transform: translateY(0); }
}
@keyframes lf-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes lf-bonus-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 92, 38, 0.30), 0 6px 22px rgba(255, 92, 38, 0.10); }
  50%      { box-shadow: 0 0 0 10px rgba(255, 92, 38, 0.0), 0 10px 30px rgba(255, 92, 38, 0.22); }
}
@keyframes lf-tag-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(220, 38, 38, 0.55); }
  50%      { box-shadow: 0 0 0 6px rgba(220, 38, 38, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .lf-card, .lf-option, .lf-result-summary, .lf-result-card,
  .lf-result-bonus { animation: none !important; opacity: 1; transform: none; }
}
