/* HG-Allfinanz - Anfrageformulare (Rechtsschutz, Haftpflicht, Zahnzusatz)
   ERZEUGT von werkzeuge/anfrage-assets-erzeugen.py aus assets/css/style.css.
   Nicht von Hand aendern - jede Aenderung gehoert in den Entwurf, danach
   das Skript erneut laufen lassen. */
#hg-anfrage-formular {
  --color-primary: #264233;
  --color-primary-dark: #1a2f24;
  --color-primary-light: #325944;
  --color-gold: #C0A668;
  --color-gold-dark: #a88a4e;
  /* Gold als Schriftfarbe braucht einen eigenen, dunkleren Ton: #a88a4e
     erreicht auf Weiss nur 3,28:1 und auf Creme 2,96:1, gefordert sind
     4,5:1. #7d673a liefert 5,42:1 und 4,90:1 - gleicher Farbton, nur
     dunkler. Fuer Flaechen und Rahmen bleibt --color-gold-dark. */
  --color-gold-text: #7d673a;
  --color-cream: #F6F3ED;
  --color-white: #ffffff;
  --color-text: #2b2f2c;
  --color-text-muted: #5b6259;
  --color-border: rgba(38, 66, 51, 0.14);
  --font-heading: "Fraunces", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --container-width: 1200px;
  --section-padding: clamp(56px, 8vw, 112px);
  --radius-md: 10px;
  --radius-lg: 18px;
  --shadow-soft: 0 20px 45px -25px rgba(26, 47, 36, 0.35);
  font-family: var(--font-body);
  color: var(--color-text);
}
#hg-anfrage-formular .formular-spalte { max-width: 780px; margin-inline: auto; }
#hg-anfrage-formular .btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 15px 32px; border-radius: 999px; font-weight: 600; font-size: 0.98rem; border: 2px solid transparent; cursor: pointer; transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease; }
#hg-anfrage-formular .btn:hover { transform: translateY(-2px); }
#hg-anfrage-formular .btn-primary { background: var(--color-gold); color: var(--color-primary-dark); }
#hg-anfrage-formular .btn-primary:hover { background: var(--color-gold-dark); }
#hg-anfrage-formular .form-grid { display: flex; flex-wrap: wrap; gap: 20px; }
#hg-anfrage-formular .form-field { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
#hg-anfrage-formular .form-field select,
#hg-anfrage-formular .form-field input,
#hg-anfrage-formular .form-field textarea { max-width: 100%; }
#hg-anfrage-formular .form-field--full { flex: 1 1 100%; }
#hg-anfrage-formular .form-field label { font-weight: 600; font-size: 0.9rem; color: var(--color-primary); }
#hg-anfrage-formular .form-field input,
#hg-anfrage-formular .form-field select,
#hg-anfrage-formular .form-field textarea { font-family: var(--font-body); font-size: 1rem; padding: 13px 16px; border: 1px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); color: var(--color-text); height: auto; line-height: 1.4; }
#hg-anfrage-formular .form-field input:focus,
#hg-anfrage-formular .form-field select:focus,
#hg-anfrage-formular .form-field textarea:focus { outline: none; border-color: var(--color-gold-dark); }
#hg-anfrage-formular .form-note { font-size: 0.82rem; color: var(--color-text-muted); }
#hg-anfrage-formular .wizard-progress { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 40px; padding: 0; counter-reset: schritt; }
#hg-anfrage-formular .wizard-progress__item { flex: 1 1 130px; display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 3px solid var(--color-border); font-size: 0.82rem; font-weight: 600; color: var(--color-text-muted); transition: border-color 0.25s ease, color 0.25s ease; }
#hg-anfrage-formular .wizard-progress__item[data-state="aktiv"] { border-top-color: var(--color-gold); color: var(--color-primary); }
#hg-anfrage-formular .wizard-progress__item[data-state="erledigt"] { border-top-color: var(--color-primary); color: var(--color-primary); }
#hg-anfrage-formular .wizard-progress__num { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: var(--color-border); color: var(--color-primary); font-size: 0.8rem; }
#hg-anfrage-formular .wizard-progress__item[data-state="aktiv"] .wizard-progress__num { background: var(--color-gold); color: var(--color-primary-dark); }
#hg-anfrage-formular .wizard-progress__item[data-state="erledigt"] .wizard-progress__num { background: var(--color-primary); color: var(--color-white); }
#hg-anfrage-formular .wizard-step { display: none; }
#hg-anfrage-formular .wizard-step.is-active { display: block; }
#hg-anfrage-formular .wizard-step__head { margin-bottom: 28px; }
#hg-anfrage-formular .wizard-step__head h2,
#hg-anfrage-formular .wizard-step__head h3 { margin-bottom: 6px; }
#hg-anfrage-formular .wizard-step__head p { margin-bottom: 0; }
#hg-anfrage-formular .wizard-nav { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; margin-top: 36px; padding-top: 26px; border-top: 1px solid var(--color-border); }
#hg-anfrage-formular .wizard-nav .btn-back { background: none; border: none; color: var(--color-text-muted); font-weight: 600; cursor: pointer; padding: 12px 4px; display: inline-flex; align-items: center; gap: 8px; }
#hg-anfrage-formular .wizard-nav .btn-back:hover { color: var(--color-primary); }
#hg-anfrage-formular .feldgruppe { border: none; padding: 0; margin: 0 0 24px; }
#hg-anfrage-formular .feldgruppe--weit { margin-bottom: 28px; }
#hg-anfrage-formular .feldgruppe__titel { font-weight: 600; color: var(--color-primary); margin-bottom: 12px; padding: 0; }
#hg-anfrage-formular .feldgruppe__titel--verborgen { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#hg-anfrage-formular .choice-grid { display: flex; flex-wrap: wrap; gap: 16px; }
#hg-anfrage-formular .choice { flex: 1 1 220px; position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 20px; border: 1.5px solid var(--color-border); border-radius: var(--radius-md); background: var(--color-white); cursor: pointer; transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease; }
#hg-anfrage-formular .choice-grid--stapel { flex-direction: column; }
#hg-anfrage-formular .choice-grid--stapel > .choice { flex: 0 0 auto; }
#hg-anfrage-formular .choice-grid:not(.choice-grid--stapel) > .choice:not(:has(.choice__hint)) { flex: 1 1 120px; }
#hg-anfrage-formular .choice-grid--breit:not(.choice-grid--stapel) > .choice:not(:has(.choice__hint)) { flex: 1 1 220px; }
#hg-anfrage-formular .choice:not(:has(.choice__hint)) { align-items: center; padding: 14px 16px; }
#hg-anfrage-formular .choice:not(:has(.choice__hint)) input { align-self: center; margin-top: 0; }
#hg-anfrage-formular .choice:hover { border-color: var(--color-gold); }
#hg-anfrage-formular .choice input,
#hg-anfrage-formular .einwilligung input[type="checkbox"] { flex-shrink: 0; appearance: none; -webkit-appearance: none; width: 24px; height: 24px; margin: 0; padding: 0; border: 2px solid var(--color-border); border-radius: 7px; background: var(--color-white); cursor: pointer; transition: border-color 0.18s ease, background 0.18s ease; }
#hg-anfrage-formular .choice input { order: 2; align-self: flex-start; margin-top: 5px; }
#hg-anfrage-formular .choice:not(:has(.choice__icon)) input { margin-top: 1px; }
#hg-anfrage-formular .einwilligung input[type="checkbox"] { margin-top: 1px; }
#hg-anfrage-formular .choice input[type="radio"] { border-radius: 50%; }
#hg-anfrage-formular .choice input:checked,
#hg-anfrage-formular .einwilligung input[type="checkbox"]:checked { border-color: var(--color-primary); background: var(--color-primary); }
#hg-anfrage-formular .choice input[type="checkbox"]::after,
#hg-anfrage-formular .einwilligung input[type="checkbox"]::after { content: ""; display: block; width: 5px; height: 10px; margin: 2px auto 0; border: solid var(--color-white); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg) scale(0); transition: transform 0.15s ease; }
#hg-anfrage-formular .choice input[type="checkbox"]:checked::after,
#hg-anfrage-formular .einwilligung input[type="checkbox"]:checked::after { transform: rotate(45deg) scale(1); }
#hg-anfrage-formular .choice input[type="radio"]::after { content: ""; display: block; width: 8px; height: 8px; margin: 6px auto 0; border-radius: 50%; background: var(--color-white); transform: scale(0); transition: transform 0.15s ease; }
#hg-anfrage-formular .choice input[type="radio"]:checked::after { transform: scale(1); }
#hg-anfrage-formular .einwilligung,
#hg-anfrage-formular .form-field .einwilligung { display: flex; flex-direction: row; align-items: flex-start; gap: 12px; font-weight: 400; line-height: 1.55; }
#hg-anfrage-formular .einwilligung a { text-decoration: underline; }
#hg-anfrage-formular .einwilligung input[type="checkbox"]:focus-visible { outline: 2px solid var(--color-gold-text); outline-offset: 2px; }
#hg-anfrage-formular .choice__body { order: 1; flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
#hg-anfrage-formular .choice__kopf { display: flex; align-items: center; gap: 10px; }
#hg-anfrage-formular .choice__icon { flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 10px; background: var(--color-cream); color: var(--color-gold-text); transition: background 0.18s ease, color 0.18s ease; }
#hg-anfrage-formular .choice__icon svg { width: 17px; height: 17px; fill: currentColor; }
#hg-anfrage-formular .choice__title { font-weight: 600; color: var(--color-primary); }
#hg-anfrage-formular .choice__hint { font-size: 0.875rem; line-height: 1.5; color: var(--color-text-muted); }
#hg-anfrage-formular .choice:has(input:checked) { border-color: var(--color-primary); background: rgba(38, 66, 51, 0.04); box-shadow: 0 10px 24px -18px rgba(38, 66, 51, 0.8); }
#hg-anfrage-formular .choice:has(input:checked) .choice__icon { background: var(--color-primary); color: var(--color-white); }
#hg-anfrage-formular .choice:has(input:focus-visible) { outline: 2px solid var(--color-gold-text); outline-offset: 2px; }
#hg-anfrage-formular .conditional { display: none; margin-top: 14px; padding: 20px; border-left: 3px solid var(--color-gold); background: var(--color-cream); border-radius: 0 var(--radius-md) var(--radius-md) 0; }
#hg-anfrage-formular .conditional.is-open { display: block; }
#hg-anfrage-formular .upload-field { border: 1.5px dashed var(--color-border); border-radius: var(--radius-md); padding: 26px; text-align: center; background: var(--color-white); transition: border-color 0.18s ease, background 0.18s ease; }
#hg-anfrage-formular .upload-field:hover { border-color: var(--color-gold); background: var(--color-cream); }
#hg-anfrage-formular .upload-field i { font-size: 1.6rem; color: var(--color-gold-text); margin-bottom: 10px; display: block; }
#hg-anfrage-formular .upload-field label { font-weight: 600; color: var(--color-primary); cursor: pointer; text-decoration: underline; }
#hg-anfrage-formular .upload-field input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; }
#hg-anfrage-formular .upload-list { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 0.88rem; color: var(--color-text-muted); }
#hg-anfrage-formular .form-field.has-error .field-error { display: block; }
#hg-anfrage-formular .form-field.has-error input,
#hg-anfrage-formular .form-field.has-error select,
#hg-anfrage-formular .form-field.has-error textarea { border-color: #a8322b; }
#hg-anfrage-formular .step-error,
#hg-anfrage-formular .form-error { display: none; align-items: center; gap: 10px; margin-top: 20px; padding: 13px 16px; border-radius: var(--radius-md); background: rgba(168, 50, 43, 0.09); color: #8f2b24; font-size: 0.9rem; font-weight: 500; }
#hg-anfrage-formular .step-error.is-visible,
#hg-anfrage-formular .form-error.is-visible { display: flex; }

