/* Auftrags-Wizard + B2B-Modul -- Figma "ATZ 2026 - Zukunft"
   (Canvas "Auftrag erstellen - Mobile" / "- Desktop").

   Markup:    web/templates/web/create_transport.html
              web/templates/web/partials/_order_wizard_*.html
              web/templates/web/partials/_b2b_consent_dialog.html
              web/templates/web/b2b_payment.html, b2b_order_active.html
   Verhalten: web/static/web/js/order-wizard.js

   Mobile first: die Basis-Styles beschreiben das 402px-Layout, die
   Media-Queries (>=768px / >=992px) bauen daraus das Desktop-Layout.
   Klassenpräfix `ow-` (order wizard), damit sich nichts mit den globalen
   `atz-`-Styles aus base.css überschneidet. */

:root {
  --ow-shaded: #F5F5F5;
  --ow-border: #E7E7E7;
  --ow-red-dark: #9C0720;
  --ow-red-tint: #FCEAED;
  --ow-green-tint: #E4F4E9;
  --ow-switch-off: #D2D2D2;
  --ow-radius: 12px;
}

.ow-page {
  background-color: var(--ow-shaded);
  color: var(--atz-dark);
  font-size: 15px;
}

/* Das JS blendet Schritte, Karten und Knöpfe über das hidden-Attribut aus;
   ohne diese Regel würde das display: flex/grid der jeweiligen Klasse es
   aushebeln. */
.ow-page [hidden],
.ow-dialog[hidden] {
  display: none;
}

.ow-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

/* ------------------------------------------------ Fortschrittsanzeige */

.ow-head {
  padding: 16px 0 0;
  background-color: #fff;
  border-bottom: 1px solid var(--ow-border);
}

.ow-head__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.ow-head__step {
  margin: 0 0 2px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--atz-red);
}

.ow-head__title {
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

/* Auf Desktop trägt die Seite EINE Überschrift; die Schrittbezeichnung steht
   dort in der nummerierten Leiste. */
.ow-head__desktop-title {
  display: none;
  margin: 0;
}

.ow-head__eta {
  flex: none;
  margin: 0;
  font-size: 13px;
  color: var(--atz-gray);
}

.ow-head__eta-long {
  display: none;
}

.ow-steps {
  display: flex;
  gap: 4px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ow-step {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.ow-step__dot {
  display: none;
}

.ow-step__label {
  display: block;
  overflow: hidden;
  font-size: 12px;
  white-space: nowrap;
  text-overflow: ellipsis;
  color: var(--atz-gray);
}

.ow-step__label-long {
  display: none;
}

.ow-step--current .ow-step__label,
.ow-step--done .ow-step__label {
  font-weight: 700;
  color: var(--atz-dark);
}

.ow-progress {
  height: 3px;
  margin-top: 8px;
  background-color: var(--ow-border);
}

/* Startbreite = Schritt 1 von 4; ab dann setzt order-wizard.js die Breite. */
.ow-progress__bar {
  display: block;
  width: 25%;
  height: 100%;
  background-color: var(--atz-red);
  transition: width 0.2s ease-in-out;
}

/* --------------------------------------------------------- Grundlagen */

.ow-layout {
  padding-top: 16px;
  padding-bottom: 16px;
}

.ow-card {
  padding: 18px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--ow-border);
  border-radius: var(--ow-radius);
  background-color: #fff;
}

.ow-card__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ow-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.ow-card__lead {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--atz-gray);
}

.ow-card--accent {
  border-color: var(--atz-red);
  background-color: var(--ow-red-tint);
}

.ow-alert {
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--atz-red);
  border-radius: var(--ow-radius);
  background-color: var(--ow-red-tint);
  font-size: 14px;
}

.ow-alert ul {
  margin: 6px 0 0;
  padding-left: 18px;
  list-style: disc;
}

.ow-label {
  display: block;
  margin: 14px 0 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--atz-dark);
}

.ow-card__title + .ow-label,
.ow-card__lead + .ow-label {
  margin-top: 16px;
}

