/* ====================================================================
   ResonanzWerk Autohaus – Luxury Premium UI
   Complete style.css for all pages
   Mobile-first • Flexbox-only • No Grid/Columns
   ==================================================================== */

/* ==========================
   0) RESET & VARIABLES
   ========================== */
* { box-sizing: border-box; }
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 20px; padding: 0; }
p { margin: 0 0 16px; }
button { font: inherit; background: none; border: none; padding: 0; cursor: pointer; }

:root {
  --color-primary: #0A1E2B; /* Deep Navy */
  --color-secondary: #C89D2A; /* Gold */
  --color-accent: #F2F5F7; /* Light */
  --color-ink: #0A1E2B; /* Text */
  --color-ink-soft: #2C3B46; /* Secondary text */
  --color-border: #D9E1E6; /* Subtle border */
  --color-white: #FFFFFF;
  --shadow-soft: 0 6px 20px rgba(10, 30, 43, 0.08);
  --shadow-hover: 0 10px 26px rgba(10, 30, 43, 0.14);
  --radius-s: 8px;  /* 8 */
  --radius-m: 12px; /* 12 */
  --radius-l: 16px; /* 16 */
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-60: 60px;
  --transition: 220ms ease;
}

/* ==========================
   1) BASE TYPOGRAPHY
   ========================== */
body {
  background: var(--color-accent);
  color: var(--color-ink);
  font-family: Arial, Helvetica, sans-serif; /* Body font (brand) */
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", Tahoma, sans-serif; /* Display font (brand) */
  color: var(--color-ink);
  line-height: 1.25;
  letter-spacing: 0.2px;
  margin: 0 0 12px;
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }

.lead { font-size: 18px; color: var(--color-ink-soft); }
.small { font-size: 14px; }

/* Premium heading underline */
h1 + p, h2 + p { color: var(--color-ink-soft); }
.section-title, h2 {
  position: relative;
  padding-top: 8px;
}
.section-title:before, h2:before {
  content: "";
  display: block;
  width: 48px;
  height: 3px;
  background: var(--color-secondary);
  border-radius: 2px;
  margin-bottom: 12px;
}

/* ==========================
   2) LAYOUT CONTAINERS (Flex-only)
   ========================== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;           /* Flex container */
  flex-direction: column;  /* Column on mobile */
  align-items: stretch;
  gap: var(--space-20);
}

.content-wrapper {
  display: flex;           /* Flex container */
  flex-direction: column;  /* Column on mobile */
  gap: var(--space-20);
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: var(--space-24);
  box-shadow: var(--shadow-soft);
}

main { display: flex; flex-direction: column; gap: var(--space-32); }

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

/* Also apply section spacing to section element */
section { margin-bottom: var(--space-60); padding: var(--space-40) 0; }

/* ==========================
   3) HEADER & NAVIGATION
   ========================== */
header {
  background: var(--color-primary);
  color: var(--color-white);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
header .container {
  flex-direction: row;     /* Row in header */
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
header a img { width: 160px; }

.main-nav { display: none; gap: var(--space-20); align-items: center; }
.main-nav a {
  color: var(--color-white);
  opacity: 0.92;
  padding: 8px 10px;
  border-radius: var(--radius-s);
  transition: color var(--transition), background var(--transition), opacity var(--transition);
}
.main-nav a:hover { background: rgba(255,255,255,0.08); color: var(--color-white); opacity: 1; }

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

/* CTAs */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 999px; font-weight: 600; letter-spacing: 0.2px; transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition), border-color var(--transition); }
.cta.primary { background: var(--color-secondary); color: var(--color-primary); box-shadow: 0 4px 14px rgba(200,157,42,0.35); }
.cta.primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.cta.secondary { background: transparent; color: var(--color-secondary); border: 1px solid var(--color-secondary); }
.cta.secondary:hover { background: rgba(200,157,42,0.12); }

.hero-cta-buttons { display: flex; flex-direction: column; gap: var(--space-12); align-items: flex-start; }

