/* File:    assets/css/app.css
 * Purpose: Modern design system for Truck Wash + Car Wash.
 *          Single source of truth: design tokens at :root, variant
 *          override at body.variant-pkw. WCAG AA contrast throughout.
 * Version: 2.0.0 (2026-06-09) — full redesign
 */

@import url('https://fonts.googleapis.com/css2?family=Archivo+Black&family=Manrope:wght@400;500;600;700;800&family=JetBrains+Mono:wght@500;700&display=swap');

/* =====================================================================
 * 1. DESIGN TOKENS
 * ===================================================================== */
:root{
  /* ---- Brand: LKW (pink) ---- */
  --brand-50:   #fff0f6;
  --brand-100:  #ffd4e6;
  --brand-200:  #ffabcd;
  --brand-300:  #ff77ab;
  --brand-400:  #f54593;
  --brand-500:  #ec1e79;       /* brand canonical */
  --brand-600:  #c81866;       /* hover */
  --brand-700:  #a01253;       /* active/pressed */
  --brand-800:  #790e3f;
  --brand-900:  #4f0a2a;       /* on dark surfaces */

  /* ---- Ink (text) — WCAG AA against white ---- */
  --ink-900:    #0b0d12;       /* primary body — 18.4:1 */
  --ink-700:    #2d3142;       /* headings on cards — 11.1:1 */
  --ink-500:    #4a4e69;       /* secondary text — 7.5:1 */
  --ink-400:    #5d617a;       /* tertiary text — 5.6:1 */
  --ink-300:    #767a92;       /* muted text — 4.1:1 (large only) */
  --ink-200:    #9ca0b3;       /* placeholders, icons */

  /* ---- Surface (backgrounds) ---- */
  --surf-0:     #ffffff;       /* cards/inputs */
  --surf-1:     #f8f9fc;       /* page bg */
  --surf-2:     #f1f3f8;       /* subtle bg */
  --surf-3:     #e6e9f0;       /* hover/divider */

  /* ---- Borders ---- */
  --border-1:   #e6e8ee;       /* default */
  --border-2:   #d4d7e0;       /* strong (inputs) */
  --border-3:   #b8bcc8;       /* emphasis */

  /* ---- Dark surfaces (navbar, hero) ---- */
  --dark-900:   #0b0d12;
  --dark-800:   #131722;
  --dark-700:   #1c2030;

  /* ---- Status ---- */
  --success:    #15803d;
  --success-bg: #dcfce7;
  --warning:    #b45309;
  --warning-bg: #fef3c7;
  --danger:     #b91c1c;
  --danger-bg:  #fee2e2;
  --info:       #1d4ed8;
  --info-bg:    #dbeafe;

  /* ---- Typography ---- */
  --font-display: 'Archivo Black', 'Arial Black', sans-serif;
  --font-body:    'Manrope', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, "SF Mono", Monaco, monospace;

  /* ---- Shadows (layered, brand-tinted hover where applicable) ---- */
  --shadow-xs:   0 1px 2px rgba(11, 13, 18, 0.05);
  --shadow-sm:   0 2px 4px rgba(11, 13, 18, 0.06), 0 1px 2px rgba(11, 13, 18, 0.04);
  --shadow-md:   0 6px 16px -4px rgba(11, 13, 18, 0.08), 0 3px 6px rgba(11, 13, 18, 0.04);
  --shadow-lg:   0 16px 40px -8px rgba(11, 13, 18, 0.14), 0 4px 8px rgba(11, 13, 18, 0.04);
  --shadow-brand: 0 8px 24px -8px rgba(236, 30, 121, 0.45);
  --shadow-brand-strong: 0 12px 32px -8px rgba(236, 30, 121, 0.55);

  /* ---- Radius ---- */
  --radius-xs:   6px;
  --radius-sm:   8px;
  --radius-md:   12px;
  --radius-lg:   18px;
  --radius-xl:   24px;
  --radius-full: 9999px;

  /* ---- Motion ---- */
  --ease:        cubic-bezier(0.4, 0, 0.2, 1);
  --duration:    160ms;
}