/* Ein Rahmen um das Eingabefeld statt Rahmen am Feld selbst: die
   Django-Widgets bringen ihre eigenen Bootstrap-Klassen mit, die hier
   zurückgesetzt werden. */
.ow-field {
  display: flex;
  align-items: center;
  border: 1px solid var(--ow-border);
  border-radius: 8px;
  background-color: #fff;
}

.ow-field input,
.ow-field select,
.ow-field textarea {
  width: 100%;
  min-width: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 8px;
  background-color: transparent;
  font: inherit;
  color: var(--atz-dark);
}

.ow-field textarea {
  resize: vertical;
}

.ow-field input:focus,
.ow-field select:focus,
.ow-field textarea:focus {
  outline: none;
}

.ow-field:focus-within {
  border-color: var(--atz-red);
  box-shadow: 0 0 0 3px var(--ow-red-tint);
}

.ow-field--invalid {
  border-color: var(--atz-red);
  background-color: var(--ow-red-tint);
}

.ow-field__suffix {
  flex: none;
  padding: 0 14px;
  border-left: 1px solid var(--ow-border);
  font-size: 13px;
  color: var(--atz-gray);
}

.ow-error {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--atz-red);
}

.ow-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--atz-gray);
}

.ow-grid {
  display: grid;
  gap: 0 12px;
}

.ow-distance {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  margin: 14px 0 0;
  border-radius: 8px;
  background-color: var(--ow-red-tint);
  font-size: 13px;
  font-weight: 600;
  color: var(--atz-dark);
}

.ow-distance svg {
  flex: none;
  width: 16px;
  height: 16px;
  color: var(--atz-red);
}

/* -------------------------------------------------------------- Badges */

.ow-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  vertical-align: middle;
}

.ow-badge--red {
  background-color: var(--atz-red);
  color: #fff;
}

.ow-badge--muted {
  background-color: var(--ow-shaded);
  color: var(--atz-gray);
}

.ow-tag {
  display: inline-block;
  padding: 4px 9px;
  border-radius: 999px;
  background-color: var(--ow-shaded);
  font-size: 11px;
  color: var(--atz-gray);
}

.ow-tag--green {
  background-color: var(--ow-green-tint);
  color: var(--atz-green-dark);
}

/* ------------------------------------------------------------- Buttons */

.ow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 8px;
  background-color: transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
}

.ow-btn--primary {
  background-color: var(--atz-red);
  color: #fff;
}

.ow-btn--primary:hover {
  background-color: var(--ow-red-dark);
  color: #fff;
}

.ow-btn--outline {
  border-color: var(--ow-border);
  background-color: #fff;
  color: var(--atz-dark);
}

.ow-btn--outline:hover {
  border-color: var(--atz-dark);
  color: var(--atz-dark);
}

.ow-btn--outline-red {
  border-color: var(--atz-red);
  background-color: #fff;
  color: var(--atz-red);
}

.ow-btn--outline-red:hover {
  background-color: var(--ow-red-tint);
  color: var(--atz-red);
}

.ow-btn--dark {
  background-color: var(--atz-dark);
  color: #fff;
}

.ow-btn--dark:hover {
  background-color: #000;
  color: #fff;
}

.ow-btn--ghost {
  color: var(--atz-gray);
}

.ow-btn--ghost:hover {
  color: var(--atz-dark);
}

.ow-btn--block {
  width: 100%;
}

.ow-btn:focus-visible,
.ow-pill:focus-visible,
.ow-tile:focus-within,
.ow-extra__remove:focus-visible {
  outline: 2px solid var(--atz-red);
  outline-offset: 2px;
}

.ow-btn svg {
  width: 16px;
  height: 16px;
}

/* -------------------------------------------------- Dringlichkeit (1) */

.ow-tiers {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ow-tier {
  display: block;
  cursor: pointer;
}

.ow-tier__input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ow-tier__body {
  display: block;
  padding: 14px 16px;
  border: 1px solid var(--ow-border);
  border-radius: 10px;
}

.ow-tier__input:checked + .ow-tier__body {
  border-color: var(--atz-red);
  background-color: var(--ow-red-tint);
}

.ow-tier__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ow-tier__radio {
  flex: none;
  width: 18px;
  height: 18px;
  border: 2px solid var(--ow-switch-off);
  border-radius: 50%;
}

.ow-tier__input:checked + .ow-tier__body .ow-tier__radio {
  border-color: var(--atz-red);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px var(--atz-red);
}

.ow-tier__name {
  font-weight: 700;
}

.ow-tier__price {
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
  color: var(--atz-red);
}

.ow-tier__note {
  display: block;
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--atz-gray);
}

