/* ============================================================
   Autohaus Wadood – Custom CSS
   Kamux-inspiriertes Design | Farben: #68C1C5 · #303539 · Weiß
   ============================================================ */

/* ---- CSS Variables ---- */
:root {
  --brand-teal:       #68C1C5;
  --brand-teal-dark:  #4fa8ac;
  --brand-teal-light: #e8f7f8;
  --brand-dark:       #303539;
  --brand-dark-2:     #3e4449;
  --brand-white:      #ffffff;
  --brand-light-bg:   #f5f8f9;
  --brand-border:     #e2e8ea;
  --text-dark:        #1d2226;
  --text-muted:       #6b7a80;
  --border-radius:    10px;
  --border-radius-lg: 16px;
  --shadow-sm:  0 2px 8px rgba(0,0,0,0.06);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg:  0 8px 32px rgba(0,0,0,0.13);
  --transition: all 0.22s ease;
  --font-heading: 'Montserrat', sans-serif;
  --font-body:    'Inter', sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text-dark);
  background: #fff;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  font-weight: 700;
  color: var(--text-dark);
  overflow-wrap: break-word;
  hyphens: auto;
}
a { text-decoration: none; }

/* ============================================================
   PROMOTION-TEASER
   ============================================================ */
.promotion-banner {
  background: var(--brand-dark);
  color: #fff;
  height: 10vh;
  min-height: 200px;
  max-height: 260px;
  display: flex;
  align-items: center;
  overflow: hidden;
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
}
.promotion-banner > .container { height: 100%; }
.promotion-banner-link {
  color: var(--brand-teal);
  font-weight: 700;
  text-decoration: none;
}
.promotion-banner-link:hover { color: #fff; }
.promotion-banner-image { height: 100%; max-height: 100%; width: auto; border-radius: 4px; }
.promotion-banner-image-link { display: inline-flex; height: 100%; line-height: 0; }

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  background: #fff !important;
  padding: 0;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  border-bottom: 3px solid var(--brand-teal);
}

.navbar-brand {
  padding: 14px 0;
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand-logo-icon {
  width: 40px;
  height: 40px;
  background: var(--brand-teal);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.brand-name-main {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.5px;
  color: var(--brand-dark) !important;
  line-height: 1.1;
}

.brand-name-sub {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--brand-teal);
  display: block;
}

.navbar-nav .nav-link {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.3px;
  color: var(--brand-dark) !important;
  padding: 22px 14px !important;
  border-bottom: 3px solid transparent;
  transition: var(--transition);
  margin-top: -3px;
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--brand-teal) !important;
  border-bottom-color: var(--brand-teal);
}

.navbar-toggler {
  border: none;
  color: var(--brand-dark);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: 0.3px;
  border-radius: 8px;
  transition: var(--transition);
}

.btn-teal {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #fff;
}
.btn-teal:hover {
  background: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(104,193,197,0.4);
}

.btn-dark-brand {
  background: var(--brand-dark);
  border-color: var(--brand-dark);
  color: white;
}
.btn-dark-brand:hover {
  background: var(--brand-dark-2);
  border-color: var(--brand-dark-2);
  color: white;
  transform: translateY(-1px);
}

.btn-outline-teal {
  background: transparent;
  border: 2px solid var(--brand-teal);
  color: var(--brand-teal);
}
.btn-outline-teal:hover {
  background: var(--brand-teal);
  color: #fff;
  transform: translateY(-1px);
}

/* Backward compat für bestehende Templates */
.btn-danger {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #fff;
}
.btn-danger:hover {
  background: var(--brand-teal-dark);
  border-color: var(--brand-teal-dark);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(104,193,197,0.4);
}
.btn-outline-danger {
  border: 2px solid var(--brand-teal);
  color: var(--brand-teal);
  background: transparent;
}
.btn-outline-danger:hover {
  background: var(--brand-teal);
  border-color: var(--brand-teal);
  color: #fff;
}

/* ============================================================
   HERO SECTION
   ============================================================ */
.hero-section {
  background: linear-gradient(135deg, var(--brand-dark) 0%, #3d4a50 60%, #4a5960 100%);
  padding: 72px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('/images/hero-bg.jpg') center/cover no-repeat;
  opacity: 0.12;
}
.hero-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, #fff);
}

