/* ============================================================
   SegTeam Carolinensiel – Buchungsformular
   Design passend zu segteam-carolinensiel.de
   Orange #ef7c00 · Clean White · Border-radius 15px
   ============================================================ */

html, body {
  height: auto !important;
  overflow: visible !important;
  min-height: 0 !important;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --orange:       #F59E0B;
  --orange-dark:  #D97706;
  --orange-light: #FEF3C7;
  --orange-pale:  #FFFBEB;

  --gray-900: #1a1a1a;
  --gray-700: #444444;
  --gray-500: #888888;
  --gray-300: #cdcdcd;
  --gray-100: #f5f5f5;
  --white:    #ffffff;

  --green:    #2e7d32;
  --green-bg: #e8f5e9;
  --red:      #c62828;
  --red-bg:   #ffebee;

  --radius:   15px;
  --radius-sm: 8px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,.06);
  --shadow-md: 0 4px 20px rgba(0,0,0,.10);
  --shadow-lg: 0 8px 40px rgba(0,0,0,.14);

  --font: 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-size-base: 15px;
  --font-size-sm:   13px;
  --font-size-lg:   17px;
  --font-size-xl:   20px;
  --font-size-2xl:  26px;
  --font-size-3xl:  32px;

  --max-width: 1100px;
  --transition: .25s cubic-bezier(.4,0,.2,1);
}

html { font-size: var(--font-size-base); scroll-behavior: smooth; background: #ffffff; }

body {
  font-family: var(--font);
  background: #ffffff;
  color: var(--gray-900);
  line-height: 1.65;
  margin: 0;
  padding: 0;
}

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  height: auto;
  min-height: 0;
  overflow: visible;
}

/* ---- Booking Main ---- */
.booking-main {
  padding: 1rem 0 1.5rem;
  height: auto;
  min-height: 0;
  overflow: visible;
}

.page-title {
  font-size: var(--font-size-3xl);
  font-weight: 800;
  color: var(--orange);
  text-align: center;
  line-height: 1.15;
  margin-bottom: .6rem;
}

.page-title span { color: var(--orange); }

.page-subtitle {
  text-align: center;
  font-size: var(--font-size-lg);
  color: var(--gray-500);
  margin-bottom: 2.5rem;
}

/* ---- CTA-Button ---- */
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--orange);
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  padding: .9rem 2rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(245,158,11,.35);
  transition: background .15s, transform .1s, box-shadow .15s;
}
.btn-cta:hover {
  background: var(--orange-dark);
  box-shadow: 0 6px 22px rgba(217,119,6,.4);
}
.btn-cta:active { transform: scale(.97); }

/* ---- Form Section ---- */
.form-section {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: .9rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition);
  height: auto;
  min-height: 0;
  overflow: visible;
}

/* ============================================================
   WIZARD (Multi-Step Bestellprozess)
   ============================================================ */

#bookingForm {
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 1.25rem 1.5rem 0;
  display: flex;
  flex-direction: column;
}

/* ---- Progress-Bar ---- */
.wizard-progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .25rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--gray-200, #e5e5e7);
}

.wizard-step-indicator {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  flex-shrink: 0;
  cursor: default;
  transition: opacity var(--transition);
}

.wizard-step-indicator.clickable { cursor: pointer; }
.wizard-step-indicator.clickable:hover { opacity: .8; }

.wizard-step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--gray-200, #e5e5e7);
  color: var(--gray-500);
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition), color var(--transition);
}

.wizard-step-label {
  font-size: .72rem;
  font-weight: 600;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .3px;
}

.wizard-step-indicator.active .wizard-step-num {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 0 0 4px rgba(245,158,11,.18);
}
.wizard-step-indicator.active .wizard-step-label { color: var(--orange); }