/* Mobile menu button */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 8px; color: var(--color-white); background: rgba(255,255,255,0.08); }
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.14); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: rgba(10, 30, 43, 0.85);
  backdrop-filter: blur(4px);
  display: flex;             /* Flex container */
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 320ms ease;
  z-index: 9999;
}
.mobile-menu.open { transform: translateX(0%); }

.mobile-menu-close { align-self: flex-end; margin: 16px; width: 44px; height: 44px; border-radius: 8px; color: var(--color-white); background: rgba(255,255,255,0.12); }
.mobile-menu-close:hover { background: rgba(255,255,255,0.18); }

.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 20px; }
.mobile-nav a {
  background: var(--color-white);
  color: var(--color-ink);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: var(--shadow-soft);
}
.mobile-nav a:hover { box-shadow: var(--shadow-hover); }

/* ==========================
   4) HERO & GENERIC SECTIONS
   ========================== */
/* The first section often acts as hero; elevate */
main > section:first-of-type .content-wrapper {
  padding: var(--space-32);
  background: var(--color-white);
  border: 1px solid var(--color-border);
}

.benefit-bullets, .usp_list, .service_list, .what_to_expect_list, .milestone_checkpoints ul, .deliverables_list ul,
.inspection_checklist_fields ul, .diagnostic_modules_list ul, .what_is_included ul, .addons_list ul,
.before_after_highlights ul, .metrics_counters ul, .value_list ul, .team_roles_overview ul,
.certifications_list ul, .tools_and_technology_list ul, .quality_control_checkpoints ul, .common_service_examples ul,
.user_obligations_list ul, .data_categories_list ul, .processing_purposes_list ul, .legal_bases_list ul,
.rights_list ul, .strictly_necessary_list ul, .performance_list ul, .functional_list ul, .marketing_list ul {
  display: flex; flex-direction: column; gap: 10px; margin: 0 0 8px 18px;
}

/* Cards and grouped items */
.feature_grid, .service_cards, .testimonials_list, .trust_badges, .review_highlights ul,
.inventory_filters, .sort_options, .search_field, .results_count_indicator,
.vehicle_cards_meta_fields, .condition_badges, .warranty_options_badges, .finance_options_badges,
.service_categories ul, .pricing_tiers_summary, .pricing_tables, .feature_comparison_grid, .notes_and_conditions,
.labor_rates_table, .diagnostic_packages_table, .maintenance_packages_table,
.footer-contact, .footer-nav {
  display: flex; flex-wrap: wrap; gap: var(--space-20);
}

.feature_grid > div, .service_cards > div, .testimonials_list > .testimonial-card {
  flex: 1 1 260px;
}

/* Feature grid */
.feature_grid > div {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  padding: var(--space-20);
  box-shadow: var(--shadow-soft);
  transition: box-shadow var(--transition), transform var(--transition), border-color var(--transition);
}
.feature_grid > div:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); border-color: rgba(200,157,42,0.45); }
.feature_grid h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-bottom: 8px; }
.feature_grid h3 img { width: 22px; height: 22px; }

/* Trust badges */
.trust_badges { align-items: center; }
.trust_badges img { width: 44px; height: 44px; background: var(--color-white); border-radius: 50%; padding: 8px; border: 1px solid var(--color-border); box-shadow: var(--shadow-soft); }

/* Services */
.service_cards > div {
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-l);
  padding: var(--space-24);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 12px;
}
.service_cards > div a { color: var(--color-secondary); font-weight: 600; }
.service_cards > div a:hover { text-decoration: underline; }

/* Process steps */
.process_steps { display: flex; flex-direction: column; gap: 8px; margin-left: 18px; }
.process_steps li { padding-left: 6px; }
.timeline { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--color-ink-soft); }
.timeline span { background: var(--color-white); border: 1px solid var(--color-border); padding: 8px 12px; border-radius: 999px; }

/* Ratings */
.rating_summary { display: flex; align-items: center; gap: 12px; }
.rating_summary img { width: 120px; height: auto; }
.rating_summary span { font-weight: 600; color: var(--color-ink); }

