* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: Arial, sans-serif;
  background: #f4f4f4;
  color: #222;
}

.hero {
  height: 32vh;
  min-height: 260px;
  background:
    linear-gradient(rgba(0,0,0,0.45), rgba(0,0,0,0.45)),
    url("images/Front.jpg");
  background-size: cover;
  background-position: center;
  color: white;
  position: relative;
}

.small-hero {
  height: 24vh;
  min-height: 220px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 48px;
}

.logo {
  font-size: 24px;
  font-weight: bold;
}

nav a {
  color: white;
  text-decoration: none;
  margin-left: 18px;
  font-weight: bold;
}

.account {
  border: 1px solid white;
  padding: 8px 14px;
  border-radius: 999px;
}

#logoutButton {
  margin-left: 10px;
  background: transparent;
  color: white;
  border: 1px solid white;
  padding: 6px 12px;
  border-radius: 999px;
}

.hero-content {
  position: absolute;
  left: 48px;
  bottom: 40px;
  max-width: 700px;
}

.hero-content h1 {
  font-size: 44px;
  margin: 0 0 12px;
}

.hero-content p {
  font-size: 19px;
  margin: 0;
}

.page {
  display: flex;
  max-width: 1300px;
  margin: -40px auto 0;
  padding: 0 32px 60px;
  position: relative;
  z-index: 5;
}

.steps {
  width: 150px;
  margin-right: 32px;
  padding-top: 80px;
}

.step {
  background: white;
  margin-bottom: 14px;
  padding: 18px 12px;
  text-align: center;
  border-radius: 14px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.12);
  color: #777;
  font-weight: bold;
}

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

.step.active {
  background: #111;
  color: white;
}

.step.done {
  background: #00b894;
  color: white;
}

.step-link {
  display: block;
  text-decoration: none;
}

.content {
  flex: 1;
  background: white;
  border-radius: 24px;
  padding: 42px;
  box-shadow: 0 10px 28px rgba(0,0,0,0.14);
}

.content h2 {
  margin: 0;
  font-size: 34px;
}

.subtitle {
  margin-top: 10px;
  color: #666;
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 26px;
  margin-top: 36px;
}

.trailer-card {
  border: 1px solid #ddd;
  border-radius: 22px;
  overflow: hidden;
  background: #fff;
  transition: 0.2s;
}

.trailer-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.14);
}

.trailer-card.selected {
  border: 3px solid #00b894;
  box-shadow: 0 0 0 3px rgba(0,184,148,0.2);
}

.card-slider {
  height: 210px;
  position: relative;
  overflow: hidden;
  background: #ddd;
  touch-action: pan-y;
}

.card-image-placeholder {
  display: flex;
  flex-direction: column;
  place-items: center;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #315143;
  font-weight: 700;
  background:
    radial-gradient(circle at 18% 20%, rgba(230,182,77,.24), transparent 34%),
    linear-gradient(135deg, #eef6f1, #dcebe2);
}

.card-image-placeholder span {
  text-align: center;
}

.card-image-placeholder .placeholder-icon {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  padding: 0;
  border: 2px solid currentColor;
  border-radius: 14px;
  font-size: 28px;
  line-height: 1;
  opacity: .7;
}

.card-image-placeholder strong,
.card-image-placeholder small {
  display: block;
}

.card-image-placeholder strong {
  font-size: 18px;
}

.card-image-placeholder small {
  margin-top: 4px;
  color: #64706a;
  font-size: 13px;
  font-weight: 650;
}

.card-slider img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  display: block;
}

.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  padding: 0;
  font-size: 24px;
  line-height: 34px;
  background: rgba(0,0,0,0.65);
}

.slider-btn.prev {
  left: 10px;
}

.slider-btn.next {
  right: 10px;
}

.slider-btn:disabled {
  opacity: 0.35;
  cursor: default;
}

.slider-btn:disabled:hover {
  transform: translateY(-50%);
}

.slider-counter {
  position: absolute;
  right: 12px;
  bottom: 10px;
  z-index: 2;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(0,0,0,0.72);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.card-slider:focus-visible {
  outline: 3px solid #00b894;
  outline-offset: -3px;
}

.card-body {
  padding: 24px;
}

.card-body h3 {
  margin: 0 0 10px;
  font-size: 24px;
}

.card-body p {
  color: #666;
}

ul {
  padding-left: 20px;
  line-height: 1.8;
}

button,
.next-button {
  border: none;
  background: #111;
  color: white;
  padding: 13px 20px;
  border-radius: 999px;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

button:hover,
.next-button:hover {
  background: #333;
}

.actions {
  margin-top: 36px;
  text-align: right;
}

.next-button {
  font-size: 16px;
  padding: 15px 28px;
}

.back-link {
  margin-right: 18px;
  color: #111;
  font-weight: bold;
  text-decoration: none;
}

/* Lightbox */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(7,12,10,0.94);
  z-index: 10050;
  align-items: center;
  justify-content: center;
  padding: 76px clamp(68px, 8vw, 124px) 70px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: min(100%, 1440px);
  max-height: calc(100dvh - 146px);
  display: block;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.45);
}

.lightbox-nav,
.lightbox-close {
  position: fixed;
  z-index: 2;
  width: 56px;
  height: 56px;
  display: grid;
  place-items: center;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255,255,255,0.32);
  border-radius: 50%;
  background: rgba(255,255,255,0.13);
  color: #fff;
  line-height: 1;
  box-shadow: 0 10px 32px rgba(0,0,0,0.28);
  backdrop-filter: blur(12px);
}

.lightbox-nav {
  top: 50%;
  font-size: 45px;
  font-weight: 400;
  transform: translateY(-50%);
}

.lightbox-previous { left: clamp(12px, 2.8vw, 42px); }
.lightbox-next { right: clamp(12px, 2.8vw, 42px); }

.lightbox-close {
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  font-size: 38px;
}

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(255,255,255,0.24);
}

.lightbox-nav:focus-visible,
.lightbox-close:focus-visible {
  outline: 3px solid #70d4a1;
  outline-offset: 3px;
}

