/* =========================
   Autokauf Kompass – Professional Corporate CSS
   Mobile-first, flexbox-only layout, blue/gray palette, business fonts
   ========================= */

/* ===== CSS RESET & NORMALIZE ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
ul, ol { padding-left: 1.1rem; }
button { background: none; border: none; cursor: pointer; font: inherit; }
input, select, textarea { font: inherit; border: 1px solid #CFD6DF; padding: 10px 12px; border-radius: 8px; width: 100%; }
input:disabled, textarea:disabled { background: #F5F7FA; color: #76839A; cursor: not-allowed; }
:focus { outline: 2px solid #2DA44E; outline-offset: 2px; }

/* ===== BRAND TOKENS ===== */
:root {
  --primary: #0D3B66;
  --secondary: #2DA44E;
  --accent: #F5F7FA;
  --text: #1A2433;
  --muted: #5A6B82;
  --line: #E4E9F0;
  --surface: #FFFFFF;
  --surface-alt: #F9FBFD;
  --shadow: 0 1px 2px rgba(16,24,40,0.06), 0 8px 20px rgba(16,24,40,0.06);
}

/* Fallbacks if custom properties unsupported */
body { color: #1A2433; background: #FFFFFF; }

/* ===== TYPOGRAPHY ===== */
body {
  font-family: Verdana, "Segoe UI", Tahoma, Geneva, sans-serif;
  font-size: 16px; line-height: 1.6; color: var(--text);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, Arial, sans-serif; color: var(--primary); letter-spacing: 0.2px; }
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 24px; margin-bottom: 16px; }
h3 { font-size: 18px; color: #10243E; }
h4 { font-size: 16px; color: #10243E; }
p { color: #2A3445; }
small, .meta { font-size: 14px; color: var(--muted); }

@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* ===== GLOBAL STRUCTURE ===== */
section { padding: 40px 0; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 16px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; }

/* 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(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 20px; 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; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ===== HEADER & NAV ===== */
header { background: var(--surface); border-bottom: 1px solid var(--line); position: relative; z-index: 50; }
header .container { align-items: center; justify-content: space-between; gap: 16px; }
header img { height: 36px; width: auto; }
header nav { display: none; align-items: center; gap: 16px; }
header nav a { color: #243041; font-weight: 500; padding: 10px 8px; border-radius: 8px; transition: color .2s ease, background-color .2s ease; }
header nav a:hover { color: var(--primary); background: var(--accent); }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; color: var(--primary); background: var(--accent); transition: background-color .2s ease, transform .2s ease; }
.mobile-menu-toggle:hover { background: #E9EEF5; transform: translateY(-1px); }

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

/* ===== CTA BUTTONS ===== */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-weight: 700; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease; border: 1px solid transparent; }
.cta.primary { background: var(--primary); color: #fff; box-shadow: 0 6px 18px rgba(13,59,102,.18); }
.cta.primary:hover { background: #0B3357; box-shadow: 0 10px 24px rgba(13,59,102,.22); transform: translateY(-1px); }
.cta.secondary { background: #E9EEF5; color: #0D2D4F; border-color: #D4DEEA; }
.cta.secondary:hover { background: #DDE6F1; color: #0B2E54; }

/* ===== HERO ===== */
.hero { background: var(--accent); border-bottom: 1px solid var(--line); }
.hero .content-wrapper { gap: 18px; }
.hero p { max-width: 840px; }
.hero .trust-badges, .hero .contact-snippet { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; color: #3B4756; }
.hero .trust-badges img, .contact-snippet img { width: 20px; height: 20px; }
.hero .city-hint { color: var(--muted); font-size: 14px; }

/* ===== COMMON LISTS & ELEMENTS ===== */
.usp-list, .included-bullets, .travel-fee-rules, .benefit-bullets, .inspection-checklist, .vin-check-points, .test-drive-protocol, .contract-check-items, .addons-list, .prep-checklist { display: flex; flex-direction: column; gap: 8px; }

.tools-list { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.tools-list span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); color: #243041; }
.tools-list img { width: 18px; height: 18px; }

.step-list { display: flex; flex-direction: column; gap: 10px; border-left: 3px solid var(--primary); padding-left: 14px; }

.rating-summary { display: inline-flex; align-items: center; gap: 8px; background: #E6F3EB; color: #135D2F; border: 1px solid #CBE8D4; border-radius: 999px; padding: 8px 12px; font-weight: 700; }

/* ===== CARDS & GRIDS (Flex-only) ===== */
.feature-grid, .service-cards, .service-cards-detailed, .price-cards, .price-cards-preview, .testimonial-list, .testimonial-slider, .case-brief-cards, .inclusions-grid, .cta-group { display: flex; flex-wrap: wrap; gap: 20px; }

/* generic card look for grid children */
.feature-grid > div, .service-cards > div, .service-cards-detailed > div, .price-cards > div, .price-cards-preview > div, .case-brief-cards > div { flex: 1 1 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 20px; display: flex; flex-direction: column; gap: 10px; transition: transform .2s ease, box-shadow .2s ease; }
.feature-grid > div:hover, .service-cards > div:hover, .service-cards-detailed > div:hover, .price-cards > div:hover, .price-cards-preview > div:hover, .case-brief-cards > div:hover { transform: translateY(-2px); box-shadow: 0 2px 8px rgba(16,24,40,.08), 0 14px 30px rgba(16,24,40,.10); }

/* inclusions grid (3 items on desktop) */
.inclusions-grid > div { flex: 1 1 240px; background: var(--surface-alt); border: 1px solid var(--line); border-radius: 10px; padding: 16px; }

/* testimonial slider (horizontal scroll) */
.testimonial-slider { display: flex; flex-wrap: nowrap; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; }
.testimonial-slider::-webkit-scrollbar { height: 8px; }
.testimonial-slider::-webkit-scrollbar-thumb { background: #C7CFDA; border-radius: 4px; }
.testimonial-slider .testimonial-card { min-width: 280px; flex: 0 0 auto; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); scroll-snap-align: start; align-items: flex-start; }

/* testimonial list (grid-like via flex) */
.testimonial-list .testimonial-card { flex: 1 1 300px; background: #FFFFFF; border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); align-items: flex-start; }
.testimonial-card p { color: #263241; }
.testimonial-meta { color: var(--muted); font-size: 14px; }
.use-case-tags { display: inline-flex; flex-wrap: wrap; gap: 6px; color: #28405C; }

.review-badges { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.review-badges img { width: 18px; height: 18px; }

/* FAQ accordion (static styling; JS can enhance) */
.faq-accordion { display: flex; flex-direction: column; gap: 12px; }
.faq-accordion > div { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 16px; box-shadow: var(--shadow); }
.faq-accordion h3 { display: flex; align-items: center; gap: 8px; font-size: 18px; }
.faq-accordion p { margin-top: 6px; color: #2A3445; }

/* Price badges */
.best-value-badge, .price-guarantee-badge { display: inline-flex; align-items: center; gap: 8px; background: #E6F3EB; color: #135D2F; border: 1px solid #CBE8D4; border-radius: 999px; padding: 4px 10px; font-size: 12px; font-weight: 700; }
.price-guarantee-badge img { width: 16px; height: 16px; }

/* CTA group */
.cta-group { align-items: center; }
.cta-group .cta { flex: 0 0 auto; }

/* Notices & notes */
.included-checkmarks, .report-sample-points, .compliance-notes, .travel-costs-hint, .photo-video-note, .result-report-points, .registration-logistics-hint, .liability-disclaimer-summary, .database-sources-list, .negotiation-support-steps, .coverage-radius-note, .invoice-payment-info, .radius-included-note, .outside-radius-rule, .appointment-windows, .weekend-availability-note, .notes-tooltip, .expected-response-time, .documents-to-prepare-list, .city-vehicle-types, .metro-regions-list, .on-request-note, .before-after-snippets, .contact-prompt, .messaging-note { background: var(--surface-alt); border: 1px solid var(--line); color: #2A3445; border-radius: 10px; padding: 12px 14px; }

/* ===== TABLE (comparison) ===== */
.comparison-table { width: 100%; border-collapse: collapse; display: block; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; }
.comparison-table thead th { background: #ECF2F8; color: #0F2C4A; text-align: left; font-weight: 700; padding: 12px; border-bottom: 1px solid var(--line); }
.comparison-table tbody td { padding: 12px; border-top: 1px solid var(--line); color: #2A3445; }
.comparison-table tbody tr:nth-child(even) { background: #FAFCFF; }

/* ===== CONTACT ELEMENTS ===== */
.phone-block, .email-link, .hours-snippet, .business-hours, .contact-details { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; }
.phone-block img, .email-link img, .hours-snippet img, .business-hours img, .contact-details img { width: 18px; height: 18px; }

/* ===== FOOTER ===== */
.footer { background: #0B2E54; color: #EAF1F8; }
.footer a { color: #EAF1F8; }
.footer a:hover { color: #EAF1F8; }
.footer .content-wrapper { flex-direction: column; gap: 18px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 10px 16px; }
.footer .contact-info { display: flex; flex-direction: column; gap: 8px; }
.footer img { height: 30px; width: auto; filter: brightness(0) invert(1); }

@media (min-width: 768px) {
  .footer .content-wrapper { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-start; }
  .footer nav { gap: 12px 20px; }
}

/* ===== MOBILE MENU (hamburger) ===== */
.mobile-menu { position: fixed; top: 0; right: 0; width: 100%; height: 100%; background: rgba(13,59,102,0.96); color: #fff; display: flex; flex-direction: column; padding: 20px; gap: 16px; transform: translateX(100%); transition: transform .35s ease; z-index: 999; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 8px; color: #0D3B66; background: #ffffff; display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 6px; margin-top: 40px; }
.mobile-nav a { color: #ffffff; background: rgba(255,255,255,0.08); padding: 14px 12px; border-radius: 10px; font-size: 18px; }
.mobile-nav a:active { background: rgba(255,255,255,0.16); }

/* Hide mobile menu on desktop (JS toggles .open) */
@media (min-width: 992px) {
  .mobile-menu { display: none; }
}

/* ===== PAGE-SPECIFIC TWEAKS ===== */
/* Index & shared sections */
.price-cards-preview > div p strong, .price-cards > div div strong { font-size: 22px; color: #0F2C4A; }

/* Services */
.service-cards-detailed ul li, .service-cards ul li { color: #2A3445; }

/* Pricing */
.price-cards > div h3 { display: flex; align-items: center; gap: 8px; justify-content: space-between; }

/* Process */
#ablauf .cta-inline { display: flex; align-items: center; }

/* Service area */
.major-cities-list { display: flex; flex-wrap: wrap; gap: 8px 12px; list-style: none; padding-left: 0; }
.major-cities-list li { background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 8px 12px; }

/* Contact form (disabled view) */
label { font-weight: 700; color: #0F2C4A; margin-bottom: 6px; display: inline-flex; }
.content-wrapper > div > label + input { margin-bottom: 12px; }
.consent-checkbox { display: flex; align-items: flex-start; gap: 10px; }
.consent-checkbox input { width: auto; }
.privacy-note { color: var(--muted); font-size: 14px; }

/* Thank you */
.success-icon img { width: 56px; height: 56px; }

/* ===== COOKIE CONSENT ===== */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; background: #0E1A27; color: #FFFFFF; padding: 16px 18px; border-top: 3px solid var(--secondary); transform: translateY(100%); transition: transform .35s ease; z-index: 10000; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-text { font-size: 14px; color: #E7EEF7; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; font-weight: 700; border: 1px solid transparent; }
.cookie-accept { background: var(--secondary); color: #0B2615; }
.cookie-accept:hover { background: #279748; }
.cookie-reject { background: #243447; color: #EAF1F8; border-color: #3B4C60; }
.cookie-reject:hover { background: #1E2A3A; }
.cookie-settings { background: transparent; color: #EAF1F8; border-color: #EAF1F8; }
.cookie-settings:hover { background: rgba(255,255,255,0.08); }

.cookie-modal-backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.5); opacity: 0; pointer-events: none; transition: opacity .25s ease; z-index: 10001; }
.cookie-modal-backdrop.show { opacity: 1; pointer-events: auto; }
.cookie-modal { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top-left-radius: 16px; border-top-right-radius: 16px; box-shadow: 0 -10px 30px rgba(0,0,0,0.12); transform: translateY(100%); transition: transform .35s ease; z-index: 10002; display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-modal.show { transform: translateY(0); }
.cookie-modal h3 { color: var(--primary); }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: #F9FBFD; }
.cookie-category .toggle { width: 44px; height: 28px; border-radius: 999px; background: #CFD6DF; position: relative; transition: background .2s; }
.cookie-category .toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,0.1); transition: transform .2s; }
.cookie-category .toggle.on { background: var(--secondary); }
.cookie-category .toggle.on::after { transform: translateX(16px); }

/* ===== INTERACTIONS & ACCESSIBILITY ===== */
a:hover { color: var(--primary); }
::selection { background: rgba(13,59,102,0.2); }

/* Subtle animations */
@media (prefers-reduced-motion: no-preference) {
  .card, .feature-grid > div, .service-cards > div, .price-cards > div, .case-brief-cards > div { transition: transform .2s ease, box-shadow .2s ease; }
}

/* ===== RESPONSIVE LAYOUT RULES (Flex-direction switches) ===== */
/* Default mobile: column */
.text-image-section { flex-direction: column; }

/* Tablet and up: row for broader sections */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .content-wrapper.wide-row, .feature-grid, .service-cards, .service-cards-detailed, .price-cards, .price-cards-preview, .case-brief-cards { justify-content: space-between; }
}

/* Larger desktop: tighter widths and spacing adjustments */
@media (min-width: 1200px) {
  .container { gap: 20px; }
}

/* ===== UTILITIES ===== */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--line); background: var(--surface); }
.muted { color: var(--muted); }

/* ===== IMAGE ICONS STANDARD SIZE ===== */
.content-wrapper img[alt^="Telefon"], .content-wrapper img[alt^="E-Mail"], .content-wrapper img[alt^="Öffnungszeiten"], .content-wrapper img[alt^="OBD"], .content-wrapper img[alt^="Lack"], .content-wrapper img[alt^="Endoskop"], .content-wrapper img[alt^="Batterie"], .content-wrapper img[alt^="Bremse"], .content-wrapper img[alt^="Zertifiziert"], .content-wrapper img[alt^="Sicher"], .content-wrapper img[alt^="Auszeichnung"] { width: 20px; height: 20px; }

/* ===== ENSURE ADEQUATE GAPS BETWEEN BLOCKS ===== */
section .container > .content-wrapper > * + * { margin-top: 8px; }

/* ===== HEADER LINK SIZES FOR TOUCH ===== */
@media (max-width: 991px) {
  header .cta { display: none; } /* keep header compact on mobile; CTA appears in hero and content */
}

/* ===== DARK TEXT ON LIGHT BACKGROUND FOR TESTIMONIALS ===== */
.testimonial-card, .testimonial-list .testimonial-card { background: #FFFFFF; color: #1A2433; }

/* ===== PREVENT OVERLAP ===== */
/* Adequate margins between content cards/sections */
.feature-grid > div, .service-cards > div, .price-cards > div, .case-brief-cards > div, .testimonial-list .testimonial-card { margin-bottom: 20px; }

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