/* =============================
   CSS Reset & Base
   ============================= */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 20px; }
button { background: none; border: none; font: inherit; cursor: pointer; }
:focus { outline: none; }
:root {
  /* Brand */
  --brand-primary: #1F3A56; /* deep blue from brand */
  --brand-secondary: #FF7A00; /* orange */
  --brand-accent: #F3F6FA;
  /* Nature Organic palette */
  --forest: #2F5D3A; /* deep forest green */
  --moss: #4F7F55; /* moss green */
  --sage: #E9EFE6; /* light greenish background */
  --clay: #8C6A4A; /* earthy brown accent */
  --sand: #F6F2E7; /* warm sand */
  --leaf: #79A06A; /* leaf green */
  --bark: #5A4634; /* dark brown */
  /* Text & Surfaces */
  --text-strong: #1D2A1D; /* dark earthy text */
  --text-body: #2E3A2E; /* body text */
  --text-muted: #5B6A5B;
  --surface: #FFFFFF;
  --surface-tint: #FAFBF9; /* very light organic */
  --surface-contrast: #0E1A0E; /* for inverted if needed */
  --border: #D9E4D5;
  /* Shadows & Radius */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 6px 14px rgba(24,36,24,0.12);
  --shadow-lg: 0 14px 30px rgba(24,36,24,0.14);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 22px;
  --radius-blob: 28px 38px 22px 30px / 30px 22px 38px 24px; /* organic */
  /* Spacing scale */
  --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;
}
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  color: var(--text-body);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Typography */
h1, h2, h3, h4, h5, h6 { font-family: "Trebuchet MS", "Segoe UI", Arial, sans-serif; color: var(--text-strong); margin: 0 0 var(--space-16); line-height: 1.2; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
h4 { font-size: 18px; }
p { margin: 0 0 var(--space-16); color: var(--text-body); }
small { color: var(--text-muted); }
strong { color: var(--text-strong); }

/* Links & Focus */
a, button, [role="button"], .btn-primary, .btn-secondary { transition: all .2s ease; }
:focus-visible { outline: 3px solid rgba(121,160,106,0.55); outline-offset: 2px; border-radius: 6px; }

/* Containers & Layout (Flex-only) */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: var(--space-24); }
.content-wrapper { display: flex; flex-direction: column; gap: var(--space-16); background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-blob); padding: var(--space-24); box-shadow: var(--shadow-sm); position: relative; }
.content-wrapper::before { content: ""; position: absolute; z-index: 0; inset: auto auto 12px 12px; width: 120px; height: 80px; background: rgba(233,239,230,0.7); border-radius: 50% 40% 60% 50%/60% 50% 60% 40%; filter: blur(2px); }
.content-wrapper > * { position: relative; z-index: 1; }

/* Mandatory Spacing & 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 style native <section> for consistent spacing */
section { margin-bottom: var(--space-60); padding: var(--space-40) 0; }

