/* =====================================
   Sunwave Fahrzeugwelt — style.css
   Design style: soft_pastel (pastel colors, soft fonts, dreamy atmosphere)
   Constraints: Mobile-first, Flexbox-only, No CSS Grid/Columns
   Includes: Reset, Typography, Layout, Components, Mobile Menu, Cookie Banner
   ===================================== */

/* --------- CSS Reset & Normalize --------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; height: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ol, ul, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; padding-left: 0; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { background: none; border: 0; cursor: pointer; font: inherit; }
input, select, textarea { font: inherit; }

/* --------- Fonts (Brand) --------- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Montserrat:wght@600;700;800&display=swap');

/* --------- Theme Variables (with fallbacks) --------- */
:root {
  /* Brand */
  --brand-primary: #111827; /* deep slate */
  --brand-secondary: #0B5CAD; /* blue */
  --brand-accent: #F59E0B; /* amber */

  /* Soft Pastel Palette */
  --pastel-bg: #F7F8FC; /* airy lavender-blue tint */
  --pastel-surface: #FFFFFF; /* cards/surfaces */
  --pastel-primary: #A7C7E7; /* pastel blue */
  --pastel-pink: #FAD6E7; /* pastel pink */
  --pastel-mint: #DDF5EA; /* mint */
  --pastel-yellow: #FFF4CC; /* butter */
  --pastel-lilac: #EDE6FF; /* lilac */

  /* Text */
  --text-strong: #1F2937;
  --text-base: #374151;
  --text-muted: #6B7280;

  /* UI */
  --border-soft: #E5E7EB;
  --shadow-soft: 0 8px 24px rgba(17, 24, 39, 0.06);
  --shadow-hover: 0 12px 28px rgba(17, 24, 39, 0.10);
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-sm: 10px;

  /* Buttons tint (pastel variant of brand) */
  --btn-primary-bg: #CBE0F4; /* softened secondary */
  --btn-primary-text: #0B5CAD;
  --btn-secondary-bg: #FFFFFF;
  --btn-secondary-text: #0B5CAD;
  --btn-secondary-border: #CFE2F6;

  /* Focus */
  --focus: #A7C7E7;
}

/* --------- Base --------- */
html { scroll-behavior: smooth; }
body {
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  color: var(--text-base);
  background: var(--pastel-bg);
  line-height: 1.6;
}

/* Typography scale */
h1 { font-family: Montserrat, Inter, sans-serif; font-weight: 800; font-size: 36px; line-height: 1.15; color: var(--text-strong); }
h2 { font-family: Montserrat, Inter, sans-serif; font-weight: 700; font-size: 28px; line-height: 1.25; color: var(--text-strong); }
h3 { font-weight: 600; font-size: 20px; line-height: 1.3; color: var(--text-strong); }
p { font-size: 16px; }
small, .eyebrow { font-size: 14px; color: var(--text-muted); }
.eyebrow { letter-spacing: .06em; text-transform: uppercase; font-weight: 600; }

/* Links */
a { color: var(--brand-secondary); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Focus visible */
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }

/* Containers & Layout (Flex-only) */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex; /* flex container */
  flex-direction: column;
}
.content-wrapper {
  display: flex; /* flex container */
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
}

/* 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; }
.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; }

/* Default section styling to match pastel look */
main section {
  margin-bottom: 60px;
}

/* --------- Header --------- */
header { position: relative; z-index: 50; background: rgba(255,255,255,0.8); backdrop-filter: saturate(1.2) blur(8px); border-bottom: 1px solid var(--border-soft); }
header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}
.logo img { height: 36px; width: auto; }

.main-nav { display: none; gap: 16px; align-items: center; }
.main-nav a {
  padding: 10px 12px;
  color: var(--text-base);
  border-radius: 10px;
  transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.main-nav a[aria-current="page"], .main-nav a:hover {
  background: #EFF6FF;
  color: var(--brand-secondary);
  box-shadow: var(--shadow-soft);
}

.header-ctas { display: none; gap: 10px; align-items: center; }

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 12px;
  background: var(--pastel-surface);
  color: var(--brand-secondary);
  box-shadow: var(--shadow-soft);
  transition: transform .2s ease, box-shadow .2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }

/* --------- Hero --------- */
.hero { background: var(--pastel-lilac); border-bottom: 1px solid var(--border-soft); }
.hero .content-wrapper { padding: 30px 0; }
.hero p { max-width: 72ch; }
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 12px; }

