/* =============================
   Pristine Streets - style.css
   Design: gradient_modern (flexbox-only)
   ============================= */

/* -----------------------------
   1) RESET & BASELINE
   ----------------------------- */
* { 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; padding-left: 20px; }
h1, h2, h3, h4, h5, h6, p { margin: 0 0 12px; }
button, input, select, textarea { font: inherit; }
:focus { outline: 2px solid #1FA2A6; outline-offset: 2px; }

/* -----------------------------
   2) THEME TOKENS
   ----------------------------- */
:root {
  --primary: #0A2A43; /* deep blue */
  --secondary: #1FA2A6; /* teal */
  --accent: #F5F7FA; /* light bg */
  --text: #0A2A43;
  --muted: #5A6B7B;
  --white: #FFFFFF;
  --border: #E3E8EE;
  --shadow: 0 8px 20px rgba(10,42,67,0.08);
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --transition: 0.28s ease;
  --grad-1: #0A2A43;
  --grad-2: #1FA2A6;
}

body {
  font-family: Verdana, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
}

h1, h2, h3 {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif;
  letter-spacing: 0.2px;
}

h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; margin-bottom: 16px; }
h3 { font-size: 18px; }

@media (min-width: 768px) {
  h1 { font-size: 44px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1100px) {
  h1 { font-size: 52px; }
}

/* -----------------------------
   3) LAYOUT UTILITIES (FLEX ONLY)
   ----------------------------- */
.container {
  /* wrapper + layout container */
  display: flex; /* FLEXBOX */
  flex-wrap: wrap; /* allow wrapping */
  align-items: center;
  gap: 16px; /* base gap */
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
}

.content-wrapper {
  /* inner flexible column */
  display: flex; /* FLEXBOX */
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 20px 0;
}

.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 minimum spacing between content blocks */
section + section { margin-top: 20px; }

/* -----------------------------
   4) HEADER & NAVIGATION
   ----------------------------- */
header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  box-shadow: 0 2px 12px rgba(10,42,67,0.06);
  border-bottom: 1px solid var(--border);
}

header .container {
  justify-content: space-between;
  padding-top: 12px;
  padding-bottom: 12px;
}

.logo { display: flex; align-items: center; }
.logo img { height: 36px; width: auto; }

header nav {
  display: none; /* hidden on mobile */
  gap: 14px;
}

header nav a {
  color: var(--text);
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition), transform var(--transition);
}

header nav a:hover { background: var(--accent); color: var(--secondary); transform: translateY(-1px); }

/* CTA buttons in header */
header .cta-btn { display: none; }

.mobile-menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  line-height: 1;
  width: 42px; height: 42px;
  margin: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  color: var(--text);
  box-shadow: var(--shadow);
  transition: background var(--transition), transform var(--transition);
}
.mobile-menu-toggle:hover { background: var(--accent); transform: translateY(-1px); }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  inset: 0 0 0 auto;
  width: 85%;
  max-width: 360px;
  display: flex; /* FLEXBOX */
  flex-direction: column;
  gap: 10px;
  background: var(--white);
  box-shadow: -12px 0 30px rgba(10,42,67,0.15);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 1100;
  padding: 16px;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--text);
}

