/* ===============================
   VolaV Conse Fahrzeugfinder — style.css
   Vibrant Energetic Theme (electric colors, dynamic layouts, bold fonts)
   Mobile-first, Flexbox-only, solid colors, strong contrast
   =============================== */

/* -------------------------------
   CSS RESET / NORMALIZE
-------------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding-left: 20px; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font: inherit; border: none; background: transparent; cursor: pointer; }
:focus { outline: none; }

/* -------------------------------
   THEME VARIABLES + FALLBACKS
-------------------------------- */
:root {
  --primary: #0B3D91; /* Brand primary blue */
  --secondary: #2E7D32; /* Brand green */
  --accent: #F5F7FA; /* Brand accent light */
  --surface: #FFFFFF;
  --ink: #0A0D14; /* Deep ink for text */
  --muted: #64748B; /* Muted slate */
  --electric-pink: #FF2D95; /* Energetic accent */
  --electric-yellow: #FFD400; /* Energetic accent */
  --electric-cyan: #00D1FF; /* Energetic accent */
  --shadow: rgba(10, 13, 20, 0.12);
}

/* -------------------------------
   GLOBAL BASE
-------------------------------- */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* Brand body */
  color: var(--ink);
  background: var(--accent);
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; /* Brand display */
  font-weight: 800;
  letter-spacing: 0.2px;
}

h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; margin-bottom: 12px; }
h3 { font-size: 18px; margin-top: 12px; margin-bottom: 6px; }
p  { font-size: 16px; color: var(--ink); }

@media (min-width: 768px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
}

strong { font-weight: 800; }
em { font-style: italic; }

/* Links and focus */
a { color: var(--primary); transition: color 0.25s ease, background-color 0.25s ease; }
a:hover { color: var(--electric-pink); }
:focus-visible { outline: 3px solid var(--electric-yellow); outline-offset: 2px; }

/* -------------------------------
   LAYOUT UTILITIES (Flex-only)
-------------------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: flex; /* Flex-only */
  flex-direction: column;
  gap: 20px;
}

.content-wrapper {
  display: flex; /* Flex-only */
  flex-direction: column;
  gap: 20px;
  width: 100%;
}

/* Mandatory spacing classes */
.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 base section spacing across pages without .section class */
main > section { padding: 40px 0; }

/* Spacing rhythm */
.section, main > section { margin-bottom: 60px; }

/* -------------------------------
   HEADER + NAVIGATION
-------------------------------- */
header {
  background: var(--surface);
  border-bottom: 4px solid var(--primary);
  box-shadow: 0 4px 12px var(--shadow);
}

header .container { padding-top: 14px; padding-bottom: 14px; }
header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; }

.logo img { height: 36px; }

.main-nav {
  display: none; /* hidden on mobile */
  align-items: center;
  gap: 16px;
}

.main-nav a {
  color: var(--ink);
  padding: 10px 12px;
  border-radius: 8px;
  font-weight: 700;
}

.main-nav a:hover { background: var(--accent); color: var(--primary); }

.main-nav .cta {
  background: var(--electric-pink);
  color: #fff;
  box-shadow: 0 8px 18px rgba(255,45,149,0.3);
}

.main-nav .cta:hover { background: var(--primary); box-shadow: 0 8px 18px rgba(11,61,145,0.35); }

/* Mobile Menu Button */
.mobile-menu-toggle {
  width: 44px; height: 44px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  color: #fff;
  background: var(--primary);
  box-shadow: 0 6px 14px var(--shadow);
}
.mobile-menu-toggle:hover { background: var(--electric-cyan); color: #001219; }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; /* Flex-only */
  flex-direction: column; justify-content: flex-start; align-items: stretch;
  background: rgba(10,13,20,0.75);
  transform: translateX(100%);
  transition: transform 0.35s ease;
}

.mobile-menu .mobile-nav {
  background: var(--surface);
  display: flex; flex-direction: column; gap: 8px;
  padding: 20px; margin-left: auto; width: 86%; height: 100%;
  box-shadow: -6px 0 18px var(--shadow);
}

.mobile-menu .mobile-nav a {
  padding: 14px 12px; border-radius: 10px; font-weight: 700; color: var(--ink);
}
.mobile-menu .mobile-nav a:hover { background: var(--accent); color: var(--primary); }

.mobile-menu .mobile-menu-close {
  position: absolute; right: 14px; top: 14px;
  width: 40px; height: 40px; border-radius: 10px; background: var(--electric-pink); color: #fff;
}
.mobile-menu .mobile-menu-close:hover { background: var(--primary); }

