/* =============================
   Reset & Base
   ============================= */
* { box-sizing: border-box; }
*::before, *::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { margin: 0 0 16px 0; padding-left: 20px; }
button { font: inherit; cursor: pointer; background: none; border: none; color: inherit; }

:root {
  --primary: #0E1117; /* brand primary: dark */
  --secondary: #B08C5A; /* brand gold */
  --accent: #F3EDE4; /* brand accent: warm light */
  --text: #0E1117; /* default text on light bg */
  --text-inverse: #F3EDE4; /* text on dark bg */
  --electric-1: #00D1FF; /* energetic pop */
  --electric-2: #FF1771; /* energetic pop */
  --muted: #D9D2C8;
  --success: #14C38E;
  --warning: #FFB020;
  --danger: #FF4D4F;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-sm: 0 4px 10px rgba(14,17,23,0.08);
  --shadow-md: 0 10px 24px rgba(14,17,23,0.15);
  --shadow-lg: 0 20px 40px rgba(14,17,23,0.18);
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --max-w: 1200px;
  --transition-fast: 160ms ease;
  --transition-mid: 260ms ease;
}

body {
  background: var(--accent);
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", serif; /* brand display */
  color: var(--primary);
  margin: 0 0 12px 0;
  line-height: 1.2;
}

h1 { font-size: 40px; font-weight: 800; letter-spacing: -0.5px; }
h2 { font-size: 28px; font-weight: 800; letter-spacing: -0.3px; }
h3 { font-size: 20px; font-weight: 700; }

p { margin: 0 0 12px 0; }

strong { font-weight: 700; }

/* Accessible focus ring with vibrant energy */
:focus-visible { outline: 0; box-shadow: 0 0 0 3px var(--electric-1), 0 0 0 6px rgba(0,209,255,0.25); border-radius: 8px; }

/* =============================
   Layout Containers (Flex Only)
   ============================= */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--space-16);
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
  align-items: flex-start;
}

section { margin-bottom: 60px; padding: 40px 0; }

/* MANDATORY CSS SPACING AND ALIGNMENT PATTERNS */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Ensure minimum spacing between consecutive elements */
.content-wrapper > * + * { margin-top: 0; }

/* =============================
   Header & Navigation
   ============================= */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--primary);
  color: var(--text-inverse);
  box-shadow: var(--shadow-sm);
}

header .content-wrapper {
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-16);
  padding: var(--space-12) 0;
}

.brand {
  display: flex; align-items: center; gap: 10px;
  color: var(--text-inverse);
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}
.brand img { height: 32px; width: auto; }
.brand span { color: var(--secondary); }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a {
  color: var(--text-inverse);
  padding: 8px 10px;
  border-radius: 8px;
  transition: color var(--transition-fast), background var(--transition-fast), box-shadow var(--transition-fast);
}
.main-nav a:hover {
  background: rgba(176,140,90,0.15);
  color: var(--accent);
  box-shadow: 0 2px 0 0 var(--electric-2);
}

.header-cta { display: none; align-items: center; gap: 10px; }

.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 10px;
  color: var(--text-inverse);
  background: rgba(243,237,228,0.08);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.mobile-menu-toggle:hover { background: rgba(243,237,228,0.15); transform: translateY(-1px); box-shadow: 0 6px 14px rgba(0,0,0,0.25); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1500;
  background: var(--primary);
  color: var(--text-inverse);
  display: flex; flex-direction: column; gap: 20px; align-items: stretch;
  transform: translateX(100%);
  transition: transform var(--transition-mid);
  padding: 20px 16px 32px;
}
.mobile-menu.open, .mobile-menu.active, .mobile-menu.is-open { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  width: 44px; height: 44px; border-radius: 10px;
  color: var(--text-inverse);
  background: rgba(243,237,228,0.08);
}

.mobile-nav { display: flex; flex-direction: column; gap: 6px; }
.mobile-nav a {
  display: flex; align-items: center;
  padding: 14px 10px; border-radius: 10px;
  font-weight: 700; font-size: 18px;
  color: var(--accent);
  background: rgba(243,237,228,0.06);
  transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
}
.mobile-nav a:hover { background: rgba(176,140,90,0.2); box-shadow: 0 6px 18px rgba(0,0,0,0.25); transform: translateX(2px); }

/* Desktop nav visibility */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* =============================
   Hero Section (Vibrant + Brand)
   ============================= */
.hero {
  background: var(--primary);
  color: var(--text-inverse);
  padding: 60px 0;
  box-shadow: var(--shadow-sm);
}
.hero .subheadline { color: rgba(243,237,228,0.9); font-size: 18px; }
.hero h1 { color: var(--accent); text-shadow: 0 2px 0 rgba(0,0,0,0.4); }

