/* Funnel Base Styles — wird pro Funnel mit Brand-CSS überschrieben */
:root {
  --fn-primary: #ac91f8;
  --fn-primary-hover: #19123d;
  --fn-text: rgb(8, 59, 76);
  --fn-text-dim: rgba(8, 59, 76, 0.6);
  --fn-bg: #f5f5f5;
  --fn-card-bg: #fff;
  --fn-card-radius: 24px;
  --fn-card-shadow:
    0 1px 2px rgba(15, 15, 30, 0.04),
    0 8px 24px rgba(15, 15, 30, 0.06),
    0 24px 48px -12px rgba(15, 15, 30, 0.08);
  --fn-btn-radius: 32px;
  --fn-font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --fn-display-font: var(--fn-font);
  --fn-pad: 40px;
  --fn-pad-mobile: 28px;
  --fn-ease: cubic-bezier(0.32, 0.72, 0, 1);
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  font-family: var(--fn-font);
  color: var(--fn-text);
  background: var(--fn-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.45;
}

#funnel {
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
/* Wenn Inhalt höher als Viewport: oben anfangen, sonst zentriert */
@media (min-height: 600px) {
  #funnel { padding: 32px 16px; }
}

/* Progress — dezent, hairline */
.fn-progress {
  height: 2px;
  background: rgba(0,0,0,0.05);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 28px;
  position: relative;
}
.fn-progress-bar {
  height: 100%;
  background: var(--fn-primary);
  transition: width 0.6s var(--fn-ease);
  border-radius: inherit;
  position: relative;
}
.fn-progress-bar::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
  animation: fn-shimmer 2.4s ease-in-out infinite;
}
@keyframes fn-shimmer {
  0% { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

/* Stage / Card */
.fn-stage { position: relative; width: 100%; }
.fn-card {
  background: var(--fn-card-bg);
  border-radius: var(--fn-card-radius);
  padding: var(--fn-pad);
  box-shadow: var(--fn-card-shadow);
  animation: fn-card-in 0.42s var(--fn-ease);
  position: relative;
}
@media (max-width: 540px) {
  .fn-card { padding: var(--fn-pad-mobile); border-radius: 18px; }
}
@keyframes fn-card-in {
  from { opacity: 0; transform: translateY(12px) scale(0.985); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Back button — kleiner Pill mit subtle hover */
.fn-back {
  position: absolute;
  top: -44px;
  left: 0;
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(0,0,0,0.06);
  font-size: 14px;
  font-weight: 500;
  color: var(--fn-text-dim);
  cursor: pointer;
  padding: 7px 14px 7px 10px;
  border-radius: 999px;
  font-family: inherit;
  transition: all 0.22s var(--fn-ease);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.fn-back:hover {
  color: var(--fn-text);
  border-color: rgba(0,0,0,0.12);
  transform: translateX(-2px);
}

/* Typography — Display-Hierarchie */
.fn-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--fn-primary);
  margin-bottom: 16px;
  padding: 5px 12px;
  background: color-mix(in srgb, var(--fn-primary) 10%, transparent);
  border-radius: 999px;
}
.fn-title {
  font-family: var(--fn-display-font);
  font-size: clamp(26px, 4.2vw, 36px);
  font-weight: 700;
  color: var(--fn-text);
  margin: 0 0 14px;
  line-height: 1.12;
  letter-spacing: -0.02em;
  white-space: pre-line;
  text-wrap: balance;
}
.fn-subtitle {
  font-size: 15.5px;
  color: var(--fn-text-dim);
  margin: 0 0 28px;
  line-height: 1.55;
  max-width: 52ch;
  text-wrap: pretty;
}

/* CTA Button — premium hover-lift, subtle shimmer */
.fn-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--fn-primary);
  color: #fff;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 600;
  letter-spacing: 0.005em;
  border: none;
  border-radius: var(--fn-btn-radius);
  padding: 17px 28px;
  cursor: pointer;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 1px 3px rgba(0,0,0,0.1),
    0 8px 22px -4px color-mix(in srgb, var(--fn-primary) 45%, transparent);
  transition: transform 0.18s var(--fn-ease), box-shadow 0.22s var(--fn-ease), background 0.22s;
  width: 100%;
  text-align: center;
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.fn-cta::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.18) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.7s var(--fn-ease);
}
.fn-cta:hover {
  background: var(--fn-primary-hover);
  transform: translateY(-1px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 4px 8px rgba(0,0,0,0.12),
    0 14px 32px -6px color-mix(in srgb, var(--fn-primary) 55%, transparent);
}
.fn-cta:hover::after { transform: translateX(100%); }
.fn-cta:active { transform: translateY(0); }
.fn-cta:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }

.fn-link {
  display: inline-block;
  background: transparent;
  border: none;
  color: var(--fn-text-dim);
  font-family: inherit;
  font-size: 13.5px;
  cursor: pointer;
  padding: 10px 16px;
  margin-top: 6px;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.2);
  text-underline-offset: 3px;
  transition: color 0.18s;
}
.fn-link:hover { color: var(--fn-text); }

