:root {
  --color-bg: #0b1220;
  --color-bg-alt: #10192e;
  --color-surface: #ffffff;
  --color-surface-alt: #f6f7fb;
  --color-text: #1c2333;
  --color-text-muted: #5b6478;
  --color-primary: #c9a24b;
  --color-primary-dark: #a9822f;
  --color-dark: #0b1220;
  --radius: 10px;
  --shadow: 0 10px 30px rgba(11, 18, 32, 0.12);
  --font-heading: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bs-primary: #c9a24b;
  --bs-primary-rgb: 201, 162, 75;
  --bs-body-font-family: var(--font-body);
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-surface);
  line-height: 1.6;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-primary);
  color: #fff;
  padding: 8px 16px;
  z-index: 1000;
}
.skip-link:focus { left: 0; }

/* Buttons (override Bootstrap 5.3 CSS variables) */
.btn-primary {
  --bs-btn-bg: var(--color-primary);
  --bs-btn-border-color: var(--color-primary);
  --bs-btn-hover-bg: var(--color-primary-dark);
  --bs-btn-hover-border-color: var(--color-primary-dark);
  --bs-btn-active-bg: var(--color-primary-dark);
  --bs-btn-active-border-color: var(--color-primary-dark);
  --bs-btn-color: #1a1300;
  --bs-btn-hover-color: #1a1300;
  --bs-btn-active-color: #1a1300;
  --bs-btn-font-weight: 600;
}