.hero-badge {
  display: inline-block;
  background: rgba(104,193,197,0.2);
  border: 1px solid rgba(104,193,197,0.5);
  color: var(--brand-teal);
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 20px;
}

.hero-title {
  font-family: var(--font-heading);
  font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.8rem);
  line-height: 1.1;
  color: #fff;
}
.hero-title .highlight { color: var(--brand-teal); }

/* ============================================================
   HERO STÄRKEN-KARTEN
   ============================================================ */
.hero-staerke {
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  transition: var(--transition);
  cursor: pointer;
}
.hero-staerke:hover {
  background: rgba(104,193,197,0.2);
  border-color: var(--brand-teal);
}
.hero-staerke-active {
  background: rgba(104,193,197,0.18);
  border-color: var(--brand-teal);
}
.hero-staerke i {
  font-size: 1.8rem;
  color: var(--brand-teal);
  display: block;
  margin-bottom: 8px;
}
.hero-staerke-title {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.82rem;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 4px;
}
.hero-staerke-sub {
  font-size: 0.7rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.3;
}
@media (max-width: 576px) {
  .hero-staerke { padding: 12px 8px; }
  .hero-staerke i { font-size: 1.4rem; }
  .hero-staerke-sub { display: none; }
}

/* ============================================================
   SEARCH BAR (Kamux-Stil)
   ============================================================ */
.search-bar-wrap {
  background: #fff;
  border-radius: var(--border-radius-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-lg);
  margin-top: 28px;
}
.search-bar-wrap .form-control,
.search-bar-wrap .form-select {
  border: 1.5px solid var(--brand-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text-dark);
  padding: 10px 14px;
}
.search-bar-wrap .form-control:focus,
.search-bar-wrap .form-select:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(104,193,197,0.18);
}

/* ============================================================
   QUICK NAV (Icon-Leiste)
   ============================================================ */
.quick-nav {
  background: #fff;
  border-bottom: 1px solid var(--brand-border);
  padding: 12px 0;
}
.quick-nav a {
  color: var(--text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-family: var(--font-heading);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 8px;
  transition: var(--transition);
}
.quick-nav a:hover {
  background: var(--brand-teal-light);
  color: var(--brand-teal-dark);
}
.quick-nav a i {
  font-size: 1.5rem;
  color: var(--brand-teal);
}

/* ============================================================
   SECTION TITLES
   ============================================================ */
.section-eyebrow {
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--brand-teal);
  margin-bottom: 8px;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: clamp(1.5rem, 3.5vw, 2.3rem);
  color: var(--text-dark);
}

/* ============================================================
   VEHICLE CARDS (Kamux-Stil)
   ============================================================ */
.vehicle-card {
  border: 1.5px solid var(--brand-border);
  border-radius: var(--border-radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  background: #fff;
}
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-teal);
}
.vehicle-card .card-img-top {
  height: 290px;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.vehicle-card:hover .card-img-top { transform: scale(1.03); }
.vehicle-card .card-img-wrapper { overflow: hidden; }

/* Kachel-Link: Standard-Fokusrahmen entfernen, Fokus stattdessen auf die Card selbst legen */
a.vehicle-card-link { outline: none; }
a.vehicle-card-link:focus-visible > .vehicle-card {
  box-shadow: 0 0 0 3px var(--brand-teal), var(--shadow-lg);
  border-color: var(--brand-teal);
  transform: translateY(-4px);
}

.vehicle-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand-teal) !important;
  font-family: var(--font-heading);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 6px;
}

.vehicle-price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.45rem;
  color: var(--brand-dark);
}
.vehicle-price-label {
  font-size: 0.75rem;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.vehicle-meta .badge {
  background: var(--brand-teal-light) !important;
  color: var(--brand-teal-dark) !important;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.78rem;
  border-radius: 6px;
  padding: 4px 8px;
}

/* ============================================================
   SERVICE CARDS
   ============================================================ */
.service-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 28px 20px;
  text-align: center;
  border: 1.5px solid var(--brand-border);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  height: 100%;
}
.service-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--brand-teal);
}
.service-icon {
  width: 68px;
  height: 68px;
  background: var(--brand-teal-light);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 14px;
  color: var(--brand-teal);
  transition: var(--transition);
}
.service-card:hover .service-icon {
  background: var(--brand-teal);
  color: #fff;
}