/* ---------------------------------------------- Auswahlkarten (1 + 2) */

.ow-choices {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.ow-choice {
  display: block;
  cursor: pointer;
}

.ow-choice input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ow-choice__body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--ow-border);
  border-radius: 10px;
}

.ow-choice input:checked + .ow-choice__body {
  border-color: var(--atz-red);
  background-color: var(--ow-red-tint);
}

.ow-choice__radio {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 2px solid var(--ow-switch-off);
  border-radius: 50%;
}

.ow-choice input:checked + .ow-choice__body .ow-choice__radio {
  border-color: var(--atz-red);
  box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 9px var(--atz-red);
}

.ow-choice__title {
  display: block;
  font-weight: 600;
}

.ow-choice__note {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--atz-gray);
}

/* ---------------------------------------------------- Fahrzeug (2) */

.ow-tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.ow-tile {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  cursor: pointer;
}

.ow-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.ow-tile__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 100%;
  padding: 12px 6px;
  border: 1px solid var(--ow-border);
  border-radius: 10px;
  background-color: #fff;
}

.ow-tile input:checked + .ow-tile__body,
.ow-tile--active .ow-tile__body {
  border-color: var(--atz-red);
  background-color: var(--ow-red-tint);
}

.ow-tile__icon {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.ow-tile__icon--active,
.ow-tile input:checked + .ow-tile__body .ow-tile__icon,
.ow-tile--active .ow-tile__body .ow-tile__icon {
  display: none;
}

.ow-tile input:checked + .ow-tile__body .ow-tile__icon--active,
.ow-tile--active .ow-tile__body .ow-tile__icon--active {
  display: block;
}

.ow-tile__label {
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  color: var(--atz-dark);
}

/* Im Zusatz-Fahrzeugblock sind die Kacheln <button> statt <label>+Radio
   (Begründung im Template): sie brauchen die Breite, die das <label> von
   allein hat. */
.ow-tile--button {
  width: 100%;
}

/* Aufklappbare Maße-Sektion: <details>, damit sie auch ohne JS funktioniert. */
.ow-details__summary {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  cursor: pointer;
}

.ow-details__summary::-webkit-details-marker {
  display: none;
}

.ow-details__chevron {
  width: 18px;
  height: 18px;
  margin-left: auto;
  color: var(--atz-gray);
  transition: transform 0.15s ease-in-out;
}

.ow-details[open] .ow-details__chevron {
  transform: rotate(180deg);
}

.ow-addvehicle {
  border-style: dashed;
}

.ow-addvehicle__head {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ow-extra {
  padding: 14px;
  margin-top: 14px;
  border: 1px solid var(--ow-border);
  border-radius: 10px;
  background-color: var(--ow-shaded);
}

.ow-extra__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ow-extra__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.ow-extra__remove {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: var(--atz-red);
  text-decoration: underline;
  cursor: pointer;
}

/* --------------------------------------------------------- B2B-Modul */

.ow-b2b--active {
  border-color: var(--atz-red);
}

.ow-b2b__switch {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  margin-top: 16px;
  border: 1px solid var(--ow-border);
  border-radius: 10px;
  background-color: #fff;
}

.ow-b2b--active .ow-b2b__switch {
  border-color: var(--atz-red);
  background-color: var(--ow-red-tint);
}

.ow-b2b__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background-color: var(--ow-red-tint);
  color: var(--atz-red);
}

.ow-b2b__icon svg {
  width: 19px;
  height: 19px;
}

.ow-b2b__switch-text {
  min-width: 0;
}

.ow-b2b__switch-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
}

.ow-b2b__switch-note {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--atz-gray);
}