.mobile-nav {
  display: flex; /* FLEXBOX */
  flex-direction: column;
  gap: 8px;
}
.mobile-nav a {
  padding: 12px 10px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--text);
  transition: background var(--transition), transform var(--transition);
}
.mobile-nav a:hover { background: #EAF0F5; transform: translateX(4px); }

/* Desktop nav */
@media (min-width: 992px) {
  .mobile-menu-toggle { display: none; }
  header nav { display: flex; align-items: center; }
  header .cta-btn { display: inline-flex; }
}

/* -----------------------------
   5) HERO (Gradient Modern)
   ----------------------------- */
.hero {
  background-color: var(--accent); /* fallback */
  background-image: linear-gradient(135deg, rgba(10,42,67,0.94) 0%, rgba(31,162,166,0.9) 100%);
  color: var(--white);
}
.hero .container { align-items: stretch; }
.hero .content-wrapper { padding: 36px 0; gap: 14px; }
.hero h1 { color: black;; }
.hero p { color: black; }

.breadcrumb { color: #1a1c1c; font-size: 14px; }
.breadcrumb a { color: #171919; text-decoration: underline; }

/* Quick links, trust badges inside hero */
.trust-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.trust-badges img { height: 26px; width: auto; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1)); }
.trust-badges span { font-size: 14px; background: rgba(255,255,255,0.12); padding: 6px 10px; border-radius: 999px; }

.quick-links { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-links a {
  padding: 8px 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: #171919;
  transition: background var(--transition), transform var(--transition);
}
.quick-links a:hover { background: rgba(255,255,255,0.22); transform: translateY(-1px); }

/* -----------------------------
   6) BUTTONS
   ----------------------------- */
.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

.cta-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--white);
  background-color: var(--secondary); /* fallback */
  background-image: linear-gradient(135deg, #1FA2A6 0%, #138C90 100%);
  box-shadow: 0 6px 16px rgba(31,162,166,0.28);
  transition: transform var(--transition), box-shadow var(--transition), background var(--transition), color var(--transition);
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(31,162,166,0.32); }

.cta-btn.primary {
  background-color: var(--primary); /* fallback */
  background-image: linear-gradient(135deg, #0A2A43 0%, #184A6A 100%);
  box-shadow: 0 6px 16px rgba(10,42,67,0.28);
}
.cta-btn.primary:hover { box-shadow: 0 10px 24px rgba(10,42,67,0.34); }

.cta-btn.secondary {
  color: var(--primary);
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.cta-btn.secondary:hover { color: var(--secondary); }

/* -----------------------------
   7) FEATURE BLOCKS & CARDS
   ----------------------------- */
.feature-grid, .service-cards, .service-tiers, .service-categories {
  display: flex; /* FLEXBOX */
  flex-wrap: wrap;
  gap: 20px;
}

.feature-grid > div,
.service-cards > div,
.service-tiers > div,
.service-categories > div,
.vehicle-card {
  flex: 1 1 260px; /* responsive columns with flex */
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition);
}

.feature-grid > div:hover,
.service-cards > div:hover,
.service-tiers > div:hover,
.service-categories > div:hover,
.vehicle-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 26px rgba(10,42,67,0.12);
}

.feature-grid img { height: 36px; width: 36px; }

.service-link { color: var(--secondary); font-weight: bold; }
.service-link:hover { text-decoration: underline; }

/* -----------------------------
   8) TIMELINES & LISTS
   ----------------------------- */
.process-timeline {
  display: flex; /* FLEXBOX for vertical rhythm on mobile */
  flex-direction: column;
  gap: 14px;
  list-style: none;
  padding-left: 0;
}
.process-timeline li {
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 14px 16px;
}

.policy-highlights ul { display: flex; flex-wrap: wrap; gap: 10px; padding-left: 20px; }

/* FAQ */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list dt {
  font-weight: bold;
  color: var(--primary);
}
.faq-list dd { margin: 0 0 8px 0; color: var(--muted); }

.faq-contact-cta p a { color: var(--secondary); text-decoration: underline; }

/* -----------------------------
   9) TESTIMONIALS (High contrast)
   ----------------------------- */
.testimonial-slider {
  display: flex; /* FLEXBOX */
  flex-wrap: nowrap;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.testimonial-card {
  flex: 0 0 300px;
  align-items: flex-start; /* override to top align text */
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text); /* dark text on light bg for readability */
  box-shadow: var(--shadow);
}
.testimonial-card p { margin-bottom: 8px; }
.testimonial-card span { color: var(--muted); font-size: 14px; }

.rating-summary { margin-top: 10px; color: var(--primary); font-weight: bold; }

/* -----------------------------
   10) TABLES (Prices)
   ----------------------------- */
.price-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.price-table thead th {
  text-align: left;
  color: var(--white);
  background-color: var(--primary); /* fallback */
  background-image: linear-gradient(135deg, #0A2A43, #184A6A);
  padding: 12px;
}
.price-table tbody td { border-bottom: 1px solid var(--border); padding: 12px; }
.price-table tbody tr:nth-child(odd) { background: var(--accent); }

/* Ensure tables scroll horizontally on small screens */
.content-wrapper { overflow-x: hidden; }
.content-wrapper:has(.price-table) { overflow-x: auto; }

/* -----------------------------
   11) FORMS & INPUTS (Newsletter)
   ----------------------------- */
.footer-newsletter { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.footer-newsletter input[type="email"] {
  flex: 1 1 220px;
  min-width: 200px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
}
.footer-newsletter button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--secondary);
  background: var(--secondary);
  color: var(--white);
  transition: transform var(--transition), box-shadow var(--transition);
}
.footer-newsletter button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* -----------------------------
   12) CONTACT INFO
   ----------------------------- */
