:root {
  --firmenkunden-ink: #17232b;
  --firmenkunden-muted: #60707b;
  --firmenkunden-line: #d9e2e8;
  --firmenkunden-accent: #276b73;
  --firmenkunden-accent-strong: #1f5960;
  --firmenkunden-surface: #ffffff;
  --firmenkunden-soft: #f4f8f8;
  --firmenkunden-warm: #f7f1e8;
}

.site-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.85rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent-soft) 70%, #ffffff);
  color: var(--accent-ink);
  font-weight: 700;
}

.firmenkunden-shell {
  display: block;
  align-items: stretch;
  justify-content: stretch;
  padding: clamp(1rem, 3vw, 2rem);
}

.firmenkunden-wizard {
  width: 100%;
}

.flow-heading {
  max-width: 780px;
  margin-bottom: 1.5rem;
}

.flow-copy {
  color: var(--firmenkunden-muted);
}

.section-label {
  margin-bottom: 0.25rem;
  color: var(--firmenkunden-muted);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.wizard-progress {
  display: flex;
  border: 1px solid var(--firmenkunden-line);
  border-radius: 8px;
  background: var(--firmenkunden-surface);
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(16, 36, 44, 0.04);
}

.wizard-progress .nav-item {
  flex: 1 1 0;
  min-width: 0;
  position: relative;
  z-index: var(--step-z, 1);
}

.wizard-progress .nav-link {
  --step-bg: var(--firmenkunden-soft);
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 74px;
  padding: 0.85rem 1rem 0.85rem 1.35rem;
  border: 0;
  border-radius: 0;
  color: var(--firmenkunden-muted);
  background: var(--step-bg);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  overflow: visible;
}

.wizard-progress .nav-link:focus-visible {
  outline: 3px solid rgba(39, 107, 115, 0.32);
  outline-offset: -3px;
}

.wizard-progress .nav-item:not(:last-child) .nav-link::before,
.wizard-progress .nav-item:not(:last-child) .nav-link::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  pointer-events: none;
}

.wizard-progress .nav-item:not(:last-child) .nav-link::before {
  right: -22px;
  width: 22px;
  background: var(--firmenkunden-line);
  z-index: 2;
}

.wizard-progress .nav-item:not(:last-child) .nav-link::after {
  top: 1px;
  bottom: 1px;
  right: -20px;
  width: 20px;
  background: var(--step-bg);
  z-index: 3;
}

.wizard-progress .nav-item:not(:first-child) .nav-link {
  padding-left: 2rem;
}

.wizard-progress .nav-link.active {
  --step-bg: #eef8f4;
  color: var(--firmenkunden-ink);
  box-shadow: inset 0 -4px 0 var(--firmenkunden-accent);
}

.wizard-progress .nav-item:not(:last-child) .nav-link.active::after {
  background: linear-gradient(
    to bottom,
    var(--step-bg) calc(100% - 4px),
    var(--firmenkunden-accent) calc(100% - 4px)
  );
}

.wizard-progress .step-index {
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  background: #9caab5;
  font-weight: 700;
  font-size: 0.88rem;
}

.wizard-progress .nav-link.active .step-index {
  background: var(--firmenkunden-accent);
}

.wizard-progress .step-copy {
  min-width: 0;
}

.wizard-progress .step-title {
  display: block;
  color: var(--firmenkunden-ink);
  font-weight: 700;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-progress .step-caption {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: var(--firmenkunden-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.flow-panel {
  border: 1px solid var(--firmenkunden-line);
  border-radius: 8px;
  padding: clamp(1rem, 2.4vw, 1.5rem);
  background: rgba(255, 255, 255, 0.78);
}

.flow-panel legend,
.flow-panel h2 {
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--firmenkunden-ink);
}

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

.option-grid-compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option-tile {
  min-height: 116px;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid var(--firmenkunden-line);
  border-radius: 8px;
  background: var(--firmenkunden-surface);
  cursor: pointer;
}

.option-tile:has(input:checked) {
  border-color: var(--firmenkunden-accent);
  box-shadow: inset 0 0 0 2px rgba(39, 107, 115, 0.16);
  background: #eef8f4;
}

.option-tile input {
  margin-top: 0.2rem;
  accent-color: var(--firmenkunden-accent);
}

.option-tile strong,
.option-tile small {
  display: block;
}

.option-tile strong {
  color: var(--firmenkunden-ink);
  line-height: 1.2;
}

.option-tile small {
  margin-top: 0.25rem;
  color: var(--firmenkunden-muted);
  line-height: 1.3;
}

.flow-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.form-heading {
  margin-bottom: 1rem;
}

.form-section {
  display: grid;
  gap: 0.85rem;
}

.form-section + .form-section {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--firmenkunden-line);
}

.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.field-shell {
  min-width: 0;
}

.field-shell-wide {
  grid-column: 1 / -1;
}

.field-shell legend {
  margin-bottom: 0.5rem;
  float: none;
  width: auto;
  font-size: 1rem;
  font-weight: 700;
}

.required-mark {
  color: #a33d2d;
}

.field-radio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.65rem;
}

.choice-tile {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--firmenkunden-line);
  border-radius: 8px;
  background: var(--firmenkunden-surface);
  cursor: pointer;
}

.choice-tile:has(input:checked) {
  border-color: var(--firmenkunden-accent);
  background: #eef8f4;
}

.choice-tile input {
  accent-color: var(--firmenkunden-accent);
}

.btn-primary {
  --bs-btn-bg: var(--firmenkunden-accent);
  --bs-btn-border-color: var(--firmenkunden-accent);
  --bs-btn-hover-bg: var(--firmenkunden-accent-strong);
  --bs-btn-hover-border-color: var(--firmenkunden-accent-strong);
  --bs-btn-focus-shadow-rgb: 39, 107, 115;
}

.review-list {
  display: grid;
  grid-template-columns: minmax(120px, 0.45fr) 1fr;
  gap: 0.55rem 1rem;
  margin-bottom: 1.25rem;
}

.review-list dt {
  color: var(--firmenkunden-muted);
  font-weight: 700;
}

.review-list dd {
  margin-bottom: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.confirmation-row {
  padding: 1rem 1rem 1rem 2.6rem;
  border: 1px solid var(--firmenkunden-line);
  border-radius: 8px;
  background: var(--firmenkunden-warm);
}

@media (max-width: 991.98px) {
  .option-grid,
  .option-grid-compact,
  .field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767.98px) {
  .wizard-progress {
    flex-direction: column;
  }

  .wizard-progress .nav-link {
    min-height: 62px;
    padding: 0.8rem 1rem;
  }

  .wizard-progress .nav-item:not(:first-child) .nav-link {
    padding-left: 1rem;
  }

  .wizard-progress .nav-item:not(:last-child) .nav-link::before,
  .wizard-progress .nav-item:not(:last-child) .nav-link::after {
    display: none;
  }

  .wizard-progress .nav-item:not(:last-child) .nav-link {
    border-bottom: 1px solid var(--firmenkunden-line);
  }

  .wizard-progress .step-caption {
    white-space: normal;
  }

  .review-list {
    grid-template-columns: 1fr;
  }

  .flow-actions {
    justify-content: stretch;
  }

  .flow-actions .btn {
    flex: 1 1 140px;
  }
}