.ow-b2b__panel {
  padding: 14px;
  margin-top: 12px;
  border-radius: 10px;
  background-color: var(--ow-red-tint);
}

.ow-b2b__fee {
  display: flex;
  gap: 8px;
  margin: 12px 0 0;
  padding: 10px 12px;
  border-radius: 8px;
  background-color: #fff;
  font-size: 12px;
  line-height: 1.6;
  color: var(--atz-dark);
}

/* Schalter: die native Checkbox liegt unsichtbar über dem Gleis und behält
   Tastaturbedienung, Fokus und Zustand für Screenreader (wie im Cookie-Dialog;
   dort steht die ausführliche Begründung). */
.ow-switch {
  position: relative;
  display: inline-flex;
  flex: none;
  margin-left: auto;
}

.ow-switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 1;
}

.ow-switch__track {
  position: relative;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background-color: var(--ow-switch-off);
  transition: background-color 0.15s ease-in-out;
  pointer-events: none;
}

.ow-switch__track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: #fff;
  transition: transform 0.15s ease-in-out;
}

.ow-switch input:checked + .ow-switch__track {
  background-color: var(--atz-red);
}

.ow-switch input:checked + .ow-switch__track::after {
  transform: translateX(20px);
}

.ow-switch input:focus-visible + .ow-switch__track {
  outline: 2px solid var(--atz-red);
  outline-offset: 2px;
}

.ow-checklist {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ow-checklist li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 1.6;
}

.ow-checklist li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--atz-red);
}

.ow-checklist--compact li {
  margin-bottom: 6px;
  font-size: 12px;
}

/* ------------------------------------------------ Ergebnis/Preis (3) */

.ow-result {
  padding: 20px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--atz-red);
  border-radius: var(--ow-radius);
  background-color: var(--ow-red-tint);
}

.ow-result__kicker {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atz-red);
}

.ow-result__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
}

.ow-result__vat {
  font-size: 13px;
  font-weight: 400;
  color: var(--atz-gray);
}

.ow-result__note {
  margin: 12px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--atz-gray);
}

/* ------------------------------------------------- Zusammenfassung */

.ow-summary {
  padding: 16px;
  margin-bottom: 14px;
  border: 1px solid var(--ow-border);
  border-radius: var(--ow-radius);
  background-color: #fff;
}

/* Eigener, separat schwebender Kasten mit der Preisschätzung -- sitzt in der
   Seitenspalte OBERHALB der "Ihre Anfrage"-Übersicht als eigene Karte
   (Kirill: nicht als Zeile in der Übersicht). */
.ow-price-box {
  padding: 14px 16px;
  margin-bottom: 14px;
  border: 1px solid var(--ow-border);
  border-radius: var(--ow-radius);
  background-color: var(--ow-red-tint);
}

.ow-price-box__label {
  margin: 0;
  font-size: 12px;
  color: var(--atz-gray);
}

.ow-price-box__value {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 700;
  color: var(--atz-red);
}

.ow-price-box__note {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: var(--atz-gray);
}

.ow-summary__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.ow-summary__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.ow-summary__chevron svg {
  width: 18px;
  height: 18px;
  color: var(--atz-gray);
}

.ow-summary__edit {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--atz-red);
  cursor: pointer;
}

.ow-summary__edit svg {
  width: 14px;
  height: 14px;
}

.ow-summary__list {
  margin: 14px 0 0;
}

.ow-summary__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--ow-border);
}

.ow-summary__row:last-child {
  border-bottom: 0;
}

.ow-summary__row dt {
  flex: none;
  font-size: 12px;
  font-weight: 400;
  color: var(--atz-gray);
}

.ow-summary__row dd {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  text-align: right;
}

.ow-summary__row--b2b dd {
  color: var(--atz-red);
}

.ow-summary__assurances {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ow-summary__assurances li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 7px;
  font-size: 12px;
  color: var(--atz-gray);
}

.ow-summary__assurances li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
  color: var(--atz-green);
}

.ow-summary--recap .ow-summary__row dd {
  font-weight: 700;
}

/* ------------------------------------------------------- Firmen (3) */

.ow-companies {
  margin-top: 22px;
}

