/* ================================
   Airy Expanse Autopartner — style.css
   Design: modern_bold (bold fonts, bright colors, geometric shapes, high contrast)
   Requirements: Mobile-first, Flexbox-only layouts, no CSS Grid/Columns
   ================================ */

/* ---- CSS Reset & Normalize ---- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img,svg,video,canvas { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding-left: 1.2rem; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
a { color: inherit; text-decoration: none; }

/* ---- Brand Tokens (with fallbacks) ---- */
:root {
  --primary: #0B3D91; /* deep blue */
  --secondary: #FF6B11; /* energetic orange */
  --accent: #F2F5F7; /* light tech gray */
  --ink: #0F1B2D; /* dark text */
  --ink-weak: #314261; /* secondary text */
  --surface: #FFFFFF; /* white */
  --radius-s: 10px;
  --radius-m: 14px;
  --radius-l: 18px;
  --shadow-s: 0 2px 10px rgba(10, 24, 64, 0.08);
  --shadow-m: 0 8px 24px rgba(10, 24, 64, 0.12);
  --shadow-l: 0 14px 40px rgba(10, 24, 64, 0.16);
  --space-8: 8px; --space-12: 12px; --space-16: 16px; --space-20: 20px; --space-24: 24px; --space-32: 32px; --space-40: 40px; --space-60: 60px; --space-80: 80px;
}

/* ---- Base Typography ---- */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  color: var(--ink);
  background: var(--surface);
  line-height: 1.6;
}

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: 36px; line-height: 1.15; }
h2 { font-size: 28px; line-height: 1.2; }
h3 { font-size: 22px; line-height: 1.25; }
h4 { font-size: 18px; line-height: 1.3; }
p, li { font-size: 16px; }
strong { font-weight: 800; }
em { color: var(--ink-weak); }

/* ---- Global Links & Focus ---- */
a { color: var(--primary); font-weight: 700; }
a:hover { color: var(--secondary); }
:focus-visible { outline: 3px solid var(--secondary); outline-offset: 2px; }

/* ---- Layout Primitives (Flexbox-only) ---- */
.container {
  display: flex; flex-direction: column; gap: var(--space-20);
  width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--space-20);
}
.content-wrapper { display: flex; flex-direction: column; gap: var(--space-20); align-items: flex-start; }

/* Mandatory 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; }

/* ---- Header ---- */
header { background: var(--surface); border-bottom: 4px solid var(--primary); position: sticky; top: 0; z-index: 100; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); padding-top: var(--space-12); padding-bottom: var(--space-12); }
header img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: var(--space-20); }
.main-nav a {
  font-weight: 800; color: var(--ink); padding: 10px 12px; border-radius: var(--radius-s);
}
.main-nav a:hover { color: var(--surface); background: var(--primary); }

.cta-nav { display: none; align-items: center; gap: var(--space-12); }

.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border: 2px solid var(--primary); border-radius: 8px; background: var(--surface); color: var(--primary);
  font-size: 22px; font-weight: 800; cursor: pointer; transition: transform .2s ease, background .2s ease;
}
.mobile-menu-toggle:hover { background: var(--accent); transform: translateY(-2px); }

/* ---- Mobile Menu Overlay ---- */
.mobile-menu {
  position: fixed; inset: 0; background: var(--surface); transform: translateX(100%);
  transition: transform .35s ease; z-index: 1000; display: flex; flex-direction: column;
  box-shadow: var(--shadow-l);
}
.mobile-menu.open, .mobile-menu.active { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; margin: var(--space-20); width: 44px; height: 44px; border-radius: 8px; border: 2px solid var(--primary); background: var(--surface); color: var(--primary);
  font-weight: 800; cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.mobile-menu-close:hover { background: var(--accent); transform: rotate(90deg); }
.mobile-nav { display: flex; flex-direction: column; gap: var(--space-16); padding: 0 var(--space-20) var(--space-40); }
.mobile-nav a {
  padding: 16px; border-radius: var(--radius-m); background: var(--accent); color: var(--ink);
  font-weight: 800; font-size: 18px; box-shadow: var(--shadow-s); transition: transform .2s ease, background .2s ease;
}
.mobile-nav a:hover { background: var(--secondary); color: var(--surface); transform: translateX(6px); }

/* ---- Hero Section ---- */
.hero { position: relative; background: var(--accent); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; right: -120px; top: -120px; width: 320px; height: 320px; background: var(--secondary);
  transform: rotate(45deg); border-radius: 24px; opacity: 0.15; z-index: 0;
}
.hero .container, .hero .content-wrapper { position: relative; z-index: 1; }
.hero h1 { color: var(--primary); text-shadow: 0 1px 0 rgba(255,255,255,0.5); }
.hero p { max-width: 60ch; color: var(--ink-weak); }

.hero-cta-row, .secondary-cta-row { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }

/* ---- Buttons ---- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 18px; border-radius: 12px; font-weight: 900; text-transform: none; letter-spacing: .3px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn-primary { background: var(--secondary); color: var(--surface); box-shadow: var(--shadow-m); border: 2px solid var(--secondary); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-l); }
.btn-secondary { background: var(--surface); color: var(--primary); border: 2px solid var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--surface); transform: translateY(-2px); }

/* ---- Feature blocks & KPI ---- */
.feature-grid, .service-cards-overview, .package-cards, .pricing-cards, .vehicle-card-list, .testimonial-list {
  display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch;
}
.feature, .service-card, .package-card, .pricing-card, .vehicle-card, .testimonial-card {
  background: var(--surface); border: 2px solid var(--primary); border-radius: var(--radius-m);
  padding: var(--space-20); box-shadow: var(--shadow-s); flex: 1 1 280px; min-width: 260px; transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.feature:hover, .service-card:hover, .package-card:hover, .pricing-card:hover, .vehicle-card:hover, .testimonial-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-m); }