/* --------- Text blocks --------- */
.text-section { background: var(--pastel-surface); border: 1px solid var(--border-soft); box-shadow: var(--shadow-soft); border-radius: var(--radius-lg); padding: 20px; }
.text-section + .text-section { margin-top: 16px; }

/* Lists with icons */
.text-section ul li,
main ul li {
  display: flex; align-items: center; gap: 10px;
  padding: 6px 0;
}
.text-section ul li img, main ul li img { width: 20px; height: 20px; }

/* Ordered lists */
main ol { counter-reset: step; display: flex; flex-direction: column; gap: 10px; padding-left: 0; }
main ol li { position: relative; padding-left: 36px; }
main ol li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--pastel-mint); color: var(--text-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 14px;
  box-shadow: var(--shadow-soft);
}

/* --------- Buttons --------- */
.btn { 
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 16px;
  border-radius: 12px; border: 1px solid transparent;
  font-weight: 600; text-decoration: none;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.btn.primary { background: var(--btn-primary-bg); color: var(--btn-primary-text); border-color: #D9E9FA; box-shadow: var(--shadow-soft); }
.btn.primary:hover { transform: translateY(-1px); box-shadow: var(--shadow-hover); }
.btn.secondary { background: var(--btn-secondary-bg); color: var(--btn-secondary-text); border-color: var(--btn-secondary-border); }
.btn.secondary:hover { background: #F6FAFF; border-color: #BBD7F5; box-shadow: var(--shadow-soft); }

/* Emphasis link inside text */
.text-section a.btn { margin-top: 8px; }

/* --------- Testimonials (high contrast) --------- */
.testimonial-card {
  background: #FFFFFF; /* ensure light background */
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  color: var(--text-strong);
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: var(--text-base); }

/* --------- Footer --------- */
footer { background: #FAFBFF; border-top: 1px solid var(--border-soft); }
footer .content-wrapper { padding: 24px 0; gap: 24px; }
.footer-nav { display: flex; flex-direction: column; gap: 8px; }
.footer-nav h3 { margin-bottom: 8px; }
.footer-nav ul { display: flex; flex-direction: column; gap: 8px; }
footer a:hover { text-decoration: underline; }

/* --------- Mobile Menu (Overlay) --------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1000;
  background: #FFFFFF; border-left: 1px solid var(--border-soft);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column; /* flex container */
  padding: 20px;
}
.mobile-menu[aria-hidden="false"], .mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; width: 42px; height: 42px; border-radius: 12px;
  background: var(--pastel-surface); color: var(--text-strong);
  box-shadow: var(--shadow-soft);
}
.mobile-nav { display: flex; flex-direction: column; gap: 14px; margin-top: 10px; }
.mobile-nav a {
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-soft);
  background: #FAFCFF; color: var(--text-base);
}
.mobile-nav a[aria-current="page"] { background: #EFF6FF; color: var(--brand-secondary); border-color: #D9E9FA; }

/* --------- Cookie Consent Banner + Modal --------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1100;
  background: #FFFFFF; border-top: 1px solid var(--border-soft);
  box-shadow: 0 -8px 24px rgba(17,24,39,.06);
  display: flex; flex-direction: column; gap: 14px; /* flex only */
  padding: 16px 20px;
}
.cookie-banner.hidden { display: none; }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 10px; }
.cookie-banner .cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .btn { padding: 10px 14px; }
.cookie-banner .btn.accept { background: #E6F7EF; color: #0F7A53; border-color: #CBECDC; }
.cookie-banner .btn.reject { background: #FFF1F2; color: #991B1B; border-color: #FECACA; }
.cookie-banner .btn.settings { background: var(--btn-secondary-bg); color: var(--text-base); border-color: var(--btn-secondary-border); }

/* Cookie Settings Modal */
.cookie-modal {
  position: fixed; inset: 0; z-index: 1200; display: none;
  align-items: center; justify-content: center; /* flex center */
}
.cookie-modal.open { display: flex; }
.cookie-modal .backdrop { position: absolute; inset: 0; background: rgba(17,24,39,.45); }
.cookie-modal .modal { position: relative; width: 94%; max-width: 560px; background: #FFFFFF; border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 10px; }
.cookie-modal .row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px; border: 1px dashed var(--border-soft); border-radius: 12px; background: #FAFBFF; }
.cookie-modal .row .label { font-weight: 600; }
.cookie-modal .switch { width: 48px; height: 28px; border-radius: 20px; background: #E5E7EB; position: relative; transition: background .2s ease; }
.cookie-modal .switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: #FFFFFF; box-shadow: var(--shadow-soft); transition: transform .2s ease; }
.cookie-modal .switch.on { background: #BBE3D3; }
.cookie-modal .switch.on::after { transform: translateX(20px); }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* --------- Generic Cards (for future use) --------- */
.card { background: var(--pastel-surface); border: 1px solid var(--border-soft); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); padding: 18px; transition: transform .2s ease, box-shadow .2s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }

/* --------- Utility Layouts --------- */
.cta-group { display: flex; flex-wrap: wrap; gap: 10px; }

/* --------- Accessibility & States --------- */
a[aria-current="page"] { font-weight: 600; }

/* --------- Page-specific gentle accents --------- */
/* Give alternating sections a subtle pastel wash to create a dreamy rhythm */
main section:nth-of-type(odd) .content-wrapper > h2 { background: linear-gradient(0deg, transparent, transparent); }
main section:nth-of-type(odd) { background: #FFFFFF; border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

/* --------- Responsive (Mobile-first) --------- */
@media (min-width: 640px) {
  h1 { font-size: 40px; }
  h2 { font-size: 30px; }
  h3 { font-size: 21px; }
}

@media (min-width: 768px) {
  .content-wrapper { gap: 24px; }
  h1 { font-size: 44px; }
  h2 { font-size: 32px; }
  .hero .content-wrapper { padding: 44px 0; }
}

@media (min-width: 992px) {
  header .content-wrapper { padding: 16px 0; }
  .main-nav { display: flex; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* For content sections that may have multiple text blocks: align them side-by-side with wrap */
  main .content-wrapper { flex-direction: row; align-items: flex-start; flex-wrap: wrap; }
  main .content-wrapper > h2 { flex: 1 1 100%; }
  .text-section { flex: 1 1 calc(50% - 12px); }
  .testimonial-card { flex: 1 1 calc(50% - 12px); }
  .footer-nav { min-width: 240px; }
}

@media (min-width: 1200px) {
  h1 { font-size: 52px; }
  h2 { font-size: 36px; }
}

/* --------- Alignment rules reiterated for specific sections --------- */
.text-image-section { align-items: center; }
@media (max-width: 768px) { .text-image-section { flex-direction: column; } }

/* --------- Tables (if any appear) basic style --------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 12px; border: 1px solid var(--border-soft); text-align: left; }
th { background: #FAFBFF; font-weight: 600; }

/* --------- Header/footer spacing consistency --------- */
header .container, footer .container { padding-top: 0; padding-bottom: 0; }

/* --------- Special text highlights --------- */
.mark { background: var(--pastel-yellow); border-radius: 8px; padding: 0 6px; }

/* --------- Link buttons inside paragraphs --------- */
main p a.btn { text-decoration: none; }

/* --------- Ensure adequate spacing between standalone elements --------- */
main .content-wrapper > * + * { margin-top: 0; }

/* --------- Dark text in testimonials and review sections (enforced) --------- */
section:has(.testimonial-card) .testimonial-card, /* modern browsers */
.testimonial-card { color: var(--text-strong); background: #FFFFFF; }

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

/* --------- Additional helpful classes (no grid) --------- */
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; flex-wrap: wrap; gap: 16px; }
.center { display: flex; align-items: center; justify-content: center; }

/* --------- Fine-tuning per global elements --------- */
main a { text-underline-offset: 2px; }
main a:hover { text-decoration-thickness: 2px; }

/* --------- Visually distinct sections for key CTAs --------- */
.hero .btn.primary { background: #D9EAFB; border-color: #CBE0F4; color: #0B5CAD; }
.hero .btn.secondary { background: #FFFFFF; border-color: #E3EAF6; color: #0B5CAD; }

/* --------- Footer lists spacing --------- */
footer .text-section ul { display: flex; flex-direction: column; gap: 6px; }

/* --------- Make sure no overlapping: enforce min margins between blocks --------- */
.text-section, .testimonial-card, .card { margin-bottom: 20px; }

/* --------- Badge-like eyebrow for subtle pastel look --------- */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: #F2F6FF; color: #35557D; padding: 6px 10px; border: 1px solid #E2ECFA; border-radius: 999px; box-shadow: var(--shadow-soft); }

/* --------- Make external links visible when used --------- */
[rel~="noopener"][target="_blank"]::after { content: "\2197"; font-size: 12px; margin-left: 6px; color: var(--text-muted); }

/* --------- Ensure all sections have breathing room inside container --------- */
main .container .content-wrapper { padding-top: 10px; padding-bottom: 10px; }

/* End of file */
