/* ============================================================
   Chris Höllich · Kontakt-Funnel (Typeform-Stil) — NeoCore Creme
   ============================================================ */

:root {
  --nc-bg:          #F5EDE1;
  --nc-bg-2:        #EDE3D4;
  --nc-card:        #FFFFFF;
  --nc-card-2:      #FAF6EE;
  --nc-line:        rgba(28, 31, 42, 0.12);
  --nc-line-strong: rgba(28, 31, 42, 0.22);
  --nc-accent:      #1f273e;
  --nc-accent-2:    #2c3756;
  --nc-text:        #1C1F2A;
  --nc-muted:       #4B4D57;
  --nc-shadow:      0 18px 50px -24px rgba(28, 31, 42, 0.35);
  --nc-shadow-sm:   0 8px 24px -16px rgba(28, 31, 42, 0.4);
  --radius:         16px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
[hidden] { display: none !important; }

body {
  background:
    radial-gradient(120% 70% at 50% -10%, var(--nc-card-2) 0%, var(--nc-bg) 55%) fixed,
    var(--nc-bg);
  color: var(--nc-text);
  font-family: 'Montserrat', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.5;
  overflow-x: hidden;
}

.funnel {
  width: 100%;
  max-width: 560px;
  min-height: 100svh;
  margin: 0 auto;
  padding: 20px 22px 32px;
  display: flex;
  flex-direction: column;
}

/* ---------- Top: Logo + Progress ---------- */
.funnel__top {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 8px;
}
.funnel__brand { flex: 0 0 auto; width: 36px; height: 36px; display: block; }
.funnel__brand img { width: 100%; height: 100%; object-fit: contain; display: block; }

.progress {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: rgba(31, 39, 62, 0.10);
  overflow: hidden;
}
.progress__bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nc-accent-2), var(--nc-accent));
  transition: width .35s cubic-bezier(.4,0,.2,1);
}

/* ---------- Stage / Screens ---------- */
.stage {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px 0;
}

.screen { animation: screenIn .32s cubic-bezier(.4,0,.2,1); }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.screen__kicker {
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--nc-muted);
  margin-bottom: 10px;
}
.screen__q {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 6px;
}
.screen__hint {
  font-size: 0.95rem;
  color: var(--nc-muted);
  margin: 0 0 22px;
}

/* ---------- Optionen (Single-Choice) ---------- */
.options { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }

.option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 15px 16px;
  border-radius: 13px;
  border: 1.5px solid var(--nc-line-strong);
  background: var(--nc-card);
  color: var(--nc-text);
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.option:hover { border-color: var(--nc-accent); }
.option:active { transform: scale(.99); }
.option.is-selected {
  border-color: var(--nc-accent);
  background: var(--nc-accent);
  color: var(--nc-bg);
}
.option__key {
  flex: 0 0 auto;
  width: 26px; height: 26px;
  display: grid; place-items: center;
  border-radius: 7px;
  border: 1.5px solid var(--nc-line-strong);
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--nc-muted);
}
.option.is-selected .option__key { border-color: rgba(245,237,225,.5); color: var(--nc-bg); }

/* ---------- Gruppierte Sub-Fragen (Schritt 5 & 6) ---------- */
.subgroup { margin-top: 4px; }
.subgroup + .subgroup { margin-top: 22px; }
.subgroup__label {
  font-size: 1.02rem;
  font-weight: 600;
  margin: 0 0 10px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  padding: 11px 15px;
  border-radius: 999px;
  border: 1.5px solid var(--nc-line-strong);
  background: var(--nc-card);
  color: var(--nc-text);
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.chip:hover { border-color: var(--nc-accent); }
.chip.is-selected { border-color: var(--nc-accent); background: var(--nc-accent); color: var(--nc-bg); }

/* ---------- Felder (Zahl + Kontakt) ---------- */
.fields { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.field {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--nc-line-strong);
  background: var(--nc-card);
  color: var(--nc-text);
  font-family: inherit;
  font-size: 1rem;
}
.field::placeholder { color: #9a9ba3; }
.field:focus {
  outline: none;
  border-color: var(--nc-accent);
  box-shadow: 0 0 0 3px rgba(31, 39, 62, 0.12);
}
.field.is-invalid { border-color: #b3402f; box-shadow: 0 0 0 3px rgba(179,64,47,.12); }
.field-row { display: flex; gap: 12px; }
.field-row .field { flex: 1 1 0; min-width: 0; }
.field-error { font-size: 0.82rem; color: #b3402f; margin: 2px 0 0; min-height: 1em; }

/* ---------- Primär-Button ---------- */
.btn {
  margin-top: 22px;
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 13px;
  background: var(--nc-accent);
  color: var(--nc-bg);
  font-family: inherit;
  font-size: 1.02rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: background .15s ease, transform .12s ease, opacity .15s ease;
}
.btn:hover:not(:disabled) { background: var(--nc-accent-2); }
.btn:active:not(:disabled) { transform: scale(.99); }
.btn:disabled { opacity: .45; cursor: default; }
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Intro ---------- */
.intro__photo {
  width: 96px; height: 96px;
  margin: 0 0 20px;
  border-radius: 50%;
  overflow: hidden;
  box-shadow: var(--nc-shadow);
  background: var(--nc-accent);
}
.intro__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.intro__title { font-size: 1.7rem; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 12px; line-height: 1.18; }
.intro__text { font-size: 1.02rem; color: var(--nc-muted); margin: 0 0 4px; }
.intro__meta { font-size: 0.86rem; color: var(--nc-muted); margin-top: 16px; display: flex; align-items: center; gap: 7px; }
.intro__meta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }

/* ---------- Danke ---------- */
.thanks { text-align: center; }
.thanks__check {
  width: 76px; height: 76px;
  margin: 0 auto 22px;
  border-radius: 50%;
  background: var(--nc-accent);
  display: grid; place-items: center;
  box-shadow: var(--nc-shadow);
  animation: pop .4s cubic-bezier(.2,1.3,.4,1);
}
@keyframes pop { from { transform: scale(.5); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.thanks__check svg { width: 38px; height: 38px; fill: none; stroke: var(--nc-bg); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.thanks__title { font-size: 1.6rem; font-weight: 700; margin: 0 0 10px; }
.thanks__text { font-size: 1.05rem; color: var(--nc-muted); margin: 0 auto; max-width: 24em; }
.thanks__link {
  display: inline-block;
  margin-top: 26px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--nc-accent);
  text-decoration: none;
}
.thanks__link:hover { text-decoration: underline; }

/* ---------- Nav (Zurück) ---------- */
.funnel__nav { min-height: 24px; display: flex; }
.nav-back {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: none;
  border: none;
  color: var(--nc-muted);
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 4px;
}
.nav-back:hover { color: var(--nc-text); }
.nav-back svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

@media (max-width: 380px) {
  .funnel { padding: 16px 16px 28px; }
  .screen__q { font-size: 1.32rem; }
  .intro__title { font-size: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
