/* ===============================================
   Blazing Arc Fahrzeugsuche München – style.css
   Geometric & Structured • Mobile-first • Flexbox-only
   =============================================== */
/* -----------------------
   CSS Reset & Base
------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg, video { max-width: 100%; height: auto; display: block; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6, p { margin: 0; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
:root { --primary:#0B3A5B; --secondary:#1E8C7A; --accent:#F2F6F9; --ink:#0E1A22; --muted:#5C6B76; --line:#D7E0E7; --bg:#FFFFFF; --warning:#C0392B; --success:#1E8C7A; }
body { font-family: Verdana, Geneva, Tahoma, sans-serif; color: var(--ink); background: var(--bg); line-height: 1.6; }

/* Typography – geometric/structured hierarchy */
h1, h2, h3 { font-family: "Trebuchet MS", Verdana, sans-serif; font-weight: 700; letter-spacing: 0.5px; }
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: 16px; }
h3 { font-size: 18px; line-height: 1.35; margin-bottom: 12px; }
p, li { font-size: 16px; color: var(--ink); }
.small { font-size: 14px; color: var(--muted); }
strong { color: var(--ink); }

/* Selection */
::selection { background: var(--secondary); color: #fff; }

/* Links & Focus */
a, button { transition: color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease; }
:focus-visible { outline: 2px solid var(--secondary); outline-offset: 2px; }

/* Containers & Layout (Flex-only) */
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 20px; }
section { margin-bottom: 60px; padding: 40px 0; background: transparent; position: relative; }

