/* SK Finanzberatung – Beratungsformular. An das Website-Design angeglichen.
   Tokens/Typo identisch zur Hauptseite (Navy/Gold, Poppins/Inter). */
:root {
  --navy: #0a1a5c;
  --navy-600: #13257a;
  --navy-800: #071344;
  --accent: #0066cc;
  --accent-dark: #0052a3;
  --cta: #c8a24b;
  --cta-dark: #ab8836;
  --cta-ink: #0a1a5c;
  --ink: #333333;
  --ink-heading: #000000;
  --ink-muted: #5b6470;
  --surface: #ffffff;
  --surface-muted: #f5f5f5;
  --line: #e4e7ef;
  --ok: #1f9d55;
  --err: #d23f3f;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow-card: 0 4px 20px -4px rgba(10, 26, 92, 0.12);
  --shadow-hover: 0 12px 32px -6px rgba(10, 26, 92, 0.22);
  --font-heading: "Poppins", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--surface-muted);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font-heading); color: var(--ink-heading); line-height: 1.15; margin: 0 0 0.5em; }

/* ---------- Site-Header (an Hauptseite angelehnt) ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy); color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header__inner {
  max-width: 760px; margin: 0 auto; padding: 14px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: inline-flex; align-items: center; gap: 9px; color: #fff; text-decoration: none; font-family: var(--font-heading); font-weight: 700; }
.brand-mark { font-size: 24px; }
.brand-name { font-size: 18px; letter-spacing: 0.2px; }
.header-link { color: rgba(255, 255, 255, 0.85); text-decoration: none; font-size: 14.5px; font-weight: 500; }
.header-link:hover { color: var(--cta); }

.wrap { max-width: 760px; margin: 0 auto; padding: 22px 16px 60px; }

.intro { text-align: center; margin: 6px 0 20px; }
.intro h1 { font-size: clamp(1.6rem, 5vw, 2.1rem); margin-bottom: 0.3em; }
.intro p { color: var(--ink-muted); margin: 0; font-size: 1.02rem; }

.progress { height: 8px; background: #e1e6ef; border-radius: 999px; overflow: hidden; margin-bottom: 22px; }
.progress-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--navy), var(--cta)); transition: width 0.35s ease; }

.step {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(20px, 4vw, 30px) clamp(16px, 3.5vw, 26px);
}
.step-title { font-size: clamp(1.35rem, 4vw, 1.7rem); margin: 0 0 4px; }
.step-intro { margin: 0 0 20px; color: var(--ink-muted); font-size: 1rem; }

.q { margin: 0 0 22px; }
.q:last-child { margin-bottom: 4px; }
.q-label { display: block; font-family: var(--font-heading); font-weight: 600; color: var(--ink-heading); margin-bottom: 10px; font-size: 1.02rem; }
.q-req { color: var(--cta-dark); margin-left: 3px; }

input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="date"], select, textarea {
  width: 100%; padding: 13px 15px; font-size: 16px; font-family: inherit; color: var(--ink);
  background: #fff; border: 1.5px solid var(--line); border-radius: 11px;
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(0, 102, 204, 0.15);
}
textarea { min-height: 98px; resize: vertical; }

/* Choice chips */
.choices { display: grid; gap: 10px; }
.choice {
  display: flex; align-items: center; gap: 12px; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; background: #fff;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.choice:hover { border-color: #c2cbe0; }
.choice input { width: 20px; height: 20px; accent-color: var(--accent); flex: 0 0 auto; }
.choice.checked { border-color: var(--accent); background: #f4f8ff; box-shadow: inset 0 0 0 1px var(--accent); }
.choice-text { font-size: 15.5px; }

.consent { align-items: flex-start; }
.consent .choice-text { font-size: 14.5px; line-height: 1.55; }
.consent-link { display: inline-block; margin-top: 4px; font-size: 14px; }
a { color: var(--accent); }

/* File upload */
.upload { border: 1.5px dashed #b6c0d6; border-radius: 12px; padding: 18px; text-align: center; background: #fafbff; }
.upload input { display: none; }
.upload-btn { display: inline-block; cursor: pointer; background: rgba(0, 102, 204, 0.08); color: var(--accent); font-family: var(--font-heading); font-weight: 600; padding: 11px 18px; border-radius: 999px; }
.filelist { margin-top: 13px; display: grid; gap: 7px; text-align: left; }
.fileitem { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 9px 12px; }
.fileitem button { border: none; background: none; color: var(--err); cursor: pointer; font-size: 18px; line-height: 1; }

.error { color: var(--err); font-size: 13.5px; margin-top: 7px; display: none; }
.q.invalid .error { display: block; }
.q.invalid input, .q.invalid select, .q.invalid textarea { border-color: var(--err); }

/* Buttons – Pill-Stil wie Hauptseite */
.nav { display: flex; gap: 10px; margin-top: 20px; }
.btn {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.02rem;
  padding: 0.95rem 1.5rem; border: 2px solid transparent; border-radius: 999px; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-accent { background: var(--cta); color: var(--cta-ink); box-shadow: 0 6px 18px -4px rgba(200, 162, 75, 0.55); }
.btn-accent:hover { background: var(--cta-dark); color: #fff; }
.btn-ghost { flex: 0 0 auto; background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-ghost:hover { background: var(--navy); color: #fff; }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* Summary */
.summary-group { margin-bottom: 20px; }
.summary-group h3 { font-family: var(--font-heading); font-size: 14px; color: var(--accent); margin: 0 0 8px; text-transform: uppercase; letter-spacing: 0.6px; }
.summary-row { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.summary-q { font-size: 13.5px; color: var(--ink-muted); }
.summary-a { font-size: 15.5px; color: var(--ink-heading); font-weight: 600; word-break: break-word; }

/* Result */
.result { text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); padding: 38px 24px; }
.result.ok .result-icon { background: var(--ok); }
.result.fail .result-icon { background: var(--err); }
.result-icon { display: inline-flex; align-items: center; justify-content: center; width: 64px; height: 64px; border-radius: 50%; color: #fff; font-size: 34px; margin-bottom: 6px; }
.result h2 { margin: 8px 0; }
.result .lead-id { font-family: ui-monospace, monospace; background: var(--surface-muted); padding: 4px 10px; border-radius: 7px; }
.result-cta { margin-top: 18px; display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.result-cta .btn { flex: 0 0 auto; }

.footnote { text-align: center; margin-top: 28px; font-size: 14px; color: #8a939d; }
.footnote a { color: var(--ink-muted); text-decoration: none; }
.footnote a:hover { text-decoration: underline; color: var(--accent); }

.spinner { display: inline-block; width: 18px; height: 18px; border: 3px solid rgba(255,255,255,0.5); border-top-color: #fff; border-radius: 50%; animation: spin 0.7s linear infinite; vertical-align: -3px; margin-right: 8px; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 560px) {
  .summary-row { grid-template-columns: 240px 1fr; align-items: baseline; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto; }
}
