/* =====================================================================
   Frosty Roads Autosalon & Werkstatt - style.css
   Nature_Organic theme: earth tones, organic shapes, natural textures, green accents
   Mobile-first, flexbox-only, brand-consistent
   ===================================================================== */

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

/* ---------------------------------------------------------------------
   THEME VARIABLES (with fallbacks below per component)
--------------------------------------------------------------------- */
:root {
  --color-primary: #0A3D62; /* brand deep blue */
  --color-secondary: #0F766E; /* brand teal (green accent) */
  --color-accent: #F2F5F7; /* brand light */
  --color-sage-50: #F6F8F5; /* organic light */
  --color-sage-100: #ECF2ED;
  --color-sage-200: #E3EDE7;
  --color-sand-100: #F5F1EA; /* sand paper */
  --color-bark-700: #3F3A34; /* dark bark text */
  --color-bark-800: #2F2A25; /* darker */
  --color-leaf-600: #2E7D32; /* natural green */
  --color-leaf-500: #3F9C45; /* lighter green */
  --color-white: #FFFFFF;
  --color-muted: #6B706A;

  --radius-s: 8px;
  --radius-m: 14px;
  --radius-l: 22px;
  --shadow-soft: 0 4px 14px rgba(20, 40, 30, 0.08);
  --shadow-hover: 0 8px 24px rgba(20, 40, 30, 0.14);

  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-32: 32px;
  --space-40: 40px;
  --space-48: 48px;
  --space-60: 60px;
}

/* ---------------------------------------------------------------------
   BASE TYPOGRAPHY
--------------------------------------------------------------------- */
body {
  font-family: Verdana, Geneva, sans-serif; /* brand body */
  color: var(--color-bark-800);
  background: var(--color-accent); /* soft light base */
  line-height: 1.6;
}

h1, h2, h3, h4 {
  font-family: "Trebuchet MS", Verdana, Geneva, sans-serif; /* brand display */
  color: var(--color-bark-800);
}

h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: var(--space-16); }
h3 { font-size: 18px; line-height: 1.3; }
h4 { font-size: 16px; line-height: 1.3; }
p, li { font-size: 16px; }
small { font-size: 14px; color: var(--color-muted); }
strong { color: var(--color-bark-800); font-weight: 700; }

/* ---------------------------------------------------------------------
   LAYOUT HELPERS (FLEXBOX ONLY)
--------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 var(--space-20);
  display: flex; /* flexbox only */
  flex-direction: column; /* mobile-first */
  gap: var(--space-20);
}

.content-wrapper {
  display: flex; /* flexbox */
  flex-direction: column;
  gap: var(--space-20);
}

/* Mandatory spacing patterns */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--color-white); border-radius: var(--radius-m); box-shadow: var(--shadow-soft); }
.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; }

/* Generic section padding for all sections */
main section { margin-bottom: var(--space-60); padding: var(--space-40) 0; }

/* Organic decorative blobs (decorative only) */
.hero, .features, .services, .about, .contact, .testimonials {
  position: relative;
}
.hero::before, .features::before, .services::before {
  content: "";
  position: absolute;
  inset: auto auto 0 -10%;
  width: 60%;
  height: 40%;
  background: var(--color-sand-100);
  border-radius: 40% 60% 60% 40% / 60% 40% 60% 40%;
  z-index: 0;
  opacity: 0.6;
  pointer-events: none;
}

/* Elevate content above decorative shapes */
.hero > .container, .features > .container, .services > .container, .about > .container, .contact > .container, .testimonials > .container { position: relative; z-index: 1; }

/* ---------------------------------------------------------------------
   HEADER & NAVIGATION
--------------------------------------------------------------------- */
header {
  position: relative;
  background: var(--color-sage-50);
  border-bottom: 1px solid var(--color-sage-200);
}
header .container {
  flex-direction: row;
  align-items: center; /* vertical centering */
  justify-content: space-between;
  gap: var(--space-16);
  padding-top: var(--space-16);
  padding-bottom: var(--space-16);
}
header img { height: 38px; }

header nav {
  display: none; /* hidden on mobile */
  gap: var(--space-16);
}
header nav a {
  padding: 10px 12px;
  border-radius: 999px; /* organic pill */
  color: var(--color-bark-800);
  transition: background-color .2s ease, color .2s ease, transform .2s ease;
}
header nav a:hover, header nav a:focus {
  background: var(--color-sage-100);
  color: var(--color-secondary);
}