/* Mandatory spacing classes */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 20px; box-shadow: 0 2px 8px rgba(11,58,91,0.06); display: flex; flex-direction: column; gap: 12px; }
.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(--line); border-radius: 6px; box-shadow: 0 2px 6px rgba(11,58,91,0.05); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* Header & Navigation */
header { position: relative; background: #fff; border-bottom: 1px solid var(--line); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
header a img { height: 36px; width: auto; }
.desktop-nav { display: none; gap: 16px; align-items: center; }
.desktop-nav a { padding: 10px 12px; border-radius: 4px; color: var(--ink); font-weight: 600; }
.desktop-nav a:hover { background: var(--accent); color: var(--primary); }

/* CTAs */
.cta-primary, .cta-secondary { display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; padding: 12px 18px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; border: 2px solid transparent; }
.cta-primary { background: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(11,58,91,0.18); }
.cta-primary:hover { background: #0e4a74; transform: translateY(-1px); box-shadow: 0 6px 16px rgba(11,58,91,0.22); }
.cta-secondary { background: transparent; color: var(--primary); border-color: var(--primary); }
.cta-secondary:hover { background: var(--accent); transform: translateY(-1px); }

/* Mobile menu */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 2px solid var(--primary); background: transparent; color: var(--primary); border-radius: 4px; cursor: pointer; }
.mobile-menu-toggle:hover { background: var(--accent); }
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 82%; max-width: 360px; background: #fff; border-left: 2px solid var(--primary); box-shadow: -6px 0 18px rgba(0,0,0,0.15); z-index: 9999; transform: translateX(100%); transition: transform 0.35s ease; display: flex; flex-direction: column; padding: 20px; gap: 20px; }
.mobile-menu.open { transform: translateX(0%); }
body.menu-open { overflow: hidden; }
.mobile-menu-close { align-self: flex-end; width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: none; background: var(--accent); color: var(--ink); border-radius: 4px; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 12px; }
.mobile-nav a { padding: 12px 10px; border-left: 4px solid transparent; font-weight: 700; color: var(--ink); border-radius: 4px; }
.mobile-nav a:hover { background: var(--accent); border-left-color: var(--secondary); color: var(--primary); }

/* Hero Section */
.hero { background: linear-gradient(0deg, #fff 0%, #fff 100%); padding-top: 40px; padding-bottom: 40px; }
.hero .container { position: relative; }
.hero .content-wrapper { gap: 16px; }
.hero h1 { color: var(--primary); }
.hero p { color: var(--muted); max-width: 720px; }
/* Geometric decorative band */
.hero::before { content: ""; position: absolute; inset: 0 auto auto 0; width: 56%; height: 10px; background: var(--secondary); transform: skewX(-18deg) translateY(-6px); opacity: 0.12; pointer-events: none; }

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.trust-badges img { width: 40px; height: 40px; padding: 8px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* Feature grid (index) */
.feature-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.feature-grid li { flex: 1 1 260px; display: flex; gap: 12px; align-items: flex-start; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 2px 8px rgba(11,58,91,0.06); }
.feature-grid img { width: 28px; height: 28px; flex: 0 0 auto; }

/* Proof points */
.proof-points ul { display: flex; flex-wrap: wrap; gap: 12px; }
.proof-points li { padding: 10px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--accent); color: var(--primary); font-weight: 700; letter-spacing: 0.3px; }

/* Generic list groups */
.service-list, .step-overview, .faq-list, .benefit-list, .quality-principles, .comparison-points, .add-ons-list, .guarantee-points, .included-items, .checkpoint-list, .team-bios, .certifications, .contact-methods, .contact-details, .messaging-apps { display: flex; flex-direction: column; gap: 10px; }
.service-list li, .step-overview li, .faq-list li, .benefit-list li, .quality-principles li, .comparison-points li, .add-ons-list li, .guarantee-points li, .included-items li, .checkpoint-list li, .team-bios li, .certifications li { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px 14px; }

/* Ordered steps */
.step-overview, .step-list { counter-reset: step; display: flex; flex-direction: column; gap: 12px; }
.step-overview li, .step-list li { position: relative; padding-left: 52px; min-height: 40px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: 6px; background: var(--accent); }
.step-overview li::before, .step-list li::before { counter-increment: step; content: counter(step); position: relative; margin-left: 14px; margin-right: 14px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: #fff; border-radius: 4px; font-weight: 700; }

/* Testimonials */
.testimonial-card p { color: var(--ink); font-size: 16px; }
.testimonial-card span { color: var(--muted); font-weight: 700; font-size: 14px; }
.ratings-summary { display: flex; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px; color: var(--primary); font-weight: 700; }

/* Price Cards */
.price-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.price-cards > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; background: #fff; border: 2px solid var(--line); border-radius: 6px; padding: 20px; box-shadow: 0 4px 12px rgba(11,58,91,0.06); }
.price-cards .price { font-size: 24px; color: var(--secondary); font-weight: 800; }
.price-cards h3 { color: var(--primary); text-transform: uppercase; letter-spacing: 0.6px; }
.price-cards .included-items li { background: var(--accent); border-color: var(--line); }
.price-cards > div:hover { border-color: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 18px rgba(11,58,91,0.12); }

/* Feature matrix table (comparison) */
.feature-matrix table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); }
.feature-matrix th, .feature-matrix td { padding: 12px; text-align: left; border-bottom: 1px solid var(--line); }
.feature-matrix th { background: var(--accent); color: var(--primary); font-weight: 800; }
.feature-matrix tr:nth-child(even) td { background: #FAFCFD; }

/* Case snippets (testimonials page) */
.case-snippet { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: 6px; background: #fff; box-shadow: 0 2px 8px rgba(11,58,91,0.05); }

/* Address & Map placeholders */
.address-block, .map-placeholder, .contact-person-details { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--accent); color: var(--ink); }
.map-placeholder { min-height: 180px; justify-content: center; font-weight: 700; color: var(--muted); }

/* Contact methods */
.contact-methods li, .contact-details li { display: flex; align-items: center; gap: 10px; }
.contact-methods img, .contact-details img { width: 22px; height: 22px; }
.contact-methods a, .contact-details a { color: var(--primary); font-weight: 700; }
.contact-methods a:hover, .contact-details a:hover { text-decoration: underline; }

/* Footer */
footer { border-top: 2px solid var(--line); background: #fff; }
footer .content-wrapper { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; padding-top: 24px; padding-bottom: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { padding: 8px 10px; border-radius: 4px; color: var(--muted); font-weight: 700; }
.footer-nav a:hover { background: var(--accent); color: var(--primary); }
.footer-contact ul { display: flex; flex-direction: column; gap: 8px; }
.brand-badge img { height: 36px; width: auto; }
.footer-social { display: flex; gap: 12px; }
.footer-social a { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: 6px; }
.footer-social a:hover { border-color: var(--primary); background: var(--accent); }

/* Privacy consent note */
.privacy-consent-note { display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px dashed var(--line); border-radius: 6px; background: #fff; }

/* Mobile-first responsive enhancements */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .hero { padding-top: 60px; padding-bottom: 60px; }
  .text-image-section { flex-direction: row; }
}
@media (min-width: 992px) {
  .desktop-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  header .container { gap: 24px; }
  .content-wrapper { gap: 24px; }
}

/* Shape details for geometric feel */
.card::after { content: ""; position: absolute; top: 10px; right: 10px; width: 18px; height: 18px; border: 2px solid var(--line); transform: rotate(45deg); opacity: 0.4; pointer-events: none; }

/* Tables general */
table { width: 100%; }
th, td { vertical-align: middle; }

/* Buttons utility */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Desktop subtle grid-like alignment using flex */
.content-grid > * { flex: 1 1 280px; }

/* Header hover accent underlines (angular) */
.desktop-nav a { position: relative; }
.desktop-nav a::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: 6px; height: 2px; background: transparent; transform: skewX(-18deg); transition: background-color 0.2s ease; }
.desktop-nav a:hover::after { background: var(--secondary); }

/* Forms (generic) */
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
input:focus, textarea:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(30,140,122,0.15); }

/* ------------------------------------
   COOKIE CONSENT BANNER & MODAL
------------------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; background: #ffffff; border-top: 3px solid var(--primary); box-shadow: 0 -8px 24px rgba(0,0,0,0.12); padding: 16px 20px; z-index: 9998; transform: translateY(110%); transition: transform 0.35s ease; }
.cookie-banner.show { transform: translateY(0%); }
.cookie-banner .cookie-row { display: flex; flex-direction: column; gap: 12px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 10px 14px; border-radius: 4px; border: 2px solid transparent; font-weight: 700; cursor: pointer; }
.cookie-accept { background: var(--secondary); color: #fff; }
.cookie-accept:hover { background: #187463; }
.cookie-reject { background: #fff; color: var(--primary); border-color: var(--primary); }
.cookie-reject:hover { background: var(--accent); }
.cookie-settings { background: #fff; color: var(--ink); border-color: var(--line); }
.cookie-settings:hover { border-color: var(--primary); }

/* Cookie modal */
.cookie-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(14,26,34,0.5); z-index: 10000; }
.cookie-modal.open { display: flex; }
.cookie-modal .modal-panel { width: 92%; max-width: 720px; background: #fff; border: 2px solid var(--primary); border-radius: 8px; padding: 20px; display: flex; flex-direction: column; gap: 16px; transform: translateY(12px); transition: transform 0.25s ease; }
.cookie-modal.open .modal-panel { transform: translateY(0); }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: var(--accent); }
.cookie-category .toggle { width: 48px; height: 28px; background: #CBD9E3; border-radius: 28px; position: relative; cursor: pointer; border: 2px solid var(--line); }
.cookie-category .toggle::after { content: ""; position: absolute; top: 50%; left: 4px; width: 18px; height: 18px; background: #fff; border: 1px solid var(--line); border-radius: 50%; transform: translateY(-50%); transition: left 0.2s ease; }
.cookie-category .toggle.active { background: var(--secondary); border-color: var(--secondary); }
.cookie-category .toggle.active::after { left: 24px; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ------------------------------------
   MOBILE MENU OVERLAY BACKDROP (optional)
------------------------------------- */
.mobile-backdrop { position: fixed; inset: 0; background: rgba(14,26,34,0.4); z-index: 9990; opacity: 0; pointer-events: none; transition: opacity 0.3s ease; }
.mobile-backdrop.show { opacity: 1; pointer-events: auto; }

/* Utility spacing */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }

/* Ensure testimonial/readability contrast */
.testimonial-card, .ratings-summary { color: var(--ink); background: #FAFDFF; }

/* Geometric separators for sections */
section .container::before { content: ""; align-self: stretch; height: 4px; background: linear-gradient(90deg, var(--primary) 0 20%, transparent 20% 22%, var(--secondary) 22% 42%, transparent 42% 44%, var(--primary) 44% 60%, transparent 60% 62%, var(--secondary) 62% 80%, transparent 80% 82%, var(--primary) 82% 100%); opacity: 0.06; border-radius: 2px; }

/* Desktop refinements */
@media (min-width: 992px) {
  .feature-grid li { flex: 1 1 calc(33% - 20px); }
  .price-cards > div { flex: 1 1 calc(33% - 20px); }
  footer .content-wrapper { align-items: flex-start; }
}

/* Prevent overlaps & provide consistent gaps */
section .content-wrapper > * + * { margin-top: 0; }

/* Accessibility contrast tweaks */
.cta-secondary { color: var(--primary); border-color: var(--primary); background: #fff; }

/* Desktop refined hero band */
@media (min-width: 1200px) { .hero::before { width: 48%; } }

/* -----------------------
   Ensure Flex usage across common containers
------------------------ */
.desktop-nav, .footer-nav, .footer-social, .proof-points ul, .price-teasers, .price-cards, .feature-grid, .content-grid, .card-container, .text-image-section, .contact-methods, .contact-details, .faq-list, .service-list, .step-overview, .step-list, .team-bios, .certifications, .quality-principles, .comparison-points, .add-ons-list, .guarantee-points, .checkpoint-list { display: flex; }

/* Price teasers (index) */
.price-teasers { flex-wrap: wrap; gap: 12px; }
.price-teasers li { padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }

/* Messaging apps list */
.messaging-apps { display: flex; flex-direction: column; gap: 8px; }
.messaging-apps li { display: flex; align-items: center; gap: 10px; }
.messaging-apps img { width: 22px; height: 22px; }

/* Header elevations */
header { box-shadow: 0 2px 12px rgba(11,58,91,0.06); }

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