.contact-info { display: flex; flex-wrap: wrap; gap: 16px; }
.contact-block { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--accent); border: 1px solid var(--border); border-radius: 10px; }
.contact-block img { height: 20px; width: 20px; }

.contact-row { display: flex; flex-wrap: wrap; gap: 14px; }
.contact-row > div { display: flex; align-items: center; gap: 8px; padding: 12px 14px; background: var(--accent); border: 1px solid var(--border); border-radius: 10px; }
.contact-row a { color: var(--secondary); }

.phone-cta { display: flex; }

/* -----------------------------
   13) SEARCH & FILTERS (Fahrzeuge)
   ----------------------------- */
.search-filter, .sort-controls, .vehicle-comparison-tool, .pagination {
  display: flex; flex-wrap: wrap; gap: 10px; align-items: center;
}
.search-filter span, .sort-controls span { color: var(--muted); }
.search-filter select, .sort-controls select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--white);
}

.vehicle-results {
  display: flex; flex-wrap: wrap; gap: 20px;
}
.vehicle-card h3 { color: var(--primary); }
.vehicle-card ul { margin: 8px 0 0 16px; }
.vehicle-card .cta-btn { margin-top: 10px; }

/* -----------------------------
   14) EQUIPMENT & BADGES
   ----------------------------- */