.cta-group {
  display: flex; /* flexbox */
  flex-wrap: wrap;
  gap: var(--space-12);
  align-items: center;
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  position: absolute; /* control element */
  right: var(--space-20);
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--color-secondary);
  color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-soft);
}
.mobile-menu-toggle:focus { outline: 2px solid var(--color-leaf-600); outline-offset: 2px; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0;
  background: rgba(10, 20, 15, 0.7);
  display: flex; /* wrapper */
  justify-content: flex-end;
  transform: translateX(100%);
  transition: transform .35s ease;
  z-index: 9999;
}
.mobile-menu.active { transform: translateX(0); }
.mobile-menu .mobile-nav {
  width: 80%; max-width: 340px; height: 100%;
  background: var(--color-white);
  display: flex; flex-direction: column; gap: var(--space-8);
  padding: var(--space-24);
  box-shadow: var(--shadow-hover);
}
.mobile-menu-close {
  position: absolute; right: 18px; top: 12px;
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--color-sage-100); color: var(--color-bark-800);
}
.mobile-nav a {
  padding: 14px 12px; border-radius: var(--radius-s);
  color: var(--color-bark-800);
  border: 1px solid transparent;
}
.mobile-nav a:hover { background: var(--color-sage-100); border-color: var(--color-sage-200); }
.mobile-nav a:active { transform: translateY(1px); }

/* ---------------------------------------------------------------------
   HERO SECTION
--------------------------------------------------------------------- */
.hero {
  background: var(--color-sage-100);
}
.hero h1 { font-size: 28px; }
.hero p { color: var(--color-bark-700); }
.trust-badges, .awards-badges, .badges-row {
  display: flex; flex-wrap: wrap; gap: var(--space-12); align-items: center;
}
.trust-badges img, .awards-badges img, .badges-row img { height: 32px; filter: saturate(0.9); }

.usp-bullets { display: flex; flex-wrap: wrap; gap: var(--space-8); padding-left: 20px; }
.usp-bullets li { background: var(--color-white); border: 1px solid var(--color-sage-200); border-radius: var(--radius-s); padding: 8px 12px; }

/* ---------------------------------------------------------------------
   BUTTONS
--------------------------------------------------------------------- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 999px; /* organic pill */
  font-weight: 700;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .2s ease;
  border: 1px solid transparent;
}

.btn-primary {
  background: var(--color-secondary); /* green accent */
  color: var(--color-white);
}
.btn-primary:hover, .btn-primary:focus { background: var(--color-leaf-600); box-shadow: var(--shadow-hover); transform: translateY(-1px); }

.btn-secondary {
  background: var(--color-white);
  color: var(--color-secondary);
  border-color: var(--color-secondary);
}
.btn-secondary:hover, .btn-secondary:focus { background: var(--color-sage-100); box-shadow: var(--shadow-soft); transform: translateY(-1px); }

/* ---------------------------------------------------------------------
   FEATURE / SERVICE CARDS
--------------------------------------------------------------------- */
.feature-grid, .service-cards, .review-highlights, .testimonial-list, .tools-row, .contact-info, .footer-nav {
  display: flex; flex-wrap: wrap; gap: var(--space-20);
}

.feature-grid > div, .service-cards > div, .review-highlights > .testimonial-card {
  flex: 1 1 260px;
  background: var(--color-white);
  border: 1px solid var(--color-sage-200);
  border-radius: var(--radius-m);
  padding: var(--space-20);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.feature-grid > div:hover, .service-cards > div:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }

.feature-grid img, .service-cards img { height: 40px; }

.proof-points, .team-values, .key-metrics, .faq-list, .cookie-categories { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; }

.tools-row span, .filter-bar span, .filter-sort-bar span {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px;
  border-radius: 999px; border: 1px solid var(--color-sage-200); background: var(--color-white);
}
.tools-row img, .filter-bar img, .filter-sort-bar img { height: 18px; }

.safety-promises, .guarantee-statement, .sustainability-practices, .training-programs, .buyer-stories, .oem-parts, .before-after, .response-time-sla, .emergency-assistance-info, .roadside-assistance-partner, .parking-info, .public-transport-info, .gdpr-consent, .contact-form-summary, .contact-form-fields, .search-form, .inventory-list, .reservation-cta, .rating-summary, .partner-endorsements, .download-pdf-cta, .change-preferences-btn, .consent-log-info, .links-to-popular-pages {
  background: var(--color-white);
  border: 1px solid var(--color-sage-200);
  border-radius: var(--radius-m);
  padding: var(--space-16);
  box-shadow: var(--shadow-soft);
}
.rating-summary { font-weight: 700; color: var(--color-bark-800); }

