/* =========================================
   FunkenWerk Auto & Diagnose - Elegant Classic Theme
   Mobile-first, Flexbox-only, Brand-aligned CSS
   ========================================= */
/* -------- Reset & Normalize -------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
/* -------- CSS Variables (with fallbacks used where important) -------- */
:root {
  --primary: #0A2E5D; /* Deep navy */
  --secondary: #A84300; /* Burnt amber */
  --accent: #F5F7FA; /* Light neutral */
  --bg: #F8F8F6; /* soft light background for classic feel */
  --ink: #1C2430; /* primary text */
  --muted: #6B7280; /* secondary text */
  --border: #E5E7EB; /* soft border */
  --card: #FFFFFF; /* card background */
  --shadow: 0 2px 10px rgba(10,46,93,0.06);
  --shadow-hover: 0 6px 18px rgba(10,46,93,0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --space-8: 8px;
  --space-12: 12px;
  --space-16: 16px;
  --space-20: 20px;
  --space-24: 24px;
  --space-30: 30px;
  --space-40: 40px;
  --space-60: 60px;
}
/* -------- Base Typography -------- */
body {
  background: #F8F8F6; /* fallback */
  background: var(--bg);
  color: #1C2430; /* fallback */
  color: var(--ink);
  font-family: Verdana, "Trebuchet MS", Arial, sans-serif; /* brand fonts */
  line-height: 1.6;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4, h5, h6 {
  font-family: "Trebuchet MS", Verdana, Arial, sans-serif; /* brand display */
  color: var(--ink);
  letter-spacing: 0.2px;
}
h1 { font-size: 32px; line-height: 1.25; margin-bottom: var(--space-16); }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: var(--space-16); }
h3 { font-size: 18px; line-height: 1.35; margin-bottom: var(--space-12); }
p, li { color: var(--ink); }
small, .muted { color: var(--muted); font-size: 14px; }
strong, b { font-weight: 700; }
/* Links */
a { color: var(--primary); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--secondary); }
/* Focus visible */
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; border-radius: 4px; }
/* -------- Layout Containers (Flexbox only) -------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex; /* flexbox everywhere */
  flex-direction: column; /* mobile-first */
  gap: var(--space-20);
}
section {
  margin-bottom: var(--space-60);
  padding: var(--space-40) var(--space-20);
  display: flex;
  flex-direction: column;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-20);
}
.hero {
  background: var(--accent);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-40) var(--space-20);
  box-shadow: var(--shadow);
}
/* Mandatory spacing and alignment utility classes */
.section { margin-bottom: 60px; padding: 40px 20px; display: flex; flex-direction: column; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-20); box-shadow: var(--shadow); }
.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; background: var(--accent); border: 1px solid var(--border); border-left: 4px solid var(--secondary); border-radius: var(--radius-md); color: var(--ink); box-shadow: var(--shadow); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
/* -------- Header & Navigation -------- */
header { background: #ffffff; border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
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); }
.site-logo img { height: 40px; width: auto; }
.main-nav { display: none; align-items: center; gap: var(--space-16); }
.main-nav a { color: var(--ink); text-decoration: none; padding: 8px 6px; border-radius: 6px; }
.main-nav a:hover { background: var(--accent); color: var(--primary); }
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 1px solid var(--border); border-radius: 8px; background: #fff; color: var(--primary); box-shadow: var(--shadow); cursor: pointer; }
.mobile-menu-toggle:hover { box-shadow: var(--shadow-hover); }
/* Mobile menu overlay */
.mobile-menu {
  position: fixed;
  top: 0; right: 0; bottom: 0; left: 0;
  background: #ffffff;
  transform: translateX(100%);
  transition: transform 320ms ease;
  display: flex;
  flex-direction: column;
  padding: var(--space-20);
  gap: var(--space-20);
  z-index: 9999;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; background: #fff; border: 1px solid var(--border); border-radius: 8px; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); cursor: pointer; box-shadow: var(--shadow); }
.mobile-nav { display: flex; flex-direction: column; gap: var(--space-16); }
.mobile-nav a { color: var(--ink); font-size: 18px; padding: 12px 8px; border-radius: 8px; text-decoration: none; }
.mobile-nav a:hover { background: var(--accent); color: var(--primary); }
/* Header CTA Button (shown desktop) */
header .btn-primary { display: none; }
/* -------- Buttons -------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  background: var(--primary);
  color: #fff;
  border: 1px solid var(--primary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  box-shadow: var(--shadow);
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn-primary:hover { background: #08264A; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  background: transparent;
  color: var(--secondary);
  border: 1px solid var(--secondary);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: background 160ms ease, color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}
.btn-secondary:hover { background: var(--secondary); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.cta-row { display: flex; flex-direction: column; gap: var(--space-12); flex-wrap: wrap; }
/* -------- Hero / Trust / Contact Short -------- */
.trust-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); }
.trust-badges img { width: 36px; height: 36px; filter: grayscale(10%); opacity: 0.9; }
.contact-short { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-8); color: var(--muted); }
.contact-short img { width: 18px; height: 18px; }
/* -------- Feature blocks & cards -------- */
.feature-grid, .service-cards, .package-cards, .pricing-cards, .pricing-info, .service-bundle-cards, .faq-list, .result-list { display: flex; flex-wrap: wrap; gap: 24px; }
.feature-grid > div, .service-cards > div, .package-cards > div, .pricing-cards > div, .pricing-info > div, .service-bundle-cards > div, .faq-list > div, .result-list > .offer-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-20);
  box-shadow: var(--shadow);
  flex: 1 1 260px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.feature-grid > div:hover, .service-cards > div:hover, .package-cards > div:hover, .pricing-cards > div:hover, .result-list > .offer-card:hover, .service-bundle-cards > div:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.feature-grid img { width: 40px; height: 40px; }
