/* ============================================================
   formular.css – Kontaktformular-Sektion (#kontakt)
   Verwendet in: template-parts/kontakt-formular.php
   Abhängig von: tokens.css, base.css
   ============================================================ */

/* ---------- Sektion & Einleitung ---------- */
/* .ht-kontakt – die ganze Sektion (heller Grund). */
.ht-kontakt{background:var(--gray);color:var(--ink);padding:6.875rem 0 10rem}
/* .ht-kontakt__intro – zentrierter Einleitungsblock. */
.ht-kontakt__intro{text-align:center;max-width:42.5rem;margin:0 auto 2.375rem}
/* .ht-kontakt__title – H2 der Sektion. (.ht-eyebrow/.ht-title-dim siehe base.css) */
.ht-kontakt__title{font-size:clamp(1.875rem,3.8vw,3rem);font-weight:700;line-height:1.08;letter-spacing:-.02em;margin:0 0 1.125rem;color:#0a0a0a}
/* .ht-kontakt__lead – Fließtext unter der Überschrift. */
.ht-kontakt__lead{font-size:1.0625rem;line-height:1.6;color:var(--muted-light);margin:0}

/* ---------- Geteilte Karte (Formular + Berater-Panel) ---------- */
/* .contact-card – zweispaltige Karte, max. Breite, zentriert. */
.contact-card{display:grid;grid-template-columns:1.12fr .88fr;background:#fff;border:1px solid var(--line-light);border-radius:0;overflow:hidden;box-shadow:0 30px 70px rgba(10,10,10,.10);max-width:66.25rem;margin:0 auto}

/* ---------- Formular (links) ---------- */
/* .ht-form – das Formular-Element. .ht-form--stepped wird per JS gesetzt
   und blendet die Mehrschritt-Logik ein; ohne JS sind alle Schritte sichtbar. */
.ht-form{padding:2.375rem 2.5rem;display:flex;flex-direction:column;min-height:34.25rem}

/* .ht-form__steps – Zeile der Schritt-Indikatoren. */
.ht-form__steps{display:flex;align-items:center;gap:0.5rem;margin-bottom:0.875rem}
/* .ms-ind – einzelner Indikator; .is-active / .is-done färben ihn orange. */
.ms-ind{display:flex;align-items:center;gap:0.5625rem}
.ms-num{flex:none;width:1.75rem;height:1.75rem;border-radius:50%;border:2px solid var(--line-light);background:#fff;color:#9a9aa0;font-size:0.8125rem;font-weight:700;display:flex;align-items:center;justify-content:center;transition:all .2s ease}
.ms-lbl{font-size:0.84375rem;font-weight:600;color:#9a9aa0;transition:color .2s ease}
.ms-ind.is-active .ms-num,.ms-ind.is-done .ms-num{background:var(--orange)!important;color:#fff!important;border-color:var(--orange)!important}
.ms-ind.is-active .ms-lbl{color:#0a0a0a!important}
/* .ht-form__steps-line – Verbindungslinie zwischen den Indikatoren. */
.ht-form__steps-line{flex:1;height:1px;background:var(--line-light);min-width:0.625rem}
/* .ht-form__progress(-fill) – Fortschrittsbalken. */
.ht-form__progress{height:0.1875rem;background:var(--line-light);margin-bottom:1.75rem}
.ht-form__progress-fill{height:100%;width:33.33%;background:var(--orange);transition:width .35s cubic-bezier(.2,.7,.2,1)}

/* .ht-form__step – ein Schritt. Ohne JS alle sichtbar; mit .ht-form--stepped
   nur der aktuelle (.is-current). */
.ht-form__step{display:flex;flex-direction:column;flex:1}
.ht-form--stepped .ht-form__step{display:none}
.ht-form--stepped .ht-form__step.is-current{display:flex}
/* .ht-form__h / __hint – Überschrift und Hinweistext je Schritt. */
.ht-form__h{font-size:1.3125rem;font-weight:700;margin:0 0 0.375rem;color:#0a0a0a}
.ht-form__hint{font-size:0.90625rem;color:var(--muted-light);margin:0 0 1.25rem}

/* ---------- Auswahlkarten (Schritt 1) ---------- */
/* .ht-form__choices – vertikale Liste der Auswahlkarten. */
.ht-form__choices{display:flex;flex-direction:column;gap:0.6875rem}
/* .choice-card – auswählbare Karte; .is-sel markiert die Auswahl. */
.choice-card{display:flex;align-items:center;gap:1rem;width:100%;text-align:left;background:#fff;border:1.5px solid var(--line-light);border-radius:0;padding:1.125rem 1.25rem;cursor:pointer;font-family:var(--font);transition:border-color .18s ease,background .18s ease,transform .12s ease}
.choice-card:hover{border-color:var(--orange);background:#fffaf5}
.choice-card.is-sel{border-color:var(--orange);background:rgba(249,115,22,.06)}
.ht-choice__icon{flex:none;width:2.75rem;height:2.75rem;border-radius:0;background:rgba(249,115,22,.1);display:flex;align-items:center;justify-content:center}
.ht-choice__text{flex:1;min-width:0}
.ht-choice__title{display:block;font-size:0.96875rem;font-weight:700;color:#0a0a0a}
.ht-choice__sub{display:block;font-size:0.8125rem;color:var(--muted-light)}
/* .cc-check – Häkchen rechts, nur bei Auswahl sichtbar. */
.cc-check{flex:none;width:1.375rem;height:1.375rem;border-radius:0;background:var(--orange);display:flex;align-items:center;justify-content:center;opacity:0;transition:opacity .15s ease}
.choice-card.is-sel .cc-check{opacity:1}

/* ---------- Felder (Schritt 2 & 3) ---------- */
/* .ht-form__fields – Feldgruppe. */
.ht-form__fields{display:flex;flex-direction:column;gap:0.875rem}
/* .ht-label – Feldbeschriftung. */
.ht-label{display:block;font-size:0.8125rem;color:var(--muted-light);margin-bottom:0.4375rem;font-weight:600}
/* .ht-req – rotes Pflichtfeld-Sternchen. .ht-opt – „(optional)". */
.ht-req{color:var(--orange-text)}
.ht-opt{font-weight:400}
/* .form-row – zweispaltige Feldzeile (E-Mail + Telefon). */
.form-row{display:grid;grid-template-columns:1fr 1fr;gap:0.875rem}
/* .field – Eingabefeld; .field--area für Textarea. */
.field{width:100%;height:3rem;background:#fff;border:1.5px solid var(--line-light);border-radius:0;color:#0a0a0a;padding:0 0.9375rem;font-size:0.9375rem;font-family:var(--font);outline:none;transition:border-color .2s ease,box-shadow .2s ease}
.field--area{height:auto;padding:0.875rem 0.9375rem;resize:vertical}
.field:focus{border-color:var(--orange);box-shadow:0 0 0 3px rgba(249,115,22,.14)}
/* .ht-consent – Datenschutz-Einwilligung. */
.ht-consent{display:flex;gap:0.625rem;align-items:flex-start}
.ht-consent__box{flex:none;width:1.125rem;height:1.125rem;margin-top:0.125rem;accent-color:var(--orange);cursor:pointer}
.ht-consent__label{font-size:0.8125rem;line-height:1.5;color:var(--muted-light);cursor:pointer}
/* .ht-link – orange unterstrichener Inline-Link (z. B. zur Datenschutzerklärung). */
.ht-link{color:var(--orange);text-decoration:underline;text-underline-offset:2px}

/* ---------- Status & Buttons ---------- */
/* .ht-form__status – Hinweis-/Fehlerzeile; .is-ok grün, .is-error orange. */
.ht-form__status{font-size:0.84375rem;line-height:1.4;margin-top:0.875rem;min-height:1.125rem;font-weight:600}
.ht-form__status.is-ok{color:#1F8A5B}
.ht-form__status.is-error{color:var(--orange)}
/* .ht-form__actions – Button-Zeile. */
.ht-form__actions{display:flex;justify-content:space-between;align-items:center;gap:0.75rem;margin-top:1.125rem}
/* .ht-btn-back / -next / -submit – Steuer-Buttons. Ohne JS ist nur „Senden"
   sichtbar; das JS blendet Zurück/Weiter passend ein. */
.ht-btn-back{display:none;align-items:center;gap:0.4375rem;height:3rem;padding:0 1.375rem;background:#fff;color:#0a0a0a;border:1.5px solid var(--line-light);border-radius:0;font-size:0.9375rem;font-weight:600;cursor:pointer;font-family:var(--font)}
.ht-btn-next{display:none;align-items:center;gap:0.5rem;height:3rem;padding:0 1.875rem;background:var(--orange);color:#fff;border:none;border-radius:0;font-size:0.9375rem;font-weight:600;cursor:pointer;font-family:var(--font)}
.ht-btn-submit{display:inline-flex;align-items:center;gap:0.5rem;height:3rem;padding:0 1.75rem;background:var(--orange);color:#fff;border:none;border-radius:0;font-size:0.9375rem;font-weight:600;cursor:pointer;font-family:var(--font)}

/* ---------- Berater-Panel (rechts) ---------- */
/* .ht-advisor – oranges Panel mit Rasterhintergrund. */
.ht-advisor{background-color:#F97316;background-image:linear-gradient(rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.07) 1px,transparent 1px),linear-gradient(160deg,#F97316 0%,#EA580C 100%);background-size:2.875rem 2.875rem,2.875rem 2.875rem,100% 100%;color:#fff;padding:2.375rem 2.25rem;display:flex;flex-direction:column}
.ht-advisor__head{display:flex;align-items:center;gap:0.9375rem;margin-bottom:1.75rem}
.ht-advisor__avatar{flex:none;width:4.5rem;height:4.5rem;border-radius:0;overflow:hidden;border:2px solid rgba(255,255,255,.25)}
.ht-advisor__avatar-img{width:100%;height:100%;object-fit:cover;object-position:center top}
.ht-advisor__id{display:flex;flex-direction:column;gap:0.375rem}
.ht-advisor__name{font-size:1.3125rem;font-weight:700;line-height:1.15}
.ht-advisor__role{font-size:0.9375rem;color:rgba(255,255,255,.88)}
.ht-advisor__lead{font-size:1.1875rem;font-weight:700;margin-top:0.75rem;margin-bottom:1.25rem}
.ht-advisor__list{display:flex;flex-direction:column;gap:1rem}
.ht-advisor__item{display:flex;align-items:flex-start;gap:0.75rem}
.ht-advisor__check{flex:none;margin-top:0.3125rem;width:1.375rem;height:1.375rem;border-radius:0;background:rgba(255,255,255,.22);display:flex;align-items:center;justify-content:center}
.ht-advisor__text{font-size:0.875rem;line-height:1.5}
.ht-advisor__contact{margin-top:auto;padding-top:1.375rem;border-top:1px solid rgba(255,255,255,.28);display:flex;flex-direction:column;gap:1rem}
.ht-advisor__crow{display:flex;align-items:center;gap:0.8125rem}
.ht-advisor__cicon{flex:none;width:2.375rem;height:2.375rem;border-radius:0;background:rgba(255,255,255,.16);display:flex;align-items:center;justify-content:center}
.ht-advisor__clabel{font-size:0.75rem;color:rgba(255,255,255,.82)}
.ht-advisor__cvalue{font-size:1rem;font-weight:700;color:#fff;text-decoration:none}

/* ---------- Karte (Google Maps) ---------- */
.ht-map{max-width:66.25rem;margin:2.5rem auto 0;position:relative;height:21.25rem;border:1px solid var(--line-light);border-radius:0;overflow:hidden;box-shadow:0 30px 70px rgba(10,10,10,.10)}
.ht-map__frame{position:absolute;inset:0;width:100%;height:100%;border:0;filter:grayscale(.1)}

@media(max-width:1024px){
  .ht-kontakt{padding:6rem 0!important}
  /* minmax(0,1fr) + min-width:0 -> Spalte darf schrumpfen, kein Grid-Blowout / Overflow */
  .contact-card{grid-template-columns:minmax(0,1fr)}
  .ht-form,.ht-advisor{min-width:0}
  .form-row{grid-template-columns:1fr}
}
@media(max-width:600px){
  .ht-kontakt{padding:4.5rem 0!important}
  /* Stepper kompakt: nur die aktive Schrittbezeichnung zeigen (volle Labels zu breit fürs Phone) */
  .ms-lbl{display:none}
  .ms-ind.is-active .ms-lbl{display:inline}
}