/* SOLANERO Formular-UX "Calm Simplicity" -- gemeinsame Komponenten-/Token-Schicht.
   Marker: SOLANERO_FORM_UX_CALM_SIMPLICITY_20260904_V1
   Quelle: docs/SOLANERO_FORMULAR_UX_CALM_SIMPLICITY_DESIGN_SYSTEM_20260904.md
           config/solanero_form_ux_calm_simplicity_contract_v1.json
   Ersetzt die bisher pro Formularseite duplizierten .form-field/.step-title/
   .checkbox-row/.form-error-Regeln durch eine einzige Quelle. Pilot (B1.9):
   anfrage.html, service-anfrage.html, partner-werden.html. Keine Apple-
   Markenkopie -- nur Bedienprinzipien (Klarheit, progressive Offenlegung,
   ein Primaer-CTA, ruhige Flaeche). Bestehende SOLANERO-Tokens (--deep,
   --text, --border, --sans, --serif ...) aus assets/style.css werden
   uebernommen, nicht ersetzt. */

.sol-form-field { margin-bottom: 18px; }
.sol-form-field label,
.sol-form-field > .sol-form-label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 7px;
  line-height: 1.4;
}
.sol-form-field input,
.sol-form-field select,
.sol-form-field textarea,
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.4;
  color: var(--text);
  background: var(--white);
  outline: none;
  box-sizing: border-box;
  transition: border-color .15s, box-shadow .15s;
}
.sol-form-field textarea,
.form-field textarea { min-height: 96px; resize: vertical; padding-top: 14px; }
.sol-form-field input:focus,
.sol-form-field select:focus,
.sol-form-field textarea:focus,
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  border-color: var(--deep);
  box-shadow: 0 0 0 3px rgba(22,62,82,.12);
}
.sol-form-field-hint,
.form-field-hint {
  font-size: 13px;
  color: var(--muted);
  margin-top: 6px;
  line-height: 1.55;
}

/* Label bleibt sichtbar oberhalb der Eingabe -- Placeholder ist niemals
   alleiniger Ersatz (siehe Design-System Abschnitt 4). Diese Regel dient nur
   als Absicherung, falls ein Feld ausnahmsweise nur mit Placeholder auffaellt. */
.sol-form-field input::placeholder,
.form-field input::placeholder { color: var(--muted); opacity: .85; }

/* Auswahlkarten fuer einfache Ja/Nein- bzw. Kurzauswahlentscheidungen statt
   Checkbox-Listen (Design-System Abschnitt 5). Mindestens 44x44px Touchziel. */
.sol-choice-card,
.chip-opt {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 11px 16px;
  border-radius: 10px;
}

.sol-checkbox-row,
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.6;
  min-height: 44px;
}
.sol-checkbox-row input,
.checkbox-row input {
  margin-top: 3px;
  flex-shrink: 0;
  accent-color: var(--deep);
  width: 20px;
  height: 20px;
}

/* Fortschritt: kleine, ruhige Anzeige statt Behoerdenoptik. */
.sol-progress-label,
.progress-label { font-size: 13px; color: var(--muted); margin-bottom: 22px; font-weight: 500; }
.sol-step-title,
.step-title {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
  line-height: 1.3;
}
.sol-step-sub,
.step-sub { font-size: 15px; color: var(--text-mid); margin-bottom: 20px; line-height: 1.65; }

/* Fehlerzustand: Inline am Feld + kurze Zusammenfassung, kein technischer Code. */
.sol-form-error,
.form-error {
  color: #b3261e;
  font-size: 14px;
  display: none;
  margin-bottom: 12px;
  padding: 10px 14px;
  background: #fbeceb;
  border: 1px solid #f0c9c6;
  border-radius: 8px;
  line-height: 1.5;
}
.sol-form-error.show,
.form-error.show { display: block; }
.sol-form-field.has-error input,
.sol-form-field.has-error select,
.sol-form-field.has-error textarea,
.form-field.has-error input,
.form-field.has-error select,
.form-field.has-error textarea {
  border-color: #b3261e;
}
.sol-field-error {
  display: none;
  color: #b3261e;
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.5;
}
.sol-field-error.show { display: block; }

/* Ladezustand: Button gesperrt, verstaendlicher Text statt endlosem Spinner. */
.sol-btn-loading { position: relative; pointer-events: none; opacity: .82; }
.sol-btn-loading .sol-btn-label { visibility: hidden; }
.sol-btn-loading::after {
  content: "";
  position: absolute; left: 50%; top: 50%;
  width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid rgba(255,255,255,.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: sol-spin .8s linear infinite;
}
@media (prefers-reduced-motion: reduce) {
  .sol-btn-loading::after { animation-duration: 1.6s; }
}
@keyframes sol-spin { to { transform: rotate(360deg); } }

/* Erfolgszustand: nur nach echter Serverbestaetigung eingeblendet (B1.4). */
.sol-form-success { display: none; text-align: center; padding: 40px 20px; }
.sol-form-success.show { display: block; }

/* Screenreader-Statusregion fuer Lade-/Fehler-/Erfolgsmeldungen. */
.sol-sr-live {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* Sichtbarer Fokus fuer Tastaturbedienung (Accessibility-Gate). */
.sol-form-field input:focus-visible,
.sol-form-field select:focus-visible,
.sol-form-field textarea:focus-visible,
.form-field input:focus-visible,
.form-field select:focus-visible,
.form-field textarea:focus-visible,
.sol-checkbox-row input:focus-visible,
.checkbox-row input:focus-visible {
  outline: 2px solid var(--deep);
  outline-offset: 2px;
}

/* Zusammenfassung vor finalem Absenden (Review-Schritt). */
.sol-review-card {
  border: 1.5px solid var(--border);
  border-radius: 16px;
  padding: 20px 22px;
  margin-bottom: 14px;
  background: var(--white);
}
.sol-review-card-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 10px;
}
.sol-review-card-title { font-size: 13px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.sol-review-edit { font-size: 13px; font-weight: 600; color: var(--deep); background: none; border: none; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; padding: 4px; min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 600px) {
  .sol-form-field input,
  .sol-form-field select,
  .sol-form-field textarea,
  .form-field input,
  .form-field select,
  .form-field textarea { font-size: 17px; }
  .sol-form-field label,
  .form-field label { font-size: 15px; }
  .sol-step-sub,
  .step-sub { font-size: 15.5px; }
}

@media (prefers-reduced-motion: reduce) {
  .sol-form-field input,
  .sol-form-field select,
  .sol-form-field textarea,
  .form-field input,
  .form-field select,
  .form-field textarea { transition: none; }
}