.lightbox-counter {
  position: fixed;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 2;
  padding: 7px 13px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  background: rgba(7,12,10,0.68);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  transform: translateX(-50%);
  backdrop-filter: blur(10px);
}

body.lightbox-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .lightbox {
    padding: 72px 10px 66px;
  }

  .lightbox img {
    max-height: calc(100dvh - 138px);
    border-radius: 9px;
  }

  .lightbox-nav,
  .lightbox-close {
    width: 48px;
    height: 48px;
  }

  .lightbox-nav {
    font-size: 39px;
  }

  .lightbox-previous { left: 7px; }
  .lightbox-next { right: 7px; }

  .lightbox-close {
    font-size: 34px;
  }
}

/* Konsistentes Ersatzlayout für ältere Rechtstextseiten */
body.legal-page {
  min-width: 320px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  background: #f3f6f4;
  color: #17211d;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.legal-page .legal-header {
  width: min(1120px, calc(100% - 32px));
  margin: 34px auto 18px;
  padding: clamp(28px, 5vw, 54px);
  border: 1px solid #dce4df;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0, #edf6f1 100%);
  box-shadow: 0 16px 42px rgba(23,33,29,0.09);
}

.legal-page .legal-header a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 8px 13px;
  border: 1px solid #cbd9d1;
  border-radius: 10px;
  background: rgba(255,255,255,0.82);
  color: #176440;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.legal-page .legal-header a:hover,
.legal-page .legal-header a:focus-visible {
  border-color: #79ad8d;
  background: #e7f3ec;
}

.legal-page .legal-header h1 {
  margin: 24px 0 0;
  color: #17211d;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

.legal-page .legal-header p {
  margin: 16px 0 0;
  color: #64706a;
  font-size: 14px;
}

.legal-page .legal-content {
  width: min(920px, calc(100% - 32px));
  flex: 1 0 auto;
  margin: 0 auto 64px;
  padding: clamp(24px, 4vw, 42px);
  border: 1px solid #dce4df;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(23,33,29,0.08);
  color: #4d5a53;
  font-size: 16px;
  line-height: 1.72;
}

.legal-page .legal-content > :first-child { margin-top: 0; }
.legal-page .legal-content > :last-child { margin-bottom: 0; }

.legal-page .legal-content h2 {
  margin: 30px 0 10px;
  color: #17211d;
  font-size: clamp(21px, 3vw, 28px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.legal-page .legal-content p { margin: 0 0 16px; }

.legal-page .legal-content .legal-draft {
  margin-bottom: 28px;
  padding: 18px 20px;
  border: 1px solid #e4bd63;
  border-left: 5px solid #d29a24;
  border-radius: 14px;
  background: #fff8e8;
  color: #5d4b22;
}

.legal-page .legal-content .legal-draft strong {
  display: block;
  margin-bottom: 6px;
  color: #493913;
}

.legal-page .legal-content .legal-draft p {
  margin: 0;
}

.legal-page .legal-content a:not(.next-button):not(.legal-download-button) {
  color: #176440;
  font-weight: 800;
  text-underline-offset: 3px;
}

.legal-page .legal-content ul {
  margin: 10px 0 20px;
  padding-left: 22px;
}

.legal-page .legal-content .next-button,
.legal-page .legal-download-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 18px;
  border: 1px solid #1f7a52;
  border-radius: 11px;
  background: #1f7a52;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.legal-page .legal-download-button {
  background: #fff;
  color: #176440;
}

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

.legal-page .legal-pdf-preview {
  width: 100%;
  min-height: 680px;
  display: block;
  border: 1px solid #dce4df;
  border-radius: 14px;
  background: #eef3f0;
}

.legal-page .legal-pdf-note {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 11px;
  background: #eef3f0;
  font-size: 14px;
}

.legal-page:has(.legal-header) .site-footer nav {
  grid-column: 1 / -1;
}

@media (max-width: 600px) {
  .legal-page .legal-header,
  .legal-page .legal-content {
    width: calc(100% - 20px);
    border-radius: 18px;
  }

  .legal-page .legal-header {
    margin-top: 12px;
    padding: 25px 20px;
  }

  .legal-page .legal-content {
    margin-bottom: 40px;
    padding: 22px 17px;
    font-size: 15px;
    line-height: 1.68;
  }

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

  .legal-page .legal-document-actions a {
    width: 100%;
  }

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

/* Buchungsseite */

.booking-summary {
  margin-top: 24px;
  padding: 16px 20px;
  background: #f1f1f1;
  border-radius: 14px;
}

.calendar-controls {
  margin-top: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.calendar-controls h3 {
  font-size: 24px;
  margin: 0;
  text-transform: capitalize;
}

.calendar-wrapper {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-top: 24px;
}

.calendar-block h3 {
  text-align: center;
  margin-bottom: 12px;
}

.calendar {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
}

.calendar-weekday {
  text-align: center;
  font-weight: bold;
  color: #666;
  padding: 8px;
}

.calendar-day,
.calendar-empty {
  min-height: 58px;
  border-radius: 12px;
}

.calendar-day {
  background: #f4f4f4;
  color: #222;
  font-weight: bold;
}

.calendar-day:hover {
  background: #ddd;
}

.calendar-day.selected-start,
.calendar-day.selected-end {
  background: #0057ff !important;
  color: white !important;
}

.calendar-day.selected-range {
  background: #9ec5ff !important;
  color: #111 !important;
}

.calendar-day.booked {
  background: #d00000 !important;
  color: white !important;
  text-decoration: line-through;
  cursor: not-allowed;
}

.calendar-day.booked:hover {
  background: #d00000 !important;
  color: white !important;
}

.date-output {
  margin-top: 28px;
  padding: 18px 20px;
  border-radius: 14px;
  background: #f8f8f8;
}

.time-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 18px;
}

.time-grid label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  gap: 8px;
}

.time-grid input {
  padding: 12px 14px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 16px;
}

.billing-notice {
  margin-top: 22px;
  padding: 18px 20px;
  background: #fff4e5;
  border-left: 5px solid #f59e0b;
  border-radius: 14px;
}

.billing-notice p {
  margin-bottom: 0;
}

.price-box {
  margin-top: 22px;
  padding: 20px;
  background: #eefaf6;
  border-radius: 14px;
}

.total-price {
  font-size: 22px;
}

.availability-hint {
  margin-top: 22px;
  padding: 18px 20px;
  background: #eef4ff;
  border-left: 5px solid #007bff;
  border-radius: 14px;
}

.availability-hint p {
  margin-bottom: 0;
}

/* Zahlung / Konto / Login */

.payment-options {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 24px 0 34px;
}

.payment-card {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 20px;
  border: 1px solid #ddd;
  border-radius: 18px;
  background: #fafafa;
  font-weight: bold;
  cursor: pointer;
}

.payment-card:hover {
  border-color: #111;
}

.account-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.account-form label {
  display: flex;
  flex-direction: column;
  font-weight: bold;
  gap: 8px;
}

.account-form input {
  padding: 13px 14px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 16px;
}

.checkbox-row {
  grid-column: 1 / -1;
  flex-direction: row !important;
  align-items: center;
}

.account-form .actions {
  grid-column: 1 / -1;
}

.insurance-notice,
.account-required-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: 16px;
}

.insurance-notice {
  background: #fff4e5;
  border-left: 5px solid #f59e0b;
}

.account-required-box {
  background: #eef4ff;
  border-left: 5px solid #007bff;
}

.insurance-notice p,
.account-required-box p {
  margin-bottom: 0;
}

.login-box {
  margin-top: 18px;
  margin-bottom: 28px;
  padding: 22px;
  background: #f1f1f1;
  border-radius: 18px;
}

.booking-list {
  display: grid;
  gap: 18px;
  margin-top: 18px;
  margin-bottom: 34px;
}

.account-booking-card {
  padding: 22px;
  border-radius: 18px;
  background: #f8f8f8;
  border: 1px solid #ddd;
}

.account-booking-card h3 {
  margin-top: 0;
}

.account-booking-card.cancelled {
  opacity: 0.6;
}

.cancel-button {
  background: #8b0000;
}

.cancel-button:hover {
  background: #a80000;
}

/* Mobile Ansicht */


.advisor-back-button {
  margin-top: 18px;
  background: #555;
}

.advisor-back-button:hover {
  background: #333;
}

.admin-shell {
  display: grid;
  gap: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.admin-tile,
.admin-card {
  margin-top: 0;
  padding: 24px;
  border-radius: 18px;
  background: #f8f8f8;
  border: 1px solid #ddd;
}

.admin-tile {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-tile:hover,
.admin-tile.active {
  transform: translateY(-3px);
  border-color: #b00000;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.admin-tile strong {
  display: block;
  margin-top: 10px;
  font-size: 1.15rem;
}

.admin-section {
  display: none;
}

.admin-section.active-admin-section {
  display: block;
}

.admin-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-row {
  padding: 16px;
  border-radius: 14px;
  background: white;
  border: 1px solid #ddd;
}

.admin-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0 22px;
}

.admin-kpi {
  padding: 18px;
  border-radius: 16px;
  background: white;
  border: 1px solid #ddd;
}

.admin-kpi span {
  display: block;
  color: #666;
  font-size: 0.9rem;
}

.admin-kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
}

.tracking-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  margin-top: 22px;
}