.wizard-step-indicator.completed .wizard-step-num {
  background: var(--orange-pale, #FEF3C7);
  color: var(--orange-dark, #b45309);
}
.wizard-step-indicator.completed .wizard-step-label { color: var(--gray-700, #374151); }

.wizard-step-line {
  flex: 1;
  height: 2px;
  background: var(--gray-200, #e5e5e7);
  margin-top: -16px; /* Linie auf Höhe der Kreismitte */
  transition: background var(--transition);
}
.wizard-step-line.completed { background: var(--orange); }

/* ---- Step-Container ---- */
.wizard-step {
  display: none;
  animation: fadeIn .25s ease-out;
}

.wizard-step.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 .35rem;
}

.wizard-subtitle {
  font-size: .92rem;
  color: var(--gray-500);
  margin: 0 0 1rem;
}

/* ---- Übersichts-Step ---- */
.wizard-summary {
  background: var(--gray-100, #f9fafb);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: .55rem;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .92rem;
  padding: .15rem 0;
}

.summary-row .summary-label {
  color: var(--gray-500);
  font-weight: 500;
  flex-shrink: 0;
}

.summary-row .summary-value {
  color: var(--gray-900);
  font-weight: 600;
  text-align: right;
  word-break: break-word;
}

/* ---- Footer (Warenkorb + Navigations-Bar) ---- */
.wizard-footer {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  padding: .85rem 1.5rem 1rem;
  margin: 1rem -1.5rem 0;       /* zieht den Footer bis zum Form-Rand */
  border-top: 1px solid var(--gray-200, #e5e5e7);
  position: sticky;
  bottom: 0;
  background: #ffffff;          /* solides Weiß, nicht durchsichtig */
  box-shadow: 0 -8px 16px -4px rgba(0,0,0,.08);  /* visuelle Trennung beim Scrollen */
  z-index: 10;
  border-bottom-left-radius: var(--radius);
  border-bottom-right-radius: var(--radius);
}

/* Mini-Warenkorb */
.wizard-cart {
  background: var(--gray-100, #f9fafb);
  border: 1px solid var(--gray-200, #e5e5e7);
  border-radius: var(--radius-sm);
  padding: .65rem .85rem;
  max-height: 180px;
  overflow-y: auto;
}

.wizard-cart-head {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-bottom: .35rem;
  font-size: .72rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: .3px;
}

.wizard-cart-icon { width: 14px; height: 14px; flex-shrink: 0; }

.wizard-cart-title { line-height: 1; }

.wizard-cart-items { display: flex; flex-direction: column; gap: .15rem; }

.wizard-cart-empty {
  margin: 0;
  font-size: .85rem;
  color: var(--gray-500);
  font-style: italic;
}

/* Einzelne Item-Zeile (gleiche Struktur wie .price-line) */
.wizard-cart-items .price-line {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .87rem;
  padding: .15rem 0;
  color: var(--gray-900);
  border: none;
}

.wizard-cart-items .price-line span:first-child { color: var(--gray-700, #374151); }
.wizard-cart-items .price-line span:last-child  { font-weight: 600; flex-shrink: 0; }
.wizard-cart-items .price-line.discount span:last-child { color: var(--green, #16a34a); }

/* Untere Reihe: Gesamtpreis + Buttons */
.wizard-footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.wizard-footer-price {
  display: flex;
  flex-direction: column;
  gap: .1rem;
  flex-shrink: 0;
}

.wizard-footer-price-label {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .3px;
  color: var(--gray-500);
  font-weight: 600;
}

.wizard-footer-price-value {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--orange);
}

.wizard-footer-buttons {
  display: flex;
  gap: .5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-back, .btn-next {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .65rem 1.25rem;
  font-family: var(--font);
  font-size: .95rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background var(--transition), transform .1s, box-shadow var(--transition);
  min-height: 40px;
}

.btn-back {
  background: var(--white);
  color: var(--gray-700, #374151);
  border: 1.5px solid var(--gray-300);
}
.btn-back:hover { background: var(--gray-100, #f9fafb); }

.btn-next {
  background: var(--orange);
  color: #fff;
  border: none;
  box-shadow: 0 2px 8px rgba(245,158,11,.25);
}
.btn-next:hover { background: var(--orange-dark, #b45309); }
.btn-next:active { transform: scale(.98); }

/* ---- Mobile Anpassungen Wizard ---- */
@media (max-width: 640px) {
  #bookingForm { padding: 1rem 1rem 0; }

  .wizard-step-label { display: none; }
  .wizard-progress { gap: 0; }

  .wizard-cart { max-height: 130px; }

  .wizard-footer {
    padding: .75rem 1rem .85rem;
    margin: 1rem -1rem 0;
  }

  .wizard-footer-bottom {
    flex-direction: column;
    align-items: stretch;
    gap: .65rem;
  }
  .wizard-footer-buttons { justify-content: stretch; }
  .wizard-footer-buttons > button { flex: 1; justify-content: center; }
}

.form-section:hover {
  box-shadow: var(--shadow-md);
}

.section-title {
  font-size: var(--font-size-lg);
  font-weight: 700;
  color: var(--gray-900);
  margin: 0 0 1rem;
  display: flex;
  align-items: center;
  gap: .6rem;
}

.section-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: var(--orange);
  color: var(--white);
  border-radius: 50%;
  font-size: .9rem;
  font-weight: 800;
  flex-shrink: 0;
}

/* ---- Fahrzeug-Karten ---- */
.vehicle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(155px, 1fr));
  gap: .875rem;
}

.selection-hint {
  background: var(--gray-100);
  color: var(--gray-500);
  border: 1px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  margin-bottom: 1rem;
  font-size: .95rem;
}

.calendar-info-banner {
  margin-top: 1rem;
  padding: .9rem 1rem;
  border-radius: var(--radius-sm);
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  color: #991B1B;
  font-size: .92rem;
  line-height: 1.45;
}

.calendar-info-banner.hidden { display: none; }

.vehicle-card {
  position: relative;
  cursor: pointer;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: all 0.2s ease;
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}

.vehicle-card:hover {
  border-color: var(--orange);
  box-shadow: 0 6px 20px rgba(239,124,0,.18);
  transform: translateY(-2px);
}

.vehicle-card input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

/* Image area – upper portion of card */
.vehicle-img-wrap {
  width: 100%;
  background: #ffffff;
  border-bottom: 1.5px solid var(--gray-200, #ebebeb);
  line-height: 0;
}

.vehicle-img {
  width: 100%;
  height: 130px;
  object-fit: contain;
  background: #ffffff;
  display: block;
  padding: .75rem;
}

/* Text area below image */
.vehicle-card-inner {
  padding: .75rem .75rem .9rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .3rem;
  background: #ffffff;
}

.vehicle-name {
  font-weight: 700;
  font-size: .95rem;
  color: var(--gray-900);
  line-height: 1.2;
}

.price-main {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--orange);
}

.price-discount {
  display: block;
  font-size: .76rem;
  color: var(--gray-500);
  margin-top: .05rem;
}

/* Selected state – orange check badge */
.check-mark {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.2s ease;
  color: #ffffff;
  box-shadow: 0 1px 4px rgba(0,0,0,.25);
}
.check-mark i, .check-mark svg {
  width: 14px;
  height: 14px;
}

.vehicle-card:has(input:checked) {
  border-color: var(--orange);
  background: #ffffff;
  box-shadow: 0 4px 18px rgba(239,124,0,.22);
}

.vehicle-card:has(input:checked) .check-mark { opacity: 1; }

/* ---- Inline Fahrzeug-Kalender ---- */
.vehicle-calendar-area {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--gray-300);
  animation: vc-fadein .22s ease;
}

@keyframes vc-fadein {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.vc-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: .875rem;
}

#vcInlineCalendar {
  display: flex;
  justify-content: center;
  overflow-x: auto;
}

#vcInlineCalendar .flatpickr-calendar {
  box-shadow: none !important;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
}

.vc-times {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem 1.5rem;
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1.5px solid var(--gray-300);
  animation: vc-fadein .18s ease;
}

/* ---- Form Groups ---- */
.form-group {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}

.form-group.full-width { grid-column: 1 / -1; }

.form-group label {
  font-weight: 600;
  font-size: .95rem;
  color: var(--gray-700);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  font-family: var(--font);
  font-size: var(--font-size-base);
  color: var(--gray-900);
  background: var(--white);
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  padding: .55rem .85rem;
  width: 100%;
  min-height: 38px;
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  appearance: none;
  -webkit-appearance: none;
}

.form-group select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M6 8L0 0h12z' fill='%23888'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 10px;
  padding-right: 2.5rem;
  cursor: pointer;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(239,124,0,.18);
}

.form-group textarea {
  resize: vertical;
  min-height: 72px;
  line-height: 1.55;
}

/* ---- Kontakt-Grid ---- */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: .85rem 1rem;
}

/* Adress-Zeilen (full-width) sollen sich über alle 4 Spalten erstrecken */
.contact-grid .form-row.full-width,
.contact-grid .form-group.full-width { grid-column: 1 / -1; }

/* Mittlerer Breakpoint: 2 Spalten */
@media (max-width: 900px) {
  .contact-grid { grid-template-columns: 1fr 1fr; }
}

/* ---- Adress-Zeilen (Straße/Nr, PLZ/Ort) ---- */
.form-row {
  display: flex;
  gap: 12px;
  width: 100%;
}

.form-group-street { flex: 7; }
.form-group-nr     { flex: 3; }
.form-group-plz    { flex: 3; }
.form-group-city   { flex: 7; }

.form-row .form-group label {
  white-space: nowrap;
}

.form-row .form-group input {
  height: 38px;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .form-row {
    flex-direction: column;
  }
  .form-group-street,
  .form-group-nr,
  .form-group-plz,
  .form-group-city {
    flex: 1;
  }
}

/* ---- Zubehör ---- */
.accessory-list {
  display: flex;
  flex-direction: column;
  gap: .625rem;
}

.accessory-list.hidden { display: none; }

.accessory-not-available {
  margin: .5rem 0 0;
  padding: .85rem 1rem;
  background: #f5f5f7;
  border: 1px dashed #c7c7cc;
  border-radius: 8px;
  font-size: .9rem;
  color: #6e6e73;
  font-style: italic;
}

.accessory-not-available.hidden { display: none; }

.accessory-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: .875rem 1.25rem;
  border: 2px solid var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--white);
  transition: border-color var(--transition), background var(--transition);
}

.accessory-item:hover {
  border-color: var(--orange);
  background: var(--orange-pale);
}

.accessory-item:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-pale);
}

.accessory-item input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--orange);
  cursor: pointer;
  flex-shrink: 0;
}

.accessory-info {
  flex: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.accessory-name {
  font-size: var(--font-size-lg);
  font-weight: 600;
  color: var(--gray-900);
}

.accessory-price {
  font-weight: 700;
  font-size: .9rem;
  color: var(--orange);
  background: var(--orange-light);
  padding: .2rem .75rem;
  border-radius: 20px;
  white-space: nowrap;
}

.accessory-price.free {
  color: var(--green);
  background: var(--green-bg);
}

.accessory-price.inquiry {
  color: var(--gray-500);
  background: var(--gray-100);
  border: 1px solid var(--gray-300);
}

/* ---- Zubehör-Verfügbarkeits-Hinweise ---- */
.accessory-avail-hint {
  display: block;
  font-size: .8rem;
  font-weight: 600;
  margin-top: .25rem;
}

.accessory-avail-hint.avail-low {
  color: #D97706;
}

.accessory-avail-hint.avail-soldout {
  color: #DC2626;
}

.accessory-unavailable {
  opacity: .6;
  cursor: not-allowed;
}

.accessory-unavailable input[type="checkbox"] {
  cursor: not-allowed;
}

/* ---- ServiceCard ---- */
.service-card-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.125rem 1.5rem;
  border: 2px dashed var(--gray-300);
  border-radius: var(--radius-sm);
  cursor: pointer;
  background: var(--white);
  transition: border-color var(--transition), background var(--transition);
}

.service-card-label:hover {
  border-color: var(--orange);
  background: var(--orange-pale);
}

.service-card-label:has(input:checked) {
  border-color: var(--orange);
  background: var(--orange-light);
  border-style: solid;
}

.service-card-label input[type="checkbox"] {
  width: 22px;
  height: 22px;
  accent-color: var(--orange);
  cursor: pointer;
  flex-shrink: 0;
}

.service-card-info { flex: 1; }

.sc-title {
  display: block;
  font-weight: 700;
  font-size: var(--font-size-lg);
  color: var(--gray-900);
}

.sc-desc {
  display: block;
  font-size: var(--font-size-sm);
  color: var(--gray-500);
}

.sc-badge {
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
  background: var(--orange);
  padding: .3rem .9rem;
  border-radius: 20px;
  white-space: nowrap;
}

/* ---- Preisübersicht ---- */
.price-summary {
  background: var(--white);
  border: 1.5px solid var(--orange);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: .9rem;
  box-shadow: var(--shadow-sm);
}

.price-title {
  font-size: var(--font-size-xl);
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.price-title i,
.price-title svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--orange); }

.price-breakdown {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 1.125rem 1.5rem;
  margin-bottom: 1rem;
}

.price-placeholder {
  color: var(--gray-500);
  font-style: italic;
}

.price-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .35rem 0;
  border-bottom: 1px solid var(--gray-300);
  font-size: var(--font-size-base);
  color: var(--gray-700);
  gap: 1rem;
}

.price-line:last-child { border-bottom: none; }

.price-line span:last-child { font-weight: 600; white-space: nowrap; }

.price-line.discount { color: var(--green); }

.price-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: .75rem 0 0;
  border-top: 2px solid var(--gray-300);
  font-size: var(--font-size-lg);
  color: var(--gray-700);
}

