/* Sonderbestellung /sonderbestellung (hanz_sonderbestellung) */

.hanz-sb {
  max-width: 880px;
}

.hanz-sb__lead {
  font-size: 1.0625rem;
  margin-bottom: 0.75rem;
}

.hanz-sb__steps {
  margin: 0 0 1.75rem;
  padding: 1rem 1.25rem 1rem 2.5rem;
  background-color: #f4f7f9;
  border-left: 3px solid var(--dwg-accent, #147eb3);
  line-height: 1.55;
}

.hanz-sb__steps li + li {
  margin-top: 0.25rem;
}

.hanz-sb__group {
  border: 0;
  margin: 0 0 1.75rem;
  padding: 0;
  min-width: 0;
}

.hanz-sb__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);
}

.hanz-sb__row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0 1rem;
}

.hanz-sb__row--zip {
  grid-template-columns: minmax(90px, 1fr) 2fr;
}

.hanz-sb__field {
  margin-bottom: 1rem;
  min-width: 0;
}

.hanz-sb__field .form-label {
  font-weight: 600;
  margin-bottom: 0.3125rem;
}

.hanz-sb__req {
  color: #c0392b;
}

.hanz-sb__hint,
.hanz-sb .form-text {
  font-size: 0.8125rem;
  color: #6c757d;
  font-weight: 400;
}

/* Artikelzeilen: Beschreibung breit, Menge und Preis schmal */
.hanz-sb__item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 6.5rem 9rem;
  gap: 0 1rem;
  align-items: start;
}

.hanz-sb__item + .hanz-sb__item {
  padding-top: 0.75rem;
  border-top: 1px dashed var(--dwg-border, #e0e0e0);
}

.hanz-sb__item:has(.hanz-sb__remove:not([hidden])) {
  padding-right: 2.25rem;
}

.hanz-sb__remove {
  position: absolute;
  right: 0;
  top: 1.85rem;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 0;
  background: none;
  color: #6c757d;
  cursor: pointer;
}

.hanz-sb__item + .hanz-sb__item .hanz-sb__remove {
  top: 2.6rem;
}

.hanz-sb__remove:hover,
.hanz-sb__remove:focus-visible {
  color: #c0392b;
}

.hanz-sb__add {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0 0 1.25rem;
}

.hanz-sb__add .material-icons {
  font-size: 1.125rem;
}

.hanz-sb__checks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 0.25rem 1rem;
}

.hanz-sb__document {
  padding: 1rem 1.25rem 0.25rem;
  background-color: #fbf8f1;
  border-left: 3px solid #d4a017;
}

/* Mit JavaScript nur sichtbar, wenn Waffe/Munition gewählt ist */
.hanz-sb__document[data-hidden] {
  display: none;
}

.hanz-sb__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hanz-sb__confirm {
  margin-bottom: 1.25rem;
}

.hanz-sb__confirm .form-check-label {
  line-height: 1.5;
}

.hanz-sb__confirm .hanz-sb__hint {
  margin: 0.5rem 0 0 1.75rem;
}

.hanz-sb__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1.25rem;
}

.hanz-sb__submit .hanz-sb__hint {
  margin: 0;
}

.hanz-sb__thanks .hanz-sb__reference {
  font-size: 1.125rem;
}

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

  .hanz-sb__field--name {
    grid-column: 1 / -1;
  }

  .hanz-sb__item:has(.hanz-sb__remove:not([hidden])) {
    padding-right: 0;
  }

  .hanz-sb__remove,
  .hanz-sb__item + .hanz-sb__item .hanz-sb__remove {
    top: 0.75rem;
  }

  .hanz-sb__item:first-child .hanz-sb__remove {
    top: 0;
  }

  .hanz-sb__submit .btn {
    width: 100%;
  }
}
