/* =====================================================
   WagenWeiser – style.css
   Design: gradient_modern (modern gradients, smooth UI)
   Brand: Primary #16324F, Secondary #0A7C2E, Accent #F4F7FB
   Fonts: Trebuchet MS (display), Verdana (body)
   Layout: Mobile-first, ONLY Flexbox, NO CSS Grid/Columns
   ===================================================== */

/* --------------------
   0) RESET & BASELINE
   -------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  color: #0E1B2A;
  background-color: #F4F7FB; /* solid fallback */
  background-image: linear-gradient(180deg, #F4F7FB 0%, #FFFFFF 100%);
  line-height: 1.6;
}
img { max-width: 100%; height: auto; display: block; }
a { color: #16324F; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(10,124,46,0.45); outline-offset: 2px; border-radius: 6px; }

/* --------------------
   1) THEME TOKENS
   -------------------- */
:root {
  --color-primary: #16324F;
  --color-secondary: #0A7C2E;
  --color-accent: #F4F7FB;
  --color-dark: #0E1B2A;
  --color-muted: #5F7287;
  --color-white: #FFFFFF;
  --radius-1: 10px;
  --radius-2: 14px;
  --radius-3: 20px;
  --shadow-1: 0 6px 16px rgba(22,50,79,0.12);
  --shadow-2: 0 10px 28px rgba(22,50,79,0.18);
  --transition-fast: 0.18s ease;
  --transition-med: 0.3s ease;
}

/* --------------------
   2) TYPOGRAPHY
   -------------------- */
h1, h2, h3, h4 { font-family: "Trebuchet MS", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; color: var(--color-dark); margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 34px; letter-spacing: 0.2px; }
h2 { font-size: 26px; margin-top: 8px; }
h3 { font-size: 20px; color: var(--color-primary); }
p { margin: 0 0 14px; color: var(--color-dark); }
.small { font-size: 14px; color: var(--color-muted); }
strong { color: var(--color-dark); }
ul, ol { margin: 0 0 14px 22px; padding: 0; }
li { margin: 6px 0; }

/* --------------------
   3) LAYOUT PRIMITIVES (Flex-only)
   -------------------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;           /* Flex container */
  flex-direction: column;  /* Stack by default */
}
.content-wrapper {
  width: 100%;
  display: flex;           /* Flex container */
  flex-direction: column;
  gap: 20px;
  align-items: flex-start;
  justify-content: flex-start;
}

/* Mandatory spacing patterns (exact class names) */
.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; }

/* Apply generous spacing to all native sections as well (mobile-first) */
main > section { margin-bottom: 60px; padding: 40px 0; }

/* Prevent overlaps and ensure clear separation */
section > .container > .content-wrapper > * + * { margin-top: 8px; }

/* --------------------
   4) HEADER & NAV
   -------------------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: var(--color-white);
  border-bottom: 1px solid rgba(22,50,79,0.08);
  box-shadow: 0 2px 10px rgba(14,27,42,0.04);
}
.site-header .content-wrapper {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
}
.logo img { height: 36px; width: auto; }

/* Desktop nav hidden by default (mobile-first) */
.main-nav { display: none; }
.main-nav a {
  color: var(--color-dark);
  padding: 8px 10px;
  border-radius: 8px;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}