.tracking-sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tracking-item {
  padding: 15px;
  border-radius: 14px;
  background: white;
  border: 1px solid #ddd;
  cursor: pointer;
}

.tracking-item.active {
  border-color: #b00000;
  box-shadow: inset 4px 0 0 #b00000;
}

.tracking-map-wrap {
  position: relative;
  min-height: 460px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #e9eef2;
}

.tracking-map-wrap iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}

.tracking-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #b00000;
  border: 3px solid white;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}

.tracking-pin.active {
  background: #ffcc00;
  outline: 4px solid rgba(176,0,0,0.35);
}

.trailer-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.revenue-bars {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.revenue-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 110px;
  gap: 12px;
  align-items: center;
}

.revenue-bar-track {
  height: 18px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
}

.revenue-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #b00000;
}

.fleet-timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.fleet-event {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  background: white;
  border: 1px solid #ddd;
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eee;
  font-size: 0.85rem;
}

.status-pill.good {
  background: #e5f8ed;
  color: #0f7a3a;
}

.status-pill.warning {
  background: #fff4cc;
  color: #8a6200;
}

.status-pill.danger {
  background: #ffecec;
  color: #b00000;
}

.danger-button {
  background: #7a0000;
}

.danger-button:hover {
  background: #540000;
}

.access-denied {
  padding: 22px;
  border-radius: 18px;
  background: #ffecec;
  border-left: 5px solid #d00000;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .admin-grid,
  .admin-kpi-grid,
  .trailer-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tracking-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .page {
    flex-direction: column;
  }

  .steps {
    display: flex;
    width: 100%;
    gap: 12px;
    padding-top: 20px;
    margin-right: 0;
  }

  .step {
    flex: 1;
  }

  .cards {
    grid-template-columns: 1fr;
  }

  .calendar-wrapper {
    grid-template-columns: 1fr;
  }

  .payment-options {
    grid-template-columns: 1fr;
  }

  .account-form {
    grid-template-columns: 1fr;
  }

  .hero-content h1 {
    font-size: 32px;
  }

  .topbar {
    padding: 20px;
  }

  .hero-content {
    left: 24px;
    right: 24px;
  }
}

.calendar-day {
  position: relative;
  overflow: hidden;
}

.calendar-day .day-number {
  position: relative;
  z-index: 2;
}

.calendar-day.selected-start,
.calendar-day.selected-end {
  background: #0057ff !important;
  color: white !important;
}

.calendar-day.selected-range {
  background: #9ec5ff !important;
  color: #111 !important;
}

.calendar-day.booked-full {
  background: #d00000 !important;
  color: white !important;
  text-decoration: line-through;
  cursor: not-allowed;
}