@media (max-width: 700px) {
  #hg-anfrage-formular .wizard-progress { flex-wrap: wrap; gap: 6px; margin-bottom: 28px; }
  #hg-anfrage-formular .wizard-progress::before { content: attr(data-stand); flex: 0 0 100%; margin-bottom: 10px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.02em; color: var(--color-primary); }
  #hg-anfrage-formular .wizard-progress__item { flex: 1 1 0; min-width: 0; font-size: 0; gap: 0; padding-top: 0; border-top-width: 4px; border-radius: 2px; }
  #hg-anfrage-formular .wizard-progress__num { display: none; }
  #hg-anfrage-formular .wizard-nav { flex-direction: column-reverse; align-items: stretch; }
  #hg-anfrage-formular .wizard-nav .btn { width: 100%; }
}

@media (max-width: 600px) {
  #hg-anfrage-formular .wizard-step__head { margin-bottom: 22px; }
  #hg-anfrage-formular .feldgruppe { margin-bottom: 20px; }
  #hg-anfrage-formular .feldgruppe--weit { margin-bottom: 24px; }
  #hg-anfrage-formular .choice-grid { gap: 10px; }
  #hg-anfrage-formular .choice { padding: 14px 16px; gap: 12px; }
  #hg-anfrage-formular .choice__icon { width: 30px; height: 30px; border-radius: 9px; }
  #hg-anfrage-formular .choice__icon svg { width: 15px; height: 15px; }
  #hg-anfrage-formular .choice input { margin-top: 3px; }
  #hg-anfrage-formular .choice:not(:has(.choice__icon)) input { margin-top: 1px; }
  #hg-anfrage-formular .wizard-nav { margin-top: 28px; padding-top: 20px; }
}

@media (max-width: 360px) {
  #hg-anfrage-formular .btn { padding: 14px 22px; font-size: 0.92rem; }
}