/* States for opening (allow multiple class names) */
.mobile-menu.open,
.mobile-menu.is-open,
.mobile-menu.active { transform: translateX(0); }

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

/* -------------------------------
   HERO SECTION (vibrant, energetic)
-------------------------------- */
.hero {
  position: relative;
  background: var(--primary);
  color: #fff;
  overflow: hidden;
}

.hero .container { padding-top: 60px; padding-bottom: 60px; }
.hero .content-wrapper { align-items: flex-start; }
.hero h1 { color: #ff2d95; text-shadow: 0 2px 0 rgba(0,0,0,0.1); }
.hero .subhead { color: #0b3d91; font-size: 18px; }

/* Energetic stripes (decorative) */
.hero::before, .hero::after {
  content: "";
  position: absolute; z-index: 0;
  width: 120%; height: 160px; left: -10%;
  transform: rotate(-3deg);
}
.hero::before { top: 0; background: var(--electric-pink); opacity: 0.15; }
.hero::after { bottom: -40px; background: var(--electric-cyan); opacity: 0.12; }

.hero .content-wrapper > * { position: relative; z-index: 1; }

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: 14px; }

/* -------------------------------
   BUTTONS
-------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: 12px; font-weight: 800;
  letter-spacing: 0.3px; text-align: center; line-height: 1;
  transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
  border: 2px solid transparent;
}

.btn.primary { background: var(--electric-pink); color: #fff; box-shadow: 0 10px 20px rgba(255,45,149,0.35); }
.btn.primary:hover { transform: translateY(-2px); background: var(--primary); box-shadow: 0 10px 22px rgba(11,61,145,0.35); }

.btn.secondary { background: #fff; color: var(--primary); border-color: var(--primary); }
.btn.secondary:hover { color: #fff; background: var(--secondary); border-color: var(--secondary); box-shadow: 0 10px 20px rgba(46,125,50,0.25); }

.btn:active { transform: translateY(0); }

/* -------------------------------
   LISTS, TEXT BLOCKS, BADGES
-------------------------------- */
.text-section { display: flex; flex-direction: column; gap: 10px; }

li { margin-bottom: 8px; }

/* Trust badges */
.trust-badges ul {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
  list-style: none; padding-left: 0;
}
.trust-badges li {
  display: flex; align-items: center; gap: 8px; background: #fff; border: 2px solid var(--primary);
  color: var(--ink); padding: 8px 12px; border-radius: 999px; font-weight: 700;
}
.trust-badges img { width: 18px; height: 18px; }

.contact-snippet p, .contact-snippet img { display: inline-flex; vertical-align: middle; }
.contact-snippet img { width: 18px; height: 18px; margin: 0 6px 0 0; }

/* Stats/Proof */
.stats, .proof { display: flex; flex-direction: column; gap: 8px; }
.stats p { font-weight: 800; color: var(--primary); }

/* Ordered/Unordered 
   Keep spacing readable */
.content-wrapper > ul, .content-wrapper > ol { display: flex; flex-direction: column; gap: 8px; }

/* -------------------------------
   CARDS (generic) + TESTIMONIALS
-------------------------------- */
.card {
  background: #fff; border-radius: 14px; box-shadow: 0 8px 22px var(--shadow);
  border: 2px solid var(--accent);
  padding: 20px; display: flex; flex-direction: column; gap: 12px;
}

/* Testimonials: enforce readable contrast */
.testimonial-card {
  background: #fff; border-radius: 14px; box-shadow: 0 8px 22px var(--shadow);
  border: 2px solid var(--primary); color: var(--ink);
}

.testimonial-card p { margin: 0; }
.testimonial-card strong { color: var(--secondary); }

/* -------------------------------
   GENERIC FLEX GRIDS (no CSS Grid)
-------------------------------- */
.card-container > * { flex: 1 1 280px; }
.content-grid > * { flex: 1 1 280px; }

/* -------------------------------
   SECTION VARIANTS
-------------------------------- */
main > section:nth-of-type(even) { background: #fff; }
main > section:nth-of-type(odd) { background: var(--accent); }

/* -------------------------------
   FOOTER
-------------------------------- */
footer {
  background: var(--ink);
  color: #fff;
  padding-top: 32px; padding-bottom: 32px;
  border-top: 6px solid var(--electric-pink);
}

footer .content-wrapper { gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 40px; }

.footer-nav, .footer-legal, .footer-contact {
  display: flex; flex-direction: column; gap: 8px;
}

footer a { color: #E6ECF5; }
footer a:hover { color: var(--electric-cyan); }

@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
}

/* -------------------------------
   RESPONSIVE & ALIGNMENT (Flex)
-------------------------------- */
/* Text-image sections alignment requirement */
.text-image-section { align-items: center; }

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* Ensure no overlap by spacing */
.content-wrapper > * + * { margin-top: 0; }

/* -------------------------------
   ACCESSIBILITY & MICRO-INTERACTIONS
-------------------------------- */
::selection { background: var(--electric-yellow); color: #001219; }

/* Links underline on keyboard focus for clarity */
a:focus-visible { text-decoration: underline; text-decoration-color: var(--electric-yellow); }

/* -------------------------------
   PAGE-SPECIFIC ENHANCEMENTS
-------------------------------- */
/* Hero CTA color tweaks for visibility */
.hero .btn.secondary { background: #fff; color: var(--primary); border-color: #fff; }

/* Footer CTA button */
footer .btn.primary { background: var(--electric-cyan); color: #001219; }
footer .btn.primary:hover { background: var(--electric-pink); color: #fff; }

/* Lists with icons (contact sections) */
.content-wrapper ul li img { width: 18px; height: 18px; margin-right: 8px; display: inline-block; vertical-align: middle; }
.content-wrapper ul li { display: flex; align-items: center; gap: 8px; }

/* -------------------------------
   MOBILE NAV VISIBILITY RULES
-------------------------------- */
/* Hide desktop nav on small screens, show burger */
@media (min-width: 992px) {
  .mobile-menu { display: none; }
}

/* -------------------------------
   COOKIE CONSENT BANNER & MODAL
-------------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 9998;
  background: #fff; color: var(--ink);
  border-top: 4px solid var(--primary);
  box-shadow: 0 -10px 24px var(--shadow);
  transform: translateY(110%);
  transition: transform 0.35s ease;
}
.cookie-banner.show, .cookie-banner.is-visible, .cookie-banner.active { transform: translateY(0); }

.cookie-banner .cookie-inner {
  max-width: 1200px; margin: 0 auto; padding: 16px; display: flex; flex-direction: column; gap: 12px;
}
.cookie-row { display: flex; flex-direction: column; gap: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.cookie-actions .btn { padding: 10px 14px; border-radius: 10px; }
.cookie-accept { background: var(--secondary); color: #fff; }
.cookie-accept:hover { background: #1f5a22; }
.cookie-reject { background: #fff; border-color: var(--ink); color: var(--ink); }
.cookie-reject:hover { background: var(--accent); }
.cookie-settings { background: var(--electric-pink); color: #fff; }
.cookie-settings:hover { background: var(--primary); }

/* Cookie Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 10000; display: none; /* hidden by default */
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(10,13,20,0.7);
}
.cookie-modal.open, .cookie-modal.active, .cookie-modal.is-open { display: flex; }

.cookie-panel {
  background: #fff; color: var(--ink);
  width: 100%; max-width: 720px; border-radius: 14px; box-shadow: 0 20px 40px var(--shadow);
  border: 2px solid var(--primary);
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
}
.cookie-panel h3 { color: var(--primary); }
.cookie-category { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--accent); }
.cookie-category:last-child { border-bottom: none; }

/* Simple toggle style (if inputs are used) */
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
.cookie-switch { width: 44px; height: 26px; border-radius: 999px; background: var(--accent); position: relative; display: inline-flex; align-items: center; }
.cookie-switch::after { content: ""; width: 18px; height: 18px; border-radius: 50%; background: var(--muted); margin-left: 4px; transition: transform 0.25s ease, background 0.25s ease; }
.cookie-switch.is-on { background: var(--electric-cyan); }
.cookie-switch.is-on::after { transform: translateX(16px); background: #001219; }

.cookie-panel .cookie-actions { justify-content: flex-end; }

/* -------------------------------
   TABLES (if any appear later)
-------------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border-bottom: 1px solid var(--accent); text-align: left; }
th { color: var(--primary); }

/* -------------------------------
   FORMS (fallback styles if added later)
-------------------------------- */
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 2px solid var(--accent);
  background: #fff; color: var(--ink); transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--primary); box-shadow: 0 0 0 3px rgba(11,61,145,0.15);
}

/* -------------------------------
   MEDIA QUERIES FOR LAYOUT
-------------------------------- */
@media (min-width: 768px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .hero .container { padding-top: 80px; padding-bottom: 80px; }
}

/* -------------------------------
   PRINT (basic)
-------------------------------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-modal { display: none !important; }
  a { text-decoration: underline; }
}

/* -------------------------------
   SAFETY: ensure no layout overlaps
-------------------------------- */
header, main, footer { position: relative; z-index: 1; }

/* End of style.css */
