/* Shared responsive navigation for the public BABO pages. */
.babo-mobile-brand,
.babo-mobile-toggle,
.babo-mobile-drawer,
.babo-mobile-scrim {
  display: none;
}

@media (max-width: 900px) {
  html {
    scroll-padding-top: 72px;
  }

  body.mobile-nav-open {
    overflow: hidden;
  }

  .page {
    padding-top: 64px !important;
  }

  .site-header {
    height: 64px !important;
    min-height: 64px;
    padding: 0 max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)) !important;
    overflow: visible !important;
    justify-content: space-between !important;
    background: rgba(255, 255, 255, .97) !important;
    border-bottom-color: rgba(21, 57, 95, .12) !important;
    box-shadow: 0 8px 28px rgba(17, 35, 51, .07);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
  }

  .site-header > .nav,
  .site-header > .nav-backdrop {
    display: none !important;
  }

  .babo-mobile-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    color: #111820;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .055em;
  }

  .babo-mobile-logo {
    width: 49px;
    height: 34px;
    object-fit: contain;
    filter: brightness(0) saturate(100%);
  }

  .babo-mobile-toggle {
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    margin-right: -4px;
    padding: 0;
    border: 1px solid rgba(21, 57, 95, .16);
    border-radius: 13px;
    color: #fff;
    background: #15395f;
    cursor: pointer;
  }

  .babo-mobile-toggle-lines,
  .babo-mobile-toggle-lines::before,
  .babo-mobile-toggle-lines::after {
    width: 21px;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
    transition: transform .22s ease, opacity .18s ease;
  }

  .babo-mobile-toggle-lines {
    position: relative;
  }

  .babo-mobile-toggle-lines::before,
  .babo-mobile-toggle-lines::after {
    position: absolute;
    left: 0;
    content: "";
  }

  .babo-mobile-toggle-lines::before { transform: translateY(-7px); }
  .babo-mobile-toggle-lines::after { transform: translateY(7px); }

  .mobile-nav-open .babo-mobile-toggle-lines { background: transparent; }
  .mobile-nav-open .babo-mobile-toggle-lines::before { transform: rotate(45deg); }
  .mobile-nav-open .babo-mobile-toggle-lines::after { transform: rotate(-45deg); }

  .babo-mobile-scrim {
    position: fixed;
    inset: 64px 0 0;
    z-index: 998;
    display: block;
    visibility: hidden;
    opacity: 0;
    background: rgba(7, 13, 19, .38);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    transition: opacity .24s ease, visibility .24s ease;
  }

  .babo-mobile-drawer {
    position: fixed;
    top: 64px;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    width: min(88vw, 390px);
    padding: 18px 20px max(24px, env(safe-area-inset-bottom));
    overflow-y: auto;
    color: #111820;
    background: #fff;
    box-shadow: -20px 0 50px rgba(8, 20, 31, .16);
    transform: translateX(105%);
    transition: transform .28s cubic-bezier(.22, .61, .36, 1);
  }

  .mobile-nav-open .babo-mobile-scrim {
    visibility: visible;
    opacity: 1;
  }

  .mobile-nav-open .babo-mobile-drawer {
    transform: translateX(0);
  }

  .babo-mobile-label {
    margin: 16px 12px 7px;
    color: #727b85;
    font-size: 11px;
    font-weight: 750;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .babo-mobile-links {
    display: grid;
    gap: 3px;
  }

  .babo-mobile-links a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 10px 12px;
    border-radius: 12px;
    color: #19222b;
    font-size: 16px;
    font-weight: 620;
  }

  .babo-mobile-links a::after {
    content: "\203A";
    color: #9ba3ab;
    font-size: 24px;
    font-weight: 300;
  }

  .babo-mobile-links a[aria-current="page"] {
    color: #9b6209;
    background: #fff5e5;
  }

  .babo-mobile-login {
    margin-top: auto;
    padding-top: 24px;
  }

  .babo-mobile-login a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    border-radius: 999px;
    color: #fff;
    background: #15395f;
    font-size: 16px;
    font-weight: 720;
  }

  .site-footer {
    padding-right: 22px !important;
    padding-left: 22px !important;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 34px !important;
    width: 100%;
  }

  .footer-grid > :first-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    flex-wrap: wrap;
    gap: 16px 24px;
  }

  .footer-bottom-links {
    flex-wrap: wrap;
    white-space: normal !important;
  }

  .kurier-hero[aria-label="Kurier Service"] {
    min-height: 0 !important;
    height: clamp(210px, 56.25vw, 430px) !important;
  }

  .kurier-hero[aria-label="Kurier Service"] .hero-image-wrap,
  .kurier-hero[aria-label="Kurier Service"] .hero-image {
    width: 100%;
    height: 100%;
  }

  .kurier-hero[aria-label="Kurier Service"] .hero-image {
    object-fit: cover;
    object-position: center center !important;
  }

  .kurier-page .media-slide {
    flex-basis: calc(100vw - 44px) !important;
  }

  .kurier-page .media-frame {
    height: clamp(210px, 56.25vw, 430px) !important;
    aspect-ratio: auto !important;
    border-radius: 22px !important;
  }

  .kurier-page .media-frame video {
    object-fit: cover;
    object-position: center;
  }

  .kurier-hero[aria-label="Fahrzeugtransport Service"] {
    min-height: 0 !important;
    height: clamp(210px, 56.25vw, 430px) !important;
  }

  .kurier-hero[aria-label="Fahrzeugtransport Service"] .hero-image-wrap,
  .kurier-hero[aria-label="Fahrzeugtransport Service"] .hero-image {
    width: 100%;
    height: 100%;
  }

  .kurier-hero[aria-label="Fahrzeugtransport Service"] .hero-image {
    object-fit: cover;
    object-position: center center !important;
  }

  .fahrzeugtransport-page .media-slide {
    flex-basis: calc(100vw - 44px) !important;
  }

  .fahrzeugtransport-page .media-frame {
    height: clamp(210px, 56.25vw, 430px) !important;
    aspect-ratio: auto !important;
    border-radius: 22px !important;
  }

  .fahrzeugtransport-page .media-frame video,
  .fahrzeugtransport-page .media-frame img {
    object-fit: cover;
    object-position: center;
  }

  .hero[aria-label="BABO Logistik Startbereich"] {
    min-height: 0 !important;
    height: auto !important;
    padding-bottom: 24px !important;
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 26px !important;
  }

  .footer-grid > :first-child {
    grid-column: auto;
  }

  .rental-booking-card {
    padding: 18px 20px 22px !important;
  }

  .booking-top {
    display: grid !important;
    gap: 16px !important;
  }

  .rental-tabs {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px !important;
    width: 100%;
  }

  .rental-tab {
    justify-content: center;
    min-width: 0 !important;
    min-height: 48px !important;
    padding: 0 12px !important;
    font-size: 15px !important;
  }

  .rental-tab:last-child {
    grid-column: 1 / -1;
  }

  .booking-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: stretch !important;
    gap: 18px !important;
  }

  .date-group {
    width: 100%;
    min-width: 0;
  }

  .date-control {
    width: 100%;
    min-height: 60px !important;
    grid-template-columns: minmax(0, 1.45fr) minmax(86px, .65fr) !important;
    border-radius: 15px !important;
  }

  .date-part,
  .time-part {
    min-width: 0;
    gap: 9px !important;
    padding: 0 12px !important;
    font-size: 16px !important;
  }

  .date-part svg {
    width: 22px !important;
    height: 22px !important;
  }

  .booking-display {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .show-cars {
    width: 100%;
    min-height: 58px !important;
    border-radius: 15px !important;
    font-size: 17px !important;
  }

  .age-select {
    min-height: 48px;
    margin-top: 16px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .babo-mobile-drawer,
  .babo-mobile-scrim,
  .babo-mobile-toggle-lines,
  .babo-mobile-toggle-lines::before,
  .babo-mobile-toggle-lines::after {
    transition: none !important;
  }
}
