/* RIED.TAXI — /buchen. Mobile-first: this form is mostly filled on a phone
   in a hurry, so controls are large, errors sit next to their field, and the
   calendar never shrinks below a comfortable tap target. */

.b-wrap { max-width: 820px; margin: 0 auto; }
.b-lead { color: var(--muted); margin: 0 0 18px; }

/* progress -------------------------------------------------------------- */
.b-progress {
  display: flex; gap: 6px; list-style: none; padding: 0; margin: 0 0 24px;
  counter-reset: bstep; flex-wrap: wrap;
}
.b-progress li {
  flex: 1 1 0; min-width: 78px; font-size: 12.5px; font-weight: 600;
  color: var(--muted); padding: 8px 4px 0; border-top: 3px solid #dcdcdc;
  counter-increment: bstep;
}
.b-progress li::before { content: counter(bstep) ". "; }
.b-progress li.now { color: var(--accent-dk, #b34700); border-top-color: var(--accent); }
.b-progress li.done { color: #2e7d32; border-top-color: #2e7d32; }

/* form ------------------------------------------------------------------ */
.b-fs { border: 0; padding: 0; margin: 0 0 26px; }
.b-fs legend {
  font-size: 17px; font-weight: 700; padding: 0; margin: 0 0 12px;
}
#rt-booking .frow {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px;
}
#rt-booking .field { display: flex; flex-direction: column; }
#rt-booking .field.full { grid-column: 1 / -1; }
#rt-booking label { font-weight: 600; font-size: 13.5px; margin-bottom: 5px; }
#rt-booking input, #rt-booking select, #rt-booking textarea {
  font: inherit; padding: 12px 12px; border: 1px solid #c9c9c9; border-radius: 8px;
  background: #fff; min-height: 46px; width: 100%; box-sizing: border-box;
}
#rt-booking input:focus, #rt-booking select:focus, #rt-booking textarea:focus {
  outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent);
}
#rt-booking [aria-invalid="true"] { border-color: #c62828; background: #fff7f7; }
.ferr { color: #c62828; font-size: 13px; margin: 5px 0 0; font-weight: 600; }

.b-check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500;
           font-size: 14px; color: var(--muted); cursor: pointer; }
/* MUST carry the #rt-booking prefix. Without it this loses to
   `#rt-booking input { width:100%; min-height:46px; padding:12px }` on
   specificity - (0,2,0) against (1,0,1) - and every checkbox on the form
   stretches across the row, throwing its own label to the far right. */
#rt-booking .b-check input, .b-check input {
  width: auto; min-width: 20px; max-width: 20px;
  height: 20px; min-height: 20px; padding: 0;
  flex: 0 0 auto; margin-top: 2px; accent-color: var(--accent);
}
.b-ret, .b-consent { margin-top: 14px; }
.b-pricenote { font-size: 13px; color: var(--muted); margin: 18px 0 0; }

/* honeypot: off-screen, never display:none — some bots skip hidden fields */
.b-hp { position: absolute !important; left: -9999px !important; width: 1px !important;
        height: 1px !important; opacity: 0 !important; pointer-events: none; }