.calendar-day.partial-day {
  background: #f4f4f4 !important;
  color: #111 !important;
}

.calendar-day.partial-day::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  background: #facc15;
  z-index: 1;
}

.calendar-day.partial-return::before {
  top: 0;
  height: var(--return-fill, 50%);
}

.calendar-day.partial-pickup::before {
  bottom: 0;
  height: var(--pickup-fill, 50%);
}
.main-menu {
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 0;
  background: #b00000;
  border-top: 1px solid rgba(255,255,255,0.25);
  border-bottom: 4px solid #7a0000;
}

.menu-button {
  border-radius: 0;
  background: #b00000;
  color: white;
  padding: 18px 26px;
  border-right: 1px solid rgba(255,255,255,0.22);
}

.menu-button:hover {
  background: #c40000;
}

.menu-button.active {
  background: #7a0000;
  color: white;
  transform: translateY(4px);
  box-shadow: inset 0 4px 0 #ffb3b3;
}

.page {
  margin: 0 auto 0;
}

.content-section {
  display: none;
}

.content-section.active-section {
  display: block;
}

.blog-box,
.advisor-box,
.video-card,
.faq-item {
  margin-top: 22px;
  padding: 22px;
  border-radius: 18px;
  background: #f8f8f8;
  border: 1px solid #ddd;
}

.advisor-options {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 22px;
}

.advisor-result {
  margin-top: 24px;
  padding: 22px;
  background: #eefaf6;
  border-left: 5px solid #00b894;
  border-radius: 16px;
}

.advisor-error {
  margin-top: 24px;
  padding: 22px;
  background: #ffecec;
  border-left: 5px solid #d00000;
  border-radius: 16px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 24px;
}

.faq-list {
  display: grid;
  gap: 18px;
  margin-top: 24px;
}


.advisor-back-button {
  margin-top: 18px;
  background: #555;
}

.advisor-back-button:hover {
  background: #333;
}

.admin-shell {
  display: grid;
  gap: 24px;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 22px;
}

.admin-tile,
.admin-card {
  margin-top: 0;
  padding: 24px;
  border-radius: 18px;
  background: #f8f8f8;
  border: 1px solid #ddd;
}

.admin-tile {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.admin-tile:hover,
.admin-tile.active {
  transform: translateY(-3px);
  border-color: #b00000;
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.admin-tile strong {
  display: block;
  margin-top: 10px;
  font-size: 1.15rem;
}

.admin-section {
  display: none;
}

.admin-section.active-admin-section {
  display: block;
}

.admin-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.admin-row {
  padding: 16px;
  border-radius: 14px;
  background: white;
  border: 1px solid #ddd;
}

.admin-row-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.admin-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 18px 0 22px;
}

.admin-kpi {
  padding: 18px;
  border-radius: 16px;
  background: white;
  border: 1px solid #ddd;
}

.admin-kpi span {
  display: block;
  color: #666;
  font-size: 0.9rem;
}

.admin-kpi strong {
  display: block;
  margin-top: 8px;
  font-size: 1.5rem;
}

.tracking-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 22px;
  margin-top: 22px;
}

.tracking-sidebar {
  display: grid;
  gap: 12px;
  align-content: start;
}

.tracking-item {
  padding: 15px;
  border-radius: 14px;
  background: white;
  border: 1px solid #ddd;
  cursor: pointer;
}

.tracking-item.active {
  border-color: #b00000;
  box-shadow: inset 4px 0 0 #b00000;
}

.tracking-map-wrap {
  position: relative;
  min-height: 460px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid #ddd;
  background: #e9eef2;
}

.tracking-map-wrap iframe {
  width: 100%;
  height: 460px;
  border: 0;
  display: block;
}

.tracking-pin {
  position: absolute;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #b00000;
  border: 3px solid white;
  box-shadow: 0 4px 14px rgba(0,0,0,0.35);
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 2;
}

.tracking-pin.active {
  background: #ffcc00;
  outline: 4px solid rgba(176,0,0,0.35);
}

.trailer-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.revenue-bars {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.revenue-bar-row {
  display: grid;
  grid-template-columns: 160px 1fr 110px;
  gap: 12px;
  align-items: center;
}

.revenue-bar-track {
  height: 18px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
}

.revenue-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: #b00000;
}

.fleet-timeline {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.fleet-event {
  display: grid;
  grid-template-columns: 130px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
  background: white;
  border: 1px solid #ddd;
}

.status-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eee;
  font-size: 0.85rem;
}

.status-pill.good {
  background: #e5f8ed;
  color: #0f7a3a;
}

.status-pill.warning {
  background: #fff4cc;
  color: #8a6200;
}

.status-pill.danger {
  background: #ffecec;
  color: #b00000;
}

.danger-button {
  background: #7a0000;
}

.danger-button:hover {
  background: #540000;
}

.access-denied {
  padding: 22px;
  border-radius: 18px;
  background: #ffecec;
  border-left: 5px solid #d00000;
}

.form-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (max-width: 1100px) {
  .admin-grid,
  .admin-kpi-grid,
  .trailer-detail-grid {
    grid-template-columns: 1fr 1fr;
  }

  .tracking-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .main-menu {
    flex-direction: column;
  }

  .menu-button {
    width: 100%;
  }

  .video-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .admin-grid,
  .admin-kpi-grid,
  .trailer-detail-grid,
  .form-grid-2 {
    grid-template-columns: 1fr;
  }

  .fleet-event,
  .revenue-bar-row {
    grid-template-columns: 1fr;
  }
}

.time-picker-trigger {
  width: 100%;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid #ccc;
  background: white;
  color: #111;
  font-size: 1.05rem;
  text-align: left;
  cursor: pointer;
}

.time-picker-trigger:hover {
  border-color: #b00000;
}

.time-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  background: rgba(0,0,0,0.65);
  padding: 18px;
}

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

.time-dialog {
  width: min(520px, 94vw);
  border-radius: 18px;
  overflow: hidden;
  background: #111;
  color: white;
  box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}