.links-to-popular-pages { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.links-to-popular-pages a { color: var(--color-secondary); text-decoration: underline; text-underline-offset: 3px; }
.links-to-popular-pages a:hover { color: var(--color-leaf-600); }

/* ---------------------------------------------------------------------
   TESTIMONIALS (dark text on light background for readability)
--------------------------------------------------------------------- */
.testimonials { background: var(--color-sage-50); }
.testimonial-list { align-items: stretch; }
.testimonial-card {
  flex: 1 1 280px;
  background: var(--color-white); /* light background */
  color: var(--color-bark-800);   /* dark text */
  border: 1px solid var(--color-sage-200);
  border-radius: var(--radius-l);
  box-shadow: var(--shadow-soft);
}
.testimonial-card p { font-style: italic; }
.testimonial-card span { color: var(--color-muted); }
.testimonial-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }

/* ---------------------------------------------------------------------
   TABLES (overflow-safe, readable)
--------------------------------------------------------------------- */
.specs-table, .pricing-transparency-table { overflow-x: auto; }
.specs-table table, .pricing-transparency-table table, .features table {
  border-collapse: collapse; width: 100%; min-width: 520px; background: var(--color-white);
}
th, td { border: 1px solid var(--color-sage-200); padding: 10px 12px; text-align: left; }
th { background: var(--color-sand-100); color: var(--color-bark-800); }

/* ---------------------------------------------------------------------
   CONTACT INFO & MAP
--------------------------------------------------------------------- */
.contact-info > div {
  display: flex; align-items: center; gap: 10px;
  background: var(--color-white);
  border: 1px solid var(--color-sage-200);
  border-radius: var(--radius-s);
  padding: 10px 12px;
}
.contact-info img { height: 18px; }
.contact-info a { color: var(--color-secondary); font-weight: 700; }

.map-embed { display: flex; align-items: center; justify-content: center; min-height: 160px; background: var(--color-sage-100); border: 1px solid var(--color-sage-200); border-radius: var(--radius-m); }
.map-embed img { height: 80px; opacity: .8; }

/* ---------------------------------------------------------------------
   FOOTER
--------------------------------------------------------------------- */
footer {
  background: var(--color-primary); /* brand base with organic vibe */
  color: var(--color-accent);
  margin-top: var(--space-60);
}
footer .container { padding-top: var(--space-32); padding-bottom: var(--space-32); }
.footer-nav { justify-content: space-between; }
.footer-nav nav { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.footer-nav a { color: var(--color-accent); opacity: .9; padding: 6px 10px; border-radius: 999px; transition: background-color .2s ease, opacity .2s ease; }
.footer-nav a:hover { background: rgba(255,255,255,0.12); opacity: 1; }

.contact-summary { background: rgba(255,255,255,0.08); padding: var(--space-16); border-radius: var(--radius-m); }
.footer-copy { margin-top: var(--space-20); font-size: 14px; opacity: .9; }

/* ---------------------------------------------------------------------
   PAGE-SPECIFIC ADJUSTMENTS
--------------------------------------------------------------------- */
.origin-story, .leadership-intro, .timeline-milestones, .certifications-list, .memberships-partners {
  background: var(--color-white); border: 1px solid var(--color-sage-200); border-radius: var(--radius-m); padding: var(--space-16); box-shadow: var(--shadow-soft);
}

.service-list ul { display: flex; flex-direction: column; gap: 8px; }

.gdpr-consent { display: flex; align-items: center; gap: 10px; }
.gdpr-consent img { height: 18px; }

.inventory-list p { color: var(--color-muted); }

/* Newsletter */
.newsletter-signup { background: var(--color-sand-100); border: 1px solid rgba(0,0,0,0.05); padding: var(--space-16); border-radius: var(--radius-m); }

/* Awards / Trust badges single row alignment */
.trust-badges, .awards-badges, .badges-row { align-items: center; }

/* ---------------------------------------------------------------------
   MOBILE NAV VISIBILITY RULES
--------------------------------------------------------------------- */
@media (min-width: 768px) {
  header nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* ---------------------------------------------------------------------
   RESPONSIVE LAYOUT
--------------------------------------------------------------------- */
@media (min-width: 576px) {
  h1 { font-size: 36px; }
}

@media (min-width: 768px) {
  .hero h1 { font-size: 40px; }
  .text-image-section { flex-direction: row; }
}

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }
  .container { gap: var(--space-24); }
}

