/* ===== Buchung: Vollbild-Formular in Schritten ===== */
:root {
  --ink: #15161a;
  --gold: #c9a54a;
  --gold-light: #e2c36f;
  --muted: #6f6b62;
  --line: rgba(21, 22, 26, 0.12);
  --soft: #f6f4ef;
  --radius: 8px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }

html, body { height: 100%; }

body.bk {
  display: grid;
  grid-template-columns: minmax(280px, 34%) 1fr;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  font-family: 'Figtree', sans-serif;
  color: var(--ink);
  background: #ffffff;
}

/* ---------- Linke Spalte ---------- */
.bk-aside {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(24px, 5vh, 48px) clamp(24px, 3.5vw, 56px);
  color: #ffffff;
  background:
    linear-gradient(180deg, rgba(12, 13, 16, 0.78) 0%, rgba(12, 13, 16, 0.86) 100%),
    url('assets/hero-taxi.jpg') 30% center / cover no-repeat #15161a;
}

.bk-logo img { display: block; height: 44px; width: auto; }

.bk-steps {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bk-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 0;
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.3s ease;
}

.bk-step-num {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.82rem;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.bk-steps li.is-current { color: #ffffff; }
.bk-steps li.is-current .bk-step-num { border-color: var(--gold); color: var(--gold); }

.bk-steps li.is-done { color: rgba(255, 255, 255, 0.8); cursor: pointer; }
.bk-steps li.is-done .bk-step-num { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.bk-steps li.is-done:hover { color: #ffffff; }

.bk-aside-foot p { font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.bk-aside-foot a {
  display: inline-block;
  margin-top: 4px;
  font-size: 1.1rem;
  color: #ffffff;
  text-decoration: none;
}
.bk-aside-foot a:hover { color: var(--gold-light); }

/* ---------- Rechte Spalte ---------- */
.bk-main {
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 0;
}

.bk-top {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px clamp(20px, 4vw, 56px) 18px;
}

.bk-logo-mobile { display: none; }

.bk-counter {
  font-size: 0.85rem;
  color: var(--muted);
}

.bk-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--ink);
  transition: background 0.2s ease;
}
.bk-close:hover { background: var(--soft); }
.bk-close svg { width: 18px; height: 18px; }

.bk-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: var(--line);
}
.bk-progress span {
  display: block;
  height: 100%;
  width: 20%;
  background: var(--gold);
  transition: width 0.5s var(--ease);
}

.bk-form {
  display: grid;
  grid-template-rows: 1fr auto;
  min-height: 0;
}

.bk-stage {
  display: flex;
  align-items: center;          /* Schritt vertikal mittig */
  justify-content: center;
  min-height: 0;
  overflow-y: auto;             /* nur falls der Bildschirm sehr niedrig ist */
  padding: clamp(16px, 4vh, 48px) clamp(20px, 4vw, 56px);
}

.bk-step {
  width: 100%;
  max-width: 760px;
  margin: auto 0;
}

.bk-step.is-entering { animation: step-in 0.45s var(--ease); }
.bk-step.is-entering.from-left { animation-name: step-in-left; }
@keyframes step-in { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@keyframes step-in-left { from { opacity: 0; transform: translateX(-28px); } to { opacity: 1; transform: none; } }

.bk-title {
  margin-bottom: clamp(18px, 3.5vh, 32px);
  font-size: clamp(1.5rem, min(2.6vw, 4.2vh), 2.3rem);
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: -0.015em;
}

/* ---------- Schritt 1: Auswahl ---------- */
.choice-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}

.choice { position: relative; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }

.choice-box {
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 18px);
  height: 100%;
  padding: clamp(12px, 2vh, 18px) 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.25s ease, transform 0.2s ease;
}
.choice-box:hover { border-color: rgba(21, 22, 26, 0.3); }
.choice input:focus-visible + .choice-box { outline: 2px solid var(--gold); outline-offset: 2px; }
.choice input:checked + .choice-box {
  border-color: var(--ink);
  background: var(--soft);
  box-shadow: 0 8px 24px -16px rgba(21, 22, 26, 0.5);
}

.choice-icon { width: 30px; height: 30px; }
.choice-text strong { display: block; font-size: 0.95rem; font-weight: 500; }
.choice-text small { display: block; margin-top: 2px; font-size: 0.8rem; color: var(--muted); }

/* ---------- Felder ---------- */
.bk-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.bk-field + .bk-field,
.bk-row + .bk-field,
.bk-row + .bk-row,
.bk-field + .bk-row { margin-top: clamp(12px, 2.2vh, 20px); }

.bk-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.bk-row > .bk-field + .bk-field { margin-top: 0; }

.bk-field label,
.bk-label {
  font-size: 0.85rem;
  color: var(--muted);
}
.bk-opt { color: #a09b90; }

.bk-field input[type="text"],
.bk-field input[type="tel"],
.bk-field input[type="email"],
.bk-field input[type="date"],
.bk-field input[type="time"],
.bk-field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  font: inherit;
  font-size: 1rem;
  color: var(--ink);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.bk-field textarea { resize: none; }
.bk-field input:focus,
.bk-field textarea:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(201, 165, 74, 0.25);
}
.bk-field.has-error input,
.bk-field.has-error textarea { border-color: #b3261e; }

.bk-error {
  min-height: 0;
  font-size: 0.8rem;
  color: #b3261e;
}
.bk-error:empty { display: none; }
.bk-step > .bk-error { margin-top: 12px; }

/* ---------- Schritt 2: Strecke ---------- */
.bk-routes { margin-bottom: clamp(16px, 3vh, 26px); }
.bk-routes .bk-label { display: block; margin-bottom: 10px; }

.bk-route-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bk-route-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  font: inherit;
  font-size: 0.88rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bk-route-chip small { font-size: 0.78rem; color: var(--muted); }
.bk-route-chip:hover { border-color: rgba(21, 22, 26, 0.3); }
.bk-route-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); }