/* ---- Variant: PKW (refined deep blue) ---- */
body.variant-pkw{
  --brand-50:   #eff6ff;
  --brand-100:  #dbeafe;
  --brand-200:  #bfdbfe;
  --brand-300:  #93c5fd;
  --brand-400:  #60a5fa;
  --brand-500:  #2563eb;
  --brand-600:  #1d4ed8;
  --brand-700:  #1e40af;
  --brand-800:  #1e3a8a;
  --brand-900:  #172554;
  --shadow-brand:        0 8px 24px -8px rgba(37, 99, 235, 0.45);
  --shadow-brand-strong: 0 12px 32px -8px rgba(37, 99, 235, 0.55);
}

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce){
  :root{ --duration: 0ms; }
  *, *::before, *::after{ animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* =====================================================================
 * 2. BASE / RESET
 * ===================================================================== */
html, body{
  -webkit-tap-highlight-color: rgba(236, 30, 121, 0.15);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
body{
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink-900);
  background:
    radial-gradient(900px circle at 92% -10%, rgba(236, 30, 121, 0.07), transparent 50%),
    radial-gradient(700px circle at -10% 110%, rgba(11, 13, 18, 0.04), transparent 45%),
    var(--surf-1);
  padding-top: env(safe-area-inset-top);
  padding-bottom: calc(env(safe-area-inset-bottom) + 1rem);
}
body.variant-pkw{
  background:
    radial-gradient(900px circle at 92% -10%, rgba(37, 99, 235, 0.07), transparent 50%),
    radial-gradient(700px circle at -10% 110%, rgba(11, 13, 18, 0.04), transparent 45%),
    var(--surf-1);
}

h1, h2, h3, h4, .h1, .h2, .h3, .h4{
  font-family: var(--font-display);
  letter-spacing: -0.015em;
  color: var(--ink-900);
}
h1, .h1{ font-size: clamp(1.75rem, 3.5vw, 2.5rem); line-height: 1.05; }
h2, .h2{ font-size: clamp(1.35rem, 2.5vw, 1.85rem); line-height: 1.1; }
h3, .h3{ font-size: clamp(1.15rem, 2vw, 1.4rem); line-height: 1.2; }
h4, .h4{ font-size: 1.1rem; line-height: 1.25; }

.display-hero{ font-family: var(--font-display); font-size: clamp(1.8rem, 4.5vw, 2.6rem); line-height: 1.02; }

a{ color: var(--brand-600); text-decoration: none; transition: color var(--duration) var(--ease); }
a:hover{ color: var(--brand-700); text-decoration: underline; }

.text-muted, small.text-muted{ color: var(--ink-400) !important; }
.text-brand{ color: var(--brand-600) !important; }
.bg-brand{ background: var(--brand-500) !important; color: #fff; }
.border-brand-subtle{ border-color: var(--brand-500) !important; }

::selection{ background: var(--brand-200); color: var(--brand-900); }

/* =====================================================================
 * 3. NAVBAR
 * ===================================================================== */
.app-navbar{
  background: linear-gradient(180deg, var(--dark-900) 0%, var(--dark-800) 100%);
  padding-top: calc(env(safe-area-inset-top) + 0.5rem);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset, var(--shadow-md);
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.app-navbar .navbar-brand{
  color: #fff; font-weight: 700; letter-spacing: 0.02em;
  font-family: var(--font-display);
}
.app-navbar .navbar-brand .bi{ color: var(--brand-500); }
.app-navbar .nav-link{
  color: rgba(255, 255, 255, 0.86) !important;
  font-weight: 500;
  border-radius: var(--radius-sm);
  padding-inline: 0.7rem !important;
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.app-navbar .nav-link:hover{
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
}
.app-navbar .nav-link.active{
  background: var(--brand-500);
  color: #fff !important;
}

/* =====================================================================
 * 4. BUTTONS
 * ===================================================================== */
.btn{
  font-weight: 600;
  border-radius: var(--radius-sm);
  padding: 0.55rem 1rem;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease), color var(--duration) var(--ease), border-color var(--duration) var(--ease);
  letter-spacing: 0.01em;
  min-height: 44px;       /* touch target */
}
.btn-lg{ padding: 0.75rem 1.5rem; font-size: 1rem; min-height: 52px; border-radius: var(--radius-md); }
.btn-sm{ min-height: 36px; padding: 0.35rem 0.75rem; font-size: 0.875rem; }

.btn-brand{
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
  box-shadow: var(--shadow-brand);
}
.btn-brand:hover, .btn-brand:focus{
  background: var(--brand-600);
  border-color: var(--brand-600);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: var(--shadow-brand-strong);
}
.btn-brand:active{
  background: var(--brand-700); border-color: var(--brand-700);
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.btn-outline-dark{ border: 1.5px solid var(--border-2); color: var(--ink-700); background: var(--surf-0); }
.btn-outline-dark:hover{ background: var(--ink-900); border-color: var(--ink-900); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn-outline-secondary{ border: 1.5px solid var(--border-2); color: var(--ink-500); background: transparent; }
.btn-outline-secondary:hover{ background: var(--surf-2); color: var(--ink-700); border-color: var(--border-3); }
.btn-outline-light{ border: 1.5px solid rgba(255,255,255,0.4); color: #fff; }
.btn-outline-light:hover{ background: rgba(255,255,255,0.15); color: #fff; border-color: #fff; }
.btn-outline-danger{ color: var(--danger); border-color: var(--danger); }
.btn-outline-danger:hover{ background: var(--danger); color: #fff; }

.btn-warning{ background: #fbbf24; border-color: #f59e0b; color: var(--ink-900); }
.btn-warning:hover{ background: #f59e0b; border-color: #d97706; color: var(--ink-900); }
.btn-light{ background: #fff; border-color: var(--border-1); color: var(--ink-900); box-shadow: var(--shadow-sm); }
.btn-light:hover{ background: var(--surf-2); border-color: var(--border-2); }

:focus-visible{ outline: 3px solid var(--brand-300); outline-offset: 2px; }

/* =====================================================================
 * 5. CARDS
 * ===================================================================== */
.card{
  background: var(--surf-0);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: box-shadow var(--duration) var(--ease);
}
.card:hover{ box-shadow: var(--shadow-sm); }
.card-header.bg-white{
  background: var(--surf-0) !important;
  border-bottom: 1px solid var(--border-1);
  padding: 0.85rem 1.25rem;
  font-weight: 600;
}
.card-body{ padding: 1.25rem; }

/* =====================================================================
 * 6. FORMS
 * ===================================================================== */
.form-control, .form-select{
  border: 1.5px solid var(--border-2);
  border-radius: var(--radius-sm);
  padding: 0.625rem 0.875rem;
  font-size: 1rem;
  color: var(--ink-900);
  background: var(--surf-0);
  transition: border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  min-height: 48px;
}
.form-control:focus, .form-select:focus{
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(236, 30, 121, 0.16);
  outline: 0;
}
body.variant-pkw .form-control:focus, body.variant-pkw .form-select:focus{
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}
.form-control[readonly], .form-control:disabled{
  background: var(--surf-2);
  color: var(--ink-500);
  cursor: default;
}
.form-control.bg-light{ background: var(--surf-2) !important; }
.form-label{
  font-weight: 600;
  font-size: 0.875rem;
  color: var(--ink-700);
  margin-bottom: 0.4rem;
}
.form-text, .form-control + small{ color: var(--ink-400); font-size: 0.8125rem; }
.form-check-input{ width: 1.25em; height: 1.25em; cursor: pointer; }
.form-check-input:checked{ background-color: var(--brand-500); border-color: var(--brand-500); }
.form-switch .form-check-input{ width: 2.5em; }

/* =====================================================================
 * 7. TABLES
 * ===================================================================== */
.table{
  --bs-table-bg: transparent;
  color: var(--ink-900);
}
.table thead th{
  border-bottom: 2px solid var(--border-2);
  font-weight: 700;
  font-size: 0.78125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  padding: 0.65rem 0.75rem;
}
.table tbody td{
  padding: 0.7rem 0.75rem;
  border-bottom: 1px solid var(--border-1);
  vertical-align: middle;
}
.table tbody tr:hover{ background: var(--surf-2); }
.table tbody tr:last-child td{ border-bottom: 0; }
.table-dark{ --bs-table-bg: var(--ink-900); color: #fff; }
.table-responsive{ border-radius: var(--radius-md); }

/* =====================================================================
 * 8. BADGES
 * ===================================================================== */
.badge{
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.35em 0.65em;
  border-radius: var(--radius-full);
  letter-spacing: 0.01em;
}
.badge.text-bg-dark{ background: var(--ink-900) !important; color: #fff !important; }
.badge.text-bg-success{ background: var(--success-bg) !important; color: var(--success) !important; }
.badge.text-bg-warning{ background: var(--warning-bg) !important; color: var(--warning) !important; }
.badge.text-bg-danger{ background: var(--danger-bg) !important; color: var(--danger) !important; }
.badge.text-bg-secondary{ background: var(--surf-3) !important; color: var(--ink-500) !important; }
.badge.bg-brand{ background: var(--brand-500) !important; color: #fff !important; }

/* =====================================================================
 * 9. ALERTS
 * ===================================================================== */
.alert{
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  padding: 0.9rem 1.1rem;
  font-size: 0.9375rem;
}
.alert-success{ background: var(--success-bg); color: var(--success); border-color: rgba(21, 128, 61, 0.2); }
.alert-warning{ background: var(--warning-bg); color: var(--warning); border-color: rgba(180, 83, 9, 0.25); }
.alert-danger{ background: var(--danger-bg); color: var(--danger); border-color: rgba(185, 28, 28, 0.2); }
.alert-info{ background: var(--info-bg); color: var(--info); border-color: rgba(29, 78, 216, 0.2); }
.alert-dark{ background: var(--dark-800); color: #fff; border-color: var(--dark-700); }

/* =====================================================================
 * 10. HERO CARDS (driver dashboard, booking landing)
 * ===================================================================== */
.hero-card, .booking-hero{
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-800) 35%, var(--brand-700) 100%);
  color: #fff;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-lg);
}
body.variant-pkw .hero-card, body.variant-pkw .booking-hero{
  background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-800) 35%, var(--brand-700) 100%);
}
.hero-card::before, .booking-hero::before{
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 95% 110%, rgba(255, 119, 171, 0.32), transparent 45%),
    radial-gradient(circle at 8% -10%, rgba(255, 255, 255, 0.08), transparent 50%);
  pointer-events: none;
}
body.variant-pkw .hero-card::before, body.variant-pkw .booking-hero::before{
  background:
    radial-gradient(circle at 95% 110%, rgba(96, 165, 250, 0.32), transparent 45%),
    radial-gradient(circle at 8% -10%, rgba(255, 255, 255, 0.08), transparent 50%);
}
.hero-card::after{
  content: ""; position: absolute; right: -40px; top: -40px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(236, 30, 121, 0.22) 0%, transparent 70%);
  filter: blur(24px);
  pointer-events: none;
}
.hero-card h1, .hero-card .hero-title{
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2.2rem);
  line-height: 1.05;
  margin: 0 0 0.4rem 0;
  color: #fff;
}
.hero-card .hero-sub, .booking-hero-sub{
  font-size: 1rem;
  opacity: 0.86;
  margin-bottom: 1rem;
  font-weight: 400;
}
.hero-card .hero-cta{ position: relative; z-index: 1; }
.hero-plate{
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius-full);
  padding: 0.4rem 1rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-family: var(--font-mono);
  font-size: 0.875rem;
  color: #fff;
}
.hero-plate .bi{ color: var(--brand-200); }
.booking-eyebrow{
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  opacity: 0.7;
  margin-bottom: 0.5rem;
  font-weight: 600;
}
.booking-hero-title{
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 5vw, 3.25rem);
  line-height: 1.02;
  margin: 0 0 0.6rem 0;
  color: #fff;
}
.booking-hero-svg{ color: rgba(255,255,255,0.92); }
.booking-hero-svg svg{ width: 220px; max-width: 100%; height: auto; filter: drop-shadow(0 10px 20px rgba(0,0,0,0.3)); }

/* v1.4.18 — Termin / Sofort fork cards */
.booking-fork{
  background: var(--surf-0);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem;
  box-shadow: var(--shadow-sm);
}
.fork-card{
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 1.6rem 1.25rem 1.4rem;
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: #fff;
  height: 100%;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  box-shadow: var(--shadow-md);
  min-height: 240px;
}
.fork-card:hover{
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  color: #fff;
  text-decoration: none;
}
.fork-card-termin{
  background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-700) 50%, var(--brand-600) 100%);
}
.fork-card-sofort{
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 50%, var(--brand-400) 100%);
}
body.variant-pkw .fork-card-termin{
  background: linear-gradient(135deg, var(--dark-900) 0%, var(--dark-700) 50%, var(--brand-600) 100%);
}
body.variant-pkw .fork-card-sofort{
  background: linear-gradient(135deg, var(--brand-700) 0%, var(--brand-500) 50%, var(--brand-400) 100%);
}
.fork-icon{
  font-size: 2.2rem;
  margin-bottom: 0.6rem;
  background: rgba(255, 255, 255, 0.18);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-full);
  width: 64px; height: 64px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.fork-title{
  font-family: var(--font-display);
  font-size: 1.25rem;
  letter-spacing: -0.01em;
  margin-bottom: 0.4rem;
  color: #fff;
}
.fork-sub{
  font-size: 0.9rem;
  opacity: 0.88;
  max-width: 28em;
  margin-bottom: 1rem;
}
.fork-badges{
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 0.5rem;
}
.fork-badges .badge{
  background: rgba(255,255,255,0.95) !important;
  color: var(--ink-900) !important;
  font-size: 0.7rem;
  padding: 0.35em 0.7em;
}
.fork-arrow{
  position: absolute;
  bottom: 1rem; right: 1.25rem;
  width: 36px; height: 36px;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.fork-card:hover .fork-arrow{
  background: #fff;
  color: var(--ink-900);
  transform: translateX(4px);
}
@media (max-width: 575.98px){
  .fork-card{ min-height: 200px; padding: 1.3rem 1rem; }
  .fork-icon{ width: 52px; height: 52px; font-size: 1.7rem; }
  .fork-title{ font-size: 1.05rem; }
}

/* v1.4.20 — Slot picker (date pills + time grid) ------------------- */
.date-pill-strip{
  display: flex;
  gap: .5rem;
  overflow-x: auto;
  padding-bottom: .25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.date-pill{
  flex: 0 0 auto;
  min-width: 74px;
  text-align: center;
  padding: .7rem .5rem;
  border-radius: var(--radius-md);
  background: var(--surf-1);
  border: 1px solid var(--border-1);
  text-decoration: none;
  color: var(--ink-700);
  transition: transform var(--duration) var(--ease),
              box-shadow var(--duration) var(--ease),
              background var(--duration) var(--ease);
  scroll-snap-align: start;
}
.date-pill:hover{
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  color: var(--ink-900);
  text-decoration: none;
  background: var(--surf-0);
}
.date-pill-dow{
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-500);
}
.date-pill-day{
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  margin: .15rem 0;
}
.date-pill-month{
  font-size: .7rem;
  color: var(--ink-500);
  text-transform: uppercase;
  letter-spacing: .06em;
}
.date-pill-today .date-pill-dow{ color: var(--brand-500); }
.date-pill-today::before{
  content: '';
  display: block;
  width: 6px; height: 6px;
  background: var(--brand-500);
  border-radius: var(--radius-full);
  margin: 0 auto .25rem auto;
}
.date-pill-selected,
.date-pill-selected:hover{
  background: var(--brand-500);
  color: #fff;
  border-color: var(--brand-500);
  box-shadow: var(--shadow-md);
}
.date-pill-selected .date-pill-dow,
.date-pill-selected .date-pill-month{ color: rgba(255,255,255,0.85); }

.time-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: .5rem;
}
.time-slot{
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: .65rem .5rem;
  border-radius: var(--radius-md);
  background: var(--surf-1);
  border: 1px solid var(--border-1);
  text-decoration: none;
  color: var(--ink-900);
  transition: transform var(--duration) var(--ease),
              background var(--duration) var(--ease),
              border-color var(--duration) var(--ease);
}
.time-slot:hover{
  transform: translateY(-1px);
  background: var(--brand-50);
  border-color: var(--brand-200);
  color: var(--brand-700);
  text-decoration: none;
}
.time-slot-time{
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 700;
}
.time-slot-tag{
  font-size: .65rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-top: .15rem;
  color: var(--ink-500);
}
.time-slot-disabled{
  background: var(--surf-2);
  border-color: var(--border-2);
  color: var(--ink-400);
  cursor: not-allowed;
  opacity: .55;
}
.time-slot-disabled .time-slot-time{ text-decoration: line-through; }
.time-slot-selected,
.time-slot-selected:hover{
  background: var(--brand-500);
  border-color: var(--brand-500);
  color: #fff;
  transform: translateY(0);
}
.time-slot-selected .time-slot-tag{ color: rgba(255,255,255,0.85); }

.booking-confirm-card{
  border: 2px solid var(--brand-500);
  background: linear-gradient(135deg, var(--brand-50), var(--surf-0));
  position: sticky;
  bottom: 1rem;
  z-index: 10;
  box-shadow: var(--shadow-lg);
}

.payment-method-tile{
  display: block;
  padding: 1rem .85rem;
  border: 2px solid var(--border-1);
  border-radius: var(--radius-md);
  background: var(--surf-1);
  cursor: pointer;
  transition: border-color var(--duration) var(--ease),
              background var(--duration) var(--ease),
              transform var(--duration) var(--ease);
  height: 100%;
}
.payment-method-tile:hover{
  border-color: var(--brand-300);
  background: var(--brand-50);
}
.payment-method-tile.selected{
  border-color: var(--brand-500);
  background: var(--brand-50);
  box-shadow: 0 0 0 4px rgba(236,30,121,0.12);
}
.payment-method-tile input{ position: absolute; opacity: 0; pointer-events: none; }
.payment-method-icon{
  font-size: 1.6rem;
  color: var(--brand-500);
  margin-bottom: .35rem;
}
.payment-method-label{
  font-weight: 600;
  font-size: .95rem;
  margin-bottom: .15rem;
  color: var(--ink-900);
}
.payment-method-desc{
  font-size: .75rem;
  color: var(--ink-500);
  line-height: 1.35;
}

/* =====================================================================
 * 11. STAT CARDS (KPIs)
 * ===================================================================== */
.stat-card{
  background: var(--surf-0);
  border: 1px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 1.1rem 1.25rem;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.stat-card:hover{
  transform: translateY(-2px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
}
.stat-card .stat-label{
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--ink-400);
  font-weight: 700;
}
.stat-card .stat-value{
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.05;
  color: var(--ink-900);
  margin: 0.4rem 0 0.15rem 0;
  letter-spacing: -0.02em;
}
.stat-card .stat-suffix{
  font-size: 0.8125rem;
  color: var(--ink-400);
  font-weight: 500;
}
.stat-card.stat-card-brand{
  background: linear-gradient(135deg, var(--surf-0) 0%, var(--brand-50) 100%);
  border-color: var(--brand-200);
}
.stat-card.stat-card-brand .stat-value{ color: var(--brand-600); }

/* =====================================================================
 * 12. VEHICLE / PROGRAM TILES
 * ===================================================================== */
.vehicle-grid{
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.85rem;
}

.pricelist-group-header{
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin: 1.75rem 0 0.9rem 0;
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-1);
}
.pricelist-group-header:first-child{ margin-top: 0; }
.pricelist-group-bar{
  display: inline-block;
  width: 4px;
  height: 1.4rem;
  background: linear-gradient(180deg, var(--brand-400) 0%, var(--brand-600) 100%);
  border-radius: var(--radius-full);
}
.pricelist-group-title{
  font-family: var(--font-display);
  font-size: 1rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ink-900);
}
.pricelist-group-count{
  margin-left: auto;
  font-size: 0.6875rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.vehicle-card{
  background: var(--surf-0);
  border: 2px solid var(--border-1);
  border-radius: var(--radius-md);
  padding: 0.95rem 0.85rem;
  cursor: pointer;
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease), background var(--duration) var(--ease);
  display: flex;
  flex-direction: column;
  text-align: center;
  min-height: 190px;
  position: relative;
}
.vehicle-card:hover, .vehicle-card:focus-within{
  border-color: var(--brand-400);
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.vehicle-card.selected{
  border-color: var(--brand-500);
  background: linear-gradient(180deg, var(--surf-0) 0%, var(--brand-50) 100%);
  box-shadow: 0 0 0 3px rgba(236, 30, 121, 0.2), var(--shadow-md);
}
body.variant-pkw .vehicle-card.selected{
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2), var(--shadow-md);
}
.vehicle-card.selected::before{
  content: "";
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  width: 26px;
  height: 26px;
  border-radius: var(--radius-full);
  background: var(--brand-500);
  box-shadow: 0 4px 10px rgba(236, 30, 121, 0.4);
}
.vehicle-card.selected::after{
  content: "";
  position: absolute;
  top: 0.79rem;
  right: 0.93rem;
  width: 10px;
  height: 5px;
  border-left: 2.5px solid #fff;
  border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}
.vehicle-card .svg-box{
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-900);
  transition: color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.vehicle-card .svg-box svg{ width: 100%; max-height: 78px; }
.vehicle-card:hover .svg-box{ transform: scale(1.05); }
.vehicle-card.selected .svg-box{ color: var(--brand-600); }
.vehicle-card .art-no{
  font-size: 0.6875rem;
  color: var(--ink-400);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  font-family: var(--font-mono);
}
.vehicle-card .name{
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  min-height: 2.5em;
  margin: 0.4rem 0 0.2rem 0;
  color: var(--ink-900);
}
.vehicle-card .price{
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}
.vehicle-card .price-net{
  font-size: 0.7rem;
  color: var(--ink-400);
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-top: 0.1rem;
}
.vehicle-card .trailer-badge{
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  background: rgba(236, 30, 121, 0.1);
  color: var(--brand-700);
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.18rem 0.55rem;
  border-radius: var(--radius-full);
  margin: 0.1rem auto 0.25rem auto;
  width: fit-content;
}
body.variant-pkw .vehicle-card .trailer-badge{
  background: rgba(37, 99, 235, 0.1);
  color: var(--brand-700);
}
.vehicle-card.selected .price{ color: var(--brand-600); }
.vehicle-card input[type=radio]{ position: absolute; opacity: 0; pointer-events: none; }

.pricelist-svg{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 32px;
  color: var(--ink-700);
}
.pricelist-svg svg{ max-width: 100%; max-height: 100%; }

/* =====================================================================
 * 13. SIGNATURE PAD
 * ===================================================================== */
.signature-wrap{
  background: var(--surf-0);
  border: 2px dashed var(--border-2);
  border-radius: var(--radius-md);
  transition: border-color var(--duration) var(--ease);
}
.signature-wrap:hover{ border-color: var(--brand-400); }
#signaturePad{
  width: 100%;
  height: 200px;
  touch-action: none;
  display: block;
  border-radius: var(--radius-md);
}

/* =====================================================================
 * 14. STICKY ACTION BAR (mobile form submit)
 * ===================================================================== */
body.has-sticky-actions{ padding-bottom: 100px; }

.sticky-action-bar{
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.95);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--border-1);
  padding: 0.85rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  box-shadow: 0 -8px 24px -8px rgba(11, 13, 18, 0.12);
}
.sticky-action-bar .btn{ min-height: 52px; font-size: 1rem; }