/* Header */
header { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 10px rgba(0,0,0,0.04); }
header .container {  align-items: center; justify-content: space-between; gap: var(--space-16); padding-top: var(--space-12); padding-bottom: var(--space-12); }
header img { height: 38px; }
header nav { display: none; align-items: center; gap: var(--space-16); }
header nav a { color: var(--text-strong); padding: 10px 12px; border-radius: 999px; }
header nav a:hover { background: var(--sage); color: var(--forest); }
.cta-header { display: none; align-items: center; gap: var(--space-12); }
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--sage); color: var(--forest); box-shadow: var(--shadow-sm); }
.mobile-menu-toggle:hover { background: #dde7d8; }

/* Hero-like first section subtle tint */
main > section:first-of-type .content-wrapper { background: var(--sage); border-color: #d1decf; }

/* Buttons */
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; font-weight: 700; text-align: center; box-shadow: var(--shadow-sm); }
.btn-primary { background: var(--forest); color: #fff; border: 1px solid #2a5535; }
.btn-primary:hover { background: #264f31; box-shadow: var(--shadow-md); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: #fff; color: var(--forest); border: 1px solid var(--leaf); }
.btn-secondary:hover { background: var(--leaf); color: #fff; border-color: var(--leaf); box-shadow: var(--shadow-md); }

/* Badges */
.badge-available, .badge-soon { display: inline-flex; align-items: center; padding: 4px 10px; font-size: 12px; border-radius: 999px; border: 1px solid transparent; }
.badge-available { background: #E6F3E8; color: #1f6b2e; border-color: #cfe8d2; }
.badge-soon { background: #FFF3E6; color: #A85B00; border-color: #FFE1BF; }

/* Trust badges */
.trust-badges { display: flex; align-items: center; gap: var(--space-16); flex-wrap: wrap; }
.trust-badges img { width: 36px; height: 36px; padding: 8px; border-radius: 16px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }

/* Stats */
.stat-counters { display: flex; flex-wrap: wrap; gap: var(--space-20); }
.stat-counters > div { flex: 1 1 160px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }
.stat-counters span { font-size: 22px; font-weight: 800; color: var(--forest); }
.stat-counters small { font-size: 13px; color: var(--text-muted); }

/* Services as cards */
.service-cards { display: flex; flex-wrap: wrap; gap: var(--space-20); }
.service-cards > div { flex: 1 1 240px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-blob); padding: 18px; box-shadow: var(--shadow-sm); }
.service-cards h3 { color: var(--forest); }
.service-cards p, .service-cards li { color: var(--text-body); }

/* Process overview */
.process-overview { display: flex; flex-direction: column; gap: 10px; background: var(--surface-tint); border: 1px dashed #c5d7c2; border-radius: var(--radius-md); padding: 16px; }
.process-overview h4 { margin-bottom: 6px; }
.process-overview ol { padding-left: 22px; }

/* Secondary CTA strip */
.secondary-cta-strip { display: flex; align-items: center; justify-content: center; padding: 16px; background: #eef5ec; border: 1px solid #d7e6d3; border-radius: var(--radius-lg); }

/* Text sections */
.text-section { display: flex; flex-direction: column; gap: 10px; }

/* Testimonials (readable, light bg, dark text) */
.testimonial-card { background: #F8FBF6; border: 1px solid #d9ead4; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.testimonial-card h3 { margin: 0; color: var(--bark); }
.testimonial-card p { margin: 0; color: var(--text-body); }
.rating-summary { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; width: fit-content; }
.rating-summary img { width: 22px; height: 22px; }

/* Contact + Map */
.content-wrapper ul li { margin-bottom: 10px; }
.content-wrapper ul li img { width: 18px; height: 18px; margin-right: 8px; display: inline-block; vertical-align: middle; }
.content-wrapper ul li a { color: var(--forest); text-decoration: underline; }
.map-embed { display: flex; align-items: center; justify-content: center; padding: 16px; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.map-embed img { width: 100%; max-width: 520px; }

/* Vehicles page extras */
.filter-controls, .sort-controls { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px 14px; }
.vehicle-list-text-only ul { list-style: none; padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
.vehicle-list-text-only li { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 12px; }
.finance-hint { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #fff8ee; border: 1px solid #ffe1bf; border-radius: 10px; color: #8e4a00; }

/* Preise table */
.table-wrap { display: flex; flex-direction: column; }
table { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; }
thead th { background: var(--sage); color: var(--text-strong); text-align: left; padding: 12px; font-weight: 800; }
tbody td { padding: 12px; border-top: 1px solid var(--border); }
.price-notes { color: var(--text-muted); font-size: 14px; }

/* Footer */
footer { background: var(--surface); border-top: 1px solid var(--border); }
footer .container { flex-direction: column; gap: var(--space-20); padding-top: var(--space-24); padding-bottom: var(--space-24); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer-nav a { color: var(--text-body); padding: 6px 10px; border-radius: 999px; }
.footer-nav a:hover { background: var(--sage); color: var(--forest); }
.contact-short { color: var(--text-muted); }
.social-links { display: flex; align-items: center; gap: 12px; }
.social-links img { width: 22px; height: 22px; filter: saturate(0.8); }
.newsletter-signup { display: flex; flex-direction: column; gap: 8px; background: var(--sage); border: 1px solid #d2dfcf; border-radius: var(--radius-lg); padding: 16px; }

/* Mobile Navigation (Hamburger) */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: 100%; max-width: 100%; background: var(--surface); transform: translateX(100%); transition: transform .3s ease; z-index: 1100; display: flex; flex-direction: column; padding: 16px; border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); }
.mobile-menu.open, .mobile-menu.active, .mobile-menu.is-open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; border-radius: 10px; background: var(--sage); color: var(--forest); margin-bottom: 10px; }
.mobile-nav { display: flex; flex-direction: column; gap: 10px; }
.mobile-nav a { padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text-strong); }
.mobile-nav a:hover { background: var(--sage); color: var(--forest); }

/* Cookie Consent Banner */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200; display: flex; flex-direction: column; gap: 12px; background: var(--surface); border-top: 1px solid var(--border); box-shadow: 0 -8px 20px rgba(24,36,24,0.08); padding: 16px 20px; }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 8px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 10px 14px; border-radius: 999px; border: 1px solid transparent; font-weight: 700; }
.cookie-accept { background: var(--forest); color: #fff; border-color: #2a5535; }
.cookie-accept:hover { background: #264f31; }
.cookie-reject { background: #fff; color: var(--forest); border-color: var(--leaf); }
.cookie-reject:hover { background: var(--leaf); color: #fff; }
.cookie-settings { background: var(--sage); color: var(--forest); border-color: #d1decf; }
.cookie-settings:hover { background: #dde7d8; }

/* Cookie Modal */
.cookie-modal-overlay { position: fixed; inset: 0; background: rgba(8,16,8,0.55); display: none; align-items: center; justify-content: center; z-index: 1300; }
.cookie-modal-overlay.open, .cookie-modal-overlay.active { display: flex; }
.cookie-modal { width: 92%; max-width: 680px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-blob); box-shadow: var(--shadow-lg); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-tint); }
.cookie-toggle { width: 44px; height: 26px; border-radius: 999px; background: #cfe1cb; position: relative; transition: background .2s ease; display: inline-flex; align-items: center; padding: 3px; }
.cookie-toggle::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: var(--shadow-sm); transform: translateX(0); transition: transform .2s ease; }
.cookie-toggle.on { background: var(--leaf); }
.cookie-toggle.on::after { transform: translateX(18px); }

/* Utility cards (generic) */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-sm); }

/* Organic dividers */
hr { border: 0; height: 1px; background: var(--border); margin: var(--space-24) 0; }

/* Responsive: Mobile-first; enhance at breakpoints */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 26px; }
  .content-wrapper { padding: var(--space-32); }
}

@media (min-width: 768px) {
  h1 { font-size: 42px; }
  header nav { display: flex; }
  .cta-header { display: flex; }
  .mobile-menu-toggle { display: none; }
  .content-wrapper { flex-direction: column; }
  .text-image-section { flex-direction: row; }
  .service-cards > div { flex: 1 1 calc(50% - 20px); }
  .stat-counters > div { flex: 1 1 calc(33% - 14px); }
  footer .container { flex-direction: row; flex-wrap: wrap; }
  .footer-nav, .contact-short, .social-links, .newsletter-signup { flex: 1 1 45%; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  .service-cards > div { flex: 1 1 calc(33.333% - 20px); }
  header nav a { padding: 10px 14px; }
  .container { gap: var(--space-32); }
  .content-grid { justify-content: space-between; }
}

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

/* Accessibility & micro-interactions */
.btn-primary, .btn-secondary, .mobile-menu-toggle, .mobile-menu-close, .cookie-btn { transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease; }
.btn-primary:hover, .btn-secondary:hover { transform: translateY(-1px); }

/* Lists inside content wrappers - improve legibility */
.content-wrapper > ul, .content-wrapper > ol { display: flex; flex-direction: column; gap: 8px; }
.content-wrapper li { color: var(--text-body); }

/* Header CTA grouping spacing */
.cta-header .btn-primary, .cta-header .btn-secondary { white-space: nowrap; }

/* Organic accents for headings */
h2::after { content: ""; display: inline-flex; width: 34px; height: 8px; margin-left: 10px; border-radius: 999px; background: var(--leaf); opacity: .25; vertical-align: middle; }

/* Ensure adequate gaps between sections & cards */
.content-wrapper > .service-cards,
.content-wrapper > .stat-counters,
.content-wrapper > .testimonial-card,
.content-wrapper > .rating-summary,
.content-wrapper > .text-section,
.content-wrapper > .map-embed { margin-top: var(--space-8); }

/* Prevent overlaps and overflow issues */
.container, .content-wrapper, .service-cards, .stat-counters, .vehicle-list-text-only ul, .footer-nav { gap: 20px; }
*, *::before, *::after { min-width: 0; }

/* Print-friendly tweaks (optional) */
@media print { header, footer, .mobile-menu, .cookie-banner, .cookie-modal-overlay { display: none !important; } section { padding: 0; } .content-wrapper { box-shadow: none; border: 1px solid #ccc; }
}

/* =============================
   Ensure ALL layout containers use flex
   ============================= */
main { display: flex; flex-direction: column; gap: var(--space-32); }
footer .footer-nav, footer .social-links { display: flex; }

/* End of style.css */