/* Header */
.site-header { background: var(--color-dark); box-shadow: 0 2px 12px rgba(0,0,0,0.25); position: sticky; top: 0; z-index: 500; }
.navbar { padding: 0.85rem 0; }
.logo { font-family: var(--font-heading); font-size: 1.4rem; font-weight: 700; color: #fff; }
.logo span { color: var(--color-primary); }
.main-nav .nav-link { color: #e7e9f2; font-weight: 500; font-size: 0.95rem; }
.main-nav .nav-link:hover { color: var(--color-primary); }
.phone-link { color: #fff; text-decoration: none; font-weight: 500; font-size: 0.9rem; white-space: nowrap; }
.phone-link:hover { color: var(--color-primary); }
.lang-switcher .dropdown-menu { min-width: 10rem; }
.lang-switcher .dropdown-item.active,
.lang-switcher .dropdown-item:active { background: var(--color-primary); color: #1a1300; }
.lang-flag {
  display: inline-block;
  width: 1.15em;
  height: 1.15em;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

/* Hero */
.hero {
  position: relative;
  min-height: clamp(740px, 100vh, 960px);
  display: flex;
  align-items: center;
  background-color: #0b1220;
  color: #fff;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(5,8,15,0.5), rgba(5,8,15,0.78));
  pointer-events: none;
  z-index: 1;
}
.hero-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  padding-top: 90px;
  padding-bottom: 140px;
}
.hero-eyebrow { text-transform: uppercase; letter-spacing: 3px; color: var(--color-primary); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-family: var(--font-heading); font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 0 0 22px; line-height: 1.2; }
.hero-quote { font-style: italic; color: #cfd4e4; max-width: 560px; margin: 0 auto 36px; }
.hero-actions { display: flex; gap: 18px; justify-content: center; flex-wrap: wrap; }

/* Feature cards embedded in the hero, over the video */
.hero-features { margin-top: 56px; transform: translateY(100px); }
.hero-feature-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  padding: 26px 20px;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease;
}
.hero-feature-card:hover { transform: translateY(-4px); background: rgba(255, 255, 255, 0.14); }
.hero-feature-icon { font-size: 1.8rem; color: var(--color-primary); margin-bottom: 12px; }
.hero-feature-card h3 { margin: 0 0 8px; font-size: 1rem; color: #fff; }
.hero-feature-card p { margin: 0; color: #d7dbe8; font-size: 0.85rem; }

/* Section titles */
.section-title { font-family: var(--font-heading); font-size: 2rem; text-align: center; margin: 0 0 8px; }
.section-subtitle { text-align: center; color: var(--color-text-muted); margin: 0 0 44px; }

/* Services */
.services { padding: 80px 0; }
.service-card { border: 1px solid #eaeaf0; border-radius: var(--radius); overflow: hidden; transition: box-shadow 0.2s ease, transform 0.2s ease; background: #fff; }
.service-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.service-img { width: 100%; height: 170px; object-fit: cover; }
.service-body { padding: 24px; }
.service-card h3 { margin: 0 0 10px; font-size: 1.1rem; }
.service-card p { margin: 0; color: var(--color-text-muted); font-size: 0.92rem; }

/* About */
.about { background: var(--color-bg-alt); color: #fff; padding: 80px 0; }
.about .section-title { color: #fff; }
.about-text p { color: #cfd4e4; }
.about-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); object-fit: cover; max-height: 420px; }
.highlight { background: rgba(255,255,255,0.06); border-radius: var(--radius); padding: 20px 14px; font-size: 0.9rem; color: #cfd4e4; text-align: center; }
.highlight span { display: block; font-family: var(--font-heading); font-size: 1.6rem; color: var(--color-primary); }

/* Gallery */
.gallery { padding: 80px 0; background: var(--color-surface-alt); }
.video-showcase { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); background: #000; }
.video-showcase-player { width: 100%; max-height: 520px; display: block; }
.gallery-carousel { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery-carousel .carousel-item img { height: 460px; object-fit: cover; }

/* Steps */
.steps { padding: 80px 0; }
.step-number { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 50%; background: var(--color-primary); color: #1a1300; font-weight: 700; margin-bottom: 14px; }
.step h3 { margin: 0 0 8px; }
.step p { color: var(--color-text-muted); margin: 0; font-size: 0.92rem; }

/* Contact */
.contact { background: var(--color-surface-alt); padding: 80px 0; }
.contact-list li { margin-bottom: 12px; }
.contact-list a { color: var(--color-text); text-decoration: none; font-weight: 500; }
.contact-list a:hover { color: var(--color-primary-dark); }
.contact-logo { max-width: 320px; height: auto; margin-top: 24px; mix-blend-mode: multiply; }
.contact-form { background: #fff; border-radius: var(--radius); padding: 48px; box-shadow: var(--shadow); width: 100%; display: flex; flex-direction: column; justify-content: center; }
.contact-form .form-label { font-size: 1rem; font-weight: 600; }
.contact-form .form-control-lg { font-size: 1.05rem; padding: 0.75rem 1rem; }
.contact-form .form-control:focus { border-color: var(--color-primary); box-shadow: 0 0 0 0.2rem rgba(201,162,75,0.25); }

/* Legal pages */
.legal-page { padding: 80px 0; max-width: 760px; }

.agb-modal-content { border: 0; border-radius: 4px; }
.agb-modal-content .modal-header { background: var(--color-dark); color: #fff; }
.agb-modal-content .modal-title { font-family: 'Playfair Display', serif; font-size: 1.45rem; }
.agb-modal-content .btn-close { filter: invert(1); }
.agb-content { color: #394052; line-height: 1.7; }
.agb-content h3 { color: var(--color-dark); font-size: 1.15rem; margin: 1.75rem 0 0.65rem; }
.agb-content h3:first-child { margin-top: 0; }
.agb-content ol, .agb-content ul { padding-left: 1.5rem; }
.agb-content li { margin-bottom: 0.55rem; }

/* Footer */
.site-footer { background: var(--color-dark); color: #cfd4e4; padding: 56px 0 0; }
.footer-inner .row { padding-bottom: 36px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-col h3, .footer-col h4 { color: #fff; margin: 0 0 14px; }
.footer-col p { margin: 0 0 8px; font-size: 0.9rem; }
.footer-col a { color: #cfd4e4; text-decoration: none; }
.footer-col a:hover { color: var(--color-primary); }
.footer-bottom { padding: 18px 0; text-align: center; font-size: 0.82rem; color: #8890a5; }

/* Booking page (styled after the reference "FLUGDATEN" booking form) */
.booking-page { background: var(--color-dark); padding: 60px 0 90px; min-height: 70vh; }
.booking-card {
  max-width: 760px;
  margin: 0 auto;
  background: #14203a;
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius);
  padding: 32px 28px 36px;
  box-shadow: var(--shadow);
}
.booking-card-header { margin-bottom: 22px; }
.booking-card-header h1 {
  color: #fff;
  font-family: var(--font-heading);
  font-size: 1.5rem;
  letter-spacing: 1px;
  margin: 0;
}
.booking-form { display: flex; flex-direction: column; gap: 16px; }
.booking-input {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 8px;
  padding: 10px 44px 10px 16px;
  cursor: text;
  min-height: 64px;
  justify-content: center;
}
.booking-input-label { font-size: 0.78rem; color: var(--color-text-muted); }
.booking-input-hint { font-size: 0.72rem; color: #9aa1b4; }
.booking-input input,
.booking-input select {
  border: none;
  outline: none;
  font-size: 0.98rem;
  color: var(--color-text);
  background: transparent;
  padding: 0;
}
.booking-input i {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  font-size: 1.1rem;
}
.booking-teaser {
  background: var(--color-surface-alt);
  border-radius: 8px;
  padding: 14px 18px;
  color: var(--color-text);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
}
.booking-teaser i { color: #2e7d32; }
.booking-alert {
  background: #4b3f8f;
  color: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 0.92rem;
}
.booking-field-error { color: #ff8a8a; font-size: 0.8rem; margin-top: -6px; }
.booking-success-alert {
  background: #1f6b3a;
  color: #fff;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 0.92rem;
  margin-bottom: 18px;
}

/* Booking: vehicle selection step */
.booking-trip-summary { color: #cfd4e4; margin-bottom: 20px; font-size: 0.92rem; }
.vehicle-choice-row { margin-bottom: 4px; }
.vehicle-card {
  position: relative;
  display: block;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  border: 3px solid transparent;
  transition: border-color 0.15s ease;
  height: 100%;
}
.vehicle-checkbox { position: absolute; top: 12px; left: 12px; width: 20px; height: 20px; z-index: 2; }
.vehicle-card-img { width: 100%; height: 140px; object-fit: cover; display: block; }
.vehicle-card-body { padding: 14px 16px; }
.vehicle-card-body h3 { font-size: 1.05rem; margin: 0 0 6px; color: var(--color-dark); }
.vehicle-card-body p { font-size: 0.85rem; color: var(--color-text-muted); margin: 0 0 6px; }
.vehicle-card-meta { font-weight: 500; color: var(--color-text) !important; }
.vehicle-card-check { position: absolute; top: 10px; right: 12px; font-size: 1.3rem; color: #d5d9e3; }
.vehicle-checkbox:checked ~ .vehicle-card-check { color: #2e7d32; }
.vehicle-card:has(.vehicle-checkbox:checked) { border-color: var(--color-primary); }

/* Booking: confirmation step */
.booking-confirmed { text-align: center; color: #fff; padding: 20px 10px; }
.booking-confirmed-icon { font-size: 3rem; color: #2e7d32; display: block; margin-bottom: 16px; }
.booking-confirmed p { color: #cfd4e4; margin-bottom: 22px; }

/* Booking status page */
.status-card { text-align: center; }
.status-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 1.2rem; font-weight: 600; padding: 10px 20px; border-radius: 999px; }
.status-badge-approved { background: #1f6b3a; color: #fff; }
.status-badge-rejected { background: #7a2323; color: #fff; }
.status-badge-pending { background: #4b3f8f; color: #fff; }
.status-card p { color: #cfd4e4; }
.vehicle-result-card { background: #fff; border-radius: 10px; overflow: hidden; margin-top: 22px; text-align: left; }
.vehicle-result-img { width: 100%; height: 220px; object-fit: cover; display: block; }
.vehicle-result-body { padding: 20px 22px; }
.vehicle-result-body h2 { color: var(--color-dark); margin: 0 0 8px; }
.vehicle-result-list { list-style: none; padding: 0; margin: 14px 0 0; color: var(--color-text); }
.vehicle-result-list li { margin-bottom: 8px; }

/* Auth pages (login/register/password reset) */
.auth-page { background: var(--color-surface-alt); padding: 70px 0 90px; min-height: 65vh; }
.auth-card {
  max-width: 460px;
  margin: 0 auto;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 34px 30px;
}
.auth-card h1 { font-family: var(--font-heading); font-size: 1.6rem; margin-bottom: 18px; }
.auth-card .form-control,
.auth-card input[type="text"],
.auth-card input[type="email"],
.auth-card input[type="password"] {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #dcdfe8;
  border-radius: 8px;
  font-family: inherit;
}
.auth-links { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; text-align: center; }
.auth-links a { color: var(--color-primary-dark); text-decoration: none; font-size: 0.9rem; }
.auth-links a:hover { text-decoration: underline; }
.account-switcher .dropdown-menu { min-width: 12rem; }

/* Admin dashboard */
.dashboard-page { background: var(--color-surface-alt); padding: 50px 0 80px; }
.stat-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 20px;
  text-align: center;
}
.stat-value { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--color-primary-dark); }
.stat-label { font-size: 0.85rem; color: var(--color-text-muted); }
.chart-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 24px; }
.chart-card h2 { font-size: 1.1rem; margin-bottom: 14px; }
.pending-booking-card { background: var(--color-surface-alt); border-radius: 8px; padding: 16px 18px; height: 100%; }
.pending-booking-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 0.95rem; }
.pending-decision-form { margin-top: 8px; }

/* Admin dashboard: section nav */
.dashboard-nav { display: flex; flex-wrap: wrap; gap: 6px; border-bottom: 1px solid #e2e5ee; padding-bottom: 4px; }
.dashboard-nav .nav-link { color: var(--color-text-muted); font-weight: 500; padding: 8px 14px; border-radius: 8px 8px 0 0; }
.dashboard-nav .nav-link:hover { background: #eef0f6; }
.dashboard-nav .nav-link.active { color: var(--color-primary-dark); background: #fff; box-shadow: var(--shadow); }
.stat-card-prediction { border: 2px dashed var(--color-primary); }

/* Admin dashboard: Buchungen (color-coded) */
.booking-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 4px; }
.booking-dot-red { background: #c0392b; }
.booking-dot-green { background: #2e7d32; }
.booking-dot-yellow { background: #d4a017; }
.booking-row-red { background: rgba(192,57,43,0.06); }
.booking-row-green { background: rgba(46,125,50,0.06); }
.booking-row-yellow { background: rgba(212,160,23,0.08); }
.booking-filter-red { border: 1px solid #c0392b; color: #c0392b; }
.booking-filter-red.active { background: #c0392b; color: #fff; }
.booking-filter-green { border: 1px solid #2e7d32; color: #2e7d32; }
.booking-filter-green.active { background: #2e7d32; color: #fff; }
.booking-filter-yellow { border: 1px solid #d4a017; color: #d4a017; }
.booking-filter-yellow.active { background: #d4a017; color: #fff; }

/* Admin dashboard: status badges (Kunden/Mitarbeiter/Autos) */
.badge-status { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 600; }
.badge-status-active { background: rgba(46,125,50,0.12); color: #2e7d32; }
.badge-status-inactive { background: rgba(192,57,43,0.12); color: #c0392b; }
.badge-status-free { background: rgba(75,63,143,0.12); color: #4b3f8f; }
.badge-status-vacation { background: rgba(212,160,23,0.15); color: #a3790f; }

/* Admin dashboard: Mitarbeiter / Autos cards */
.employee-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; height: 100%; border-left: 4px solid #d5d9e3; }
.employee-card-active { border-left-color: #2e7d32; }
.employee-card-free { border-left-color: #4b3f8f; }
.employee-card-vacation { border-left-color: #d4a017; }
.employee-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }

/* User dashboard (Meine Daten / Meine Fahrten) */
.user-dashboard-card { max-width: 620px; }
.user-dashboard-card-wide { max-width: 900px; }
.user-dashboard-nav { display: flex; gap: 8px; margin-bottom: 18px; }
.user-dashboard-nav a { padding: 8px 16px; border-radius: 8px; text-decoration: none; color: var(--color-text-muted); font-weight: 500; background: var(--color-surface-alt); }
.user-dashboard-nav a.active { background: var(--color-primary); color: #fff; }
.trip-section-title { font-size: 1.05rem; margin: 0 0 12px; color: var(--color-dark); }
.trip-card { background: var(--color-surface-alt); border-radius: 8px; padding: 14px 16px; border-left: 4px solid #d5d9e3; }
.trip-card-active { border-left-color: #2e7d32; }
.trip-card-upcoming { border-left-color: #d4a017; }
.trip-card-closed { border-left-color: #c0392b; }

/* KI Fragen widget */
#ki-fragen-btn {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 900;
  background: var(--color-primary);
  color: #1a1300;
  border: none;
  border-radius: 999px;
  padding: 14px 22px;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
  cursor: pointer;
}
#ki-fragen-btn:hover { background: var(--color-primary-dark); }

.ki-chat-panel {
  position: fixed;
  right: 24px;
  bottom: 90px;
  z-index: 900;
  width: min(360px, calc(100vw - 48px));
  max-height: 480px;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.28);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ki-chat-panel.hidden { display: none; }

.ki-chat-header {
  background: var(--color-dark);
  color: #fff;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}
.ki-chat-header button {
  background: none;
  border: none;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  line-height: 1;
}

.ki-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--color-surface-alt);
}
.ki-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
}
.ki-msg-bot { background: #fff; border: 1px solid #e5e7f0; align-self: flex-start; }
.ki-msg-user { background: var(--color-primary); color: #1a1300; align-self: flex-end; }
.ki-msg-thinking { color: var(--color-text-muted); font-style: italic; }

.ki-chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid #eaeaf0; background: #fff; }
.ki-chat-form input { flex: 1; padding: 10px 12px; border: 1px solid #dcdfe8; border-radius: 8px; font-family: inherit; }
.ki-chat-form button { background: var(--color-primary); border: none; border-radius: 8px; padding: 0 16px; cursor: pointer; font-size: 1rem; }

/* RTL adjustments (Arabic) */
[dir="rtl"] .booking-input { padding: 10px 16px 10px 44px; }
[dir="rtl"] .booking-input i { right: auto; left: 16px; }
[dir="rtl"] #ki-fragen-btn { right: auto; left: 24px; }
[dir="rtl"] .ki-chat-panel { right: auto; left: 24px; }

/* Responsive (this app is primarily used on mobile devices) */
@media (max-width: 991px) {
  .header-actions .phone-link { display: none; }
  .navbar-collapse { padding-top: 14px; }
  .header-actions { flex-wrap: wrap; }
}

@media (max-width: 767px) {
  .hero-inner { padding-top: 60px; padding-bottom: 60px; }
  .hero h1 { font-size: 2rem; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-inner { padding-bottom: 120px; }
  .hero-features { margin-top: 36px; }
  .hero-feature-card { padding: 18px 14px; }
  .hero-feature-icon { font-size: 1.4rem; margin-bottom: 8px; }
  .hero-feature-card h3 { font-size: 0.88rem; }
  .hero-feature-card p { font-size: 0.78rem; }

  .services, .about, .gallery, .steps, .contact, .booking-page, .auth-page, .dashboard-page {
    padding-top: 40px;
    padding-bottom: 50px;
  }

  .section-title { font-size: 1.6rem; }

  .booking-card { padding: 22px 18px 26px; }
  .booking-input { padding: 10px 40px 10px 14px; min-height: 58px; }

  .video-showcase-player, .gallery-carousel .carousel-item img { max-height: 260px; height: 260px; }

  .about-highlights .col-4 { flex: 0 0 100%; max-width: 100%; margin-bottom: 10px; }

  .auth-card { padding: 26px 20px; }

  .ki-chat-panel { width: calc(100vw - 24px); right: 12px; bottom: 78px; }
  #ki-fragen-btn {
    right: 14px;
    bottom: 14px;
    width: 52px;
    height: 52px;
    padding: 0;
    font-size: 1.2rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  #ki-fragen-btn .ki-btn-label { display: none; }

  [dir="rtl"] .ki-chat-panel { right: auto; left: 12px; }
  [dir="rtl"] #ki-fragen-btn { right: auto; left: 14px; }
}

@media (max-width: 575px) {
  .stat-value { font-size: 1.5rem; }
  .chart-card { padding: 14px; }
  .booking-card-header h1 { font-size: 1.2rem; }
}