.equipment-list { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.equipment-list span { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; background: var(--accent); border: 1px solid var(--border); }
.equipment-list img { height: 24px; }

.warranty-note, .process-timeframes, .service-inclusions, .payment-options, .status-notifications, .consent-note, .retention-info, .third-party-list { color: var(--muted); font-size: 15px; }

.explainers { display: flex; flex-wrap: wrap; gap: 10px; padding: 12px; background: var(--accent); border: 1px solid var(--border); border-radius: 10px; }

/* -----------------------------
   15) FOOTER
   ----------------------------- */
footer {
  background: var(--accent);
  border-top: 1px solid var(--border);
  margin-top: 40px;
}
footer .container { padding-top: 22px; padding-bottom: 22px; }
.footer-main {
  display: flex; /* FLEXBOX */
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
}
.footer-quicklinks, .footer-legal, .footer-social {
  display: flex; flex-wrap: wrap; gap: 10px;
}
.footer-quicklinks a, .footer-legal a { color: var(--text); padding: 6px 8px; border-radius: 8px; }
.footer-quicklinks a:hover, .footer-legal a:hover { background: #EAF0F5; }
.footer-branding { color: var(--muted); }
.footer-contact-snippet { color: var(--muted); }
.footer-social a { display: inline-flex; padding: 6px; background: var(--white); border: 1px solid var(--border); border-radius: 8px; }
.footer-social img { height: 18px; width: 18px; }

/* -----------------------------
   16) BREADCRUMB + UTILS
   ----------------------------- */
.breadcrumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.update-timestamp { color: var(--muted); font-size: 14px; }

/* -----------------------------
   17) SUCCESS / THANK YOU
   ----------------------------- */
.success-icon { display: flex; align-items: center; justify-content: center; padding: 6px; }
.success-icon img { width: 56px; height: 56px; }

.feature-links { display: flex; flex-wrap: wrap; gap: 10px; }
.feature-links a { padding: 10px 14px; border-radius: 999px; background: var(--accent); border: 1px solid var(--border); color: var(--primary); }
.feature-links a:hover { background: #EAF0F5; }

/* -----------------------------
   18) GENERIC SECTION BACKGROUNDS (subtle alternation)
   ----------------------------- */
main section:nth-of-type(odd) .content-wrapper {
  background: var(--white);
  border-radius: var(--radius-lg);
}
main section:nth-of-type(even) .content-wrapper {
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

/* Ensure padding inside section wrappers */
main .content-wrapper { padding: 24px; }

/* -----------------------------
   19) MOBILE-FIRST RESPONSIVE FLEX RULES
   ----------------------------- */
/* Text-image sections vertical on mobile */
.text-image-section { flex-direction: column; }

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .hero .content-wrapper { padding: 56px 0; }
}

/* Distribute footer groups on larger screens */
@media (min-width: 992px) {
  .footer-main { justify-content: space-between; }
}

/* Header desktop layout */
@media (min-width: 992px) {
  header .container { gap: 20px; }
  header nav { order: 2; }
  .logo { order: 1; }
  header .cta-btn.primary { order: 3; }
  header .cta-btn.secondary { order: 4; }
}

/* -----------------------------
   20) COOKIE CONSENT (Banner + Modal)
   ----------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; /* FLEXBOX */
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 20px rgba(10,42,67,0.08);
  padding: 14px 16px;
  z-index: 1200;
  transform: translateY(100%);
  transition: transform var(--transition);
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-text { max-width: 900px; color: var(--text); }
.cookie-banner .cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn-accept { background: #1FA2A6; color: var(--white); border: 1px solid #1B8E91; border-radius: 10px; padding: 10px 14px; }
.cookie-banner .btn-reject { background: var(--white); color: var(--primary); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.cookie-banner .btn-settings { background: var(--accent); color: var(--primary); border: 1px solid var(--border); border-radius: 10px; padding: 10px 14px; }
.cookie-banner button { transition: transform var(--transition), box-shadow var(--transition); }
.cookie-banner button:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* Modal */
.cookie-backdrop {
  position: fixed; inset: 0;
  background: rgba(10,42,67,0.5);
  display: none;
  z-index: 1300;
}
.cookie-backdrop.show { display: block; }

.cookie-modal {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 100%; max-width: 520px;
  background: var(--white);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 30px rgba(10,42,67,0.2);
  transform: translateX(100%);
  transition: transform var(--transition);
  z-index: 1400;
  display: flex; flex-direction: column; gap: 16px; padding: 18px;
}
.cookie-modal.show { transform: translateX(0); }
.cookie-modal .modal-header { display: flex; justify-content: space-between; align-items: center; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; justify-content: space-between; align-items: center; background: var(--accent); border: 1px solid var(--border); border-radius: 12px; padding: 12px; }

/* Simple toggle style */
.toggle { display: inline-flex; align-items: center; gap: 8px; }
.toggle .switch {
  width: 44px; height: 24px;
  background: #CBD5E1;
  border-radius: 999px; position: relative;
  transition: background var(--transition);
}
.toggle .switch::after {
  content: ""; position: absolute; left: 3px; top: 3px;
  width: 18px; height: 18px; border-radius: 50%; background: var(--white);
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: transform var(--transition);
}
.toggle.active .switch { background: #1FA2A6; }
.toggle.active .switch::after { transform: translateX(20px); }

.cookie-modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; }
.cookie-modal .modal-actions .btn-save { background: var(--primary); color: var(--white); border: 1px solid #184A6A; padding: 10px 14px; border-radius: 10px; }
.cookie-modal .modal-actions .btn-cancel { background: var(--white); color: var(--primary); border: 1px solid var(--border); padding: 10px 14px; border-radius: 10px; }

/* -----------------------------
   21) ACCESSIBILITY & STATES
   ----------------------------- */
a:hover, button:hover { cursor: pointer; }
button:disabled, .cta-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* -----------------------------
   22) PAGE-SPECIFIC MINOR TWEAKS
   ----------------------------- */
/* Index: micro FAQ */
.micro-faq ul { display: flex; flex-direction: column; gap: 8px; }

/* Preise & Tables container spacing */
.payment-options strong { color: var(--primary); }

/* DSGVO & Policies */
.consent-management { color: var(--muted); }

/* Thank-you page CTA spacing */
.feature-links + .contact-row { margin-top: 10px; }

/* -----------------------------
   23) DESKTOP REFINEMENTS
   ----------------------------- */
@media (min-width: 992px) {
  .container { padding-left: 24px; padding-right: 24px; }
  .content-wrapper { padding: 30px; gap: 18px; }
  .feature-grid > div, .service-cards > div, .service-tiers > div, .service-categories > div, .vehicle-card { padding: 20px; }
}

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