/* =====================================================================
 * 15. PWA INSTALL BANNER
 *     HTML: <div class="pwa-install" id="pwaInstall"> … </div>
 *     JS toggles .show to make it visible. Hidden on desktop ≥ 1024 px.
 * ===================================================================== */
.pwa-install{
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 60;
  background: var(--ink-900);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 0.6rem 0.8rem;
  box-shadow: var(--shadow-lg);
  display: none;                    /* hidden by default; .show reveals */
  align-items: center;
  gap: 0.6rem;
  font-size: 0.875rem;
  max-width: calc(100vw - 2rem);
  animation: pwaSlideIn 0.25s var(--ease);
}
.pwa-install.show{ display: inline-flex; }
.pwa-install .pwa-install-action{ margin: 0; }
.pwa-install .pwa-dismiss{
  background: transparent;
  border: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1.5rem;
  line-height: 1;
  padding: 0 0.3rem;
  cursor: pointer;
  transition: color var(--duration) var(--ease);
}
.pwa-install .pwa-dismiss:hover{ color: #fff; }
body.has-sticky-actions .pwa-install{ bottom: 100px; }

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

/* Hard CSS guard: app install is for mobile + tablet only (≤ 1023 px).
   JS already gates the .show class via matchMedia, but a Safari-on-Mac
   without beforeinstallprompt could in theory leak through.  */
@media (min-width: 1024px){
  .pwa-install{ display: none !important; }
}

/* =====================================================================
 * 16. IMPERSONATION BANNER
 * ===================================================================== */
.impersonation-banner{
  background: linear-gradient(90deg, #facc15, #f59e0b);
  color: var(--ink-900);
  padding: 0.5rem 0;
  font-weight: 600;
  font-size: 0.875rem;
  border-bottom: 1px solid #d97706;
}

/* =====================================================================
 * 17. MODAL
 * ===================================================================== */
.modal-content{
  border: 0;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.modal-header{
  background: var(--surf-1);
  border-bottom: 1px solid var(--border-1);
  padding: 1rem 1.25rem;
}
.modal-title{ font-family: var(--font-display); letter-spacing: -0.01em; }
.modal-footer{
  background: var(--surf-1);
  border-top: 1px solid var(--border-1);
  padding: 0.85rem 1.25rem;
}

/* =====================================================================
 * 18. RESPONSIVE
 * ===================================================================== */
@media (max-width: 575.98px){
  body{ font-size: 16px; }
  h1, .h1, .display-hero{ font-size: 1.65rem; }
  .vehicle-grid{
    grid-template-columns: repeat(2, 1fr);
    gap: 0.6rem;
  }
  .vehicle-card{ min-height: 170px; padding: 0.7rem 0.5rem; }
  .vehicle-card .svg-box{ height: 60px; }
  .vehicle-card .name{ font-size: 0.78rem; min-height: 2.3em; }
  .vehicle-card .price{ font-size: 1rem; }
  .hero-card, .booking-hero{ padding: 1.5rem 1.25rem; border-radius: var(--radius-md); }
  .stat-card{ padding: 0.85rem 1rem; }
  .stat-card .stat-value{ font-size: 1.4rem; }
  .card-body{ padding: 1rem; }
}

@media (min-width: 576px) and (max-width: 767.98px){
  .vehicle-grid{ grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px){
  .vehicle-grid{ grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  #signaturePad{ height: 260px; }
}

/* Tablet landscape — 2 columns of cards in form */
@media (min-width: 992px) and (orientation: landscape){
  .booking-hero{ padding: 2.5rem 2.25rem; }
}

/* =====================================================================
 * 19. PRINT
 *     Print Lieferschein-friendly: hide chrome, show only the lieferschein
 *     card centered on the page, brand color preserved.
 * ===================================================================== */
@media print{
  .no-print{ display: none !important; }
  @page { size: A4; margin: 18mm 15mm; }
  body{
    background: #fff !important;
    padding: 0; margin: 0;
    color: #000;
    font-size: 11pt;
  }
  .app-navbar, .impersonation-banner, .sticky-action-bar, .pwa-install, .app-footer{
    display: none !important;
  }
  .container, .container-fluid, .row, .col, [class*="col-"]{
    width: 100% !important; max-width: 100% !important;
    margin: 0 !important; padding: 0 !important; flex: none !important;
  }
  .card{
    border: 1px solid #888 !important;
    box-shadow: none !important;
    page-break-inside: avoid;
    margin: 0 !important;
  }
  .hero-card, .booking-hero{
    background: #f5f5f5 !important; color: #000 !important; box-shadow: none;
  }
  .hero-card *, .booking-hero *{ color: #000 !important; }
  .text-brand{ color: #c81866 !important; }   /* keep brand on print */
  .badge{ border: 1px solid #888; background: #fff !important; color: #000 !important; }
  .table tbody tr:hover{ background: transparent !important; }
  /* Lieferschein-specific: full bleed, no rounded corners on paper */
  .lieferschein-print{ border-radius: 0 !important; border: 2px solid #000 !important; }
}

/* =====================================================================
 * 20. ACCESSIBILITY
 * ===================================================================== */
.sr-only, .visually-hidden{
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}
:focus:not(:focus-visible){ outline: none; }

/* v1.4.21 — Brand-coloured badge for admin bookings */
.text-bg-brand{
  background-color: var(--brand-500) !important;
  color: #fff !important;
}
.btn-outline-brand{
  color: var(--brand-500);
  border-color: var(--brand-500);
}
.btn-outline-brand:hover{
  background: var(--brand-500);
  color: #fff;
}
