/* ===== AllinOneCoach – Umfrage · modernes Dark-Theme =============
   Dark by default. Farben zentral über CSS-Variablen.
==================================================================*/
:root {
  --bg:          #0a0d16;
  --bg-2:        #0e1220;
  --card:        #111524;
  --card-2:      #151b2c;
  --line:        #212840;
  --line-2:      #2b3352;
  --ink:         #e8ebf5;
  --ink-soft:    #9aa4bf;
  --ink-mute:    #6b7593;
  --brand:       #7c6cff;
  --brand-2:     #a855f7;
  --accent:      #22d3ee;
  --brand-soft:  rgba(124, 108, 255, .14);
  --brand-line:  rgba(124, 108, 255, .38);
  --brand-text:  #c8c0ff;
  --ok:          #34d399;
  --err:         #fb7185;
  --radius:      16px;
  --shadow:      0 24px 50px -24px rgba(0, 0, 0, .7);
  --font:        system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
/* Sanftes Glüh-Licht hinter dem Header */
body::before {
  content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(62% 42% at 50% -6%, rgba(124, 108, 255, .20), transparent 70%),
    radial-gradient(40% 30% at 92% 0%, rgba(34, 211, 238, .08), transparent 70%);
}
.wrap { max-width: 720px; margin: 0 auto; padding: 24px 16px 64px; }

/* ----- Hero ----- */
.hero { text-align: center; padding: 30px 8px 8px; }
.badge {
  display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600;
  letter-spacing: .3px; color: var(--brand-text); background: var(--brand-soft);
  border: 1px solid var(--brand-line); padding: 6px 13px; border-radius: 999px; margin-bottom: 18px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent); }
.hero h1 { font-size: clamp(27px, 6vw, 40px); line-height: 1.12; margin: 6px 0 14px; letter-spacing: -.6px; font-weight: 700; }
.grad {
  background: linear-gradient(100deg, var(--brand) 0%, var(--brand-2) 55%, var(--accent) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--ink-soft); font-size: clamp(15px, 3.4vw, 18px); max-width: 560px; margin: 0 auto; }

/* ----- Blöcke ----- */
.block {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow); padding: 22px 20px; margin: 22px 0;
}
.block.optional { border-style: dashed; border-color: var(--line-2); }
.block-head { display: flex; align-items: center; gap: 12px; margin-bottom: 4px; }
.block-icon {
  flex: none; width: 42px; height: 42px; display: grid; place-items: center;
  color: var(--brand-text); background: var(--brand-soft);
  border: 1px solid var(--brand-line); border-radius: 13px;
}
.block-head h2 { font-size: 18.5px; margin: 0; font-weight: 650; letter-spacing: -.2px; }
.tag {
  margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
  background: var(--bg-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 11px;
}

/* ----- Frage ----- */
.field { padding: 18px 0; border-top: 1px solid var(--line); }
.field:first-of-type { border-top: 0; }
.q-label { display: block; font-weight: 600; margin-bottom: 13px; font-size: 15.5px; color: var(--ink); }
.req { color: var(--err); }

/* ----- Pills (single/multi) ----- */
.pills { display: flex; flex-wrap: wrap; gap: 9px; }
.pill {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line-2); border-radius: 12px; padding: 10px 14px;
  cursor: pointer; user-select: none; font-size: 14.5px; background: var(--bg-2); color: var(--ink-soft);
  transition: border-color .15s, background .15s, color .15s, transform .05s;
}
.pill:hover { border-color: var(--brand-line); color: var(--ink); }
.pill:active { transform: scale(.98); }
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill span { pointer-events: none; }
.pill.is-checked {
  border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); font-weight: 600;
}

/* ----- Skala ----- */
.scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.scale-btn {
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  border: 1px solid var(--line-2); border-radius: 12px; padding: 15px 0;
  font-weight: 700; font-size: 16px; background: var(--bg-2); color: var(--ink-soft); transition: all .15s;
}
.scale-btn:hover { border-color: var(--brand-line); color: var(--ink); }
.scale-btn.is-checked {
  border-color: transparent; color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 8px 22px -8px rgba(124, 108, 255, .7);
}
.scale-legend { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--ink-mute); margin-top: 7px; }

/* ----- Textfelder ----- */
.inp {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid var(--line-2);
  border-radius: 12px; background: var(--bg-2); color: var(--ink); resize: vertical;
}
.inp::placeholder { color: var(--ink-mute); }
.inp:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
textarea.inp { min-height: 78px; }

.ig-box { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--bg-2); }
.ig-box:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.ig-at { display: flex; align-items: center; padding: 0 12px; color: var(--ink-mute); font-weight: 700; border-right: 1px solid var(--line-2); }
.ig-inp { border: 0 !important; box-shadow: none !important; background: transparent; }

/* ----- Einwilligung (falls genutzt) ----- */
.consent {
  display: flex; gap: 10px; align-items: flex-start; margin-top: 18px;
  font-size: 13.5px; color: var(--ink-soft); background: var(--bg-2);
  border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px;
}
.consent input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.consent a { color: var(--brand-text); }

/* ----- Submit + Meldungen ----- */
.btn-primary {
  width: 100%; margin-top: 10px; padding: 16px; font: inherit; font-weight: 700; font-size: 17px;
  color: #fff; border: 0; border-radius: 14px; cursor: pointer;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 34px -12px rgba(124, 108, 255, .75); transition: transform .05s, filter .15s;
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:active { transform: translateY(1px); }
.btn-primary:disabled { opacity: .6; cursor: default; }
.form-msg { text-align: center; min-height: 20px; margin: 14px 0 0; font-size: 14.5px; color: var(--ink-soft); }
.form-msg.err { color: var(--err); font-weight: 600; }

/* ----- Danke ----- */
.thanks {
  background: var(--card); border: 1px solid var(--line); border-radius: 22px;
  box-shadow: var(--shadow); text-align: center; padding: 44px 24px; margin: 30px 0;
}
.thanks-icon {
  width: 76px; height: 76px; margin: 0 auto 6px; display: grid; place-items: center;
  color: #fff; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 40px -14px rgba(124, 108, 255, .8);
}
.thanks h2 { margin: 12px 0 8px; font-size: 25px; font-weight: 700; }
.thanks p { color: var(--ink-soft); max-width: 460px; margin: 0 auto 22px; }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 600;
  color: var(--brand-text); border: 1px solid var(--brand-line); background: var(--brand-soft);
  border-radius: 12px; padding: 11px 20px; transition: border-color .15s;
}
.btn-ghost:hover { border-color: var(--brand); }

/* ----- Footer ----- */
.foot { text-align: center; color: var(--ink-mute); font-size: 13px; padding: 12px; }
.foot a { color: var(--ink-soft); text-decoration: none; }
.foot a:hover { color: var(--brand-text); }
