/* ============================
   Mondspur Autoexperten Leipzig
   Minimalist Flexbox-Only Stylesheet
   Author: Senior CSS Dev & UI Designer
   ============================ */

/* ============================
   0) CSS RESET / NORMALIZE
   ============================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Arial, sans-serif; color: #0F2A3D; background: #FFFFFF; line-height: 1.6; }
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0 0 16px; padding-left: 20px; }
p { margin: 0 0 16px; }
:focus-visible { outline: 2px solid #0B6E4F; outline-offset: 2px; }

/* ============================
   1) THEME VARIABLES (with fallback values inline)
   ============================ */
:root {
  --color-primary: #0F2A3D; /* deep blue */
  --color-secondary: #0B6E4F; /* green */
  --color-accent: #F5F7FA; /* light gray-blue */
  --color-text: #0F2A3D; /* dark */
  --color-muted: #6B7B8A;
  --color-border: #E6EDF2;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --shadow-s: 0 1px 2px rgba(15,42,61,0.06);
  --shadow-m: 0 6px 18px rgba(15,42,61,0.10);
  --shadow-focus: 0 0 0 4px rgba(11,110,79,0.15);
  --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; --space-80: 80px;
}

/* ============================
   2) TYPOGRAPHY
   ============================ */
h1, h2, h3, h4 { font-family: "Trebuchet MS", Verdana, Arial, sans-serif; color: #0F2A3D; margin: 0 0 12px; line-height: 1.25; letter-spacing: 0.1px; }
h1 { font-size: 32px; }
h2 { font-size: 24px; margin-top: 8px; }
h3 { font-size: 18px; }
.subheadline, .tagline { color: #335468; }
.small, .microcopy { font-size: 14px; color: #6B7B8A; }
strong { font-weight: 700; }

/* ============================
   3) LAYOUT PRIMITIVES
   ============================ */
.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; }
.content-wrapper { display: flex; flex-direction: column; gap: var(--space-20); align-items: flex-start; }
section { padding: 40px 20px; margin-bottom: 60px; }
.hero { background: #F5F7FA; padding: 60px 20px; border-bottom: 1px solid #E6EDF2; }

/* MANDATORY SPACING/ALIGNMENT PATTERNS */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #FFFFFF; border: 1px solid #E6EDF2; border-radius: var(--radius-m); box-shadow: var(--shadow-s); padding: 20px; }
.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: #F5F7FA; border: 1px solid #E6EDF2; border-radius: var(--radius-m); box-shadow: var(--shadow-s); color: #0F2A3D; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ============================
   4) HEADER & NAVIGATION
   ============================ */
header { position: sticky; top: 0; z-index: 100; background: #FFFFFF; border-bottom: 1px solid #E6EDF2; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--space-16); min-height: 64px; }
.logo img { height: 36px; width: auto; }
.main-nav { display: none; align-items: center; gap: var(--space-20); }
.main-nav a { color: #0F2A3D; padding: 8px 6px; border-radius: var(--radius-s); transition: color .2s ease, background-color .2s ease; }
.main-nav a:hover { color: #0B6E4F; background: #F5F7FA; }

/* Primary CTA near nav */
header .btn.primary { display: none; }

/* Mobile menu button */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 20px; color: #0F2A3D; border: 1px solid #E6EDF2; border-radius: 8px; background: #FFFFFF; box-shadow: var(--shadow-s); transition: transform .2s ease, box-shadow .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-m); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: 100%; max-width: 100%; background: #FFFFFF; box-shadow: -8px 0 24px rgba(15,42,61,0.18); transform: translateX(100%); opacity: 0; visibility: hidden; transition: transform .35s ease, opacity .35s ease, visibility .35s ease; display: flex; flex-direction: column; z-index: 1000; }
.mobile-menu.open, .mobile-menu.active, .mobile-menu.is-open { transform: translateX(0); opacity: 1; visibility: visible; }
.mobile-menu-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; font-size: 20px; border: 1px solid #E6EDF2; border-radius: 8px; background: #FFFFFF; color: #0F2A3D; box-shadow: var(--shadow-s); }
.mobile-nav { margin-top: 64px; display: flex; flex-direction: column; }
.mobile-nav a { padding: 16px 24px; border-bottom: 1px solid #E6EDF2; color: #0F2A3D; transition: background-color .2s ease, color .2s ease; }
.mobile-nav a:hover { background: #F5F7FA; color: #0B6E4F; }

/* ============================
   5) BUTTONS & LINKS
   ============================ */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 1px solid transparent; text-decoration: none; font-weight: 600; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .15s ease; box-shadow: var(--shadow-s); }
.btn:active { transform: translateY(0); }
.btn.primary { background: #0B6E4F; color: #FFFFFF; border-color: #0B6E4F; }
.btn.primary:hover { background: #095B42; box-shadow: var(--shadow-m); }
.btn.secondary { background: #FFFFFF; color: #0B6E4F; border-color: #0B6E4F; }
.btn.secondary:hover { background: #F5F7FA; box-shadow: var(--shadow-m); }
.btn:focus-visible { box-shadow: var(--shadow-focus); }

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

/* ============================
   6) HERO & COMMON BLOCKS
   ============================ */
.hero .container { gap: var(--space-20); }
.tagline { font-size: 16px; }
.subheadline { font-size: 16px; max-width: 70ch; }

/* Trust badges */
.trust-badges { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-12); }
.badge { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #E6EDF2; border-radius: 999px; background: #FFFFFF; box-shadow: var(--shadow-s); color: #335468; }
.badge img { width: 16px; height: 16px; }

/* Contact strip */
.contact-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 14px; border: 1px solid #E6EDF2; border-radius: var(--radius-m); background: #FFFFFF; box-shadow: var(--shadow-s); color: #0F2A3D; }
.contact-strip span { display: inline-flex; align-items: center; gap: 8px; }
.contact-strip img { width: 16px; height: 16px; }

/* ============================
   7) CONTENT LAYOUTS (Flex-only)
   ============================ */
/* Text sections as minimalist cards */
.text-section { display: flex; flex-direction: column; gap: 8px; background: #FFFFFF; border: 1px solid #E6EDF2; border-radius: var(--radius-m); padding: 16px; box-shadow: var(--shadow-s); }

/* Feature grids & services */
.feature-grid, .service-cards, .price-teasers, .faq, .testimonial-list { display: flex; flex-wrap: wrap; gap: 20px; }
.feature-grid .text-section, .service-cards .text-section, .price-teasers .text-section, .faq .text-section { flex: 1 1 280px; min-width: 260px; }

/* Process timeline */
.process-timeline { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; }
.process-timeline li { margin-bottom: 4px; }

/* Testimonials */
.testimonial-list .testimonial-card { flex: 1 1 300px; min-width: 280px; }
.ratings-summary { color: #0F2A3D; font-weight: 600; }
.review-highlights { display: flex; flex-wrap: wrap; gap: 10px 14px; padding-left: 20px; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: #6B7B8A; }
.breadcrumb a { color: #335468; }
.breadcrumb a:hover { color: #0B6E4F; }

/* Status (thanks) */
.status { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid #E6EDF2; border-radius: 999px; background: #FFFFFF; box-shadow: var(--shadow-s); color: #0B6E4F; font-weight: 600; }
.status img { width: 18px; height: 18px; }

/* Lists spacing */
ul li + li, ol li + li { margin-top: 6px; }
.usp-list { display: flex; flex-direction: column; gap: 6px; }

/* ============================
   8) FOOTER
   ============================ */
footer { background: #FFFFFF; border-top: 1px solid #E6EDF2; padding: 30px 0; }
footer .content-wrapper { display: flex; flex-direction: column; gap: var(--space-20); }
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 36px; width: auto; }
.footer-contact { display: flex; flex-direction: column; gap: 10px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 16px; }
.footer-nav a { color: #335468; padding: 6px 8px; border-radius: 6px; }
.footer-nav a:hover { background: #F5F7FA; color: #0B6E4F; }
.copyright { color: #6B7B8A; font-size: 14px; }

/* ============================
   9) COOKIE CONSENT BANNER & MODAL
   ============================ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #FFFFFF; border-top: 1px solid #E6EDF2; box-shadow: 0 -10px 30px rgba(15,42,61,0.08); padding: 14px 20px; display: flex; flex-direction: column; gap: 12px; z-index: 9999; transform: translateY(110%); opacity: 0; visibility: hidden; transition: transform .35s ease, opacity .35s ease, visibility .35s ease; }
.cookie-banner.show, .cookie-banner.is-visible { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 14px; border-radius: 8px; }
.cookie-actions .btn.accept { background: #0B6E4F; color: #FFF; border-color: #0B6E4F; }
.cookie-actions .btn.reject { background: #FFFFFF; color: #0F2A3D; border-color: #E6EDF2; }
.cookie-actions .btn.settings { background: #FFFFFF; color: #0B6E4F; border-color: #0B6E4F; }

/* Cookie modal */
.cookie-modal { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: rgba(15,42,61,0.4); z-index: 10000; opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.cookie-modal.open { opacity: 1; visibility: visible; }
.cookie-modal .modal-panel { width: 92%; max-width: 640px; background: #FFFFFF; border: 1px solid #E6EDF2; border-radius: 12px; box-shadow: var(--shadow-m); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid #E6EDF2; border-radius: 8px; background: #F9FBFD; }
.cookie-toggle { display: inline-flex; align-items: center; gap: 8px; }
/* Simple toggle switch */
.switch { position: relative; width: 44px; height: 24px; display: inline-flex; align-items: center; }
.switch input { position: absolute; opacity: 0; }
.switch .track { width: 44px; height: 24px; background: #D8E3EA; border-radius: 999px; transition: background .2s ease; display: inline-flex; align-items: center; padding: 2px; }
.switch .thumb { width: 20px; height: 20px; background: #FFFFFF; border-radius: 50%; box-shadow: var(--shadow-s); transform: translateX(0); transition: transform .2s ease; }
.switch input:checked + .track { background: #0B6E4F; }
.switch input:checked + .track .thumb { transform: translateX(20px); }

/* ============================
   10) FORMS (generic)
   ============================ */
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; padding: 12px 14px; border: 1px solid #E6EDF2; border-radius: 8px; background: #FFFFFF; color: #0F2A3D; transition: border-color .2s ease, box-shadow .2s ease; }
input:focus, textarea:focus { border-color: #0B6E4F; box-shadow: var(--shadow-focus); }
label { display: block; margin-bottom: 6px; color: #335468; }

/* ============================
   11) RESPONSIVE
   ============================ */
@media (min-width: 600px) {
  h1 { font-size: 40px; }
  .subheadline { font-size: 18px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .hero { padding: 80px 20px; }
  .content-wrapper { gap: var(--space-24); }
}

@media (min-width: 992px) {
  .main-nav { display: flex; }
  header .btn.primary { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; }
}

/* ============================
   12) ACCESSIBILITY & UTILITIES
   ============================ */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.muted { color: #6B7B8A; }

/* ============================
   13) PAGE-SPECIFIC TWEAKS
   ============================ */
/* Index: feature grids and price teasers already styled via shared classes */

/* Footer brand wrap on index */
.footer-brand p { color: #335468; }

/* Ensure readable testimonials on all backgrounds */
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: #335468; }

/* Price highlights */
.price-teasers .text-section h3 { margin-bottom: 6px; }

/* FAQ links */
.faq a { color: #0B6E4F; text-decoration: underline; }
.faq a:hover { color: #095B42; }

/* ============================
   14) HOVER MICRO-INTERACTIONS for cards
   ============================ */
.text-section:hover, .card:hover, .testimonial-card:hover { box-shadow: var(--shadow-m); transform: translateY(-1px); transition: box-shadow .2s ease, transform .2s ease; }

/* ============================
   15) ENSURE MINIMUM GAPS BETWEEN ELEMENTS
   ============================ */
section > .container > .content-wrapper > * + * { margin-top: 0; }
section > .container > .content-wrapper { gap: 20px; }

/* ============================
   16) PRINT (minimal)
   ============================ */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  body { color: #000; }
}