/* availability ---------------------------------------------------------- */
.avail { margin: 14px 0 0; padding: 11px 13px; border-radius: 8px; font-weight: 600;
         font-size: 14.5px; background: #f2f2f2; color: var(--muted); }
.avail.ok  { background: #e8f5e9; color: #1b5e20; }
.avail.bad { background: #fdeaea; color: #b71c1c; }
.avail.checking { background: #f2f2f2; color: var(--muted); }
.b-alt { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.b-alt .alt { font-size: 14px; padding: 9px 13px; }

/* calendar -------------------------------------------------------------- */
.b-cal { margin-top: 6px; }
.cal-nav { display: flex; align-items: center; justify-content: space-between;
           gap: 12px; margin-bottom: 12px; }
.cal-nav strong { font-size: 17px; }
.cal-nav .btn { min-width: 52px; padding: 9px 12px; }
.cal-head, .cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.cal-head span { text-align: center; font-size: 12px; font-weight: 700;
                 color: var(--muted); padding-bottom: 4px; }
.cal-day, .cal-pad {
  display: flex; align-items: center; justify-content: center;
  min-height: 46px; border-radius: 8px; font-size: 15px; font-weight: 600;
  border: 1px solid transparent;
}
.cal-day.free { background: #e8f5e9; color: #1b5e20; border-color: #b6dfb8;
                cursor: pointer; }
.cal-day.free:hover { background: #d3ecd5; }
.cal-day.free:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.cal-day.taken { background: #f3f3f3; color: #b0b0b0; text-decoration: line-through; }
.cal-day.past  { background: transparent; color: #cfcfcf; }
.cal-day.chosen { background: var(--accent); color: #fff; border-color: var(--accent); }
.cal-loading { color: var(--muted); padding: 20px 0; text-align: center; }
.cal-legend { display: flex; gap: 18px; margin: 14px 0 0; font-size: 13px;
              color: var(--muted); }
.cal-legend .sw { display: inline-block; width: 13px; height: 13px; border-radius: 3px;
                  margin-right: 6px; vertical-align: -2px; }
.cal-legend .sw.free { background: #e8f5e9; border: 1px solid #b6dfb8; }
.cal-legend .sw.taken { background: #f3f3f3; border: 1px solid #e0e0e0; }
.b-chosen { margin: 16px 0 0; font-size: 15px; }
.b-chosen span { color: var(--muted); }

/* review + done --------------------------------------------------------- */
.b-review { border: 1px solid #e2e2e2; border-radius: 10px; overflow: hidden;
            margin: 4px 0 18px; }
.b-rev-row { display: flex; justify-content: space-between; gap: 16px;
             padding: 13px 15px; border-bottom: 1px solid #efefef; font-size: 15px; }
.b-rev-row:last-child { border-bottom: 0; }
.b-rev-row span { color: var(--muted); }
.b-rev-row strong { text-align: right; }

.b-done { text-align: center; }
.b-tick { width: 62px; height: 62px; margin: 4px auto 14px; border-radius: 50%;
          background: #e8f5e9; color: #1b5e20; font-size: 34px; line-height: 62px;
          font-weight: 700; }
.b-done .b-review { text-align: left; }
.b-refbox { display: inline-flex; flex-direction: column; gap: 4px; margin: 6px 0 20px;
            padding: 14px 22px; border-radius: 10px; background: #fff5ec;
            border: 1px dashed var(--accent); }
.b-refbox span { font-size: 12.5px; color: var(--muted); font-weight: 600;
                 text-transform: uppercase; letter-spacing: .04em; }
.b-refbox strong { font-size: 24px; letter-spacing: .04em; }

#rt-booking .acts { display: flex; gap: 11px; flex-wrap: wrap; margin-top: 22px; }
#rt-booking .btn-wide { flex: 1; min-width: 220px; }
#rt-booking .btn.loading { opacity: .7; pointer-events: none; }

@media (max-width: 620px) {
  #rt-booking .frow { grid-template-columns: 1fr; }
  .b-progress li { min-width: 0; font-size: 11px; }
  .cal-day, .cal-pad { min-height: 42px; font-size: 14px; }
  .b-rev-row { font-size: 14px; }
}

/* Calm ending -----------------------------------------------------------
   The confirmation screen previously finished with a full-weight dark phone
   button. On a page where the correct next action is "do nothing", the
   heaviest element on screen should not be a call-to-action. It is now a
   numbered explanation of what happens without them, and the phone number is
   a text link for the minority who actually need it. */
.b-next {
  text-align: left; margin: 26px 0 0; padding: 20px 22px;
  background: #f7f8f9; border: 1px solid #eceff1; border-radius: 12px;
}
.b-next h3 {
  margin: 0 0 12px; font-size: 12px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.b-next ol { margin: 0; padding: 0; list-style: none; counter-reset: bnext; }
.b-next li {
  counter-increment: bnext; position: relative; padding: 0 0 13px 33px;
  font-size: 15px; line-height: 1.5;
}
.b-next li:last-of-type { padding-bottom: 0; }
.b-next li::before {
  content: counter(bnext); position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--accent);
  color: #fff; font-size: 12.5px; font-weight: 700; line-height: 22px;
  text-align: center;
}
/* The connector line makes it read as a sequence rather than three facts. */
.b-next li:not(:last-of-type)::after {
  content: ""; position: absolute; left: 10.5px; top: 24px; bottom: 3px;
  width: 1px; background: #dfe3e6;
}
.b-next-note {
  margin: 15px 0 0; padding-top: 13px; border-top: 1px solid #e7eaec;
  font-size: 14.5px; font-weight: 600; color: #1b5e20;
}
.b-quietcall {
  margin: 18px 0 0; font-size: 14px; color: var(--muted); text-align: center;
}
.b-quietcall a {
  color: var(--ink); font-weight: 700; text-decoration: underline;
  text-underline-offset: 3px; white-space: nowrap; margin-left: 5px;
}
.b-quietcall a:hover { color: var(--accent-dk, #d9790c); }

/* WhatsApp opt-in ------------------------------------------------------
   Deliberately quieter than the required privacy consent below it: this one
   is optional, and a form should not make an optional tick look mandatory. */
.b-waoptin { margin-top: 16px; }
.b-waoptin .b-check { font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.b-waoptin .b-check input { accent-color: #25D366; }


/* The journey panel: what somebody arriving from /preise was already
   promised, restated before they fill anything in. ------------------------ */
/* `hidden` sets display:none in the UA stylesheet, which THIS rule outranks.
   Without the [hidden] guard the panel shows as an empty box on every first
   load - which it did, on both pages, from the day it was written. */
.b-journey[hidden] { display: none; }
.b-journey {
  display: flex; flex-direction: column; gap: 5px;
  padding: 16px 18px; margin: 0 0 20px;
  border: 1.5px solid var(--line); border-radius: 12px; background: var(--bg-warm);
}
.b-journey.pub { background: var(--accent-soft); border-color: var(--accent); }
.b-journey.far { border-color: var(--chrome); }
.bj-route { font-size: 14.5px; font-weight: 700; color: var(--muted); }
.bj-price {
  font-size: 34px; font-weight: 800; line-height: 1.05; letter-spacing: -.03em;
  color: var(--accent-dk); font-variant-numeric: tabular-nums;
}
.bj-note { font-size: 13.5px; color: var(--muted); line-height: 1.45; max-width: 52ch; }

/* Shorter form. Every value below was a larger one; the form asked for a
   screen and a half on a laptop and people abandon what they cannot see the
   end of. ------------------------------------------------------------------ */
.b-fs { margin-bottom: 18px; }
.b-fs legend { font-size: 16px; margin-bottom: 9px; }
#rt-booking .frow { gap: 11px; }
#rt-booking label { font-size: 13px; margin-bottom: 3px; }
#rt-booking input, #rt-booking select, #rt-booking textarea {
  padding: 9px 11px; min-height: 40px; border-radius: 7px;
}
#rt-booking textarea { min-height: 62px; }
.b-ret, .b-consent { margin-top: 10px; }
.b-pricenote { margin-top: 14px; }

/* Three columns once there is room. The short fields - time, passengers,
   flight number - waste half a row each at two across. */
@media (min-width: 1000px) {
  #rt-booking .frow { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  #rt-booking .field.wide { grid-column: span 2; }
}


/* The journey picker. Replaced the "Abholregion" select on 2026-08-25: the
   offer is now almost anywhere to anywhere and a dropdown can only ever list
   what somebody hardcoded. The two inputs themselves are .qfield from
   quote.css - same combobox, same keyboard behaviour, same suggestion list as
   the estimator on /preise. Only the layout around them lives here.
   ------------------------------------------------------------------------ */
.bj-pick { margin: 0 0 16px; }
.bj-fields {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: end;
}
@media (max-width: 640px) { .bj-fields { grid-template-columns: 1fr; } }

/* The suggestion list must escape the fieldset, not be clipped by it. */
.bj-f { position: relative; z-index: 5; }

.bj-quick {
  display: flex; flex-wrap: wrap; align-items: center; gap: 7px;
  margin-top: 11px;
}
.bj-quick-l {
  font-size: 12.5px; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); margin-right: 2px;
}
.bj-chip {
  font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer;
  padding: 7px 11px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--card);
  color: var(--ink); transition: border-color .16s, background .16s;
}
.bj-chip:hover { border-color: var(--accent); background: var(--accent-soft); }
.bj-chip:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.bj-chip-eur { font-weight: 800; color: var(--accent-dk); margin-left: 5px; }
