* {
  box-sizing: border-box;
}

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(3, 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;
}

.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;
}

.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(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 95%;
  max-height: 90vh;
  border-radius: 16px;
}

.lightbox-close {
  position: fixed;
  top: 24px;
  right: 32px;
  font-size: 36px;
  background: transparent;
  color: white;
}

/* 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;
}

.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(auto-fit, minmax(260px, 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;}
@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;}