/* Options (single / multi) — refined card-style */
.fn-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}
.fn-option {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(0,0,0,0.08);
  border-radius: 14px;
  padding: 16px 18px;
  font-family: inherit;
  font-size: 15.5px;
  font-weight: 500;
  color: var(--fn-text);
  cursor: pointer;
  text-align: left;
  width: 100%;
  position: relative;
  transition: all 0.2s var(--fn-ease);
  box-shadow: 0 1px 2px rgba(0,0,0,0.02);
}
.fn-option:hover {
  border-color: var(--fn-primary);
  background: color-mix(in srgb, var(--fn-primary) 4%, #fff);
  transform: translateY(-1px);
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 6px 14px -4px color-mix(in srgb, var(--fn-primary) 25%, transparent);
}
.fn-option:active { transform: translateY(0); transition-duration: 0.08s; }
.fn-option.is-checked {
  border-color: var(--fn-primary);
  background: color-mix(in srgb, var(--fn-primary) 7%, #fff);
}
.fn-option-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--fn-primary) 12%, transparent);
  color: var(--fn-primary);
  font-weight: 600;
  font-size: 16px;
  flex-shrink: 0;
  transition: transform 0.2s var(--fn-ease);
}
.fn-option:hover .fn-option-icon { transform: scale(1.06); }
.fn-option-label { flex: 1; line-height: 1.35; }

/* Chevron-Hint rechts auf hover */
.fn-option::after {
  content: '→';
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translate(8px, -50%);
  opacity: 0;
  font-size: 16px;
  color: var(--fn-primary);
  transition: all 0.22s var(--fn-ease);
}
.fn-option:hover::after { opacity: 0.6; transform: translate(0, -50%); }
.fn-multi-option::after { content: none; }

/* Multi-checkbox visuals */
.fn-multi-option input[type=checkbox] {
  appearance: none;
  width: 20px; height: 20px;
  border: 2px solid rgba(0,0,0,0.2);
  border-radius: 6px;
  margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  display: grid;
  place-items: center;
}
.fn-multi-option input[type=checkbox]:checked {
  background: var(--fn-primary);
  border-color: var(--fn-primary);
}
.fn-multi-option input[type=checkbox]:checked::after {
  content: '✓';
  color: white;
  font-size: 12px;
  font-weight: 700;
}

/* Binary (slider yes/no) */
.fn-binary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 8px;
}
@media (max-width: 480px) { .fn-binary { grid-template-columns: 1fr; } }
.fn-yes .fn-option-icon { background: rgba(34, 197, 94, 0.12); color: rgb(22, 163, 74); }
.fn-no  .fn-option-icon { background: rgba(239, 68, 68, 0.12); color: rgb(220, 38, 38); }

/* Form fields */
.fn-form { display: flex; flex-direction: column; gap: 18px; }
.fn-field { display: flex; flex-direction: column; gap: 7px; }
.fn-label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fn-text);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.fn-label em { color: rgb(220, 38, 38); font-style: normal; margin-left: 2px; }
.fn-field input, .fn-field textarea {
  font-family: inherit;
  font-size: 15.5px;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 12px;
  padding: 15px 18px;
  background: var(--fn-card-bg);
  color: var(--fn-text);
  transition: border-color 0.2s, box-shadow 0.2s, background 0.2s;
  width: 100%;
}
.fn-field input::placeholder, .fn-field textarea::placeholder { color: rgba(0,0,0,0.28); }
.fn-field input:hover, .fn-field textarea:hover { border-color: rgba(0,0,0,0.18); }
.fn-field input:focus, .fn-field textarea:focus {
  outline: none;
  border-color: var(--fn-primary);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--fn-primary) 16%, transparent);
}
.fn-field textarea { resize: vertical; min-height: 92px; line-height: 1.55; }

.fn-checkbox {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 13px; color: var(--fn-text-dim); line-height: 1.4;
}
.fn-checkbox input { margin-top: 3px; flex-shrink: 0; accent-color: var(--fn-primary); }
.fn-checkbox a { color: var(--fn-primary); text-decoration: underline; }

/* Loading */
.fn-loading { text-align: center; padding: 28px 0 8px; }
.fn-spinner {
  width: 56px; height: 56px;
  border: 3px solid color-mix(in srgb, var(--fn-primary) 15%, transparent);
  border-top-color: var(--fn-primary);
  border-radius: 50%;
  margin: 0 auto 28px;
  animation: fn-spin 0.9s linear infinite;
  position: relative;
}
.fn-spinner::after {
  content: '';
  position: absolute;
  inset: -8px;
  border: 1px solid color-mix(in srgb, var(--fn-primary) 8%, transparent);
  border-radius: 50%;
  animation: fn-pulse 2s ease-in-out infinite;
}
@keyframes fn-spin { to { transform: rotate(360deg); } }
@keyframes fn-pulse { 0%,100% { opacity: 0.4; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.08); } }

/* Result (thanks / reject) */
.fn-result { text-align: center; padding: 8px 0; }
.fn-result-icon {
  font-size: 56px;
  margin: 0 auto 20px;
  line-height: 1;
  width: 88px;
  height: 88px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--fn-primary) 12%, transparent);
  animation: fn-pop 0.5s var(--fn-ease);
}
@keyframes fn-pop {
  from { transform: scale(0.4); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
.fn-result .fn-title { color: var(--fn-text); }
.fn-result .fn-subtitle { max-width: 460px; margin: 12px auto 28px; }
.fn-result .fn-cta { max-width: 320px; margin: 0 auto; }

.fn-note { font-size: 13px; color: var(--fn-text-dim); margin: 12px 0 20px; }
