/* Mobile Buchung: kompakte Felder und Bottom-Sheets */
.booking-page .booking-main-menu{
  position:sticky;
  top:0;
  z-index:40;
  min-height:62px;
  display:flex;
  align-items:center;
  gap:12px;
  padding:8px max(18px,calc((100vw - 1240px)/2));
  background:rgba(255,255,255,.94);
  border-bottom:1px solid #dce4df;
  box-shadow:0 8px 24px rgba(23,33,29,.08);
  backdrop-filter:blur(14px);
}

/* Compact clock picker: all controls visible without internal scrolling */
.booking-page .time-modal{
  position:fixed;
  inset:0;
  z-index:1400;
  display:none;
  align-items:center;
  justify-content:center;
  padding:14px;
  background:rgba(23,33,29,.48);
}

.booking-page .time-modal.open{
  display:flex;
}

.booking-page .time-dialog{
  width:min(430px,calc(100vw - 28px));
  max-height:calc(100dvh - 28px);
  display:grid;
  grid-template-rows:auto minmax(0,1fr) auto;
  overflow:hidden;
  border:1px solid #dce5df;
  border-radius:20px;
  background:#ffffff;
  color:#17211d;
  box-shadow:0 28px 90px rgba(0,0,0,.34);
}

.booking-page .time-picker-header{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  padding:14px 16px;
  border-bottom:1px solid #e4ebe7;
  background:#f8fbf9;
}

.booking-page .time-picker-header span{
  color:#64736b;
  font-size:12px;
  font-weight:900;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.booking-page .time-display,
.booking-page .time-picker-header strong{
  padding:0;
  background:transparent;
  color:#145238;
  font-size:34px;
  line-height:1;
  letter-spacing:0;
}

.booking-page .time-picker-body{
  min-height:0;
  display:grid;
  grid-template-columns:minmax(0,1fr) 82px;
  align-items:center;
  gap:14px;
  padding:16px;
}

.booking-page .clock-face{
  position:relative;
  width:min(270px,calc(100vw - 142px));
  aspect-ratio:1;
  height:auto;
  margin:0 auto;
  border:1px solid #d7e1db;
  border-radius:50%;
  background:
    radial-gradient(circle at center,#1f7a52 0 5px,transparent 6px),
    radial-gradient(circle at center,#ffffff 0 58%,#edf6f1 59% 100%);
  box-shadow:inset 0 0 0 10px #f8fbf9,0 10px 26px rgba(23,33,29,.10);
}

.booking-page .clock-face:before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:3px;
  height:34%;
  border-radius:999px;
  background:#1f7a52;
  transform:translate(-50%,-100%) rotate(var(--hand-angle,0deg));
  transform-origin:50% 100%;
  box-shadow:0 0 0 1px rgba(31,122,82,.12);
}

.booking-page .clock-face:after{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:14px;
  height:14px;
  border-radius:50%;
  background:#1f7a52;
  transform:translate(-50%,-50%);
  box-shadow:0 0 0 5px rgba(31,122,82,.14);
}

.booking-page .clock-face button{
  position:absolute;
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:transparent;
  color:#29352f;
  font-size:11px;
  font-weight:850;
  transform:translate(-50%,-50%);
}

.booking-page .clock-face button:hover,
.booking-page .clock-face button:focus-visible{
  background:#e7f3ec;
  color:#145238;
}

.booking-page .clock-face button.active{
  background:#1f7a52;
  color:#fff;
  box-shadow:0 6px 14px rgba(31,122,82,.25);
}

.booking-page .clock-face button:disabled,
.booking-page .minute-grid button:disabled{
  opacity:.28;
  cursor:not-allowed;
  text-decoration:none;
}

.booking-page .minute-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:8px;
  padding:0;
}

.booking-page .minute-grid button{
  min-height:42px;
  padding:0 10px;
  border:1px solid #d7e1db;
  border-radius:12px;
  background:#f8fbf9;
  color:#29352f;
  font-size:15px;
  font-weight:900;
}

.booking-page .minute-grid button:before{
  content:":";
}

.booking-page .minute-grid button:hover,
.booking-page .minute-grid button:focus-visible{
  border-color:#9bc7ae;
  background:#edf8f2;
}

.booking-page .minute-grid button.active{
  border-color:#1f7a52;
  background:#1f7a52;
  color:#fff;
}

.booking-page .time-actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
  padding:12px 16px 16px;
  border-top:1px solid #e4ebe7;
  background:#fff;
}

.booking-page .time-actions button{
  min-height:44px;
  margin:0;
  border:1px solid #d7e1db;
  border-radius:12px;
  background:#f8fbf9;
  color:#17211d;
  font-weight:850;
}

.booking-page .time-actions #timeOkButton{
  border-color:#1f7a52;
  background:#1f7a52;
  color:#fff;
}

.booking-page .time-actions button:hover,
.booking-page .time-actions button:focus-visible{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(23,33,29,.12);
}

.booking-page .time-actions button:disabled{
  opacity:.45;
  transform:none;
  box-shadow:none;
}

@media(max-width:420px){
  .booking-page .time-dialog{
    width:calc(100vw - 16px);
    border-radius:18px;
  }

  .booking-page .time-picker-header{
    padding:12px 14px;
  }

  .booking-page .time-picker-header strong{
    font-size:30px;
  }

  .booking-page .time-picker-body{
    grid-template-columns:minmax(0,1fr) 70px;
    gap:10px;
    padding:12px;
  }

  .booking-page .clock-face{
    width:min(246px,calc(100vw - 108px));
  }

  .booking-page .clock-face button{
    width:27px;
    height:27px;
    font-size:10px;
  }

  .booking-page .minute-grid button{
    min-height:38px;
    font-size:14px;
  }

  .booking-page .time-actions{
    padding:10px 12px 12px;
  }
}

/* Pickup/return sheet without nested scroll lists */
.booking-page #detailsSheet{
  overflow:hidden !important;
}

.booking-page #detailsSheet .available-time-box{
  display:none !important;
}

.booking-page #detailsSheet .customer-info-box.compact{
  margin:10px 0 12px;
  padding:12px 14px;
  font-size:13px;
  line-height:1.45;
}

.booking-page #detailsSheet>p{
  margin:6px 0;
  font-size:14px;
}

.booking-page #detailsSheet .time-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
}

.booking-page #detailsSheet .time-grid label{
  min-width:0;
  gap:6px;
  font-size:13px;
}

.booking-page #detailsSheet .time-grid select,
.booking-page #detailsSheet .time-grid button{
  min-height:44px !important;
  padding:11px 12px;
  border-radius:12px;
  font-size:15px;
}

.booking-page .clock-face button.caution,
.booking-page .minute-grid button.caution{
  border-color:#e6b64d;
  background:#fff4c7;
  color:#6d4d00;
}

.booking-page .clock-face button.caution:hover,
.booking-page .clock-face button.caution:focus-visible,
.booking-page .minute-grid button.caution:hover,
.booking-page .minute-grid button.caution:focus-visible{
  background:#ffe89a;
  color:#4d3600;
}

.booking-page .clock-face button.caution.active,
.booking-page .minute-grid button.caution.active{
  background:#e6b64d;
  color:#17211d;
  box-shadow:0 6px 14px rgba(230,182,77,.28);
}

.booking-page .clock-face button.caution:disabled,
.booking-page .minute-grid button.caution:disabled{
  opacity:.82;
  cursor:not-allowed;
}

@media(max-width:420px){
  .booking-page #detailsSheet{
    max-height:calc(100dvh - 12px);
  }

  .booking-page #detailsSheet .time-grid{
    gap:9px !important;
  }

  .booking-page #detailsSheet .customer-info-box.compact{
    margin:8px 0 10px;
    padding:10px 12px;
    font-size:12px;
  }
}