.ow-companies__title {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
}

.ow-companies__lead {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--atz-gray);
}

.ow-companies__empty {
  margin: 8px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--atz-gray);
}

.ow-companies__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.ow-pill {
  padding: 8px 14px;
  border: 1px solid var(--ow-border);
  border-radius: 999px;
  background-color: #fff;
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.ow-pill--active {
  border-color: var(--atz-dark);
  background-color: var(--atz-dark);
  color: #fff;
}

.ow-companies__list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.ow-company {
  padding: 14px;
  margin-bottom: 10px;
  border: 1px solid var(--ow-border);
  border-radius: var(--ow-radius);
  background-color: #fff;
}

.ow-company--recommended {
  border-color: var(--atz-red);
}

.ow-company__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ow-company__logo {
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: contain;
  background-color: var(--ow-shaded);
}

.ow-company__logo--initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: var(--atz-gray);
}

.ow-company__ident {
  min-width: 0;
}

.ow-company__name {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.ow-company__place {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--atz-gray);
}

.ow-company__head .ow-badge {
  margin-left: auto;
}

.ow-company__rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 10px 0 0;
  font-size: 13px;
}

.ow-company__stars {
  color: var(--atz-amber);
}

.ow-company__reviews {
  color: var(--atz-gray);
}

.ow-company__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.ow-company__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.ow-company__actions .ow-btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 14px;
}

.ow-companies__more {
  width: 100%;
  margin-top: 4px;
}

/* ------------------------------------------------------- Kontakt (4) */

.ow-submit {
  margin-top: 4px;
}

.ow-submit__note {
  margin: 8px 0 12px;
  font-size: 12px;
  text-align: center;
  color: var(--atz-gray);
}

/* ---------------------------------------------------------- Navigation */

.ow-nav {
  position: sticky;
  bottom: 0;
  z-index: 10;
  padding: 10px 0;
  border-top: 1px solid var(--ow-border);
  background-color: #fff;
}

.ow-nav__inner {
  display: flex;
  gap: 10px;
}

.ow-nav__next {
  flex: 1;
}

/* -------------------------------------------- Einwilligungs-Dialog */

.ow-dialog {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 1070;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ow-dialog__backdrop {
  position: absolute;
  inset: 0;
  background-color: rgba(61, 60, 63, 0.5);
}

.ow-dialog__panel {
  position: relative;
  width: 100%;
  max-width: 440px;
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  padding: 20px;
  border-radius: 16px;
  background-color: #fff;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.22);
}

.ow-dialog__grabber {
  display: block;
  width: 40px;
  height: 4px;
  margin: 0 auto 14px;
  border-radius: 999px;
  background-color: var(--ow-border);
}

.ow-dialog__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ow-dialog__icon {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--ow-red-tint);
  color: var(--atz-red);
}

.ow-dialog__icon svg {
  width: 19px;
  height: 19px;
}

.ow-dialog__title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.ow-dialog__desc {
  margin: 12px 0 0;
  font-size: 14px;
  font-weight: 600;
}

.ow-dialog__actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
}

.ow-dialog__meta {
  margin: 14px 0 0;
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
  color: var(--atz-gray);
}

.ow-dialog__meta a {
  color: var(--atz-gray);
  text-decoration: underline;
}

/* ============================================ B2B-Bezahlung (Checkout) */

.ow-checkout__head {
  padding: 22px 0 18px;
}

.ow-checkout__kicker {
  display: inline-block;
  padding: 5px 10px;
  margin: 0 0 10px;
  border-radius: 999px;
  background-color: var(--ow-red-tint);
  font-size: 12px;
  font-weight: 700;
  color: var(--atz-red);
}

.ow-checkout__title {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.ow-checkout__lead {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--atz-gray);
}

.ow-checkout {
  display: grid;
  gap: 0;
  margin-bottom: 24px;
  border-radius: var(--ow-radius);
  overflow: hidden;
}

.ow-benefits {
  padding: 24px 20px;
  background-color: var(--atz-red);
  color: #fff;
}

.ow-benefits__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 18px;
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 12px;
}