.time-display {
  padding: 28px;
  background: #5b5b5b;
  color: #f2f2f2;
  font-size: clamp(3rem, 14vw, 5.2rem);
  line-height: 1;
  text-align: center;
  letter-spacing: 0.04em;
}

.clock-face {
  position: relative;
  width: min(360px, 78vw);
  height: min(360px, 78vw);
  margin: 28px auto 18px;
  border-radius: 50%;
  background: #5a5a5a;
}

.clock-face button {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: white;
  font-size: 1rem;
  cursor: pointer;
}

.clock-face button.active {
  background: #f0f0f0;
  color: #222;
}

.minute-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  padding: 0 28px 18px;
}

.minute-grid button {
  border: 1px solid #555;
  border-radius: 12px;
  background: #222;
  color: white;
  padding: 12px;
  cursor: pointer;
}

.minute-grid button.active {
  background: #b00000;
  border-color: #b00000;
}

.time-actions {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 18px 28px 24px;
}

.time-actions button {
  border: 0;
  background: transparent;
  color: white;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
  padding: 10px 12px;
}

.time-actions button:hover {
  background: rgba(255,255,255,0.1);
  border-radius: 10px;
}

.account-form select,
.time-grid select {
  padding: 13px 14px;
  border: 1px solid #ccc;
  border-radius: 12px;
  font-size: 16px;
  background: white;
}

.availability-hint.availability-warning {
  background: #fff7e6;
  border-left-color: #d97706;
}


/* MaMaJe Patch */
.logo-link {
  color: white;
  text-decoration: none;
}

.logo-link:hover {
  color: #ffdddd;
}

.lang-button {
  margin-left: 8px;
  padding: 7px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.8);
  background: rgba(255,255,255,0.12);
  color: white;
}

.lang-button.active,
.lang-button:hover {
  background: white;
  color: #7a0000;
}

/* Crisp, resolution-independent language flags. */
.language-flag,
.current-language-flag {
  position: relative;
  width: 30px;
  height: 20px;
  display: inline-block;
  flex: 0 0 30px;
  overflow: hidden;
  border: 1px solid rgba(23, 33, 29, 0.25);
  border-radius: 3px;
  background-color: #fff;
  box-shadow: 0 1px 3px rgba(23, 33, 29, 0.16);
  box-sizing: border-box;
}

.language-flag-de {
  background: linear-gradient(
    to bottom,
    #111 0 33.333%,
    #d00 33.333% 66.666%,
    #ffce00 66.666% 100%
  );
}

.language-flag-pl {
  background: linear-gradient(to bottom, #fff 0 50%, #dc143c 50% 100%);
}

.language-flag-en {
  background: repeating-linear-gradient(
    to bottom,
    #b31942 0 7.692%,
    #fff 7.692% 15.384%
  );
}

.language-flag-en::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 43%;
  height: 54%;
  background: #0a3161;
}

.language-flag-en::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 1px;
  width: calc(43% - 2px);
  height: calc(54% - 2px);
  background: radial-gradient(circle, #fff 0 0.7px, transparent 0.9px) 0 0 / 4px 3px;
}

.nav-language-menu summary .current-language-flag,
.booking-language-menu summary .language-flag {
  width: 30px;
  height: 20px;
}

.step {
  background: #ffecec;
  color: #7a0000;
  border: 1px solid #ffc7c7;
}

.step.active {
  background: #8b0000;
  color: white;
}

.step.done {
  background: #00b894;
  color: white;
  border-color: #00b894;
}

.select-button {
  background: #ffecec;
  color: #8b0000;
  border: 1px solid #ffc7c7;
}

.select-button:hover {
  background: #ffd6d6;
}

.trailer-card.selected .select-button,
.select-button.selected {
  background: #00b894;
  color: white;
  border-color: #00b894;
}

.about-layout {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 24px;
  margin-top: 22px;
}

.about-image-card {
  min-height: 260px;
  border-radius: 18px;
  overflow: hidden;
  background: #f1f1f1;
  border: 1px solid #ddd;
  position: relative;
}

.about-image-card img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.about-image-card .image-placeholder {
  display: none;
  padding: 22px;
  color: #666;
}

.about-image-card.image-missing img {
  display: none;
}

.about-image-card.image-missing .image-placeholder {
  display: block;
}

.advisor-result-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.advisor-result-card {
  padding: 18px;
  border-radius: 16px;
  background: white;
  border: 1px solid #d7f0e7;
}

.site-footer {
  padding: 28px 48px;
  background: #111;
  color: white;
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 22px;
  align-items: center;
}

.site-footer a {
  color: white;
  margin-left: 18px;
  text-decoration: none;
}

.admin-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}

.admin-grid.admin-sidebar {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-top: 0;
  position: sticky;
  top: 18px;
}

.admin-sidebar .admin-tile {
  padding: 18px;
}

.admin-sidebar .admin-tile.active {
  border-color: #7a0000;
  background: #ffecec;
  box-shadow: inset 6px 0 0 #7a0000, 0 12px 28px rgba(0,0,0,0.12);
}

.admin-main {
  min-width: 0;
}

.admin-section:first-child {
  display: none;
}

.admin-section.active-admin-section:first-child {
  display: block;
}

.scooter-condition-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.condition-meter {
  height: 12px;
  border-radius: 999px;
  background: #eee;
  overflow: hidden;
}

.condition-meter span {
  display: block;
  height: 100%;
  background: #00b894;
}

@media (max-width: 1100px) {
  .admin-layout,
  .about-layout {
    grid-template-columns: 1fr;
  }

  .admin-grid.admin-sidebar {
    position: static;
  }

  .advisor-result-grid,
  .scooter-condition-grid,
  .site-footer {
    grid-template-columns: 1fr;
  }
}


/* Patch: deutlichere offene Schritte, einzeiliger Hero-Slogan, Beraterkarten mit Bild, Admin-Kalender */
.hero-content {
  max-width: 1180px;
  right: 48px;
}

.hero-content h1 {
  white-space: nowrap;
  font-size: clamp(32px, 4vw, 52px);
}

.step {
  background: #fff1f1;
  color: #8b0000;
  border: 2px solid #f0b7b7;
}