.main-nav a:hover { background: rgba(22,50,79,0.08); color: var(--color-primary); text-decoration: none; }

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

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; padding: 0;
  border-radius: 10px; border: 1px solid rgba(22,50,79,0.15);
  background: var(--color-white);
  color: var(--color-primary);
  box-shadow: var(--shadow-1);
  transition: transform var(--transition-fast), background var(--transition-fast);
}
.mobile-menu-toggle:hover { background: #EEF3F8; transform: translateY(-1px); }

/* --------------------
   5) MOBILE MENU (overlay, slide-in)
   -------------------- */
.mobile-menu {
  position: fixed; inset: 0; right: 0; left: auto; /* ensure right anchoring */
  display: flex; flex-direction: column; align-items: flex-start;
  width: 100%; max-width: 360px; margin-left: auto;
  background: var(--color-white);
  box-shadow: -8px 0 24px rgba(14,27,42,0.18);
  transform: translateX(100%);
  transition: transform var(--transition-med);
  z-index: 1500;
  padding: 18px;
}
.mobile-menu.open { transform: translateX(0); }

.mobile-menu-close {
  align-self: flex-end;
  background: transparent; border: none; color: var(--color-dark);
  font-size: 22px; line-height: 1; padding: 8px; border-radius: 8px;
}
.mobile-menu-close:hover { background: rgba(22,50,79,0.06); }

.mobile-nav { display: flex; flex-direction: column; gap: 10px; width: 100%; margin-top: 8px; }
.mobile-nav a {
  display: flex; align-items: center;
  padding: 12px 10px; border-radius: 10px;
  color: var(--color-dark); background: #F7FAFD;
  transition: background var(--transition-fast), color var(--transition-fast);
}
.mobile-nav a:hover { background: #EAF2F9; color: var(--color-primary); text-decoration: none; }

/* Optional body lock when menu open */
.no-scroll { overflow: hidden; }

/* --------------------
   6) HERO (gradient_modern)
   -------------------- */
.hero {
  color: var(--color-white);
  background-color: var(--color-primary); /* solid fallback */
  background-image: linear-gradient(135deg, #16324F 0%, #0A7C2E 100%);
  border-radius: 0 0 var(--radius-3) var(--radius-3);
  box-shadow: 0 18px 40px rgba(22,50,79,0.25) inset;
}
.hero .content-wrapper { align-items: flex-start; }
.hero h1, .hero h2, .hero h3, .hero p, .hero li { color: #FFFFFF; }
.hero a { color: #E7F6EC; }
.hero ul, .hero ol { margin-left: 20px; }

/* --------------------
   7) BUTTONS
   -------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-weight: 700; font-size: 16px;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  cursor: pointer;
}
.btn:active { transform: translateY(1px); }

.btn.primary {
  color: #FFFFFF;
  background-color: var(--color-secondary); /* solid fallback */
  background-image: linear-gradient(135deg, #0A7C2E 0%, #138F39 100%);
  box-shadow: 0 8px 18px rgba(10,124,46,0.28);
}
.btn.primary:hover { box-shadow: 0 10px 22px rgba(10,124,46,0.34); }

.btn.secondary {
  color: var(--color-primary);
  background: #EAF2F9;
  border-color: rgba(22,50,79,0.18);
}
.btn.secondary:hover { background: #DDEAF6; }

/* --------------------
   8) TEXT SECTIONS & UTILITY CARDS
   -------------------- */
.text-section {
  display: flex; flex-direction: column; gap: 12px; align-items: flex-start;
  background: #FFFFFF;
  border: 1px solid rgba(22,50,79,0.08);
  border-radius: var(--radius-2);
  padding: 16px 16px;
  box-shadow: var(--shadow-1);
}
.text-section p:last-child { margin-bottom: 0; }

.card {
  background: #FFFFFF;
  border: 1px solid rgba(22,50,79,0.08);
  border-radius: var(--radius-2);
  padding: 18px;
  box-shadow: var(--shadow-1);
}

/* --------------------
   9) TESTIMONIALS – High contrast (light bg, dark text)
   -------------------- */
.testimonial-card {
  background: #FFFFFF;
  color: var(--color-dark);
  border: 1px solid rgba(22,50,79,0.10);
  border-radius: var(--radius-2);
  box-shadow: var(--shadow-1);
}
.testimonial-card h3 { margin: 0 0 6px; color: var(--color-primary); }
.testimonial-card p { margin: 0; }

/* --------------------
   10) FOOTER
   -------------------- */
.site-footer {
  background: var(--color-accent);
  border-top: 1px solid rgba(22,50,79,0.08);
}
.site-footer section { padding: 40px 0; }
.site-footer .content-wrapper { gap: 24px; }
.footer-brand { display: flex; flex-direction: column; gap: 12px; }
.footer-brand .logo img { height: 36px; }
.footer-nav nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a {
  color: var(--color-dark);
  padding: 8px 10px; border-radius: 8px;
}
.footer-nav a:hover { background: rgba(22,50,79,0.08); text-decoration: none; }

/* --------------------
   11) LINKS IN CONTENT
   -------------------- */
main a { text-decoration-color: rgba(22,50,79,0.3); text-underline-offset: 2px; }
main a:hover { text-decoration-color: rgba(10,124,46,0.5); }

/* --------------------
   12) RESPONSIVE RULES
   -------------------- */
@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }

  .content-wrapper { gap: 24px; }

  /* Header layout */
  .site-header .content-wrapper { gap: 18px; }
  .main-nav { display: flex; gap: 8px; align-items: center; }
  .header-ctas { display: flex; }
  .mobile-menu-toggle { display: none; }

  /* Text-image sections become row */
  .text-image-section { flex-direction: row; }
}

@media (min-width: 992px) {
  .container { max-width: 1200px; }
  .site-header .content-wrapper { padding: 14px 0; }
  .main-nav { gap: 14px; }
}

/* --------------------
   13) MICRO-INTERACTIONS
   -------------------- */
.btn:hover { transform: translateY(-1px); }
.card:hover, .text-section:hover, .testimonial-card:hover { box-shadow: var(--shadow-2); }

/* --------------------
   14) FORMS (generic future-proof)
   -------------------- */
input, select, textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(22,50,79,0.2);
  background: #FFFFFF;
  font-family: inherit; font-size: 16px;
}
input:focus, select:focus, textarea:focus { border-color: #138F39; box-shadow: 0 0 0 4px rgba(10,124,46,0.1); }

/* --------------------
   15) COOKIE CONSENT (banner + modal)
   -------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; gap: 14px;
  background: #FFFFFF;
  border-top: 1px solid rgba(22,50,79,0.12);
  box-shadow: 0 -10px 24px rgba(14,27,42,0.08);
  padding: 16px 20px;
  transform: translateY(100%);
  opacity: 0; pointer-events: none;
  transition: transform var(--transition-med), opacity var(--transition-med);
  z-index: 2000;
}
.cookie-banner.show { transform: translateY(0); opacity: 1; pointer-events: auto; }
.cookie-banner .container { padding: 0; }
.cookie-banner .content-wrapper { gap: 10px; }
.cookie-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-actions .btn { padding: 10px 14px; font-size: 14px; }
.cookie-actions .btn.reject { background: #FFEDEE; color: #7E1D1D; border: 1px solid #F3C3C6; }
.cookie-actions .btn.reject:hover { background: #FFE3E5; }
.cookie-actions .btn.settings { background: #EFF6F0; color: #0A7C2E; border: 1px solid #CDE7D4; }
.cookie-actions .btn.settings:hover { background: #E6F2E8; }

/* Cookie preferences modal */
.cookie-modal-overlay {
  position: fixed; inset: 0; background: rgba(14,27,42,0.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity var(--transition-med);
  z-index: 2100;
}
.cookie-modal-overlay.open { opacity: 1; pointer-events: auto; }
.cookie-modal {
  width: 92%; max-width: 720px; max-height: 86vh;
  background: #FFFFFF; border-radius: 16px; box-shadow: var(--shadow-2);
  display: flex; flex-direction: column; gap: 16px; padding: 18px;
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 12px; overflow: auto; }
.cookie-modal .modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }

/* Toggle switches (decorative absolute allowed) */
.cookie-toggle { display: flex; align-items: center; gap: 12px; justify-content: space-between; padding: 12px; border: 1px solid rgba(22,50,79,0.10); border-radius: 12px; }
.switch { position: relative; width: 46px; height: 26px; background: #CFD8E3; border-radius: 13px; transition: background var(--transition-fast); }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; box-shadow: 0 2px 6px rgba(0,0,0,0.18); transition: transform var(--transition-fast); }
.switch.on { background: #0A7C2E; }
.switch.on::after { transform: translateX(20px); }

/* --------------------
   16) MISC COMPONENTS
   -------------------- */
.hr { height: 1px; width: 100%; background: rgba(22,50,79,0.12); }
.badge { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: #EAF2F9; color: var(--color-primary); font-size: 12px; font-weight: 700; }

/* --------------------
   17) PAGE-SPECIFIC TWEAKS
   -------------------- */
/* Make hero CTA group horizontal when space allows */
.hero .content-wrapper > div { display: flex; flex-wrap: wrap; gap: 10px; }

/* Contact info icons alignment inside text-section */
.text-section p img { display: inline-block; vertical-align: middle; margin-right: 8px; height: 18px; width: auto; }

/* Footer: last legal bar */
.site-footer > .container .content-wrapper p { color: var(--color-muted); }

/* --------------------
   18) FLEXBOX ALIGNMENT (enforcement & examples)
   -------------------- */
/* Ensure alignments per requirements */
.content-grid { justify-content: space-between; align-items: stretch; }
.text-image-section { align-items: center; }
.card-container, .footer-nav nav, .mobile-nav { align-items: flex-start; }

/* On small viewports, stack text-image sections */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* --------------------
   19) ACCESSIBILITY & STATES
   -------------------- */
::selection { background: rgba(10,124,46,0.18); }
[hidden] { display: none !important; }

/* --------------------
   20) NO GRID / NO COLUMNS SAFEGUARD (documentation only)
   Note: This stylesheet intentionally avoids CSS Grid or CSS Columns.
   -------------------- */
/* End of stylesheet */