.feature img { width: 42px; height: 42px; }
.feature h3 { color: var(--primary); }

.kpi-stats-strip { display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center; }
.kpi-stats-strip span {
  display: inline-flex; align-items: center; padding: 10px 14px; border-radius: 999px; background: var(--primary);
  color: var(--surface); font-weight: 800;
}

.certifications-list, .usp-bullets, .supporting-bullets, .selection-criteria-list, .service-overview-bullets, .quality-control-points,
.processing-purposes-list, .legal-basis-list {
  display: flex; flex-direction: column; gap: 10px; padding-left: 0; list-style: none;
}
.certifications-list li, .usp-bullets li, .supporting-bullets li, .selection-criteria-list li, .service-overview-bullets li, .quality-control-points li,
.processing-purposes-list li, .legal-basis-list li {
  position: relative; padding-left: 28px; color: var(--ink);
}
.certifications-list li::before, .usp-bullets li::before, .supporting-bullets li::before, .selection-criteria-list li::before,
.service-overview-bullets li::before, .quality-control-points li::before, .processing-purposes-list li::before, .legal-basis-list li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; background: var(--secondary); border-radius: 4px;
}

.trust-badges, .service-badges, .quick-contact-phone, .rating-summary {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px; color: var(--ink);
}
.trust-badges img, .service-badges img { width: 22px; height: 22px; }
.quick-contact-phone a { font-weight: 900; color: var(--primary); }

.inventory-count-badge strong, .price-promise-badge strong, .years-in-business-badge span, .availability-badge span {
  display: inline-flex; align-items: center; padding: 10px 14px; background: var(--secondary); color: var(--surface); border-radius: 999px; font-weight: 900;
}

/* ---- Services & Lists ---- */
.service-list, .benefit-list, .faq-list ul, .what-is-included-bullets, .package-comparison-highlights ul, .what-to-prepare-list,
.service-booking-shortlist {
  display: flex; flex-direction: column; gap: 10px; padding-left: 0; list-style: none;
}
.service-list li, .benefit-list li, .faq-list li, .what-is-included-bullets li, .package-comparison-highlights li, .what-to-prepare-list li, .service-booking-shortlist li {
  position: relative; padding-left: 28px;
}
.service-list li::before, .benefit-list li::before, .faq-list li::before, .what-is-included-bullets li::before, .package-comparison-highlights li::before,
.what-to-prepare-list li::before, .service-booking-shortlist li::before {
  content: ""; position: absolute; left: 0; top: 8px; width: 14px; height: 14px; background: var(--primary); border-radius: 2px;
}

/* ---- Vehicle cards ---- */
.vehicle-card h3 { color: var(--primary); }
.vehicle-card-key-specs { font-weight: 800; color: var(--ink); margin-top: 6px; }
.vehicle-card-condition-notes { color: var(--ink-weak); margin-top: 4px; }
.vehicle-card a { font-weight: 800; }