.bk-fromto {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: start;
  gap: 12px;
}

.bk-swap {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-top: 27px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #ffffff;
  color: var(--ink);
  cursor: pointer;
  transform: rotate(90deg);
  transition: background 0.2s ease, transform 0.35s var(--ease);
}
.bk-swap:hover { background: var(--soft); }
.bk-swap.is-spun { transform: rotate(270deg); }
.bk-swap svg { width: 18px; height: 18px; }

.bk-route-price {
  margin-top: 16px;
  font-size: 0.95rem;
}
.bk-route-price span { color: var(--muted); }

/* ---------- Schritt 3: Termin ---------- */
.bk-quick {
  display: flex;
  gap: 8px;
  margin-bottom: clamp(12px, 2.2vh, 20px);
}

.bk-chip {
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #ffffff;
  font: inherit;
  font-size: 0.85rem;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.bk-chip:hover { border-color: rgba(21, 22, 26, 0.3); }
.bk-chip[aria-pressed="true"] { border-color: var(--ink); background: var(--soft); }

.bk-stepper {
  display: grid;
  grid-template-columns: 50px 1fr 50px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.bk-stepper button {
  border: 0;
  background: #ffffff;
  font: inherit;
  font-size: 1.2rem;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.2s ease;
}
.bk-stepper button:hover { background: var(--soft); }
.bk-stepper input {
  width: 100%;
  padding: 13px 0;
  border: 0;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font: inherit;
  font-size: 1rem;
  text-align: center;
  color: var(--ink);
  -moz-appearance: textfield;
}
.bk-stepper input::-webkit-outer-spin-button,
.bk-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.bk-stepper input:focus { outline: none; background: var(--soft); }

.bk-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 50px;
  font-size: 0.95rem;
  color: var(--ink) !important;
  cursor: pointer;
}
.bk-toggle input { position: absolute; opacity: 0; }
.bk-toggle-ui {
  position: relative;
  flex-shrink: 0;
  width: 42px;
  height: 24px;
  border-radius: 999px;
  background: rgba(21, 22, 26, 0.18);
  transition: background 0.25s ease;
}
.bk-toggle-ui::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  transition: transform 0.25s var(--ease);
}
.bk-toggle input:checked + .bk-toggle-ui { background: var(--ink); }
.bk-toggle input:checked + .bk-toggle-ui::after { transform: translateX(18px); }
.bk-toggle input:focus-visible + .bk-toggle-ui { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---------- Schritt 5: Übersicht ---------- */
.bk-summary {
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.bk-sum-row {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: baseline;
  gap: 16px;
  padding: clamp(10px, 1.8vh, 14px) 18px;
}
.bk-sum-row + .bk-sum-row { border-top: 1px solid var(--line); }
.bk-sum-row dt { font-size: 0.85rem; color: var(--muted); }
.bk-sum-row dd { font-size: 0.95rem; line-height: 1.45; }
.bk-sum-edit {
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.82rem;
  color: var(--muted);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.bk-sum-edit:hover { color: var(--ink); }

.bk-legal {
  margin-top: 16px;
  font-size: 0.78rem;
  line-height: 1.5;
  color: var(--muted);
}
.bk-legal a { color: inherit; }
.bk-error-send { margin-top: 12px; }

/* ---------- Erfolg ---------- */
.bk-done { text-align: center; max-width: 520px; }
.bk-check { width: 64px; height: 64px; margin: 0 auto 24px; }
.bk-check circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: draw 0.7s var(--ease) forwards; }
.bk-check path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: draw 0.45s var(--ease) 0.45s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.bk-done-text { margin: -12px 0 28px; color: var(--muted); line-height: 1.55; }

/* ---------- Navigation unten ---------- */
.bk-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px clamp(20px, 4vw, 56px) calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line);
}