.step.active {
  background: #8b0000;
  color: white;
  border-color: #8b0000;
}

.step.done {
  background: #00b894;
  color: white;
  border-color: #00b894;
}

.advisor-result-card.advisor-trailer-card {
  padding: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: 180px 1fr;
}

.advisor-trailer-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.advisor-trailer-card > div {
  padding: 18px;
}

.advisor-trailer-card ul {
  margin: 10px 0 18px;
  padding-left: 20px;
}

.admin-calendar-grid {
  margin-bottom: 24px;
}

.admin-calendar-head {
  margin-bottom: 12px;
}

.admin-calendar-head h4 {
  margin: 0 0 6px;
}

.admin-calendar-head p {
  margin: 0;
  color: #666;
}

.admin-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.admin-calendar-day {
  min-height: 96px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid #ddd;
  background: #f8f8f8;
}

.admin-calendar-day strong,
.admin-calendar-day span {
  display: block;
}

.admin-calendar-day span {
  margin-top: 8px;
  font-size: 12px;
  line-height: 1.35;
}

.admin-calendar-day.free {
  background: #eafff7;
  border-color: #b7ead7;
}

.admin-calendar-day.partial {
  background: #fff3cd;
  border-color: #ffd966;
}

.admin-calendar-day.busy {
  background: #ffe3e3;
  border-color: #ff9b9b;
}