/* energetic underline accent */
.hero h1, .hero h2 { position: relative; }
.hero h1::after { content: ""; display: block; height: 4px; width: 64px; background: var(--electric-1); margin-top: 10px; border-radius: 3px; }

.cta-group { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: center; }

.supporting-bullets { list-style: none; padding: 0; margin: 10px 0 0 0; display: flex; flex-direction: column; gap: 10px; }
.supporting-bullets li { display: flex; align-items: center; gap: 10px; }
.supporting-bullets li::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--electric-2); box-shadow: 0 0 0 3px rgba(255,23,113,0.25); }

.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.trust-badges .badge { display: flex; align-items: center; gap: 10px; background: rgba(243,237,228,0.08); color: var(--accent); padding: 10px 12px; border: 1px solid rgba(176,140,90,0.35); border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.trust-badges .badge img { width: 18px; height: 18px; }

.contact-shortcut p { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; }
.contact-shortcut img { width: 18px; height: 18px; }
.contact-shortcut a { color: var(--electric-1); font-weight: 700; }

/* =============================
   Buttons (Energetic interactions)
   ============================= */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 16px; border-radius: var(--radius-md);
  font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--secondary);
  color: var(--primary);
  box-shadow: 0 8px 18px rgba(176,140,90,0.35);
}
.btn-primary:hover { box-shadow: 0 12px 26px rgba(176,140,90,0.45), 0 0 0 3px rgba(0,209,255,0.25); }
.btn-primary:focus-visible { box-shadow: 0 0 0 3px var(--electric-1), 0 0 0 6px rgba(0,209,255,0.25); }

.btn-secondary {
  background: transparent;
  color: var(--text-inverse);
  border-color: var(--electric-1);
}
.hero .btn-secondary { color: var(--accent); }
.btn-secondary:hover { background: rgba(0,209,255,0.1); box-shadow: 0 8px 20px rgba(0,209,255,0.25); }

/* Secondary variant on light background */
section:not(.hero) .btn-secondary { color: var(--primary); border-color: var(--primary); }
section:not(.hero) .btn-secondary:hover { background: rgba(14,17,23,0.06); box-shadow: var(--shadow-sm); }

/* Generic badge chip */
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 999px; background: rgba(14,17,23,0.06); color: var(--primary); font-weight: 700; font-size: 14px; }

/* =============================
   Feature / Use Cases / KPI
   ============================= */
.feature-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.feature-item {
  flex: 1 1 260px;
  background: #FFFFFF;
  border: 2px solid var(--primary);
  border-left: 6px solid var(--secondary);
  border-radius: var(--radius-lg);
  padding: 18px 18px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.feature-item:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--electric-2); }

.kpi-highlights ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.kpi-highlights li { background: #FFFFFF; border: 1px dashed var(--secondary); border-radius: 12px; padding: 10px 12px; font-weight: 700; }

.service-areas { display: flex; flex-direction: column; gap: 10px; }

.use-cases { display: flex; flex-wrap: wrap; gap: 20px; }
.use-cases > div {
  flex: 1 1 260px; background: #FFFFFF; border: 1px solid var(--muted);
  border-left: 4px solid var(--electric-1); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm);
}

.service-teasers { display: flex; flex-direction: column; gap: 10px; }
.service-teasers ul { margin: 0; padding-left: 18px; }

/* =============================
   Steppers & Lists
   ============================= */
.stepper { list-style: decimal; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.stepper li { background: #FFFFFF; border-radius: 12px; padding: 12px 14px; border-left: 4px solid var(--secondary); box-shadow: var(--shadow-sm); }

.details ul, section ul { /* default list style across sections */ }
.faq { display: flex; flex-direction: column; gap: 10px; }
.faq h3 { font-size: 18px; margin: 0; display: flex; align-items: center; gap: 8px; }
.faq h3::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--electric-2); box-shadow: 0 0 0 3px rgba(255,23,113,0.2); }
.faq p { margin: 0 0 8px 0; color: #2a2e37; }

/* =============================
   Vehicle Cards (fahrzeuge.html)
   ============================= */
.vehicle-card {
  display: flex; flex-direction: column; gap: 10px;
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--muted);
  padding: 16px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.vehicle-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); border-color: var(--secondary); }
.vehicle-card .availability { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; font-weight: 700; background: rgba(20,195,142,0.1); color: var(--success); border: 1px solid rgba(20,195,142,0.25); }
.vehicle-card .btn { align-self: flex-start; }

/* =============================
   Testimonials (light background, dark text)
   ============================= */
.testimonial-card {
  background: #FFFFFF; /* ensure light */
  color: var(--primary); /* dark text */
  border: 1px solid var(--muted);
  border-left: 6px solid var(--secondary);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}