/* -------- Lists & Timelines -------- */
.usp-list, .brand-values, .equipment-list, .inclusions-checklist, .service-shortcuts, .feature-descriptions { display: flex; flex-direction: column; gap: var(--space-8); padding-left: 0; }
.usp-list li, .brand-values li, .equipment-list li, .inclusions-checklist li, .service-shortcuts li, .feature-descriptions li { position: relative; padding-left: 18px; }
.usp-list li::before, .brand-values li::before, .equipment-list li::before, .inclusions-checklist li::before, .service-shortcuts li::before, .feature-descriptions li::before { content: "•"; color: var(--secondary); position: absolute; left: 0; top: 0; }
.process-timeline ol { display: flex; flex-direction: column; gap: var(--space-8); padding-left: 0; counter-reset: step; }
.process-timeline li { position: relative; padding-left: 28px; }
.process-timeline li::before { counter-increment: step; content: counter(step) "."; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: bold; }
/* -------- Tables -------- */
.features-comparison, .pricing-table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; }
.features-comparison tr, .pricing-table tr { display: flex; width: 100%; }
.features-comparison th, .features-comparison td, .pricing-table th, .pricing-table td { flex: 1 1 0; padding: 12px; border-bottom: 1px solid var(--border); text-align: left; }
.features-comparison tr:last-child td, .pricing-table tr:last-child td { border-bottom: 0; }
.features-comparison th, .pricing-table th { background: var(--accent); color: var(--primary); font-weight: 700; }
/* -------- Testimonials -------- */
.testimonial-list { display: flex; flex-wrap: wrap; gap: 24px; }
.testimonial-card p { color: var(--ink); font-style: italic; }
.testimonial-card span { color: var(--muted); font-size: 14px; }
.rating-summary, .star-rating-summary { display: flex; align-items: center; gap: var(--space-8); color: var(--ink); font-weight: 700; }
.rating-summary img, .star-rating-summary img { width: 20px; height: 20px; }
/* -------- CTA Banner -------- */
.cta-banner { background: var(--primary); color: #fff; padding: 0; }
.cta-banner .content-wrapper { background: transparent; color: #fff; }
.cta-banner h2, .cta-banner p, .cta-banner a { color: #fff; }
.cta-banner .btn-secondary { border-color: #fff; color: #fff; }
.cta-banner .btn-secondary:hover { background: #fff; color: var(--primary); }
/* -------- Filters & Search (fahrzeugangebot) -------- */
.filter-bar { display: flex; align-items: center; gap: var(--space-12); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-12); box-shadow: var(--shadow); }
.filter-bar input[type="text"] { flex: 1; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; }
.filter-bar span img { width: 20px; height: 20px; }
.sort-bar { display: flex; align-items: center; gap: var(--space-12); color: var(--muted); }
.sort-bar select { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 10px 12px; background: #fff; }
.tag-filters { display: flex; flex-wrap: wrap; gap: var(--space-8); }
.tag-filters span { padding: 6px 10px; border: 1px solid var(--border); border-radius: 999px; background: var(--accent); color: var(--ink); }
.result-meta { color: var(--ink); }
.result-list .offer-card h3 { margin-bottom: 6px; color: var(--primary); }
.result-list .offer-card a { margin-top: 10px; display: inline-flex; color: var(--secondary); text-decoration: underline; }
.pagination { display: flex; gap: var(--space-8); align-items: center; }
.pagination a, .pagination span { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.pagination span { background: var(--primary); color: #fff; border-color: var(--primary); }
.empty-state { background: var(--accent); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-20); color: var(--ink); }
/* -------- Icon rows (paired img + label) -------- */
.feature-icons { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); }
.feature-icons img { width: 28px; height: 28px; margin-right: 8px; }
.feature-icons span { margin-right: 18px; color: var(--ink); }
/* -------- Contact page cards -------- */
.contact-details { display: flex; flex-direction: column; gap: var(--space-8); }
.contact-details p { display: flex; align-items: center; gap: 8px; color: var(--ink); }
.contact-details img { width: 18px; height: 18px; }
/* -------- Footer -------- */
footer { background: #FFFFFF; border-top: 1px solid var(--border); }
footer .content-wrapper { display: flex; flex-direction: column; gap: var(--space-20); padding-top: var(--space-20); padding-bottom: var(--space-20); }
.footer-links { display: flex; flex-direction: column; gap: var(--space-20); }
.footer-links nav { display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--primary); text-decoration: underline; }
.social-links { display: flex; align-items: center; gap: var(--space-12); }
.social-links img { width: 22px; height: 22px; filter: grayscale(20%); opacity: 0.85; }
.footer-contact p { display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.newsletter-signup { display: flex; align-items: center; gap: var(--space-12); background: var(--accent); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-16); }
.newsletter-signup img { width: 20px; height: 20px; }
/* -------- Tables & Typography fine-tuning on content pages -------- */
.timeline-milestones, .workshop-philosophy { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-16); box-shadow: var(--shadow); }
.before-after-snippet { display: flex; flex-direction: column; gap: var(--space-12); background: var(--accent); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-16); }
.faq-snippet { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: var(--space-16); box-shadow: var(--shadow); }
/* -------- Forms & Inputs (generic) -------- */
input[type="text"], input[type="email"], input[type="tel"], select, textarea {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--secondary); outline-offset: 1px; }
/* -------- Micro-interactions -------- */
@keyframes fadeInUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.hero { animation: fadeInUp 380ms ease both; }
/* -------- Cookie Consent Banner & Modal -------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  background: #ffffff;
  border-top: 1px solid var(--border);
  box-shadow: 0 -6px 20px rgba(0,0,0,0.06);
  padding: var(--space-16);
  display: flex; flex-direction: column; gap: var(--space-12);
  transform: translateY(110%);
  transition: transform 280ms ease;
  z-index: 9998;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-actions { display: flex; flex-direction: column; gap: var(--space-8); }
.cookie-banner .btn-accept { composes: btn-primary; }
.cookie-banner .btn-reject, .cookie-banner .btn-settings { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid var(--border); background: #fff; color: var(--ink); }
.cookie-banner .btn-reject:hover, .cookie-banner .btn-settings:hover { background: var(--accent); }
/* Cookie preferences modal */
.cookie-modal {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  display: none; /* hidden by default */
  align-items: center; justify-content: center;
  padding: var(--space-20);
  z-index: 9999;
}
.cookie-modal.show { display: flex; }
.cookie-modal .cookie-modal-content {
  background: #fff; color: var(--ink);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-hover);
  padding: var(--space-20);
  display: flex; flex-direction: column; gap: var(--space-16);
  width: 100%; max-width: 560px;
}
.cookie-categories { display: flex; flex-direction: column; gap: var(--space-12); }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: var(--space-12); padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius-sm); }
.cookie-category .note { color: var(--muted); font-size: 14px; }
.switch { position: relative; width: 44px; height: 26px; border-radius: 999px; background: var(--border); display: inline-flex; align-items: center; padding: 2px; }
.switch .knob { width: 22px; height: 22px; background: #fff; border-radius: 50%; box-shadow: var(--shadow); transform: translateX(0); transition: transform 180ms ease, background 180ms ease; }
.switch.on { background: var(--primary); }
.switch.on .knob { transform: translateX(18px); }
.cookie-modal .actions { display: flex; flex-wrap: wrap; gap: var(--space-12); justify-content: flex-end; }
/* -------- Elegant Classic Details -------- */
/* Subtle dividers for classic rhythm */
.content-wrapper > h2 { padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.card h3 { color: var(--primary); }
/* -------- Accessibility & Contrast for testimonials/reviews -------- */
.testimonial-card, .star-rating-summary, .rating-summary { color: var(--ink); }
/* -------- Responsive Rules -------- */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
  .cta-row { flex-direction: row; }
  .cookie-banner .cookie-actions { flex-direction: row; }
}
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  header .btn-primary { display: inline-flex; }
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  .container { gap: var(--space-24); }
  section { padding-left: 0; padding-right: 0; }
  /* Multi-column via flex-basis (still flexbox) */
  .feature-grid > div, .service-cards > div, .package-cards > div, .pricing-cards > div, .service-bundle-cards > div { flex: 1 1 calc(50% - 12px); }
  .faq-list > div, .result-list > .offer-card { flex: 1 1 calc(50% - 12px); }
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; justify-content: space-between; }
  .footer-links { flex: 1 1 360px; }
  .social-links, .footer-contact, .newsletter-signup { flex: 1 1 220px; }
}
@media (min-width: 1024px) {
  .feature-grid > div, .service-cards > div, .package-cards > div, .pricing-cards > div, .service-bundle-cards > div { flex: 1 1 calc(33.333% - 16px); }
  .faq-list > div { flex: 1 1 calc(33.333% - 16px); }
  .result-list > .offer-card { flex: 1 1 calc(33.333% - 16px); }
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
}
/* -------- Specific small components per pages -------- */
.certifications { display: flex; flex-wrap: wrap; gap: var(--space-12); }
.certifications img { width: 40px; height: 40px; filter: grayscale(10%); }
.star-rating-summary, .rating-summary { background: var(--accent); padding: 10px 12px; border-radius: var(--radius-sm); border: 1px solid var(--border); width: fit-content; }
.result-list { align-items: stretch; }
/* -------- Elegant inputs in hero cta if any -------- */
.hero .cta-row a { text-decoration: none; }
/* -------- Ensure adequate spacing between all elements -------- */
.content-wrapper > * + * { margin-top: 0; }
/* -------- Print basic hygiene -------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cta-banner, header .btn-primary { display: none !important; }
  a { text-decoration: underline; }
}
/* END */