@media (max-width: 900px) {
  .hero-content h1 {
    white-space: normal;
  }

  .admin-calendar-days {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Kalender-Patch: vergangene Tage und nicht verfügbare Uhrzeiten */
.calendar-day.past-day {
  background: #f1f1f1 !important;
  color: #999 !important;
  text-decoration: line-through;
  cursor: not-allowed;
  opacity: 0.7;
}

.calendar-day.past-day:hover {
  background: #f1f1f1 !important;
  color: #999 !important;
}

.clock-face button:disabled,
.minute-grid button:disabled,
.time-actions button:disabled {
  opacity: 0.28;
  cursor: not-allowed;
  text-decoration: line-through;
}

.clock-face button:disabled:hover,
.minute-grid button:disabled:hover,
.time-actions button:disabled:hover {
  background: transparent;
}

.minute-grid button:disabled:hover {
  background: #222;
}


/* MJM and advanced booking/admin patch */
.mjm-logo { display:flex; align-items:center; gap:14px; line-height:1; }
.mjm-logo .brand-title { font-size:20px; font-weight:900; letter-spacing:.2px; }
.brand-mjm { display:flex; align-items:flex-start; min-width:94px; height:42px; position:relative; }
.brand-mjm > span { display:flex; flex-direction:column; align-items:center; font-weight:950; font-size:24px; line-height:.85; position:relative; }
.brand-mjm > span:nth-child(1) { top:0; }
.brand-mjm > span:nth-child(2) { top:9px; left:-2px; }
.brand-mjm > span:nth-child(3) { top:18px; left:-4px; }
.brand-mjm small { font-size:9px; font-weight:700; opacity:.85; margin-top:3px; }
.hero-content h1 span { display:block; }
.hero-content h1 { white-space:normal; }
.customer-info-box { margin:14px 0 20px; padding:14px 16px; border-radius:16px; background:#fff1f1; border:1px solid #f0b5b5; color:#4a1111; }
.admin-location-filter { display:flex; flex-wrap:wrap; gap:10px; margin:14px 0 18px; }
.admin-location-filter button { border:1px solid #b00000; background:#fff1f1; color:#760000; padding:10px 14px; border-radius:12px; cursor:pointer; font-weight:800; }
.admin-location-filter button.active { background:#7a0000; color:white; box-shadow:0 8px 18px rgba(122,0,0,.22); }
.admin-calendar-controls { margin-top:10px; }
.admin-calendar-months { display:grid; grid-template-columns:repeat(2,minmax(280px,1fr)); gap:18px; }
.admin-month-title { margin:0 0 10px; color:#7a0000; }
.admin-calendar-days.month-grid { grid-template-columns:repeat(7,minmax(44px,1fr)); }
.admin-calendar-day.today, .calendar-day.today { outline:3px solid #1d6bff; outline-offset:2px; }
.admin-calendar-day .small { font-size:11px; opacity:.85; }
.manual-booking-card { margin-top:22px; }
.customer-row { cursor:pointer; transition:transform .15s ease, box-shadow .15s ease; }
.customer-row:hover { transform:translateY(-2px); box-shadow:0 12px 24px rgba(0,0,0,.08); }
.customer-profile-grid { display:grid; grid-template-columns:repeat(3,minmax(160px,1fr)); gap:14px; margin:16px 0; }
.location-disabled-note { font-size:13px; margin-top:8px; color:#7a0000; }
select option:disabled { color:#999; background:#eee; }
@media (max-width: 820px) { .admin-calendar-months, .customer-profile-grid { grid-template-columns:1fr; } .mjm-logo{align-items:flex-start}.mjm-logo .brand-title{font-size:17px}.brand-mjm{transform:scale(.9); transform-origin:left top;} }


/* Dashboard-Fix und Kundenviews */
.visitor-chart {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.visitor-chart-row {
  display: grid;
  grid-template-columns: 120px 1fr 90px;
  align-items: center;
  gap: 12px;
}

.visitor-chart-track {
  min-height: 22px;
  border-radius: 999px;
  background: #f1dada;
  overflow: hidden;
}

.visitor-chart-fill {
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #b00000, #ff5a5a);
}

.admin-row.clickable-row {
  cursor: pointer;
}

.admin-row.clickable-row:hover {
  border-color: #b00000;
  box-shadow: 0 10px 24px rgba(0,0,0,0.09);
}

.login-history-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.login-history-item {
  padding: 12px;
  border-radius: 12px;
  background: #fff7f7;
  border: 1px solid #f0caca;
}

.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  background: #999;
}

.status-dot.online {
  background: #0a9f3f;
}

.status-dot.offline {
  background: #999;
}

.chart-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: end;
  margin: 16px 0;
}

.chart-toolbar label {
  display: grid;
  gap: 6px;
  font-weight: 700;
  color: #333;
}

.chart-toolbar select,
.profit-share-editor input {
  border: 1px solid #d7b0b0;
  border-radius: 12px;
  padding: 10px 12px;
  background: #fff7f7;
}

.trailer-checkboxes {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}

.trailer-checkboxes label {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 999px;
  background: #fff1f1;
  border: 1px solid #e0b5b5;
  font-weight: 700;
}

.line-chart-card {
  border-radius: 18px;
  border: 1px solid #ddd;
  background: linear-gradient(180deg, #ffffff, #fff6f6);
  padding: 14px;
  margin: 14px 0 18px;
  overflow: hidden;
}

.line-chart-scroll {
  width: 100%;
  overflow-x: auto;
}

.line-chart-svg {
  min-width: 760px;
  width: 100%;
  height: auto;
}

.chart-grid-line {
  stroke: #ead7d7;
  stroke-width: 1;
}

.chart-axis-label {
  fill: #755;
  font-size: 13px;
  font-weight: 700;
}

.line-chart-area {
  fill: rgba(176, 0, 0, 0.12);
}

.line-chart-line {
  fill: none;
  stroke: #a00000;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.line-chart-dot {
  fill: #ffffff;
  stroke: #a00000;
  stroke-width: 3;
}

.profit-share-editor {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 14px 0;
}

.profit-share-card {
  padding: 16px;
  border-radius: 16px;
  background: #fff7f7;
  border: 1px solid #e1b9b9;
}

.profit-share-card h4 {
  margin: 0 0 12px;
}

.profit-share-card label {
  display: grid;
  grid-template-columns: 1fr 90px auto;
  gap: 8px;
  align-items: center;
  margin: 8px 0;
  font-weight: 700;
}

.compact-admin-row {
  padding: 14px;
}


/* Fix: Buchungskalender Auswahl und verfügbare Zeitfenster */
.calendar-day.selected-start,
.calendar-day.selected-end {
  background: #0057ff !important;
  color: #ffffff !important;
  border: 3px solid #003cbb !important;
  box-shadow: 0 0 0 3px rgba(0, 87, 255, 0.2) !important;
}

.calendar-day.selected-range {
  background: #b8d4ff !important;
  color: #111111 !important;
  border: 2px solid #6aa5ff !important;
}

.calendar-day.partial-day.selected-start,
.calendar-day.partial-day.selected-end,
.calendar-day.partial-day.selected-range {
  background: #b8d4ff !important;
}

.available-time-box {
  margin-top: 18px;
  padding: 16px;
  border-radius: 16px;
  background: #fff5f5;
  border: 1px solid #ffd0d0;
}

.available-time-box h3 {
  margin: 0 0 8px;
}

.available-time-box p {
  margin: 0 0 14px;
  color: #555;
}

.available-time-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.available-time-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
  max-height: 220px;
  overflow: auto;
}

.available-time-slot {
  border: 1px solid #c9c9c9;
  background: #ffffff;
  color: #111111;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.available-time-slot:hover {
  border-color: #b00000;
}

.available-time-slot.active {
  background: #008a2e;
  color: #ffffff;
  border-color: #008a2e;
}

.time-slot-placeholder {
  display: inline-block;
  color: #777;
  padding: 8px 0;
}

.time-slot-placeholder.warning {
  color: #b00000;
  font-weight: 700;
}

@media (max-width: 760px) {
  .available-time-columns {
    grid-template-columns: 1fr;
  }
}

.warning-marquee{overflow:hidden;background:#a40000;color:white;padding:10px 0;white-space:nowrap;font-weight:bold;}
.warning-marquee span{display:inline-block;padding-left:100%;animation:marqueeMove 24s linear infinite;}
.warning-marquee a{color:inherit;text-underline-offset:3px;}
@keyframes marqueeMove{0%{transform:translateX(0);}100%{transform:translateX(-140%);}}
.cookie-banner{position:fixed;bottom:0;left:0;right:0;background:#1d1d1d;color:white;padding:15px;z-index:9999;}

/* Anhängerkategorie und responsives Modellraster */
.cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cards[hidden], .booking-actions[hidden], .trailer-card[hidden] { display: none; }
.trailer-type-chooser { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 24px; }
.trailer-type-button { min-height: 76px; border: 2px solid #d7dce0; border-radius: 18px; background: #fff; color: #202428; font-size: 18px; font-weight: 800; }
.trailer-type-button:hover, .trailer-type-button.active { border-color: #0057ff; background: #edf4ff; color: #003cbb; }
@media (max-width: 900px) { .trailer-type-chooser, .cards { grid-template-columns: 1fr; } }

/* Interaktive Kategorie-, Karten- und Datenschutzdarstellung */
.steps { position: sticky; top: 20px; align-self: flex-start; }
.trailer-type-button { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, border-color .2s ease; }
.trailer-type-button:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.12); }
.trailer-type-button.has-selection { border-color: #00b894; background: #e7fff7; color: #007d64; box-shadow: 0 0 0 4px rgba(0,184,148,.16); }
.trailer-type-icon { width: min(112px, 42%); height: auto; fill: none; stroke: currentColor; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.trailer-card { cursor: pointer; transition: transform .22s ease, box-shadow .22s ease, background .22s ease, border-color .22s ease; }
.trailer-card.selected { background: #e7fff7; border-color: #00b894; box-shadow: 0 0 0 4px rgba(0,184,148,.18), 0 14px 30px rgba(0,125,100,.16); animation: trailerSelectedPulse .34s ease; }
.trailer-card.selected .card-body { background: transparent; }
.trailer-card:focus-visible, .trailer-type-button:focus-visible { outline: 4px solid rgba(0,87,255,.32); outline-offset: 3px; }
@keyframes trailerSelectedPulse { 50% { transform: translateY(-5px) scale(1.015); } }

/* Site-wide footer tiles */
.site-footer{
  display:grid;
  grid-template-columns:minmax(220px,1fr) auto;
  gap:12px;
  padding:24px clamp(14px,4vw,48px);
  background:#17211d;
  color:#fff;
}

.site-footer>div:first-child,
.site-footer .footer-brand-card{
  min-width:0;
  display:grid;
  gap:5px;
  padding:16px 18px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:14px;
  background:#213029;
}

.site-footer .footer-brand-card strong{font-size:16px}

.site-footer .footer-brand-card span{
  color:rgba(255,255,255,.68);
  font-size:12px;
  line-height:1.4;
}

.site-footer .footer-social{
  display:grid;
  grid-template-columns:repeat(2,minmax(118px,1fr));
  gap:10px;
  padding:0;
  border:0;
  background:transparent;
}

.site-footer .footer-social-link{
  min-height:58px;
  display:grid;
  align-content:center;
  gap:3px;
  padding:10px 14px;
  border:1px solid rgba(255,255,255,.15);
  border-radius:14px;
  background:#213029;
  color:#fff;
  text-decoration:none;
}

.site-footer .footer-social-link small{
  color:rgba(255,255,255,.58);
  font-size:10px;
}

.site-footer .footer-social-link.is-pending{cursor:default}

.site-footer nav{
  grid-column:1/-1;
  display:grid !important;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:8px !important;
  min-width:0;
}

.site-footer nav a{
  min-height:44px !important;
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  margin:0 !important;
  padding:9px 10px !important;
  border:1px solid rgba(255,255,255,.13) !important;
  border-radius:11px !important;
  background:#213029 !important;
  color:rgba(255,255,255,.84) !important;
  font-size:12px;
  font-weight:750;
  text-align:center;
  text-decoration:none;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible{
  border-color:rgba(255,255,255,.34) !important;
  background:#2a3c33 !important;
  color:#fff !important;
  transform:none !important;
}

.site-footer>small{
  grid-column:1/-1;
  padding:2px 4px 0;
  color:rgba(255,255,255,.58);
  font-size:11px;
}

@media(max-width:760px){
  .site-footer{
    grid-template-columns:1fr;
    gap:10px;
    padding:16px 12px 22px;
  }

  .site-footer .footer-social{grid-template-columns:1fr 1fr}
  .site-footer nav{grid-template-columns:repeat(2,minmax(0,1fr))}
  .site-footer nav a:last-child:nth-child(odd){grid-column:1/-1}
}

/* Compact footer controls */
.site-footer{
  grid-template-columns:minmax(0,1fr) auto !important;
  align-items:center;
  gap:9px 14px !important;
  padding:15px clamp(12px,3vw,32px) 17px !important;
}

.site-footer .footer-brand-card,
.site-footer>div:first-child:not(.footer-social){
  display:none !important;
}

.site-footer .footer-social{
  grid-column:2;
  grid-row:1;
  display:flex !important;
  justify-content:flex-end;
  gap:7px;
  min-width:0 !important;
  padding:0 !important;
  border:0 !important;
  border-radius:0 !important;
  background:transparent !important;
}

.site-footer .footer-social-link{
  width:38px;
  min-width:38px;
  height:38px;
  min-height:38px;
  display:grid;
  place-items:center;
  padding:0;
  border:1px solid rgba(255,255,255,.11);
  border-radius:10px;
  background:rgba(255,255,255,.035);
  color:rgba(255,255,255,.72);
}

.site-footer .footer-social-link:not(.is-pending):hover,
.site-footer .footer-social-link:not(.is-pending):focus-visible{
  border-color:rgba(255,255,255,.3);
  background:rgba(255,255,255,.09);
  color:#fff;
}

.site-footer nav{
  grid-column:1;
  grid-row:1;
  grid-template-columns:repeat(5,minmax(0,1fr)) !important;
  gap:6px !important;
}

.site-footer nav a{
  min-height:34px !important;
  padding:5px 7px !important;
  border-color:rgba(255,255,255,.08) !important;
  border-radius:9px !important;
  background:rgba(255,255,255,.025) !important;
  color:rgba(255,255,255,.66) !important;
  font-size:11px !important;
  font-weight:650 !important;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible{
  border-color:rgba(255,255,255,.22) !important;
  background:rgba(255,255,255,.075) !important;
  color:rgba(255,255,255,.92) !important;
}

.site-footer>small{
  grid-column:1/-1;
  padding:0 2px;
  font-size:10px;
}

.social-icon{
  position:relative;
  display:block;
  color:currentColor;
}

.social-icon-instagram{
  width:19px;
  height:19px;
  border:1.8px solid currentColor;
  border-radius:6px;
}

.social-icon-instagram:before{
  content:"";
  position:absolute;
  left:50%;
  top:50%;
  width:7px;
  height:7px;
  border:1.7px solid currentColor;
  border-radius:50%;
  transform:translate(-50%,-50%);
}

.social-icon-instagram:after{
  content:"";
  position:absolute;
  right:3px;
  top:3px;
  width:2.5px;
  height:2.5px;
  border-radius:50%;
  background:currentColor;
}

.social-icon-youtube{
  width:22px;
  height:16px;
  border:1.8px solid currentColor;
  border-radius:6px;
}

.social-icon-youtube:before{
  content:"";
  position:absolute;
  left:8px;
  top:4px;
  width:0;
  height:0;
  border-top:3px solid transparent;
  border-bottom:3px solid transparent;
  border-left:5px solid currentColor;
}

@media(max-width:760px){
  .site-footer{
    grid-template-columns:minmax(0,1fr) auto !important;
    gap:8px 10px !important;
    padding:13px 12px 16px !important;
  }

  .site-footer nav{
    grid-template-columns:repeat(2,minmax(0,1fr)) !important;
  }

  .site-footer .footer-social{
    align-self:start;
  }

  .site-footer nav a:last-child:nth-child(odd){
    grid-column:1/-1;
  }
}

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

  .site-footer nav{
    grid-column:1;
    grid-row:1;
  }

  .site-footer .footer-social{
    grid-column:1;
    grid-row:2;
    justify-content:center;
  }

  .site-footer>small{
    grid-row:3;
    text-align:center;
  }
}