.bk-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 130px;
  padding: 14px 26px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, opacity 0.2s ease;
}
.bk-btn-primary { background: var(--gold); color: var(--ink); }
.bk-btn-primary:hover { background: var(--gold-light); }
.bk-btn-ghost { border-color: var(--line); background: #ffffff; color: var(--ink); }
.bk-btn-ghost:hover { border-color: var(--ink); }
.bk-btn[disabled] { opacity: 0.6; cursor: progress; }
.bk-btn.is-hidden { visibility: hidden; }

/* ---------- Niedrige Bildschirme ---------- */
@media (max-height: 760px) {
  .choice-icon { width: 24px; height: 24px; }
  .choice-text small { display: none; }
  .bk-steps li { padding: 6px 0; }
}

/* ---------- Tablet & Handy ---------- */
@media (max-width: 960px) {
  body.bk { grid-template-columns: 1fr; }
  .bk-aside { display: none; }
  .bk-logo-mobile { display: block; }
  .bk-logo-mobile img { height: 34px; }
  .bk-counter { margin-left: auto; }
  .choice-grid { grid-template-columns: repeat(2, 1fr); }
  .bk-stage { align-items: flex-start; }
}

@media (max-width: 560px) {
  .bk-top { padding: 14px 16px 12px; }
  .bk-stage { padding: 20px 16px; }
  .choice-grid { gap: 8px; }
  .choice-box { flex-direction: row; align-items: center; gap: 12px; padding: 12px; }
  .choice-text small { display: none; }
  .bk-row { grid-template-columns: 1fr; gap: 0; }
  .bk-row > .bk-field + .bk-field { margin-top: 12px; }
  .bk-fromto { grid-template-columns: 1fr; gap: 0; }
  .bk-swap { justify-self: center; margin: 4px 0 -4px; transform: none; width: 36px; height: 36px; }
  .bk-swap.is-spun { transform: rotate(180deg); }
  .bk-sum-row { grid-template-columns: 1fr auto; }
  .bk-sum-row dt { grid-column: 1 / -1; }
  .bk-nav { padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
  .bk-btn { min-width: 0; flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .bk-step.is-entering { animation: none; }
  .bk-check circle, .bk-check path { animation: none; stroke-dashoffset: 0; }
}