/* ---------------------------------------------------------------------
   LINKS & INTERACTIONS
--------------------------------------------------------------------- */
a { transition: color .2s ease, background-color .2s ease; }
a:hover { color: var(--color-leaf-600); }

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

/* Focus indicators */
.btn-primary:focus, .btn-secondary:focus, a:focus { outline: 2px solid var(--color-leaf-500); outline-offset: 2px; }

/* ---------------------------------------------------------------------
   COOKIE CONSENT BANNER & MODAL
--------------------------------------------------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: var(--color-white);
  color: var(--color-bark-800);
  border-top: 1px solid var(--color-sage-200);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.08);
  display: none; /* hidden by default */
  z-index: 9998;
}
.cookie-banner.show { display: flex; }
.cookie-banner .container { flex-direction: column; gap: var(--space-12); padding-top: var(--space-16); padding-bottom: var(--space-16); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.cookie-actions .btn { padding: 10px 14px; border-radius: 999px; border: 1px solid transparent; }
.cookie-accept { background: var(--color-secondary); color: var(--color-white); }
.cookie-accept:hover { background: var(--color-leaf-600); }
.cookie-reject { background: var(--color-white); color: var(--color-bark-800); border-color: var(--color-sage-200); }
.cookie-settings { background: var(--color-sage-100); color: var(--color-bark-800); }

/* Cookie modal */
.cookie-modal {
  position: fixed; inset: 0; background: rgba(0,0,0,0.5);
  display: none; align-items: center; justify-content: center;
  z-index: 10000;
}
.cookie-modal.show { display: flex; }
.cookie-modal .modal-content {
  width: 92%; max-width: 680px; background: var(--color-white);
  border-radius: var(--radius-l); padding: var(--space-24);
  box-shadow: var(--shadow-hover);
  display: flex; flex-direction: column; gap: var(--space-16);
  transform: translateY(10px); transition: transform .25s ease;
}
.cookie-modal.show .modal-content { transform: translateY(0); }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: var(--space-12); justify-content: flex-end; }

/* Cookie toggles (visual only) */
.cookie-toggle { display: flex; align-items: center; gap: 10px; }
.cookie-toggle .switch { display: inline-block;width: 44px; height: 26px; border-radius: 999px; background: var(--color-sage-200); position: relative; transition: background .2s ease; }
.cookie-toggle .switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--color-white); box-shadow: var(--shadow-soft); transition: left .2s ease; }
.cookie-toggle input:checked + .switch { background: var(--color-secondary); }
.cookie-toggle input:checked + .switch::after { left: 21px; }

/* ---------------------------------------------------------------------
   ACCESSIBILITY & UTILITIES
--------------------------------------------------------------------- */
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; }

/* ---------------------------------------------------------------------
   ORGANIC EDGES & CARD POLISH
--------------------------------------------------------------------- */
.card, .feature-grid > div, .service-cards > div, .testimonial-card { border-radius: 18px 20px 16px 22px / 22px 16px 20px 18px; }

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

/* ---------------------------------------------------------------------
   ENSURE NO OVERLAP: consistent gaps
--------------------------------------------------------------------- */
header, main, footer { display: flex; flex-direction: column; }
main { gap: var(--space-60); }

/* ---------------------------------------------------------------------
   TABLE BUTTONS (e.g., Vergleich +)
--------------------------------------------------------------------- */
.specs-table button {
  background: var(--color-secondary); color: var(--color-white);
  padding: 6px 10px; border-radius: 8px; border: 1px solid transparent; transition: background .2s ease;
}
.specs-table button:hover { background: var(--color-leaf-600); }

/* ---------------------------------------------------------------------
   RATING ICONS / BADGES SIZING
--------------------------------------------------------------------- */
.rating-summary strong { color: var(--color-secondary); }

/* ---------------------------------------------------------------------
   MOBILE REFINEMENTS
--------------------------------------------------------------------- */
@media (max-width: 767px) {
  .text-image-section { flex-direction: column; align-items: center; }
  .testimonial-card { align-items: flex-start; }
  .footer-nav { flex-direction: column; }
}