/* ---- Tables (pricing) ---- */
.pricing-table { width: 100%; border-collapse: collapse; }
.pricing-table th, .pricing-table td { text-align: left; padding: 14px; border-bottom: 1px solid var(--accent); }
.pricing-table th { background: var(--primary); color: var(--surface); font-weight: 900; }
.pricing-table tr:nth-child(even) td { background: #FAFBFC; }

/* ---- Testimonials (light background, dark text for accessibility) ---- */
.testimonials { background: var(--accent); }
.testimonial-list { align-items: stretch; }
.testimonial-card { background: var(--surface); color: var(--ink); border-color: var(--primary); border-width: 2px; border-style: solid; border-radius: var(--radius-m); box-shadow: var(--shadow-s); }
.testimonial-card p { font-style: italic; }
.testimonial-card strong { color: var(--primary); }

.review-highlights { display: flex; flex-direction: column; gap: var(--space-16); }
.review-highlights a { align-self: flex-start; }

/* ---- About / Info blocks ---- */
.founding-story, .mission-statement, .inspection-policy-summary, .how-we-work-summary, .process-teaser, .before-after-narratives,
.industry-expert-quotes, .diagnostic-report-outline, .accident-history-check-note, .service-history-verification, .return-policy-hint,
.fair-fee-explanation, .original-oem-teaser, .garantie-hinweis, .time-cost-transparency-notes, .trained-technicians-profiles,
.safety-compliance-notes, .inspection-policy-summary, .reconditioning-standards, .no-hidden-fees-statement, .press-quote-placeholder,
.timeline-estimate, .status-updates-info, .financing-consult-teaser, .warranty-options-teaser, .package-notes-small-print,
.parts-policy-note, .warranty-coverage-notes, .financing-options-teaser, .comparison-highlights, .benefit-list, .faq-list,
.controller-info, .data-protection-officer-note, .processing-contexts-overview, .processors-list-placeholder, .payment-providers-note,
.logistics-partners-note, .third-country-transfer-safeguards, .retention_by_category, .deletion_schedules, .archiving_obligations,
.what-are-cookies-text, .types-of-cookies-overview, .scope-of-policy-note, .storage-durations, .consent-banner-explanation,
.manage-preferences-instructions, .withdraw-consent-instructions, .browser-settings-hints, .third-party-providers-list-placeholder,
.links-to-policies-placeholder, .confirmation-summary, .expected-response-time, .support-contact-hint, .process-summary,
.customer-commitment-statement, .sustainability-note, .industry-expert-quotes {
  display: flex; flex-direction: column; gap: 10px;
}

/* ---- Contact & Forms (static placeholders styled as bold blocks) ---- */
.booking-form-fields, .lead-form-fields, .quote-request-form-fields, .general-inquiry-form-fields {
  display: flex; flex-direction: column; gap: var(--space-16); background: var(--surface); border: 2px solid var(--primary);
  border-radius: var(--radius-m); padding: var(--space-20); box-shadow: var(--shadow-s);
}
.booking-form-fields ul, .lead-form-fields ul, .quote-request-form-fields ul, .general-inquiry-form-fields ul { display: flex; flex-direction: column; gap: 12px; list-style: none; padding-left: 0; }
.booking-form-fields li, .lead-form-fields li, .quote-request-form-fields li, .general-inquiry-form-fields li {
  background: var(--accent); padding: 12px 14px; border-radius: 8px; font-weight: 700; color: var(--ink);
}

.contact-details-block { display: flex; flex-direction: column; gap: 8px; padding: 16px; border-left: 6px solid var(--secondary); background: #FAFBFD; border-radius: 8px; }
.contact-details-block a { font-weight: 800; }

.address-text, .hours-text, .email-link, .phone-link { display: flex; align-items: center; gap: 8px; }

/* ---- Sections base spacing ---- */
section { margin-bottom: var(--space-60); padding: var(--space-40) 0; }
.features section, .services section, .about section, .testimonials section, .contact section { /* safety */ }

/* ---- Footer ---- */
footer { background: var(--ink); color: var(--surface); padding: var(--space-40) 0; margin-top: var(--space-60); }
footer .container { gap: var(--space-20); }
footer .content-wrapper { display: flex; flex-direction: column; gap: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-nav a { color: var(--surface); font-weight: 800; }
.footer-nav a:hover { color: var(--secondary); }
.contact-short a { color: var(--secondary); font-weight: 900; }

/* ---- Filters & Sort (fahrzeuge) ---- */
.filter-controls, .sort-controls, .stock-notice-text { display: flex; flex-direction: column; gap: 10px; }
.filter-controls ul { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding-left: 0; }
.filter-controls li { background: var(--surface); border: 2px solid var(--primary); color: var(--primary); border-radius: 999px; padding: 8px 12px; font-weight: 800; }

/* ---- Geometric separators ---- */
.features .container > .content-wrapper > h2,
.services .container > .content-wrapper > h2,
.about .container > .content-wrapper > h2,
.testimonials .container > .content-wrapper > h2,
.contact .container > .content-wrapper > h2 {
  display: inline-flex; align-items: center; gap: 10px;
}
.features h2::after, .services h2::after, .about h2::after, .testimonials h2::after, .contact h2::after {
  content: ""; width: 42px; height: 8px; background: var(--secondary); border-radius: 4px; display: inline-block;
}

/* ---- Utility badges and notes ---- */
.phone-highlight-badge, .map-static-reference, .whatsapp-placeholder, .parking-instructions, .public-transport-hint,
.finance-cta-link, .comparison-highlights, .benefit-list, .faq-list {
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center;
}
.phone-highlight-badge { background: var(--surface); border: 2px dashed var(--secondary); padding: 12px 14px; border-radius: var(--radius-m); }
.finance-cta-link { font-weight: 900; color: var(--secondary); }

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

/* ---- Responsive behaviors & flex alignment ---- */
.text-image-section { align-items: center; }
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* ---- Larger screens layout enhancements ---- */
@media (min-width: 992px) {
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  .feature, .service-card, .package-card, .pricing-card, .vehicle-card { flex: 1 1 calc(33% - 24px); }
}
@media (min-width: 1200px) {
  h1 { font-size: 48px; }
}

/* ---- Micro-interactions ---- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
.hero .content-wrapper { animation: fadeInUp .5s ease both; }

/* ---- Cookie Consent Banner ---- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 900; display: flex; flex-direction: column; gap: 12px;
  background: var(--surface); border-top: 4px solid var(--primary); box-shadow: 0 -8px 24px rgba(10,24,64,.15);
  padding: 14px 16px; transform: translateY(100%); transition: transform .3s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-row { display: flex; flex-direction: column; gap: 12px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn-accept { background: var(--secondary); color: var(--surface); border: 2px solid var(--secondary); border-radius: 10px; padding: 10px 14px; font-weight: 900; }
.cookie-banner .btn-reject { background: var(--surface); color: var(--primary); border: 2px solid var(--primary); border-radius: 10px; padding: 10px 14px; font-weight: 900; }
.cookie-banner .btn-settings { background: var(--accent); color: var(--ink); border: 2px solid var(--accent); border-radius: 10px; padding: 10px 14px; font-weight: 900; }

/* ---- Cookie Preferences Modal ---- */
.cookie-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 950; }
.cookie-modal.open { display: flex; }
.cookie-modal .overlay { position: absolute; inset: 0; background: rgba(11,61,145,0.65); }
.cookie-modal .modal {
  position: relative; background: var(--surface); width: 92%; max-width: 720px; border-radius: var(--radius-l); box-shadow: var(--shadow-l);
  padding: 20px; display: flex; flex-direction: column; gap: 16px; border: 3px solid var(--primary);
}
.cookie-modal .modal-header, .cookie-modal .modal-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 2px solid var(--accent); border-radius: 10px; background: #FAFBFD; }
.cookie-switch { width: 48px; height: 28px; background: var(--accent); border: 2px solid var(--primary); border-radius: 28px; position: relative; transition: background .2s ease; }
.cookie-switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; background: var(--primary); border-radius: 50%; transition: transform .2s ease; }
.cookie-switch.on { background: #DAF0FF; }
.cookie-switch.on::after { transform: translateX(18px); }
.cookie-note { font-size: 14px; color: var(--ink-weak); }
.cookie-modal .btn-close { background: var(--surface); border: 2px solid var(--primary); color: var(--primary); border-radius: 10px; padding: 8px 12px; font-weight: 900; }
.cookie-modal .btn-save { background: var(--secondary); border: 2px solid var(--secondary); color: var(--surface); border-radius: 10px; padding: 10px 14px; font-weight: 900; }

/* ---- Accessibility & Contrast helpers ---- */
.rating-summary span, .rating-summary img { display: inline-flex; align-items: center; }
.rating-summary img { width: 18px; height: 18px; }

/* ---- Decorative constraints (no absolute for content cards; only for geometric accents) ---- */
/* Ensured across file. */

/* ---- Page-specific small tweaks ---- */
.process-steps { display: flex; flex-direction: column; gap: 10px; }
.process-steps li { padding-left: 28px; position: relative; }
.process-steps li::before { content: counter(step); counter-increment: step; position: absolute; left: 0; top: 0; background: var(--secondary); color: var(--surface); width: 22px; height: 22px; border-radius: 6px; font-size: 12px; font-weight: 900; display: inline-flex; align-items: center; justify-content: center; }
.process-steps { counter-reset: step; }

.package-card span, .pricing-card span { display: inline-flex; align-items: center; padding: 8px 12px; border-radius: 999px; background: var(--primary); color: var(--surface); font-weight: 900; margin-top: 10px; }

/* ---- Header link separators in footers are kept inline as in HTML. Add spacing: */
.footer-nav { gap: 6px; }

/* ---- Ensure adequate spacing between all cards and sections ---- */
.feature, .service-card, .package-card, .pricing-card, .vehicle-card, .testimonial-card { margin-bottom: 20px; }

/* ---- Prevent overlap via margins/padding safety ---- */
main { display: flex; flex-direction: column; gap: var(--space-20); }

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