.booking-page .booking-main-menu .menu-brand{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  margin:0;
  padding:0 13px;
  border-radius:10px;
  color:#17211d;
  font-size:14px;
  font-weight:800;
  text-decoration:none;
  white-space:nowrap;
}
.booking-page .booking-language-menu,
.booking-page .booking-nav-menu{
  position:relative;
  margin:0;
}
.booking-page .booking-language-menu{margin-left:auto}
.booking-page .booking-language-menu summary,
.booking-page .booking-nav-menu summary{
  width:42px;
  min-height:42px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid #dce4df;
  border-radius:12px;
  background:#f8faf9;
  color:#17211d;
  cursor:pointer;
  list-style:none;
}
.booking-page .booking-language-menu summary::-webkit-details-marker,
.booking-page .booking-nav-menu summary::-webkit-details-marker{display:none}
.booking-page .booking-language-menu[open] summary,
.booking-page .booking-nav-menu[open] summary{background:#e7f3ec;border-color:#9bc7ae}
.booking-page .flag-icon{width:23px;height:16px;display:block;overflow:hidden;border-radius:3px;box-shadow:0 0 0 1px rgba(23,33,29,.18)}
.booking-page .menu-icon{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}
.booking-page .booking-language-panel,
.booking-page .booking-nav-panel{
  position:absolute;
  top:calc(100% + 9px);
  right:0;
  z-index:50;
  min-width:214px;
  display:grid;
  gap:6px;
  padding:8px;
  border:1px solid #dce4df;
  border-radius:14px;
  background:white;
  box-shadow:0 18px 44px rgba(23,33,29,.22);
}
.booking-page .booking-language-panel{min-width:170px}
.booking-page .booking-main-menu .main-menu-link,
.booking-page .booking-main-menu .lang-button{
  min-height:42px;
  display:flex;
  align-items:center;
  gap:10px;
  margin:0;
  padding:0 12px;
  border:0;
  border-radius:10px;
  background:transparent;
  color:#17211d;
  font:inherit;
  font-size:14px;
  font-weight:750;
  text-align:left;
  text-decoration:none;
  white-space:nowrap;
}
.booking-page .booking-main-menu .main-menu-link:hover,
.booking-page .booking-main-menu .lang-button:hover,
.booking-page .booking-main-menu .lang-button.active{background:#e7f3ec;color:#145238}
.booking-page .booking-main-menu .lang-button .flag-icon{flex:0 0 auto}
.booking-page .booking-main-menu #logoutButton{
  width:100%;
  border:0;
  background:transparent;
  color:#17211d;
}
.booking-page .page{margin-top:22px}
.booking-page .content>h2{margin-bottom:18px}
.booking-page .mobile-booking-fields,
.booking-page .sheet-header{display:none}
.booking-page .customer-info-box.compact{margin:14px 0 18px;font-size:14px}
.booking-page .availability-hint[hidden]{display:none}
.booking-page .availability-hint.availability-warning{background:#fff4e5;border-left-color:#f59e0b}
.booking-page .time-picker-trigger{
  width:100%;
  padding:14px 16px;
  border:1px solid #ccc;
  border-radius:14px;
  background:white;
  color:#111;
  font-size:1.05rem;
  text-align:left;
}
.booking-page .time-grid select{
  min-height:46px;
  padding:13px 14px;
  border:1px solid #ccc;
  border-radius:12px;
  background:white;
  font-size:16px;
}

@media(max-width:760px){
  body.booking-page.sheet-open{overflow:hidden}
  .booking-page .booking-main-menu{
    min-height:64px;
    padding:9px 12px;
    gap:8px;
    background:#101312;
    border-bottom:1px solid rgba(255,255,255,.08);
    box-shadow:0 10px 26px rgba(0,0,0,.24);
  }
  .booking-page .booking-main-menu .menu-brand{
    flex:1 1 auto;
    min-width:0;
    max-width:none;
    padding:0;
    overflow:hidden;
    color:#fff;
    font-size:18px;
    font-weight:850;
    letter-spacing:0;
    text-overflow:ellipsis;
  }
  .booking-page .booking-language-menu{margin-left:0}
  .booking-page .booking-language-menu summary,
  .booking-page .booking-nav-menu summary{
    width:44px;
    min-height:44px;
    border-color:rgba(255,255,255,.14);
    background:#1a1e1c;
    color:#e9eeee;
  }
  .booking-page .booking-language-menu[open] summary,
  .booking-page .booking-nav-menu[open] summary{
    border-color:#e6b64d;
    background:#252116;
    color:#fff;
  }
  .booking-page .booking-language-panel,
  .booking-page .booking-nav-panel{
    top:calc(100% + 10px);
    right:0;
    min-width:min(260px,calc(100vw - 24px));
    border-color:#26312c;
    background:#151918;
    box-shadow:0 18px 50px rgba(0,0,0,.42);
  }
  .booking-page .booking-language-panel{min-width:178px}
  .booking-page .booking-main-menu .main-menu-link,
  .booking-page .booking-main-menu .lang-button{
    min-height:46px;
    color:#eef3f0;
    font-size:15px;
  }
  .booking-page .booking-main-menu .main-menu-link:hover,
  .booking-page .booking-main-menu .lang-button:hover,
  .booking-page .booking-main-menu .lang-button.active{background:#213329;color:#fff}
  .booking-page .booking-main-menu #logoutButton{color:#eef3f0}
  .booking-page .page{display:block;width:100%;margin-top:0;padding:10px 10px 80px}
  .booking-page .steps{
    position:sticky;
    top:54px;
    z-index:30;
    display:grid;
    grid-template-columns:1fr 12px 1fr 12px 1fr;
    align-items:center;
    width:100%;
    gap:8px;
    margin:0 0 10px;
    padding:8px 10px;
    border:1px solid #dce4df;
    border-radius:16px;
    background:rgba(255,255,255,.96);
    box-shadow:0 8px 24px rgba(23,33,29,.08);
  }
  .booking-page .step{
    position:relative;
    flex:1 1 0;
    min-height:38px;
    display:flex;
    align-items:center;
    justify-content:center;
    gap:4px;
    margin:0;
    padding:8px 4px;
    border:0;
    border-radius:10px;
    background:transparent;
    box-shadow:none;
    color:#65716b;
    font-size:12px;
    font-weight:850;
    line-height:1;
    text-decoration:none;
  }
  .booking-page .step-arrow{
    width:12px;
    display:grid;
    place-items:center;
    color:#9ca8a2;
    font-size:28px;
    font-weight:500;
    line-height:1;
  }
  .booking-page .step-arrow::before{content:"›"}
  .booking-page .step.done+.step-arrow{
    color:#14764e;
  }
  .booking-page .step.done{color:#14764e;background:#e7f3ec}
  .booking-page .step.active{color:#fff;background:#17211d}
  .booking-page .step.active+.step-arrow{color:#17211d}
  .booking-page .step span{font-size:12px}
  .booking-page .content{padding:18px 10px 22px;border-radius:18px}
  .booking-page .content>h2{margin-bottom:12px;font-size:25px}
  .booking-page .booking-summary{margin-top:0;padding:13px 14px;border-radius:12px}
  .booking-page .mobile-booking-fields{display:grid;gap:10px;margin:14px 0}
  .booking-page .booking-field-trigger{
    width:100%;
    min-height:76px;
    display:grid;
    grid-template-columns:44px minmax(0,1fr);
    align-items:center;
    gap:14px;
    padding:13px 15px;
    border:1px solid #d5ddd9;
    border-radius:16px;
    background:#f9fbfa;
    color:#17211d;
    text-align:left;
  }
  .booking-page .booking-field-icon{
    width:30px;
    height:30px;
    justify-self:center;
    fill:none;
    stroke:#68736e;
    stroke-width:1.9;
    stroke-linecap:round;
    stroke-linejoin:round;
  }
  .booking-page .booking-field-copy{
    min-width:0;
    display:grid;
    gap:3px;
  }
  .booking-page .booking-field-copy>span{color:#65716b;font-size:12px;font-weight:850;text-transform:uppercase}
  .booking-page .booking-field-copy strong{min-width:0;color:#17211d;font-size:16px;line-height:1.25;text-align:left}
  .booking-page .booking-sheet{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:1000;
    max-height:88vh;
    display:none;
    overflow:auto;
    padding:16px 10px 24px;
    border-radius:18px 18px 0 0;
    background:white;
    box-shadow:0 -18px 50px rgba(0,0,0,.28);
  }
  .booking-page .booking-sheet.open{display:block}
  .booking-page .booking-sheet:before{content:"";position:fixed;inset:0;z-index:-1;background:rgba(0,0,0,.42)}
  .booking-page .sheet-header{
    position:sticky;
    top:-16px;
    z-index:3;
    display:flex;
    align-items:center;
    justify-content:space-between;
    margin:-16px -10px 12px;
    padding:14px 12px;
    border-bottom:1px solid #dce4df;
    background:white;
  }
  .booking-page .sheet-header h3{margin:0;font-size:18px}
  .booking-page .sheet-close{
    width:38px;
    min-height:38px;
    display:grid;
    place-items:center;
    padding:0;
    border-radius:50%;
    background:#f1f1f1;
    color:#17211d;
    font-size:24px;
    line-height:1;
  }
  .booking-page .calendar-controls{margin-top:0;gap:8px}
  .booking-page .calendar-controls button{min-height:38px;padding:8px 10px;border-radius:10px;font-size:12px}
  .booking-page .calendar-controls h3{font-size:17px}
  .booking-page .calendar-wrapper{grid-template-columns:1fr;gap:18px;margin-top:16px;padding:0 2px}
  .booking-page .calendar{gap:6px;margin-top:12px}
  .booking-page .calendar-weekday{padding:4px 1px;font-size:11px}
  .booking-page .calendar-day,
  .booking-page .calendar-empty{min-height:42px;border-radius:9px;padding:0}
  .booking-page .date-output{margin-top:0;padding:16px 10px 24px;border-radius:18px 18px 0 0;background:white}
  .booking-page .time-grid,
  .booking-page .available-time-columns{grid-template-columns:1fr}
  .booking-page .available-time-box{padding:14px;border-radius:14px}
  .booking-page .available-time-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;max-height:220px;overflow:auto}
  .booking-page .available-time-slot{padding:8px 4px;border-radius:10px;font-size:12px}
  .booking-page .billing-notice,
  .booking-page .price-box,
  .booking-page .availability-hint{margin-top:14px;padding:16px 14px;border-radius:12px}
  .booking-page .price-box h3{margin-top:0}
  .booking-page .total-price{font-size:20px}
  .booking-page .actions{
    position:sticky;
    bottom:8px;
    display:grid;
    grid-template-columns:auto 1fr;
    gap:10px;
    align-items:center;
    margin-top:18px;
    padding:8px;
    border:1px solid #dce4df;
    border-radius:14px;
    background:rgba(255,255,255,.95);
    box-shadow:0 10px 28px rgba(0,0,0,.16);
    text-align:left;
  }
  .booking-page .actions .back-link{margin:0;padding:10px 8px;font-size:13px}
  .booking-page .actions .next-button{width:100%;padding:13px 10px;border-radius:11px;font-size:14px;text-align:center}
}
.cookie-banner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 18px clamp(18px, 4vw, 54px); box-shadow: 0 -8px 28px rgba(0,0,0,.2); }
.cookie-banner[hidden] { display: none; }
.cookie-banner p { margin: 0; line-height: 1.5; }
.cookie-banner a { color: #b8d4ff; }
.cookie-actions { display: flex; gap: 12px; flex: 0 0 auto; }
.cookie-actions button { white-space: nowrap; }
@media (max-width: 600px) { .steps { position: static; top: auto; } .trailer-type-button { aspect-ratio: auto; min-height: 128px; } .cookie-banner { align-items: stretch; flex-direction: column; } .cookie-actions { display: grid; grid-template-columns: 1fr; } }

/* Nachgebesserte Symbolplatzhalter und Scroll-Schritte */
.trailer-type-label { font-size: clamp(24px, 2.2vw, 32px); line-height: 1.1; font-weight: 900; }
.trailer-type-image-placeholder { width: min(240px, 82%); min-height: 112px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; border: 2px dashed currentColor; border-radius: 14px; background: rgba(255,255,255,.58); }
.trailer-type-image-placeholder strong { font-size: 20px; }
.trailer-type-image-placeholder small { font-size: 13px; opacity: .72; }
.steps.steps-fixed { position: fixed !important; top: 20px; z-index: 100; padding-top: 0; margin-top: 0; }
.steps.steps-at-bottom { position: absolute !important; top: auto; bottom: 60px; left: 32px !important; padding-top: 0; margin-top: 0; }
@media (max-width: 600px) { .steps.steps-fixed, .steps.steps-at-bottom { position: static !important; width: auto !important; padding-top: 20px; } .trailer-type-label { font-size: 24px; } }

/* Finale Kategoriekachel-Proportionen */
.trailer-type-button { aspect-ratio: 2.25 / 1; min-height: 150px; padding: 24px; }
.trailer-type-label { order: -1; font-size: clamp(30px, 3vw, 42px); }
.trailer-type-image-placeholder { width: auto; min-height: 0; border: 0; border-radius: 0; background: transparent; gap: 0; }
.trailer-type-image-placeholder strong { display: none; }
.trailer-type-image-placeholder small { font-size: 14px; opacity: .68; }
@media (max-width: 600px) { .trailer-type-button { aspect-ratio: auto; min-height: 130px; } .trailer-type-label { font-size: 28px; } }

/* Schrittstatus und reservierter Seitenkanal */
.step.ready { background: #fff; color: #007d64; border: 3px solid #00b894; box-shadow: 0 0 0 3px rgba(0,184,148,.13), 0 6px 18px rgba(0,0,0,.10); }
@media (min-width: 901px) { .page.steps-lane-reserved .content { margin-left: 182px; } }
.trailer-type-label { font-size: clamp(26px, 2.5vw, 34px); }
@media (max-width: 600px) { .trailer-type-label { font-size: 25px; } }

/* Stabile Statusspalte ohne horizontale Layoutverschiebung */
.steps-column { flex: 0 0 150px; width: 150px; margin-right: 32px; align-self: stretch; }
.steps-column .steps { position: sticky !important; top: 20px; width: 100%; margin: 0; padding-top: 80px; align-self: flex-start; }
.page.steps-lane-reserved .content { margin-left: 0 !important; }
@media (max-width: 900px) { .steps-column { flex: 0 0 auto; width: 100%; margin-right: 0; } .steps-column .steps { position: static !important; width: 100% !important; padding-top: 20px; } }

/* Deutlicher Übergang von Auswahl zu Buchung */
#booking-section .next-button.selection-ready { background: #00b894; color: #fff; border-color: #008f73; box-shadow: 0 0 0 4px rgba(0,184,148,.16), 0 10px 24px rgba(0,125,100,.18); }
#booking-section .next-button.selection-ready:hover { background: #009f7f; transform: translateY(-2px); }

/* Kompakte 21-Tage-Verfuegbarkeit */
.availability-preview { margin-top: 18px; padding-top: 14px; border-top: 1px solid #dfe4e7; }
.availability-preview > strong { display: block; margin-bottom: 10px; font-size: 14px; }
.availability-preview-days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.availability-preview-day { min-width: 0; display: grid; place-items: center; gap: 1px; padding: 5px 1px; border-radius: 7px; color: #fff; font-style: normal; line-height: 1; }
.availability-preview-day.available { background: #008a55; }
.availability-preview-day.partial { background: #d38a00; }
.availability-preview-day.unavailable { background: #b00020; }
.availability-preview-day small { font-size: 9px; text-transform: uppercase; }
.availability-preview-day b { font-size: 12px; }
.availability-preview-day em { font-size: 8px; font-style: normal; opacity: .9; }

/* Warenkorb */
.cart-page { min-height: 100vh; margin: 0; background: #f2f4f6; color: #17191b; font-family: Arial, sans-serif; }
.cart-shell { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 48px 0 80px; }
.cart-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.cart-header h1 { margin: 4px 0 0; font-size: clamp(38px, 6vw, 64px); }
.cart-eyebrow { color: #007d64; font-weight: 900; text-transform: uppercase; letter-spacing: .12em; }
.cart-back { color: #0057ff; font-weight: 800; }
.cart-items { display: grid; gap: 16px; }
.cart-item, .cart-empty, .cart-summary { background: #fff; border-radius: 20px; padding: 24px; box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.cart-item { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.cart-item h2 { margin: 6px 0; font-size: 22px; }
.cart-item p { margin: 0; color: #5d6268; }
.cart-item-number { color: #007d64; font-weight: 900; }
.cart-item-actions { display: grid; justify-items: end; gap: 12px; }
.cart-item-actions strong { font-size: 22px; }
.cart-summary { margin-top: 24px; }
.cart-summary > div { display: flex; justify-content: space-between; gap: 20px; font-size: 24px; }
.cart-summary button { width: 100%; margin-top: 18px; background: #00b894; color: #fff; }
@media (max-width: 700px) { .cart-header, .cart-item { align-items: stretch; flex-direction: column; } .cart-item-actions { justify-items: stretch; } }

/* Booking page visual refresh: light, clean app-like surface */
.booking-page{
  background:#f4f7f5;
  color:#17211d;
}

.booking-page .booking-main-menu{
  background:rgba(255,255,255,.96);
  border-bottom:1px solid #dce5df;
  box-shadow:0 10px 26px rgba(23,33,29,.08);
}

.booking-page .booking-main-menu .menu-brand{color:#17211d}

.booking-page .booking-language-menu summary,
.booking-page .booking-nav-menu summary{
  background:#f8faf9;
  border-color:#d6e0da;
  color:#26352e;
}

.booking-page .booking-language-menu[open] summary,
.booking-page .booking-nav-menu[open] summary{
  background:#e7f3ec;
  border-color:#1f7a52;
  color:#145238;
}

.booking-page .booking-language-panel,
.booking-page .booking-nav-panel{
  background:#ffffff;
  border-color:#d8e2dc;
  box-shadow:0 18px 44px rgba(23,33,29,.18);
}

.booking-page .booking-main-menu .main-menu-link,
.booking-page .booking-main-menu .lang-button,
.booking-page .booking-main-menu #logoutButton{color:#17211d}

.booking-page .booking-main-menu .main-menu-link:hover,
.booking-page .booking-main-menu .lang-button:hover,
.booking-page .booking-main-menu .lang-button.active{
  background:#e7f3ec;
  color:#145238;
}

.booking-page .content{
  border:1px solid #dce5df;
  background:#ffffff;
  box-shadow:0 18px 46px rgba(23,33,29,.10);
}

.booking-page .content>h2{
  color:#17211d;
  letter-spacing:0;
}

.booking-page .booking-summary{
  border:1px solid #e2e7e4;
  background:#f7faf8;
  color:#26352e;
}

.booking-page .booking-field-trigger{
  border-color:#d7e1db;
  background:#fbfdfc;
  box-shadow:0 8px 22px rgba(23,33,29,.05);
}

.booking-page .booking-field-trigger:active,
.booking-page .booking-field-trigger:focus-visible{
  border-color:#1f7a52;
  background:#f3faf6;
}

.booking-page .booking-field-icon{stroke:#64736b}
.booking-page .booking-field-copy>span{color:#637169}
.booking-page .booking-field-copy strong{color:#17211d}

.booking-page .billing-notice{
  border:1px solid #f0debd;
  border-left:4px solid #e6b64d;
  background:#fffaf0;
  color:#392f1d;
  box-shadow:none;
}

.booking-page .price-box{
  border:1px solid #cfe6da;
  border-left:4px solid #1f7a52;
  background:#eef8f2;
  color:#17211d;
  box-shadow:none;
}

.booking-page .price-box h3{color:#17211d}
.booking-page .total-price span{color:#145238}

.booking-page .actions{
  border-color:#dce5df;
  background:rgba(255,255,255,.96);
}

.booking-page .actions .back-link{
  color:#26352e;
}

.booking-page .actions .next-button{
  background:#1f7a52;
  color:#ffffff;
  border-color:#1f7a52;
}

.booking-page .actions .next-button:disabled{
  background:#8f9a94;
  border-color:#8f9a94;
}

@media(max-width:760px){
  .booking-page .booking-main-menu{
    background:rgba(255,255,255,.97);
    border-bottom:1px solid #dce5df;
    box-shadow:0 10px 28px rgba(23,33,29,.10);
  }

  .booking-page .booking-main-menu .menu-brand{
    color:#17211d;
  }

  .booking-page .booking-language-menu summary,
  .booking-page .booking-nav-menu summary{
    border-color:#d6e0da;
    background:#f8faf9;
    color:#26352e;
  }

  .booking-page .booking-language-menu[open] summary,
  .booking-page .booking-nav-menu[open] summary{
    border-color:#1f7a52;
    background:#e7f3ec;
    color:#145238;
  }

  .booking-page .booking-language-panel,
  .booking-page .booking-nav-panel{
    border-color:#d8e2dc;
    background:#ffffff;
    box-shadow:0 18px 44px rgba(23,33,29,.20);
  }

  .booking-page .booking-main-menu .main-menu-link,
  .booking-page .booking-main-menu .lang-button,
  .booking-page .booking-main-menu #logoutButton{
    color:#17211d;
  }

  .booking-page .booking-main-menu .main-menu-link:hover,
  .booking-page .booking-main-menu .lang-button:hover,
  .booking-page .booking-main-menu .lang-button.active{
    background:#e7f3ec;
    color:#145238;
  }

  .booking-page .steps{
    border-color:#dce5df;
    background:rgba(255,255,255,.96);
    box-shadow:0 8px 24px rgba(23,33,29,.08);
  }

  .booking-page .step.done{
    background:#e7f3ec;
    color:#145238;
  }

  .booking-page .step.active{
    background:#1f7a52;
    color:#ffffff;
  }

  .booking-page .step.active+.step-arrow,
  .booking-page .step.done+.step-arrow{
    color:#1f7a52;
  }

  .booking-page .content{
    border-color:#dce5df;
    background:#ffffff;
    box-shadow:0 16px 42px rgba(23,33,29,.10);
  }

  .booking-page .booking-field-trigger{
    background:#fbfdfc;
  }

  .booking-page .booking-sheet{
    background:#ffffff;
  }

  .booking-page .booking-sheet:before{
    background:rgba(23,33,29,.36);
  }

  .booking-page .sheet-header{
    background:#ffffff;
    border-bottom-color:#dce5df;
  }

  .booking-page .actions{
    border-color:#dce5df;
    background:rgba(255,255,255,.96);
    box-shadow:0 10px 28px rgba(23,33,29,.14);
  }
}

/* Einheitliche Bildproportionen und klare Kartentrennung */
.cards { column-gap: 38px; row-gap: 52px; }
.trailer-card { border: 2px solid #d5dbe0; box-shadow: 0 8px 22px rgba(20,29,38,.10); }
.trailer-card:not(.selected):hover { border-color: #9ca8b2; }
.card-slider { width: 100%; height: auto; aspect-ratio: 16 / 9; min-height: 0; }
.card-slider img { width: 100%; height: 100%; object-fit: cover; object-position: center; }
.home-page .card-image-placeholder { background: radial-gradient(circle at 18% 20%, rgba(230,182,77,.24), transparent 34%), linear-gradient(135deg, #eef6f1, #dcebe2); }
.availability-preview { margin-top: 22px; padding: 16px 10px 4px; border-top: 2px solid #d5dbe0; background: #f7f9fa; border-radius: 12px; }
@media (max-width: 900px) { .cards { row-gap: 38px; } }

.booking-page .selected-trailer-preview{
  display:grid;
  gap:16px;
  margin:14px 0 22px;
}

.booking-page .selected-trailer-card{
  display:grid;
  grid-template-columns:minmax(220px,36%) minmax(0,1fr);
  overflow:hidden;
  border:1px solid #dce5df;
  border-radius:16px;
  background:#fff;
  box-shadow:0 14px 34px rgba(23,33,29,.12);
}

.booking-page .selected-trailer-media{
  position:relative;
  min-height:220px;
  background:#e4ece7;
}

.booking-page .selected-trailer-media img{
  width:100%;
  height:100%;
  min-height:220px;
  display:block;
  object-fit:cover;
}

.booking-page .selected-trailer-placeholder{
  display:grid;
  place-items:center;
  min-height:220px;
  background:radial-gradient(circle at 18% 20%,rgba(230,182,77,.24),transparent 34%),linear-gradient(135deg,#eef6f1,#dcebe2);
  color:#55635c;
  text-align:center;
}

.booking-page .selected-trailer-placeholder span{
  display:grid;
  gap:4px;
}

.booking-page .selected-trailer-placeholder strong{
  color:#17211d;
  font-size:18px;
}

.booking-page .selected-trailer-placeholder small{
  font-weight:750;
}

.booking-page .selected-trailer-gallery-button{
  position:absolute;
  top:50%;
  z-index:2;
  width:38px;
  height:38px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:rgba(23,33,29,.74);
  color:#fff;
  font-size:26px;
  line-height:1;
  transform:translateY(-50%);
  transition:background .16s ease, transform .16s ease;
}

.booking-page .selected-trailer-gallery-button:hover,
.booking-page .selected-trailer-gallery-button:focus-visible{
  background:#1f7a52;
  transform:translateY(-50%) scale(1.08);
}

.booking-page .selected-trailer-gallery-button.prev{left:12px}
.booking-page .selected-trailer-gallery-button.next{right:12px}

.booking-page .selected-trailer-image-count{
  position:absolute;
  right:12px;
  bottom:12px;
  padding:5px 9px;
  border-radius:999px;
  background:rgba(23,33,29,.82);
  color:#fff;
  font-size:12px;
  font-weight:850;
}

.booking-page .selected-trailer-body{
  min-width:0;
  display:grid;
  gap:12px;
  padding:22px;
}

.booking-page .selected-trailer-meta{
  color:#1f7a52;
  font-size:12px;
  font-weight:850;
  letter-spacing:.06em;
  text-transform:uppercase;
}

.booking-page .selected-trailer-body h3{
  margin:0;
  color:#17211d;
  font-size:26px;
  line-height:1.1;
}

.booking-page .selected-trailer-price{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:8px;
}

.booking-page .selected-trailer-price span{
  padding:10px;
  border-radius:10px;
  background:#eef7f2;
}

.booking-page .selected-trailer-price small,
.booking-page .selected-trailer-price strong{
  display:block;
}

.booking-page .selected-trailer-price small{
  margin-bottom:4px;
  color:#65716b;
  font-size:10px;
  font-weight:850;
  text-transform:uppercase;
}

.booking-page .selected-trailer-price strong{
  color:#145238;
  font-size:15px;
}

.booking-page .selected-trailer-details{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px 18px;
}

.booking-page .selected-trailer-details ul{
  display:grid;
  gap:6px;
  margin:0;
  padding:0;
  list-style:none;
}

.booking-page .selected-trailer-details li{
  position:relative;
  padding-left:16px;
  color:#44504a;
  font-size:14px;
  line-height:1.4;
}

.booking-page .selected-trailer-details li:before{
  content:"";
  position:absolute;
  left:0;
  top:.62em;
  width:5px;
  height:5px;
  border-radius:50%;
  background:#1f7a52;
}

.booking-page .selected-trailer-empty{
  margin:0;
  padding:14px 16px;
  border-radius:12px;
  background:#fff8e8;
  color:#5d4b22;
  font-weight:750;
}

.booking-page .site-footer nav a{
  display:inline-flex;
  align-items:center;
  min-height:32px;
  padding:0 8px;
  border-radius:8px;
  transition:background .16s ease, color .16s ease, transform .16s ease;
}

.booking-page .site-footer nav a:hover,
.booking-page .site-footer nav a:focus-visible{
  background:rgba(255,255,255,.12);
  color:#fff;
  transform:translateY(-1px);
}

@media(max-width:760px){
  .booking-page .selected-trailer-card{
    grid-template-columns:1fr;
  }

  .booking-page .selected-trailer-media,
  .booking-page .selected-trailer-media img,
  .booking-page .selected-trailer-placeholder{
    min-height:190px;
  }

  .booking-page .selected-trailer-body{
    padding:18px;
  }

  .booking-page .selected-trailer-price,
  .booking-page .selected-trailer-details{
    grid-template-columns:1fr 1fr;
  }
}

@media(max-width:420px){
  .booking-page .selected-trailer-price,
  .booking-page .selected-trailer-details{
    grid-template-columns:1fr;
  }
}

/* Booking fields as the primary surface on every viewport */
body.booking-page.sheet-open{
  overflow:hidden;
}

.booking-page .mobile-booking-fields{
  display:grid !important;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:18px 0 18px;
}

.booking-page .booking-field-trigger{
  width:100%;
  min-height:78px;
  display:grid;
  grid-template-columns:44px minmax(0,1fr);
  align-items:center;
  gap:14px;
  padding:14px 16px;
  border:1px solid #d7e1db;
  border-radius:16px;
  background:#fbfdfc;
  color:#17211d;
  box-shadow:0 8px 22px rgba(23,33,29,.06);
  text-align:left;
  transition:border-color .16s ease, background .16s ease, transform .16s ease, box-shadow .16s ease;
}

.booking-page .booking-field-trigger:hover,
.booking-page .booking-field-trigger:focus-visible{
  border-color:#1f7a52;
  background:#f3faf6;
  box-shadow:0 12px 28px rgba(31,122,82,.13);
  transform:translateY(-1px);
}

.booking-page .booking-field-icon{
  width:30px;
  height:30px;
  justify-self:center;
  fill:none;
  stroke:#64736b;
  stroke-width:1.9;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.booking-page .booking-field-copy{
  min-width:0;
  display:grid;
  gap:3px;
}

.booking-page .booking-field-copy>span{
  color:#64736b;
  font-size:12px;
  font-weight:850;
  text-transform:uppercase;
}

.booking-page .booking-field-copy strong{
  min-width:0;
  color:#17211d;
  font-size:16px;
  line-height:1.25;
  text-align:left;
}

.booking-page .booking-sheet{
  position:fixed !important;
  left:50% !important;
  right:auto !important;
  bottom:auto !important;
  top:50% !important;
  z-index:1000;
  width:min(1120px,calc(100vw - 32px));
  max-height:min(88vh,860px);
  display:none !important;
  overflow:auto;
  padding:18px;
  border:1px solid #dce5df;
  border-radius:20px;
  background:#fff;
  box-shadow:0 28px 90px rgba(0,0,0,.32);
  transform:translate(-50%,-50%);
}

.booking-page .booking-sheet.open{
  display:block !important;
}

.booking-page .booking-sheet:before{
  content:"";
  position:fixed;
  inset:-100vh -100vw;
  z-index:-1;
  background:rgba(23,33,29,.42);
}

.booking-page .sheet-header{
  position:sticky;
  top:-18px;
  z-index:3;
  display:flex !important;
  align-items:center;
  justify-content:space-between;
  margin:-18px -18px 16px;
  padding:16px 18px;
  border-bottom:1px solid #dce5df;
  background:#fff;
}

.booking-page .sheet-header h3{
  margin:0;
  color:#17211d;
  font-size:20px;
}

.booking-page .sheet-close{
  width:40px;
  min-height:40px;
  display:grid;
  place-items:center;
  padding:0;
  border:0;
  border-radius:50%;
  background:#eef3f0;
  color:#17211d;
  font-size:24px;
  line-height:1;
}

.booking-page .sheet-close:hover,
.booking-page .sheet-close:focus-visible{
  background:#e0eee7;
  color:#145238;
}

.booking-page .booking-nav-panel .account-menu-link{
  min-height:50px;
  margin-bottom:4px;
  border:1px solid #9bc7ae;
  background:#e7f3ec;
  color:#145238;
  font-weight:900;
  box-shadow:inset 0 0 0 1px rgba(31,122,82,.18);
}

.booking-page .booking-nav-panel .account-menu-link:before{
  content:"";
  width:10px;
  height:10px;
  border-radius:50%;
  background:#1f7a52;
  box-shadow:0 0 0 4px rgba(31,122,82,.14);
}

@media(max-width:760px){
  .booking-page .mobile-booking-fields{
    grid-template-columns:1fr;
    gap:10px;
    margin:14px 0;
  }

  .booking-page .booking-sheet{
    left:0 !important;
    right:0 !important;
    top:auto !important;
    bottom:0 !important;
    width:100%;
    max-height:88vh;
    padding:16px 10px 24px;
    border-radius:18px 18px 0 0;
    transform:none;
  }

  .booking-page .sheet-header{
    top:-16px;
    margin:-16px -10px 12px;
    padding:14px 12px;
  }
}

.booking-page .steps,
.booking-page .step-arrow{
  display:none !important;
}

.booking-page .booking-sequence-status{
  margin:-6px 0 16px;
  color:#64736b;
  font-size:15px;
  font-weight:750;
  line-height:1.45;
}

.booking-page .selected-trailer-card{
  opacity:.72;
}

.booking-page .selected-trailer-card.active-booking-card{
  opacity:1;
  border-color:#1f7a52;
  box-shadow:0 0 0 4px rgba(31,122,82,.12),0 16px 38px rgba(23,33,29,.14);
}

.booking-page .selected-trailer-card.is-configured:not(.active-booking-card){
  border-color:#9bc7ae;
}

.booking-page .selected-trailer-card.is-configured:not(.active-booking-card) .selected-trailer-meta{
  color:#14764e;
}


/* Mobile Grundlayout: Header, Navigation und Auswahl ohne Ueberlappungen */
@media (max-width: 600px) {
  .hero,
  .small-hero {
    height: auto;
    min-height: 0;
  }

  .topbar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 18px 16px 12px;
  }

  .mjm-logo {
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }

  .mjm-logo .brand-title {
    font-size: 16px;
    white-space: nowrap;
  }

  .brand-mjm {
    flex: 0 0 85px;
    min-width: 85px;
    transform: scale(.82);
    transform-origin: center;
  }

  .topbar > nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    width: 100%;
  }

  .topbar > nav .lang-button,
  .topbar > nav .account,
  .topbar > nav #logoutButton {
    width: 100%;
    min-width: 0;
    margin: 0;
    text-align: center;
  }

  .topbar > nav .account,
  .topbar > nav #logoutButton {
    grid-column: 1 / -1;
  }

  .topbar > nav .account {
    display: block;
    padding: 10px 12px;
  }

  .hero-content {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    padding: 18px 16px 34px;
    text-align: center;
  }

  .hero-content h1 {
    margin: 0 auto 12px;
    max-width: 360px;
    font-size: clamp(27px, 8vw, 34px);
    line-height: 1.08;
    overflow-wrap: normal;
    word-break: normal;
  }

  .hero-content h1 span {
    display: block;
  }

  .hero-content p {
    font-size: 16px;
    line-height: 1.45;
  }

  .main-menu {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .menu-button {
    width: 100%;
    min-width: 0;
    padding: 13px 8px;
    font-size: 13px;
    line-height: 1.25;
  }

  .menu-button:first-child,
  .menu-button:last-child {
    grid-column: 1 / -1;
  }

  .page {
    width: 100%;
    padding: 0 12px 42px;
  }

  .steps-column .steps,
  .page > .steps {
    gap: 6px;
    padding-top: 12px;
  }

  .step {
    min-width: 0;
    margin-bottom: 10px;
    padding: 11px 4px;
    font-size: 14px;
  }

  .step span {
    font-size: 11px;
  }

  .content {
    min-width: 0;
    padding: 24px 16px;
    border-radius: 18px;
  }

  .content h2 {
    max-width: 350px;
    font-size: clamp(27px, 7.5vw, 32px);
    line-height: 1.12;
  }

  #booking-section > h2 {
    text-wrap: balance;
  }

  .trailer-type-chooser {
    width: 100%;
    gap: 14px;
    margin-top: 20px;
  }

  .trailer-type-button {
    width: 100%;
    max-width: 100%;
    min-height: 112px;
    margin: 0;
    padding: 18px 12px;
  }

  .trailer-type-label {
    max-width: 100%;
    font-size: clamp(22px, 6.4vw, 26px);
    overflow-wrap: anywhere;
    text-align: center;
  }

  .cards {
    width: 100%;
    row-gap: 30px;
    margin-top: 26px;
  }

  .trailer-card,
  .card-body {
    min-width: 0;
  }

  .card-body {
    padding: 20px 16px;
  }
}


/* Klare Hauptnavigation und kompakter Sprachumschalter */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.main-menu {
  flex-wrap: wrap;
}

.main-menu-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 !important;
  padding: 18px 22px;
  border: 0;
  border-right: 1px solid rgba(255,255,255,.22);
  border-radius: 0;
  background: #b00000;
  color: #fff;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.main-menu-link:hover {
  background: #c40000;
  color: #fff;
}

@media (max-width: 600px) {
  .home-page .topbar {
    flex-direction: row;
    align-items: flex-start;
    gap: 6px;
    padding: 14px 12px 10px;
  }

  .home-page .mjm-logo {
    flex: 1 1 auto;
    justify-content: flex-start;
    gap: 6px;
    min-width: 0;
    width: auto;
  }

  .home-page .mjm-logo .brand-title {
    font-size: 13px;
  }

  .home-page .brand-mjm {
    flex-basis: 68px;
    min-width: 68px;
    transform: scale(.72);
    transform-origin: left top;
  }

  .home-page .language-switcher {
    display: flex;
    flex: 0 0 auto;
    grid-template-columns: none;
    gap: 4px;
    width: auto;
  }

  .home-page .language-switcher .lang-button {
    display: grid;
    place-items: center;
    width: 32px;
    min-width: 32px;
    height: 32px;
    margin: 0;
    padding: 0;
    border-radius: 50%;
    font-size: 18px;
    line-height: 1;
  }

  .home-page .hero-content {
    padding-top: 12px;
  }

  .home-page .main-menu {
    display: flex;
    flex-direction: column;
    flex-wrap: nowrap;
  }

  .home-page .main-menu > .menu-button,
  .home-page .main-menu > .main-menu-link {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: auto;
    width: 100%;
    min-height: 50px;
    padding: 13px 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,.25);
    font-size: 15px;
    line-height: 1.2;
  }
}


/* Produktionsnahe Konto- und Rechtstextseiten */
.simple-page {
  display: block;
  max-width: 920px;
  margin: 0 auto;
  padding-top: 34px;
}

.auth-content {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.auth-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 24px;
  margin-top: 24px;
}

.auth-links a,
.checkbox-row a,
.legal-content a {
  color: #8b0000;
  font-weight: 800;
}

.form-status {
  grid-column: 1 / -1;
  margin: 8px 0;
  padding: 14px 16px;
  border-radius: 12px;
  line-height: 1.45;
}

.form-status.success {
  color: #075f49;
  background: #e5fff6;
  border: 1px solid #85d8bc;
}

.form-status.error {
  color: #7a0000;
  background: #fff0f0;
  border: 1px solid #e7aaaa;
}

.legal-page {
  min-height: 100vh;
  background: #f3f5f6;
}

.legal-header {
  padding: 42px max(20px, calc((100% - 920px) / 2));
  color: #fff;
  background: linear-gradient(135deg, #7a0000, #b00000);
}

.legal-header a {
  color: #fff;
  font-weight: 800;
}

.legal-header h1 {
  margin: 22px 0 0;
  font-size: clamp(38px, 7vw, 66px);
}

.legal-content {
  max-width: 920px;
  margin: 34px auto;
  padding: 38px;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,.10);
  line-height: 1.65;
}

.legal-content h2 {
  margin-top: 32px;
  color: #690000;
}

.legal-draft {
  padding: 18px 20px;
  border: 2px solid #d97706;
  border-radius: 14px;
  background: #fff7e6;
  color: #633400;
}

.legal-draft p {
  margin-bottom: 0;
}

.legal-pdf-note {
  margin-top: 32px;
  padding: 16px;
  border-radius: 12px;
  background: #eef1f3;
  font-weight: 800;
}

.legal-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0;
}

.legal-download-button {
  display: inline-block;
  padding: 13px 20px;
  border: 2px solid #111;
  border-radius: 999px;
  color: #111 !important;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.legal-download-button:hover {
  background: #eef1f3;
}

.legal-pdf-preview {
  display: block;
  width: 100%;
  min-height: 720px;
  border: 1px solid #d8dcdf;
  border-radius: 14px;
  background: #eef1f3;
}

@media (max-width: 600px) {
  .simple-page {
    padding-top: 16px;
  }

  .auth-content {
    padding: 24px 16px;
  }

  .legal-header {
    padding: 28px 18px;
  }

  .legal-content {
    margin: 16px 12px 28px;
    padding: 24px 18px;
  }

  .legal-document-actions {
    display: grid;
  }

  .legal-document-actions a {
    width: 100%;
    text-align: center;
  }

  .legal-pdf-preview {
    min-height: 62vh;
  }

  .date-output {
    padding: 16px 12px;
  }

  .time-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }

  .time-grid select,
  .time-grid button,
  .time-grid input {
    width: 100%;
    min-width: 0;
    min-height: 46px;
  }

  .site-footer {
    padding: 26px 18px;
  }

  .site-footer nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
  }

  .site-footer nav a {
    margin: 0;
  }
}

/* Final override: pickup/return sheet without nested scroll lists */
.booking-page #detailsSheet{
  overflow:hidden !important;
}

.booking-page #detailsSheet .available-time-box{
  display:none !important;
}

.booking-page #detailsSheet .customer-info-box.compact{
  margin:10px 0 12px !important;
  padding:12px 14px !important;
  font-size:13px !important;
  line-height:1.45 !important;
}

.booking-page #detailsSheet>p{
  margin:6px 0 !important;
  font-size:14px !important;
}

.booking-page #detailsSheet .time-grid{
  grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  gap:12px !important;
}

.booking-page #detailsSheet .time-grid label{
  min-width:0 !important;
  gap:6px !important;
  font-size:13px !important;
}

.booking-page #detailsSheet .time-grid select,
.booking-page #detailsSheet .time-grid button{
  min-height:44px !important;
  padding:11px 12px !important;
  border-radius:12px !important;
  font-size:15px !important;
}

.booking-page .clock-face button.caution,
.booking-page .minute-grid button.caution{
  border-color:#e6b64d !important;
  background:#fff4c7 !important;
  color:#6d4d00 !important;
}

.booking-page .clock-face button.caution:hover,
.booking-page .clock-face button.caution:focus-visible,
.booking-page .minute-grid button.caution:hover,
.booking-page .minute-grid button.caution:focus-visible{
  background:#ffe89a !important;
  color:#4d3600 !important;
}

.booking-page .clock-face button.caution.active,
.booking-page .minute-grid button.caution.active{
  background:#e6b64d !important;
  color:#17211d !important;
  box-shadow:0 6px 14px rgba(230,182,77,.28) !important;
}

.booking-page .clock-face button.caution:disabled,
.booking-page .minute-grid button.caution:disabled{
  opacity:.82 !important;
  cursor:not-allowed !important;
}

@media(max-width:420px){
  .booking-page #detailsSheet{
    max-height:calc(100dvh - 12px) !important;
  }

  .booking-page #detailsSheet .time-grid{
    gap:9px !important;
  }

  .booking-page #detailsSheet .customer-info-box.compact{
    margin:8px 0 10px !important;
    padding:10px 12px !important;
    font-size:12px !important;
  }
}


/* Mobile booking refinement: compact cards, blue calendar and wheel time picker */
body.booking-page.sheet-open:before{
  display:none;
}

.booking-page .booking-sheet:before{
  display:none !important;
}

.booking-page .selected-trailer-quick-price{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  padding:11px 13px;
  border:1px solid #d7e4dc;
  border-radius:11px;
  background:#f3f8f5;
  color:#334139;
}

.booking-page .selected-trailer-quick-price span{
  font-size:12px;
  font-weight:750;
}

.booking-page .selected-trailer-quick-price strong{
  color:#145238;
  font-size:15px;
  white-space:nowrap;
}

.booking-page .selected-trailer-disclosure{
  width:100%;
}

.booking-page .selected-trailer-disclosure>summary{
  width:100%;
  min-height:46px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 14px;
  border:1px solid #b8c7bf;
  border-radius:11px;
  background:#fff;
  color:#26342d;
  cursor:pointer;
  list-style:none;
  font-size:14px;
  font-weight:800;
}

.booking-page .selected-trailer-disclosure>summary::-webkit-details-marker{display:none}

.booking-page .selected-trailer-disclosure>summary:after{
  content:"+";
  width:24px;
  height:24px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:#eef3f0;
  color:#145238;
  font-size:18px;
  font-weight:500;
}

.booking-page .selected-trailer-disclosure[open]>summary{
  border-color:#9bc7ae;
  border-radius:11px 11px 0 0;
  background:#f2f8f4;
  color:#145238;
}

.booking-page .selected-trailer-disclosure[open]>summary:after{content:"−"}

.booking-page .selected-trailer-disclosure-content{
  display:grid;
  gap:14px;
  padding:14px;
  border:1px solid #9bc7ae;
  border-top:0;
  border-radius:0 0 11px 11px;
  background:#fff;
}

.booking-page #periodSheet{
  background:#f4f8ff !important;
}

.booking-page #periodSheet .sheet-header{
  background:#f4f8ff !important;
  border-bottom-color:#d5e2f2 !important;
}

.booking-page #periodSheet .calendar-block{
  padding:14px;
  border:1px solid #d7e4f3;
  border-radius:16px;
  background:#fff;
  box-shadow:0 8px 24px rgba(52,91,135,.07);
}

.booking-page #periodSheet .calendar-controls button{
  border:1px solid #b9d1e9 !important;
  background:#fff !important;
  color:#22567d !important;
  box-shadow:none !important;
}

.booking-page #periodSheet .calendar-controls button:hover,
.booking-page #periodSheet .calendar-controls button:focus-visible{
  border-color:#77a8d4 !important;
  background:#e4f1ff !important;
}

.booking-page #periodSheet .calendar-day:not(.selected-start):not(.selected-end):not(.selected-range):not(.booked-full):not(.partial-day){
  border:1px solid #dce9f7;
  background:#edf5ff;
  color:#26384b;
}

.booking-page #periodSheet .calendar-day:not(:disabled):hover{
  border-color:#9fc0e5;
  background:#dcecff;
}

.booking-page #periodSheet .calendar-day.partial-day:not(.selected-start):not(.selected-end):not(.selected-range){
  background:#edf5ff !important;
}

.booking-page .sheet-confirm{
  width:100%;
  min-height:48px;
  margin:18px 0 0;
  padding:12px 18px;
  border:1px solid #1f7a52;
  border-radius:12px;
  background:#1f7a52;
  color:#fff;
  font-size:15px;
  font-weight:850;
}

.booking-page .sheet-confirm:hover,
.booking-page .sheet-confirm:focus-visible{
  background:#176440;
}

.booking-page .sheet-confirm:disabled{
  border-color:#c5cec9;
  background:#e8edeb;
  color:#7a8580;
  cursor:not-allowed;
}

.booking-page .booking-date-summary{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
  margin:0 0 14px;
}

.booking-page .booking-date-summary p{
  display:grid;
  gap:4px;
  margin:0 !important;
  padding:11px 12px;
  border:1px solid #dbe5df;
  border-radius:12px;
  background:#f8fbf9;
}

.booking-page .booking-date-summary span{
  color:#64736b;
  font-size:11px;
  font-weight:800;
  letter-spacing:.05em;
  text-transform:uppercase;
}

.booking-page .booking-date-summary strong{
  color:#26342d;
  font-size:14px;
}

.booking-page #detailsSheet .time-grid label{
  display:grid;
  gap:7px !important;
  padding:12px;
  border:1px solid #dbe5df;
  border-radius:13px;
  background:#f8fbf9;
  color:#536159;
  font-size:12px !important;
  font-weight:800;
}

.booking-page #detailsSheet .time-grid select,
.booking-page #detailsSheet .time-grid button{
  width:100%;
  border:1px solid #cbd8d1 !important;
  background:#fff !important;
  color:#17211d !important;
  box-shadow:none !important;
  font-weight:750;
}

.booking-page #detailsSheet .customer-info-box.compact{
  margin:14px 0 0 !important;
  border:1px solid #cfe0f2 !important;
  border-left:4px solid #6d9dcc !important;
  background:#f1f7fd !important;
  color:#344a60 !important;
}

.booking-page .time-dialog{
  width:min(420px,calc(100vw - 24px)) !important;
  grid-template-rows:auto auto auto auto !important;
}

.booking-page .time-picker-body{
  display:grid !important;
  grid-template-columns:minmax(0,1fr) 18px minmax(0,1fr) !important;
  align-items:center !important;
  gap:8px !important;
  padding:14px 16px 8px !important;
}

.booking-page .time-wheel-column{
  min-width:0;
  display:grid;
  gap:7px;
}

.booking-page .time-wheel-column>span{
  color:#64736b;
  font-size:11px;
  font-weight:850;
  letter-spacing:.07em;
  text-align:center;
  text-transform:uppercase;
}

.booking-page .time-wheel-separator{
  padding-top:19px;
  color:#145238;
  font-size:28px;
  font-weight:800;
  text-align:center;
}

.booking-page .time-wheel{
  position:relative !important;
  width:100% !important;
  height:214px !important;
  aspect-ratio:auto !important;
  display:block !important;
  overflow-y:auto !important;
  overscroll-behavior:contain;
  scroll-snap-type:y mandatory;
  scrollbar-width:none;
  margin:0 !important;
  padding:81px 7px !important;
  border:1px solid #d5e1da !important;
  border-radius:15px !important;
  background:linear-gradient(to bottom,#f4f7f5 0,#fff 37%,#eef7f2 37%,#eef7f2 63%,#fff 63%,#f4f7f5 100%) !important;
  box-shadow:inset 0 10px 18px rgba(23,33,29,.04),inset 0 -10px 18px rgba(23,33,29,.04) !important;
}

.booking-page .time-wheel::-webkit-scrollbar{display:none}
.booking-page .time-wheel:before,
.booking-page .time-wheel:after{display:none !important}

.booking-page .time-wheel button{
  position:relative !important;
  inset:auto !important;
  transform:none !important;
  width:100% !important;
  height:44px !important;
  min-height:44px !important;
  display:grid !important;
  place-items:center !important;
  margin:0 0 4px !important;
  padding:0 8px !important;
  border:1px solid transparent !important;
  border-radius:11px !important;
  background:transparent !important;
  color:#344139 !important;
  font-size:17px !important;
  font-weight:750 !important;
  line-height:1 !important;
  scroll-snap-align:center;
  text-decoration:none !important;
}

.booking-page .time-wheel button:before{
  content:none !important;
}

.booking-page .time-wheel button.active{
  border-color:#1f7a52 !important;
  background:#1f7a52 !important;
  color:#fff !important;
  box-shadow:0 6px 14px rgba(31,122,82,.2) !important;
}

.booking-page .time-wheel button.unavailable,
.booking-page .time-wheel button.caution{
  border-color:#edc4c6 !important;
  background:#fff0f1 !important;
  color:#a44a4f !important;
  opacity:.72 !important;
  cursor:not-allowed !important;
}

.booking-page .time-wheel-legend{
  display:flex;
  justify-content:center;
  gap:18px;
  padding:4px 16px 12px;
  color:#64736b;
  font-size:11px;
  font-weight:750;
}

.booking-page .time-wheel-legend span{
  position:relative;
  padding-left:14px;
}

.booking-page .time-wheel-legend span:before{
  content:"";
  position:absolute;
  left:0;
  top:2px;
  width:9px;
  height:9px;
  border-radius:3px;
}

.booking-page .time-wheel-legend .available:before{background:#1f7a52}
.booking-page .time-wheel-legend .unavailable:before{background:#d8898e}

.booking-page .time-actions{
  grid-template-columns:1fr 1.35fr !important;
}

@media(max-width:760px){
  .booking-page .booking-main-menu .menu-brand{
    font-size:16px !important;
    font-weight:600 !important;
  }

  .booking-page .actions{
    position:static !important;
    bottom:auto !important;
  }

  .booking-page .selected-trailer-disclosure>summary{
    display:flex;
  }

  .booking-page #detailsSheet{
    background:#fff !important;
  }
}

@media(max-width:380px){
  .booking-page .booking-date-summary{
    grid-template-columns:1fr;
  }

  .booking-page .time-picker-body{
    padding-inline:10px !important;
  }
}

/* Clickable brand control in the booking header */
.booking-page .booking-main-menu .menu-brand{
  min-height:42px;
  display:inline-flex;
  align-items:center;
  padding:0 12px;
  border:1px solid rgba(31,122,82,.22);
  border-radius:11px;
  background:rgba(231,243,236,.58);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.72);
  transition:border-color .16s ease,background .16s ease,box-shadow .16s ease;
}

.booking-page .booking-main-menu .menu-brand:hover,
.booking-page .booking-main-menu .menu-brand:focus-visible{
  border-color:rgba(31,122,82,.48);
  background:rgba(231,243,236,.9);
  box-shadow:0 4px 12px rgba(23,33,29,.08);
}

@media(max-width:760px){
  .booking-page .booking-main-menu .menu-brand{
    min-height:44px;
    padding:0 10px;
    flex:0 1 auto !important;
    width:max-content;
    max-width:calc(100% - 104px);
    margin-right:auto;
  }

  .booking-page .booking-nav-panel{
    max-height:calc(100dvh - 82px);
    overflow-y:auto;
  }
}
