/* Ankauf-Formular — Analyse Tonich 1.12 */

.hzm-pf {
  max-width: 860px;
}

.hzm-pf__leadtime {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
  padding: 1rem 1.25rem;
  background-color: #f4f7f9;
  border-left: 3px solid var(--dwg-accent, #147EB3);
}

.hzm-pf__leadtime .material-icons {
  color: var(--dwg-accent, #147EB3);
  font-size: 1.5rem;
  flex: none;
}

.hzm-pf__leadtime p {
  margin: 0;
  line-height: 1.55;
}

.hzm-pf__group {
  border: none;
  margin: 0 0 1.5rem;
  padding: 0;
}

.hzm-pf__group legend {
  font-family: var(--dwg-font-heading, inherit);
  font-size: 0.9375rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--dwg-text-dark, #253237);
  width: 100%;
  margin-bottom: 0.875rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--dwg-border, #e0e0e0);
}

.hzm-pf__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.hzm-pf__field {
  margin-bottom: 1rem;
}

.hzm-pf__field label {
  display: block;
  margin-bottom: 0.3125rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--dwg-text-dark, #253237);
}

.hzm-pf__field input[type="text"],
.hzm-pf__field input[type="email"],
.hzm-pf__field input[type="tel"],
.hzm-pf__field input[type="file"],
.hzm-pf__field select,
.hzm-pf__field textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--dwg-border, #e0e0e0);
  border-radius: 0;
  background-color: #fff;
  font-size: 0.9375rem;
  font-family: inherit;
}

.hzm-pf__field textarea {
  min-height: 110px;
  resize: vertical;
}

.hzm-pf__field input:focus,
.hzm-pf__field select:focus,
.hzm-pf__field textarea:focus {
  outline: 2px solid var(--dwg-accent, #147EB3);
  outline-offset: 1px;
  border-color: var(--dwg-accent, #147EB3);
}

.hzm-pf__hint {
  display: block;
  margin-top: 0.3125rem;
  font-size: 0.8125rem;
  color: var(--dwg-text-light, #707070);
  line-height: 1.4;
}

.hzm-pf__field--checkbox label {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-weight: 400;
  font-size: 0.875rem;
  line-height: 1.45;
  cursor: pointer;
}

.hzm-pf__field--checkbox input {
  margin-top: 0.2rem;
  width: 18px;
  height: 18px;
  flex: none;
}

/* Honeypot — für Menschen unsichtbar, aber im DOM und für Bots ausfüllbar.
   Kein display:none, das erkennen viele Bots. */
.hzm-pf__hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hzm-pf__captcha {
  margin-bottom: 1rem;
}

.hzm-pf__submit button {
  min-height: 48px;
  padding-inline: 2rem;
}

.hzm-pf__loading {
  display: inline-block;
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: hzm-pf-spin 0.7s linear infinite;
  vertical-align: -2px;
}

@keyframes hzm-pf-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .hzm-pf__loading { animation-duration: 2s; }
}

.hzm-pf__messages {
  margin-top: 1.25rem;
  padding: 0.875rem 1.125rem;
  border-left: 3px solid transparent;
  font-size: 0.9375rem;
  line-height: 1.5;
}

.hzm-pf__messages--success {
  background-color: #e8f5ec;
  border-left-color: #1e7e34;
  color: #14532d;
}

.hzm-pf__messages--error {
  background-color: #fdecee;
  border-left-color: #dc3545;
  color: #7f1d24;
}

@media (max-width: 575.98px) {
  .hzm-pf__row {
    grid-template-columns: 1fr;
  }

  .hzm-pf__submit button {
    width: 100%;
  }
}