/* Testimonials – light cards with dark text for contrast */
.testimonials_list { display: flex; flex-wrap: wrap; gap: var(--space-20); }
.testimonial-card {
  flex: 1 1 280px;
  background: var(--color-white);
  color: var(--color-ink);
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  border-radius: var(--radius-l);
  padding: var(--space-20);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
}
.testimonial-card p { margin: 0; font-style: italic; }
.testimonial-card span { color: var(--color-ink-soft); font-size: 14px; }

/* Contact blocks */
.contact_details, .hours { display: flex; flex-direction: column; gap: 8px; }
.contact_details p, .hours p { display: flex; align-items: center; gap: 10px; }
.contact_details img { width: 20px; height: 20px; }

/* Map placeholder */
.map_embed_placeholder { display: flex; align-items: center; justify-content: center; padding: 24px; border: 1px dashed var(--color-border); border-radius: var(--radius-m); color: var(--color-ink-soft); background: var(--color-white); }

/* Tables – premium style */
table { width: 100%; border-collapse: collapse; background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-m); overflow: hidden; display: table; }
th, td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--color-border); }
th { background: #FAFBFC; color: var(--color-ink); font-weight: 700; }
tr:last-child td { border-bottom: none; }
tr:hover td { background: #FAFCFE; }

/* Badges */
.condition_badges, .warranty_options_badges, .finance_options_badges { align-items: center; }
.condition_badges span, .warranty_options_badges span, .finance_options_badges span {
  background: var(--color-white); border: 1px solid var(--color-border); border-radius: 999px; padding: 6px 10px; }
.condition_badges img, .warranty_options_badges img, .finance_options_badges img { width: 20px; height: 20px; }

/* Review highlights */
.review_highlights ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.review_highlights li { padding-left: 14px; position: relative; }
.review_highlights li:before { content: "•"; color: var(--color-secondary); font-weight: 900; position: absolute; left: 0; }

/* Utility content groupings */
.inventory_filters, .sort_options, .search_field, .results_count_indicator,
.vehicle_cards_meta_fields, .multi_point_checklist_outline, .reconditioning_items_list,
.guarantee_and_return_outline, .trade_in_process_brief, .lead_form_fields, .preferred_vehicle_field,
.test_drive_request_option, .financing_consult_option, .booking_form_fields, .preferred_date_time,
.vehicle_details_fields, .symptom_description_field, .mission_statement, .service_philosophy,
.transparency_principles, .team_roles_overview, .certifications_list, .tools_and_technology_list,
.quality_assurance_practices, .metrics_counters, .press_mentions_outline, .controller_details,
.data_protection_officer_info, .hosting_provider_info, .transfer_to_third_countries_note,
.processors_list, .retention_periods_overview, .withdraw_consent_instructions,
.complaint_procedure_outline, .security_measures_list, .cookie_usage_summary, .links_to_cookie_policy,
.strictly_necessary_list, .performance_list, .functional_list, .marketing_list, .consent_banner_description,
.preference_center_outline, .withdrawal_instructions, .third_party_tools_list, .links_to_privacy_policies,
.scope_text, .provider_identification_fields, .acceptable_use_rules, .user_obligations_list,
.account_registration_note, .disclaimer_outline, .liability_limitations, .availability_note,
.jurisdiction_clause, .severability_clause, .changes_to_terms_note, .expected_response_time,
.contact_options, .link_back_to_home, .what_is_included, .exclusions_list, .addons_list,
.diagnostic_modules_list, .report_examples_outline, .what_happens_next_list, .data_categories_list,
.processing_purposes_list, .legal_bases_list, .rights_list, .retention_overview, .deletion_routines_outline,
.third_country_transfers_note, .appropriate_safeguards_outline, .complaint_right_note, .contact_for_requests,
.notes_and_conditions, .price_notes {
  display: flex; flex-direction: column; gap: 10px;
}

/* ==========================
   5) FOOTER
   ========================== */
footer {
  background: var(--color-primary);
  color: var(--color-white);
  padding: var(--space-32) 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
footer .container { flex-direction: column; align-items: center; gap: var(--space-16); }
.footer-nav { justify-content: center; }
.footer-nav a { color: #E6EDF2; opacity: 0.92; }
.footer-nav a:hover { opacity: 1; text-decoration: underline; }
.footer-contact { color: #D8E1E7; justify-content: center; }
.footer-contact p { margin: 0; }

/* ==========================
   6) FORMS & INPUT STYLES (placeholders for any future inputs)
   ========================== */
input[type="text"], input[type="email"], input[type="tel"], input[type="search"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-m);
  background: var(--color-white);
  color: var(--color-ink);
  transition: border-color var(--transition), box-shadow var(--transition);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(200,157,42,0.18); }
label { font-weight: 600; margin-bottom: 6px; display: inline-block; }

/* ==========================
   7) TABLE WRAPPERS (Pricing & Rates)
   ========================== */
.pricing_tables, .pricing_tiers_summary, .labor_rates_table, .diagnostic_packages_table, .maintenance_packages_table {
  width: 100%;
}
.pricing_tables table, .pricing_tiers_summary table, .labor_rates_table table, .diagnostic_packages_table table, .maintenance_packages_table table {
  border-radius: var(--radius-l);
  overflow: hidden;
}

/* ==========================
   8) PREMIUM MICRO-INTERACTIONS
   ========================== */
.content-wrapper:hover { border-color: rgba(200,157,42,0.35); }

a { color: var(--color-secondary); transition: color var(--transition), opacity var(--transition); }
a:hover { color: #A78322; }

/* ==========================
   9) MOBILE NAVIGATION – RESPONSIVE
   ========================== */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .header-cta-buttons { display: flex; }
  .mobile-menu-toggle { display: none; }
  .container { flex-direction: row; }
  main > section .container { flex-direction: column; }
  .content-wrapper { padding: var(--space-32); }
  .hero-cta-buttons { flex-direction: row; }
}

/* Text-image rule: column on mobile, row on desktop */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
}

/* Typography scale up on larger screens */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1200px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* ==========================
   10) COOKIE CONSENT BANNER & MODAL
   ========================== */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 24px rgba(10,30,43,0.12);
  padding: 16px;
  display: flex;             /* Flex container */
  flex-direction: column;
  gap: 12px;
  z-index: 9998;
  transform: translateY(100%);
  transition: transform 280ms ease;
}
.cookie-banner.show { transform: translateY(0%); }
.cookie-banner .cookie-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 10px 14px; border-radius: 999px; font-weight: 600; }
.cookie-btn.accept { background: var(--color-secondary); color: var(--color-primary); }
.cookie-btn.reject { background: #E8ECF0; color: var(--color-ink); }
.cookie-btn.settings { background: transparent; color: var(--color-secondary); border: 1px solid var(--color-secondary); }
.cookie-btn:hover { filter: brightness(0.97); }

/* Cookie preferences modal */
.cookie-modal {
  position: fixed; inset: 0;
  background: rgba(10, 30, 43, 0.75);
  display: none;             /* hidden by default */
  align-items: center; justify-content: center;
  z-index: 10000;
}
.cookie-modal.open { display: flex; }
.cookie-modal .cookie-modal-content {
  width: min(720px, 94%);
  background: var(--color-white);
  border-radius: 16px;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-hover);
  padding: 20px;
  display: flex; flex-direction: column; gap: 16px;
}
.cookie-categories { display: flex; flex-direction: column; gap: 10px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--color-border); border-radius: 12px; padding: 12px 14px; }
.cookie-category .label { font-weight: 600; }
.cookie-category .always { color: var(--color-ink-soft); font-size: 14px; }
.cookie-modal .footer { display: flex; gap: 10px; justify-content: flex-end; }

