/* ContiNovo — Horizont-Scan (nur auf horizont-scan/index.html geladen). */

/* Design: body ist aqua-tint, ein umschließender Wrapper-Div überdeckt das
   mit light-0 als eigentlich sichtbarem Hintergrund (aqua-tint bleibt
   unsichtbarer Fallback). Deploy hat keinen separaten Wrapper — body direkt
   auf light-0 gesetzt erzielt denselben sichtbaren Effekt. */
body.hz-body { background: var(--light-0); }

.hz-back-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-small);
  color: var(--text-muted);
  text-decoration: none;
  font-weight: var(--fw-medium);
  padding-bottom: 3px;
  border-bottom: 2px solid transparent;
  transition: color var(--dur-base) ease;
}
.hz-back-link:hover { color: var(--secondary); box-shadow: 0 2px 0 0 var(--accent); }

.hz-main { flex: 1; padding: 32px 24px 80px; }
.hz-main-inner { max-width: 852px; margin: 0 auto; }
.hz-intro { max-width: 640px; }
.hz-title {
  font-family: var(--font-display);
  font-variation-settings: var(--fraunces-display);
  font-weight: 600;
  font-size: clamp(30px, 4vw, 44px);
  line-height: var(--lh-heading);
  letter-spacing: -0.01em;
  color: var(--text-primary);
  margin: 12px 0 0;
}
.hz-lead { font-size: 16.5px; line-height: var(--lh-body); color: var(--text-body); margin: 16px 0 0; }

.hz-meta-row { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 20px; }

.hz-steps-panel { margin-top: 32px; max-width: 640px; }
.hz-steps-title { font-family: var(--font-display); font-variation-settings: var(--fraunces-heading); font-weight: 600; font-size: var(--fs-h3); color: var(--text-primary); margin: 0 0 14px; }
.hz-steps-list { display: flex; flex-direction: column; gap: 12px; margin: 0; padding: 0; }
.hz-steps-list li { display: flex; gap: 12px; align-items: flex-start; list-style: none; }
.hz-steps-num {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--teal-800);
  color: var(--light-0);
  font-size: var(--fs-caption);
  font-weight: var(--fw-semibold);
  display: flex;
  align-items: center;
  justify-content: center;
}
.hz-steps-list span.hz-steps-text { font-size: var(--fs-body); color: var(--text-body); line-height: var(--lh-body); padding-top: 2px; }

.hz-form-card {
  margin-top: 28px;
  background: var(--surface-sunken);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
}

.hz-progress { display: flex; gap: 8px; }
.hz-progress[hidden] { display: none; }
.hz-progress-track { flex: 1; height: 6px; border-radius: var(--radius-pill); background: var(--border); overflow: hidden; }
.hz-progress-fill { height: 100%; width: 0%; background: var(--teal-800); border-radius: var(--radius-pill); transition: width var(--dur-base) var(--ease-out); }

.hz-step { margin-top: 24px; }
.hz-step[hidden] { display: none; }

.hz-step-title { font-family: var(--font-display); font-variation-settings: var(--fraunces-heading); font-weight: 600; font-size: var(--fs-h3); color: var(--text-primary); margin: 0 0 20px; }

.hz-field-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 16px; max-width: 480px; }
.hz-field-error { font-size: var(--fs-caption); color: var(--danger); margin-top: 5px; }

.hz-group-label { display: flex; align-items: center; gap: 6px; font-size: var(--fs-caption); font-weight: var(--fw-semibold); color: var(--text-primary); margin-bottom: 10px; }

.hz-checklist { display: flex; flex-direction: column; gap: 12px; }
.hz-check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.hz-check-row input[type="checkbox"],
.hz-check-row input[type="radio"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.hz-check {
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-1);
  box-shadow: var(--shadow-xs);
  transition: background var(--dur-base) ease, border-color var(--dur-base) ease;
}
.hz-check-row:hover .hz-check { border-color: var(--secondary); }
.hz-check-row input:checked ~ .hz-check {
  background: var(--cerulean-100);
  border-color: var(--cerulean-600);
  color: var(--cerulean-700);
}
.hz-check-row[data-error="true"] .hz-check { border-color: var(--danger); }
.hz-check-row input:focus-visible ~ .hz-check { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.hz-check svg { display: none; width: 13px; height: 13px; }
.hz-check-row input:checked ~ .hz-check svg { display: block; }
.hz-check-row-text { font-size: var(--fs-body); color: var(--text-body); line-height: var(--lh-body); padding-top: 1px; }

.hz-sonstiges-field { margin: 8px 0 0 30px; max-width: 380px; }
.hz-sonstiges-field[hidden] { display: none; }

.hz-consent-text { font-size: var(--fs-small); color: var(--text-muted); line-height: var(--lh-body); }
.hz-consent-text a { color: var(--link); text-decoration: underline; }
.hz-consent-text a:hover { color: var(--link-hover); }

.hz-step-actions { display: flex; justify-content: flex-end; margin-top: 28px; }
.hz-step-actions--between { justify-content: space-between; }

.hz-question { margin-bottom: 28px; }
.hz-question:last-child { margin-bottom: 0; }
.hz-question-text { font-size: var(--fs-body); font-weight: var(--fw-semibold); color: var(--text-primary); line-height: var(--lh-body); margin-bottom: 14px; }
.hz-question-text .field__required { color: var(--danger); }
.hz-options { display: flex; flex-direction: column; gap: 10px; max-width: 480px; }

.hz-option {
  display: block;
  width: 100%;
  text-align: left;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: var(--surface-1);
  padding: 13px 16px;
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  color: var(--text-body);
  cursor: pointer;
  box-shadow: var(--shadow-xs);
  transition: border-color var(--dur-base) ease, background var(--dur-base) ease, box-shadow var(--dur-base) ease, transform var(--dur-fast) var(--ease-out);
}
.hz-option:hover { border-color: var(--secondary); background: var(--surface-0); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.hz-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.hz-option input:checked ~ .hz-option-label { font-weight: var(--fw-semibold); }
.hz-option:has(input:checked) { border-color: var(--secondary); background: var(--cerulean-100); box-shadow: var(--shadow-1); }
.hz-option:has(input:focus-visible) { outline: 2px solid var(--focus-ring); outline-offset: 2px; }
.hz-option[data-error="true"] { border-color: var(--danger); }

@media (prefers-reduced-motion: reduce) {
  .hz-check, .hz-option, .hz-progress-fill { transition: none; }
}