/* ============================================================
   STATS BAR
   ============================================================ */
.stats-bar {
  background: var(--brand-dark);
  padding: 28px 0;
}
.stat-number {
  font-family: var(--font-heading);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--brand-teal);
  line-height: 1;
}
.stat-label {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-top: 4px;
  font-family: var(--font-body);
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonial-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 24px;
  border-left: 4px solid var(--brand-teal);
  box-shadow: var(--shadow-sm);
  height: 100%;
  border: 1.5px solid var(--brand-border);
  border-left: 4px solid var(--brand-teal);
}
.testimonial-stars { color: #f5a623; }

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--brand-teal) 0%, var(--brand-teal-dark) 100%);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--brand-dark);
  color: #fff;
}
.site-footer h6 {
  color: var(--brand-teal);
  font-family: var(--font-heading);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.78rem;
}
.site-footer a {
  color: rgba(255,255,255,0.6);
  transition: var(--transition);
  font-size: 0.88rem;
}
.site-footer a:hover { color: var(--brand-teal); }
.footer-brand { font-family: var(--font-heading); font-weight: 800; }
.footer-divider { border-color: rgba(255,255,255,0.1); }

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.whatsapp-float {
  position: fixed;
  bottom: 24px; right: 24px;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.6rem;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  z-index: 1000;
  transition: var(--transition);
  animation: pulse-green 2s infinite;
}
.whatsapp-float:hover { transform: scale(1.1); color: #fff; }
@keyframes pulse-green {
  0%, 100% { box-shadow: 0 4px 20px rgba(37,211,102,0.4); }
  50%       { box-shadow: 0 4px 30px rgba(37,211,102,0.7); }
}

/* ============================================================
   MAP
   ============================================================ */
.map-container {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ============================================================
   TIME SLOTS (Terminbuchung)
   ============================================================ */
.time-slot {
  border: 1.5px solid var(--brand-border);
  border-radius: 8px;
  padding: 10px 6px;
  cursor: pointer;
  text-align: center;
  transition: var(--transition);
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text-dark);
  background: #fff;
  user-select: none;
}
.time-slot:hover { background: var(--brand-teal-light); border-color: var(--brand-teal); color: var(--brand-teal-dark); }
.time-slot.selected { background: var(--brand-teal); border-color: var(--brand-teal); color: #fff; }
.time-slot.disabled {
  background: #f4f4f4;
  color: #bbb;
  cursor: not-allowed;
  text-decoration: line-through;
  border-color: #eee;
}

/* ============================================================
   STATUS TRACKER
   ============================================================ */
.status-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f0;
}
.status-step:last-child { border-bottom: none; }
.status-step-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}
.status-step-icon.completed { background: #d4edda; color: #155724; }
.status-step-icon.active {
  background: var(--brand-teal);
  color: #fff;
  animation: pulse-teal 2s infinite;
}
.status-step-icon.pending { background: #f8f9fa; color: #aaa; }
@keyframes pulse-teal {
  0%, 100% { box-shadow: 0 0 0 0 rgba(104,193,197,0.4); }
  50%       { box-shadow: 0 0 0 10px rgba(104,193,197,0); }
}

/* ============================================================
   ADMIN SIDEBAR
   ============================================================ */
.admin-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--brand-dark);
  flex-shrink: 0;
  position: fixed;
  top: 0; bottom: 0; left: 0;
  overflow-y: auto;
  z-index: 100;
  transition: transform 0.3s ease;
}
.admin-content {
  margin-left: 260px;
  min-height: 100vh;
  background: #f4f6f9;
}
.sidebar-nav .nav-link {
  color: rgba(255,255,255,0.7);
  border-radius: 8px;
  padding: 10px 16px;
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: var(--transition);
}
.sidebar-nav .nav-link:hover,
.sidebar-nav .nav-link.active { background: rgba(255,255,255,0.1); color: #fff; }
.sidebar-nav .nav-link.active { background: var(--brand-teal); }

/* ============================================================
   STAT CARDS (Admin)
   ============================================================ */
.stat-card {
  background: #fff;
  border-radius: var(--border-radius);
  padding: 20px;
  border: none;
  box-shadow: var(--shadow-sm);
  border-left: 4px solid transparent;
  transition: var(--transition);
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-card.teal   { border-left-color: var(--brand-teal); }
.stat-card.red    { border-left-color: #e74c3c; }
.stat-card.blue   { border-left-color: #0d6efd; }
.stat-card.green  { border-left-color: #198754; }
.stat-card.orange { border-left-color: #fd7e14; }
.stat-card-number {
  font-family: var(--font-heading);
  font-size: 2rem;
  font-weight: 800;
  color: var(--text-dark);
}

/* ============================================================
   FORMS
   ============================================================ */
.form-control:focus, .form-select:focus {
  border-color: var(--brand-teal);
  box-shadow: 0 0 0 3px rgba(104,193,197,0.18);
}
.form-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--text-dark);
  margin-bottom: 6px;
}

/* ============================================================
   FORM WIZARD (schrittweise Formulare)
   ============================================================ */
.wizard-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 32px;
}
.wizard-dot {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  background: #f1f1f1;
  color: #999;
  flex-shrink: 0;
  transition: var(--transition);
}
.wizard-dot.active { background: var(--brand-teal); color: #fff; }
.wizard-dot.completed { background: var(--brand-teal-dark); color: #fff; }
.wizard-dot-label {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 0.78rem;
  color: #999;
  margin-top: 6px;
  text-align: center;
  white-space: normal;
  max-width: 72px;
}
.wizard-dot.active ~ .wizard-dot-label,
.wizard-step-item:has(.wizard-dot.active) .wizard-dot-label,
.wizard-step-item:has(.wizard-dot.completed) .wizard-dot-label {
  color: var(--text-dark);
}
.wizard-connector {
  flex: 1;
  height: 2px;
  background: #f1f1f1;
  margin: 0 8px;
  max-width: 80px;
  min-width: 8px;
  transition: var(--transition);
}
.wizard-connector.completed { background: var(--brand-teal); }
@media (max-width: 400px) {
  .wizard-dot { width: 30px; height: 30px; font-size: 0.8rem; }
  .wizard-dot-label { font-size: 0.68rem; max-width: 56px; }
  .wizard-connector { margin: 0 4px; }
}

/* ============================================================
   MISC
   ============================================================ */
.bg-dark-brand   { background-color: var(--brand-dark) !important; }
.bg-teal         { background-color: var(--brand-teal) !important; }
.text-brand-teal { color: var(--brand-teal) !important; }
.text-brand-red  { color: var(--brand-teal) !important; }
.hover-teal:hover { color: var(--brand-teal) !important; }
.hover-red:hover  { color: var(--brand-teal) !important; }

.table-hover tbody tr:hover { background-color: rgba(104,193,197,0.05); }

/* Lange, ununterbrochene Werte (z.B. "Q2 35 TFSI/1.Hand/S-Tronic") sollen die Tabelle
   nicht über den Viewport hinaus verbreitern */
.table-sm td { overflow-wrap: anywhere; }

.text-truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp 0.5s ease forwards; }
.fade-in-up-delay-1 { animation-delay: 0.1s; opacity: 0; }
.fade-in-up-delay-2 { animation-delay: 0.2s; opacity: 0; }
.fade-in-up-delay-3 { animation-delay: 0.3s; opacity: 0; }

/* ============================================================
   RESPONSIVE ADMIN
   ============================================================ */
@media (max-width: 991.98px) {
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.show { transform: translateX(0); }
  .admin-content { margin-left: 0; }
  .navbar-nav .nav-link { padding: 12px 16px !important; border-bottom: none; }
}

/* ============================================================
   PRINT
   ============================================================ */
@media print {
  .navbar, footer, .no-print, .whatsapp-float { display: none !important; }
  .admin-sidebar { display: none !important; }
  .admin-content { margin-left: 0 !important; }
}