.ow-benefits__icon svg {
  width: 34px;
  height: 34px;
}

.ow-benefits__title {
  margin: 0;
  font-size: 21px;
  font-weight: 700;
}

.ow-benefits__lead {
  margin: 8px 0 18px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.85);
}

.ow-benefits__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.ow-benefits__list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 14px;
}

.ow-benefits__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 700;
}

.ow-benefits__list strong {
  display: block;
  font-size: 14px;
}

.ow-benefits__list span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
}

.ow-benefits__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 20px 0 0;
  font-size: 34px;
  font-weight: 700;
}

.ow-benefits__price span {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
}

.ow-benefits__back {
  display: inline-block;
  margin-top: 16px;
  font-size: 13px;
  color: #fff;
  text-decoration: underline;
}

.ow-checkout__form {
  padding: 20px;
  background-color: #fff;
}

.ow-checkout__section {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--atz-gray);
}

.ow-checkout__section--spaced {
  margin-top: 22px;
}

.ow-checkout__pay {
  margin-top: 14px;
}

.ow-checkout__cancel {
  margin-bottom: 28px;
}

.ow-checkout__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px;
  margin-top: 16px;
  border-radius: 10px;
  background-color: var(--ow-shaded);
  font-weight: 700;
}

.ow-checkout__total span:first-child {
  font-weight: 400;
  color: var(--atz-gray);
}

.ow-checkout__agb {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  font-size: 13px;
  line-height: 1.55;
}

.ow-checkout__agb input {
  flex: none;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  accent-color: var(--atz-red);
}

.ow-checkout__secure {
  margin: 10px 0 0;
  font-size: 12px;
  text-align: center;
  color: var(--atz-gray);
}

/* ======================================== B2B-Auftrag aktiv (Erfolg) */

.ow-active {
  padding: 22px 0 28px;
}

.ow-active__flags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ow-active__flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 999px;
  background-color: var(--ow-green-tint);
  font-size: 12px;
  font-weight: 700;
  color: var(--atz-green-dark);
}

.ow-active__flag--muted {
  background-color: var(--ow-shaded);
  color: var(--atz-gray);
}

.ow-active__flag-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--atz-green);
}

.ow-active__title {
  margin: 14px 0 0;
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
}

.ow-active__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  line-height: 1.6;
  color: var(--atz-gray);
}

.ow-route {
  margin-top: 24px;
}

.ow-route__line {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 22px;
}

.ow-route__line::before {
  content: "";
  position: absolute;
  left: 6px;
  right: 6px;
  height: 2px;
  background-color: var(--ow-red-tint);
}

.ow-route__dot {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 2px solid var(--atz-red);
  border-radius: 50%;
  background-color: #fff;
}

.ow-route__dot--start {
  left: 0;
}

.ow-route__dot--end {
  right: 0;
  background-color: var(--atz-red);
}

.ow-route__distance {
  position: relative;
  padding: 4px 14px;
  border: 1px solid var(--ow-red-tint);
  border-radius: 999px;
  background-color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.ow-route__ends {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 10px;
}

.ow-route__label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--atz-gray);
}

.ow-route__place {
  margin: 2px 0 0;
  font-size: 19px;
  font-weight: 700;
}

.ow-route__end--to {
  text-align: right;
}

.ow-fixedprice {
  padding: 18px 16px;
  margin-top: 22px;
  border: 1px solid var(--atz-red);
  border-radius: var(--ow-radius);
  background-color: #fff;
}

.ow-fixedprice__label {
  margin: 12px 0 0;
  font-size: 13px;
  color: var(--atz-gray);
}

.ow-fixedprice__value {
  margin: 2px 0 0;
  font-size: 32px;
  font-weight: 700;
  color: var(--atz-red);
}

.ow-fixedprice__note {
  margin: 8px 0 14px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--atz-gray);
}

.ow-fixedprice__paid {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--ow-border);
  font-size: 13px;
  font-weight: 600;
}

.ow-fixedprice__paid::before {
  content: "✓";
  color: var(--atz-green);
}

.ow-fixedprice .ow-btn {
  width: 100%;
  margin-top: 12px;
}