/* Simple toggle style (for JS to enhance) */
.toggle { width: 44px; height: 26px; border-radius: 999px; background: #CFD8DE; position: relative; transition: background var(--transition); }
.toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: 0 2px 6px rgba(0,0,0,0.2); transition: left var(--transition); }
.toggle.on { background: var(--color-secondary); }
.toggle.on::after { left: 21px; }

/* ==========================
   11) PAGE-SPECIFIC TWEAKS
   ========================== */
/* Index – highlight hero benefits */
.benefit-bullets { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.benefit-bullets li { display: flex; align-items: flex-start; gap: 8px; padding-left: 16px; position: relative; }
.benefit-bullets li:before { content: ""; width: 8px; height: 8px; background: var(--color-secondary); border-radius: 2px; position: absolute; left: 0; top: 10px; }

/* Fahrzeugbestand – filter and meta blocks */
.inventory_filters > p, .sort_options > p, .search_field > p, .results_count_indicator > p { margin: 0; color: var(--color-ink-soft); }
.vehicle_cards_meta_fields p { margin: 0; }

/* Preise – comparison notes */
.feature_comparison_grid ul { margin-left: 18px; }

/* Kontakt – CTA block */
.cta_contact { display: flex; }

/* Thank you page */
.what_happens_next_list { display: flex; flex-direction: column; gap: 8px; margin-left: 18px; }

/* ==========================
   12) CARD UTILITY & BORDERS
   ========================== */
.card, .content-card { background: var(--color-white); border: 1px solid var(--color-border); border-radius: var(--radius-l); padding: var(--space-20); box-shadow: var(--shadow-soft); }

/* ==========================
   13) ACCESSIBILITY & STATES
   ========================== */
:focus-visible { outline: 3px solid rgba(200,157,42,0.45); outline-offset: 2px; }

/* Ensure testimonial readability (dark text on light bg) */
.testimonial-card, .testimonials_list .testimonial-card p, .testimonials_list .testimonial-card span { color: var(--color-ink); }

/* ==========================
   14) ENSURE FLEX USAGE FOR COMMON CONTAINERS
   ========================== */
.footer-nav, .footer-contact, nav.main-nav, .hero-cta-buttons, .contact_details, .hours, .service_cards, .feature_grid, .testimonials_list, .trust_badges, .timeline, .rating_summary, .review_highlights, .mobile-nav, .mobile-menu, .mobile-menu .mobile-nav, .cookie-banner, .cookie-banner .cookie-row, .cookie-banner .cookie-actions, .cookie-modal, .cookie-modal .cookie-modal-content, .cookie-categories, .cookie-modal .footer { display: flex; }

/* ==========================
   15) DESKTOP ENHANCEMENTS
   ========================== */
@media (min-width: 992px) {
  /* Layout widths */
  main > section .container { max-width: 1200px; }

  /* Multi-column like layouts with flex-wrap */
  .service_cards { justify-content: space-between; }
  .service_cards > div { flex: 1 1 calc(33% - 16px); }

  .feature_grid { justify-content: space-between; }
  .feature_grid > div { flex: 1 1 calc(33% - 16px); }

  .testimonials_list { justify-content: space-between; }
  .testimonials_list > .testimonial-card { flex: 1 1 calc(33% - 16px); }

  .trust_badges { gap: var(--space-30); }
}

/* ==========================
   16) HEADER SHADOW ON SCROLL (opt-in by class)
   ========================== */
header.scrolled { box-shadow: 0 6px 22px rgba(10,30,43,0.18); }

/* ==========================
   17) DARK HEADER LINK FOCUS/ACTIVE
   ========================== */
.main-nav a:focus-visible { outline: 3px solid rgba(255,255,255,0.6); outline-offset: 2px; }

/* ==========================
   18) SPACING UTILITIES
   ========================== */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.mt-32 { margin-top: 32px; }
.mb-32 { margin-bottom: 32px; }
.pt-20 { padding-top: 20px; }
.pb-20 { padding-bottom: 20px; }

/* ==========================
   19) PRINT FRIENDLY (simple)
   ========================== */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  body { background: #fff; color: #000; }
  .content-wrapper { border: 1px solid #000; box-shadow: none; }
}

/* ====================================================================
   END OF FILE – Flexbox-only. No grid/columns used. Premium, consistent.
   ==================================================================== */