.price-total strong {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: var(--orange);
}

.price-note {
  font-size: .8rem;
  color: var(--gray-500);
  margin-top: .75rem;
}

/* ---- Datenschutz-Checkbox ---- */
.datenschutz-row {
  margin: 1.5rem 0 1rem;
  padding: 1rem 1.25rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius, 8px);
  background: var(--white);
}

.datenschutz-label {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
  cursor: pointer;
  font-size: .9rem;
  line-height: 1.5;
  color: var(--gray-700, #374151);
}

.datenschutz-label input[type="checkbox"] {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-top: .1rem;
  accent-color: var(--orange);
  cursor: pointer;
}

.datenschutz-link {
  color: var(--orange);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.datenschutz-link:hover {
  color: var(--orange-dark, #c2570a);
}

.datenschutz-row .field-error {
  margin-top: .5rem;
  margin-left: 1.75rem;
}

/* ---- Submit ---- */
.submit-area {
  text-align: center;
  margin-top: .5rem;
  margin-bottom: 1rem;
}

.submit-note {
  font-size: var(--font-size-sm);
  color: var(--gray-500);
  margin-bottom: 1.25rem;
}

.btn-submit {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: var(--radius-sm);
  padding: .7rem 2rem;
  font-family: var(--font);
  font-size: var(--font-size-lg);
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  min-height: 42px;
}

.btn-submit:hover:not(:disabled) {
  background: var(--orange-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }
.btn-submit:disabled { opacity: .6; cursor: not-allowed; }

.btn-submit i,
.btn-submit svg { width: 22px; height: 22px; flex-shrink: 0; }

.btn-svg-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.section-icon {
  width: 22px;
  height: 22px;
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
  color: var(--orange);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  background: var(--white);
  color: var(--orange);
  border: 2px solid var(--orange);
  border-radius: var(--radius-sm);
  padding: .75rem 2rem;
  font-family: var(--font);
  font-size: var(--font-size-base);
  font-weight: 700;
  cursor: pointer;
  transition: background var(--transition), color var(--transition);
  margin-top: 1rem;
}

.btn-secondary:hover {
  background: var(--orange);
  color: var(--white);
}

/* ---- Fehler ---- */
.field-error {
  color: var(--red);
  font-size: .875rem;
  font-weight: 600;
  margin-top: .2rem;
}

.field-error.hidden { display: none; }

.field-hint {
  color: var(--gray-500, #6b7280);
  font-size: .8rem;
  margin-top: .25rem;
}

.input-error {
  border-color: var(--red) !important;
  box-shadow: 0 0 0 3px rgba(198,40,40,.12) !important;
}

/* ---- Erfolgsmeldung ---- */
.success-banner {
  margin-top: 1rem;
  padding: 24px;
  border-radius: 12px;
  border: 2px solid #34C759;
  background: #F0FDF4;
  text-align: center;
  height: auto;
  min-height: 0;
  overflow: visible;
  animation: success-slide-down .28s ease;
}

.success-banner.hidden {
  display: none !important;
}

.success-banner-icon {
  margin-bottom: .65rem;
  color: #34C759;
  display: flex;
  justify-content: center;
}

.success-banner-icon i,
.success-banner-icon svg {
  width: 64px;
  height: 64px;
}

.success-banner h3 {
  font-size: var(--font-size-2xl);
  font-weight: 800;
  color: #1f7a35;
  margin-bottom: .55rem;
}

@keyframes success-slide-down {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.success-banner p {
  font-size: 1rem;
  color: var(--gray-700);
  margin-bottom: .45rem;
}

.booking-ref {
  font-family: monospace;
  font-size: 1.1rem;
  color: var(--orange);
  background: var(--orange-light);
  padding: .25rem .75rem;
  border-radius: var(--radius-sm);
  letter-spacing: .05em;
}


/* ---- Responsive ---- */
@media (max-width: 720px) {
  .page-title { font-size: var(--font-size-2xl); }

  .vehicle-grid { grid-template-columns: repeat(2, 1fr); }

  .vc-times,
  .contact-grid { grid-template-columns: 1fr; }

  .header-inner { flex-direction: column; align-items: flex-start; }

  .form-section { padding: 1.5rem 1.25rem; }

  .btn-submit { width: 100%; justify-content: center; }

  /* Übermäßige Abstände auf Mobile reduzieren */
  .booking-main { padding: 1rem 0 .5rem; }
  .page-subtitle { margin-bottom: 1.25rem; }
  .submit-area { margin-bottom: .5rem; }
  .success-banner { padding: 20px 16px; }
}

@media (max-width: 420px) {
  .vehicle-grid { gap: .5rem; }
  .vehicle-card-inner { padding: .6rem .4rem .75rem; }
  .vehicle-icon { font-size: 2rem; }
  .vehicle-name { font-size: .82rem; }
  .price-main { font-size: .95rem; }
}

/* ---- Dynamische Fahrzeugkarten (Supabase) ---- */
.vehicles-loading,
.load-error {
  grid-column: 1 / -1;
  text-align: center;
  padding: 2rem;
  color: var(--gray-500);
  font-style: italic;
  font-size: var(--font-size-base);
}

.availability-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: .78rem;
  font-weight: 700;
  padding: .22rem .6rem;
  border-radius: 20px;
  margin-top: .3rem;
  text-align: center;
  line-height: 1.2;
}

.availability-badge.hidden { display: none; }

.badge-available {
  background: rgba(52, 199, 89, .12);
  color: #34C759;
  border: 1px solid rgba(52, 199, 89, .28);
}

.badge-partial {
  background: rgba(245, 158, 11, .14);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, .3);
}

.badge-soldout {
  background: rgba(255, 59, 48, .12);
  color: #FF3B30;
  border: 1px solid rgba(255, 59, 48, .28);
}

/* Nicht verfügbar – Overlay */
.unavailable-overlay {
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,.86);
  display: flex;
  flex-direction: column;
  gap: .4rem;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  z-index: 2;
  padding: 1rem;
  text-align: center;
}

.unavailable-overlay span {
  font-size: .85rem;
  font-weight: 700;
  color: #FF3B30;
  background: rgba(255, 59, 48, .1);
  padding: .3rem .85rem;
  border-radius: 20px;
  border: 1px solid rgba(255, 59, 48, .28);
}

.unavailable-overlay small {
  font-size: .74rem;
  color: var(--gray-700);
  max-width: 13rem;
  line-height: 1.35;
}

.unavailable-overlay.hidden { display: none; }

.card-unavailable {
  opacity: .5;
  cursor: not-allowed;
  pointer-events: none;
}

.card-unavailable input { pointer-events: none; }

/* ---- Utility ---- */
.hidden { display: none !important; }

/* ============================================================
   Flatpickr – SegTeam Theme
   ============================================================ */

/* Ausgewählte Tage & Range – SegTeam Orange */
.flatpickr-day.selected,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange,
.flatpickr-day.endRange:hover {
  background: var(--orange) !important;
  border-color: var(--orange) !important;
  color: #fff !important;
}

.flatpickr-day.inRange {
  background: var(--orange-light) !important;
  border-color: transparent !important;
  color: var(--gray-900) !important;
  box-shadow: none !important;
}

/* Hover */
.flatpickr-day:hover {
  background: var(--orange-pale);
}

/* Kalender-Header (Monat/Jahr-Navigation) */
.flatpickr-months .flatpickr-prev-month:hover svg,
.flatpickr-months .flatpickr-next-month:hover svg {
  fill: var(--orange);
}

/* Voll ausgebucht – roter Hintergrund, durchgestrichen */
.flatpickr-day.fp-day-blocked {
  background: #FEE2E2 !important;
  color: #991B1B !important;
  text-decoration: line-through;
  border-color: transparent !important;
  cursor: not-allowed;
}
.flatpickr-day.fp-day-blocked:hover {
  background: #FECACA !important;
}

/* Sperrzeit / Wartung – grau, durchgestrichen */
.flatpickr-day.fp-day-sperr {
  background: #E5E7EB !important;
  color: #6B7280 !important;
  text-decoration: line-through;
  border-color: transparent !important;
  cursor: not-allowed;
}
.flatpickr-day.fp-day-sperr:hover {
  background: #D1D5DB !important;
}

/* Teilweise verfügbar – oranger Hintergrund */
.flatpickr-day.fp-day-partial {
  background: #FEF3C7 !important;
  color: #92400E !important;
  border-color: transparent !important;
}
.flatpickr-day.fp-day-partial:hover {
  background: #FDE68A !important;
}

.flatpickr-day.fp-day-overlap-conflict,
.flatpickr-day.fp-day-overlap-conflict:hover {
  background: #FF3B30 !important;
  color: #fff !important;
  border-color: #FF3B30 !important;
  text-decoration: none;
  box-shadow: 0 0 0 2px rgba(255, 59, 48, .16);
}