.ow-next {
  margin-top: 26px;
}

.ow-next__title {
  margin: 0 0 12px;
  font-size: 19px;
  font-weight: 700;
}

.ow-next__list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ow-next__item {
  display: flex;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--ow-border);
  border-radius: var(--ow-radius);
  background-color: #fff;
}

.ow-next__item--current {
  border-color: var(--atz-red);
}

.ow-next__num {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: var(--ow-shaded);
  font-size: 13px;
  font-weight: 700;
  color: var(--atz-gray);
}

.ow-next__item--current .ow-next__num {
  background-color: var(--atz-red);
  color: #fff;
}

.ow-next__item h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.ow-next__item p {
  margin: 4px 0 0;
  font-size: 13px;
  line-height: 1.6;
  color: var(--atz-gray);
}

.ow-active__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

/* ================================================== ab 768px (Tablet) */

@media (min-width: 768px) {
  .ow-container {
    padding: 0 24px;
  }

  .ow-head {
    padding: 24px 0 0;
  }

  .ow-head__step,
  .ow-head__title {
    display: none;
  }

  .ow-head__desktop-title {
    display: block;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
  }

  .ow-head__eta {
    padding: 7px 14px;
    border: 1px solid var(--ow-border);
    border-radius: 999px;
  }

  .ow-head__eta-long {
    display: inline;
  }

  .ow-head__eta-short {
    display: none;
  }

  .ow-steps {
    gap: 12px;
    margin: 20px 0 20px;
  }

  .ow-step {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
  }

  .ow-step::after {
    content: "";
    flex: 1;
    height: 2px;
    background-color: var(--ow-border);
  }

  .ow-step:last-child::after {
    display: none;
  }

  .ow-step__dot {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background-color: var(--ow-border);
    font-size: 13px;
    font-weight: 700;
    color: var(--atz-gray);
  }

  .ow-step--current .ow-step__dot,
  .ow-step--done .ow-step__dot {
    background-color: var(--atz-red);
    color: #fff;
  }

  .ow-step--done::after {
    background-color: var(--atz-red);
  }

  .ow-step__label {
    font-size: 14px;
  }

  .ow-step__label-long {
    display: inline;
  }

  .ow-progress {
    display: none;
  }

  .ow-card {
    padding: 22px 24px;
    margin-bottom: 18px;
  }

  .ow-grid--2 {
    grid-template-columns: repeat(2, 1fr);
  }

  .ow-grid--3 {
    grid-template-columns: repeat(3, 1fr);
  }

  .ow-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }

  .ow-tiles {
    grid-template-columns: repeat(4, 1fr);
  }

  .ow-choices--inline {
    grid-template-columns: repeat(3, 1fr);
  }

  .ow-addvehicle__head {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .ow-companies__list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .ow-company {
    margin-bottom: 0;
  }

  .ow-companies__more {
    width: auto;
    margin: 16px auto 0;
    display: flex;
  }

  .ow-checkout {
    grid-template-columns: 1fr 1fr;
  }

  .ow-benefits,
  .ow-checkout__form {
    padding: 32px;
  }

  .ow-nav__inner {
    justify-content: space-between;
  }

  .ow-nav__next {
    flex: none;
    min-width: 260px;
  }

  .ow-submit {
    max-width: 420px;
  }

  .ow-active__actions .ow-btn {
    min-width: 150px;
  }
}

/* ================================================= ab 992px (Desktop) */

@media (min-width: 992px) {
  .ow-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    gap: 24px;
    align-items: start;
    padding-top: 28px;
    padding-bottom: 28px;
  }

  .ow-aside {
    position: sticky;
    top: 24px;
  }

  /* Schritt 3 blendet die Seitenspalte aus (er trägt seine eigene
     "Ihre Angaben"-Karte) -- dann bekommt der Inhalt die volle Breite. Die
     Klasse setzt order-wizard.js beim Schrittwechsel. */
  .ow-layout--wide {
    grid-template-columns: minmax(0, 1fr);
  }

  .ow-nav {
    position: static;
    padding: 4px 0 0;
    border-top: 0;
    background-color: transparent;
  }
}
