.kfz .page-title {
  margin-bottom: 0.75rem;
}

.kfz > .eyebrow {
  margin-top: 1.5rem;
}

.kfz .lead {
  max-width: 44rem;
}

.kfz-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1rem, 3vw, 2rem);
  margin: 2rem 0;
}

.kfz-panel {
  min-width: 0;
  gap: 0.85rem;
}

.kfz-panel h2,
.kfz-panel p {
  margin: 0;
}

.kfz-fields {
  display: grid;
  gap: 0.55rem;
}

.kfz-fields label {
  display: block;
  margin-top: 0.5rem;
  font-weight: 700;
}

.kfz-fields select,
.kfz-fields input {
  display: block;
  width: 100%;
  min-height: 2.85rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid #9aaebc;
  border-radius: 0.5rem;
  background-color: #fff;
  color: #173b59;
  font: inherit;
}

.kfz-fields select {
  appearance: none;
  padding-right: 2.5rem;
  background-image: linear-gradient(45deg, transparent 50%, #31536f 50%), linear-gradient(135deg, #31536f 50%, transparent 50%);
  background-position: right 1rem center, right 0.7rem center;
  background-size: 0.3rem 0.3rem;
  background-repeat: no-repeat;
}

#full-deductible,
#sf-full {
  margin-top: 0.55rem;
}

.kfz-fields input[readonly] {
  background: #f0f4f7;
}

.kfz-fields :focus-visible,
.kfz-check input:focus-visible {
  outline: 2px solid #245c84;
  outline-offset: 2px;
}

.kfz-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  padding: 0.85rem;
  border: 1px solid #cad7e0;
  border-radius: 0.6rem;
  cursor: pointer;
}

.kfz-check input {
  flex: none;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.15rem 0 0;
  accent-color: #245c84;
}

.kfz-check small {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.875rem;
}

.kfz-totals {
  margin: 0;
  background: #edf4f9;
  border-radius: 0.7rem;
  padding: 0.25rem 1rem;
}

.kfz-totals div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.8rem;
  padding: 0.65rem 0;
}

.kfz-totals div + div {
  border-top: 1px solid #c9dae7;
}

.kfz-totals dd {
  flex-shrink: 0;
  margin: 0;
  color: #173b59;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.kfz-total dd {
  font-size: clamp(1rem, 2.4vw, 1.45rem);
}

.kfz .kfz-error {
  color: #a1282c;
}

.kfz-sources {
  max-width: 55rem;
}

@media (max-width: 760px) {
  .kfz-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