.testimonial-card p { margin: 0; }
.testimonial-card strong { color: #222; }

/* =============================
   Text blocks / Shared
   ============================= */
.text-section { display: flex; flex-direction: column; gap: 12px; }

/* Availability note styling generic */
.availability { background: rgba(20,195,142,0.1); color: var(--success); border: 1px solid rgba(20,195,142,0.25); }

/* =============================
   Footer
   ============================= */
footer {
  background: var(--primary);
  color: var(--text-inverse);
  padding: 30px 0;
}
footer .content-wrapper {
  display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start;
}
footer .brand-foot, footer .links, footer .legal, footer .contact-foot {
  flex: 1 1 240px;
  display: flex; flex-direction: column; gap: 10px; background: rgba(243,237,228,0.04);
  padding: 12px; border-radius: 12px; border: 1px solid rgba(243,237,228,0.08);
}
footer img { height: 28px; }
footer a { color: var(--accent); }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer nav a { padding: 6px 8px; border-radius: 8px; transition: background var(--transition-fast), transform var(--transition-fast); }
footer nav a:hover { background: rgba(176,140,90,0.2); transform: translateX(2px); }

/* =============================
   Links on light background
   ============================= */
main a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
main .btn { text-decoration: none; }

/* =============================
   Responsive adjustments
   ============================= */
@media (min-width: 768px) {
  .hero { padding: 80px 0; }
  .text-image-section { flex-direction: row; }
  .feature-item { padding: 20px 20px; }
}

@media (min-width: 992px) {
  .feature-grid { gap: 24px; }
  .feature-item { flex: 1 1 calc(50% - 12px); }
  .use-cases > div { flex: 1 1 calc(50% - 12px); }
  footer .content-wrapper { gap: 24px; }
}

/* =============================
   Cookie Consent Banner & Modal
   ============================= */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 2000;
  background: var(--primary);
  color: var(--text-inverse);
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
  padding: 14px 16px;
  box-shadow: 0 -8px 24px rgba(0,0,0,0.25);
  transform: translateY(110%);
  transition: transform var(--transition-mid);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 12px; font-weight: 800; text-transform: uppercase; border: 2px solid transparent; }
.cookie-btn.accept { background: var(--secondary); color: var(--primary); }
.cookie-btn.accept:hover { box-shadow: 0 10px 24px rgba(176,140,90,0.4); }
.cookie-btn.reject { background: transparent; color: var(--text-inverse); border-color: var(--electric-2); }
.cookie-btn.reject:hover { background: rgba(255,23,113,0.1); }
.cookie-btn.settings { background: transparent; color: var(--text-inverse); border-color: var(--electric-1); }
.cookie-btn.settings:hover { background: rgba(0,209,255,0.1); }

/* Cookie Preferences Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 2100; display: none;
  background: rgba(14,17,23,0.7);
  align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal.show { display: flex; }
.cookie-modal .cookie-modal-content {
  background: #FFFFFF; color: var(--primary);
  width: 100%; max-width: 720px;
  border-radius: 16px; border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px; padding: 18px;
}
.cookie-modal .cookie-row { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(14,17,23,0.03); }
.cookie-modal .cookie-row.essential { border-left: 6px solid var(--secondary); }
.cookie-modal .cookie-row.analytics { border-left: 6px solid var(--electric-1); }
.cookie-modal .cookie-row.marketing { border-left: 6px solid var(--electric-2); }
.cookie-modal .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* =============================
   Utility / Helpers
   ============================= */
.center { display: flex; align-items: center; justify-content: center; }
.row { display: flex; flex-direction: row; gap: 16px; flex-wrap: wrap; }
.col { display: flex; flex-direction: column; gap: 12px; }

/* =============================
   Visual hierarchy and micro-interactions
   ============================= */
section:not(.hero) h2::after { content: ""; display: block; width: 48px; height: 3px; background: var(--secondary); margin-top: 8px; border-radius: 3px; }

/* List bullets with vibrant accents on light background */
section:not(.hero) ul li { position: relative; padding-left: 12px; }
section:not(.hero) ul li::marker { color: var(--secondary); font-weight: 700; }
section:not(.hero) ol { padding-left: 20px; }

/* Ensure no overlapping by generous spacing */
section .card, section .feature-item, section .vehicle-card, section .testimonial-card { margin-bottom: 20px; }

/* =============================
   Header on light sections link color overrides
   ============================= */
header a { color: var(--text-inverse); }
header a:hover { color: var(--accent); }

/* =============================
   Accessibility & Contrast in Testimonials/Reviews
   ============================= */
/* Enforce dark text on testimonial cards */
section .testimonial-card, .testimonial-card * { color: #161A22; }

/* =============================
   Print basics
   ============================= */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}
