/* ===================================================================
   Bright Momentum Ausbau — style.css
   Design style: soft_pastel (pastel colors, gentle, dreamy, soft fonts)
   Layout: Mobile-first, ONLY Flexbox (no CSS Grid / Columns)
   =================================================================== */

/* ------------------------------
   RESET & BASELINE
   ------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; padding: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; color: #1F2A33; background: #F7F9FB; line-height: 1.6; }
img, svg, video { max-width: 100%; height: auto; display: block; }
figure { margin: 0; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
p { margin: 0 0 16px; }
a { color: #12354A; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus { outline: 2px solid #87BFD8; outline-offset: 2px; }

/* ------------------------------
   THEME TOKENS (with fallbacks)
   ------------------------------ */
:root {
  --col-primary: #12354A;            /* brand primary */
  --col-primary-10: #EDF6FA;         /* pastel tint */
  --col-primary-20: #DCECF4;         /* pastel tint */
  --col-secondary: #AF5A1B;          /* brand secondary */
  --col-secondary-10: #F6E9DF;       /* pastel peach */
  --col-accent: #F4F6F8;             /* brand accent */
  --col-ink: #1F2A33;                /* main text */
  --col-muted: #5C6A73;              /* muted text */
  --col-success: #3E8E6A;
  --col-danger: #B34D4D;

  --bg-page: #F7F9FB;                /* page background pastel */
  --bg-surface: #FFFFFF;             /* white card */
  --shadow-soft: 0 8px 24px rgba(18,53,74,0.06);
  --radius-sm: 10px;                 /* softer, dreamy rounding */
  --radius-md: 16px;
  --radius-lg: 22px;
  --transition-fast: 180ms ease;
  --transition-med: 260ms ease;
}

/* ------------------------------
   TYPOGRAPHY
   ------------------------------ */
h1, h2, h3 { font-family: "Trebuchet MS", "Helvetica Neue", Arial, sans-serif; color: var(--col-primary, #12354A); margin: 0 0 12px; line-height: 1.25; letter-spacing: 0.2px; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
.subheadline { color: var(--col-muted, #5C6A73); font-size: 16px; margin-bottom: 16px; }
.small { font-size: 14px; color: var(--col-muted, #5C6A73); }
blockquote { margin: 0 0 16px; padding: 16px 18px; background: var(--col-primary-10, #EDF6FA); border-left: 4px solid var(--col-primary, #12354A); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; color: var(--col-ink, #1F2A33); }
strong { color: var(--col-ink, #1F2A33); }

/* ------------------------------
   GLOBAL LAYOUT (Flex-only)
   ------------------------------ */
.container { display: flex; width: 100%; justify-content: center; padding: 0 16px; }
.content-wrapper { display: flex; flex-direction: column; width: 100%; max-width: 1100px; gap: 16px; }
main { display: flex; flex-direction: column; gap: 24px; }
section { display: flex; width: 100%; background: transparent; }

/* Mandatory spacing class (provided exactly) */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Ensure sections have generous spacing even without .section class */
main > section { padding: 32px 0; }

/* ------------------------------
   HEADER & NAVIGATION
   ------------------------------ */
header { display: flex; width: 100%; background: var(--bg-surface, #FFFFFF); border-bottom: 1px solid #E6EEF2; position: sticky; top: 0; z-index: 50; }
header .content-wrapper { padding: 14px 0; }

/* Top bar layout */
.logo-link { display: flex; align-items: center; gap: 10px; color: var(--col-primary, #12354A); font-weight: 700; }
.logo-text { font-family: "Trebuchet MS", Arial, sans-serif; font-size: 20px; letter-spacing: 0.3px; }
.tagline { color: var(--col-muted, #5C6A73); font-size: 14px; margin-top: -4px; }

/* Main nav (hidden on mobile) */
.main-nav { display: none; align-items: center; gap: 14px; flex-wrap: wrap; }
.main-nav a { color: var(--col-ink, #1F2A33); padding: 8px 10px; border-radius: 8px; transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast); }
.main-nav a[aria-current="page"] { color: var(--col-primary, #12354A); background: var(--col-primary-10, #EDF6FA); }
.main-nav a:hover { background: var(--col-accent, #F4F6F8); text-decoration: none; }

/* CTA in nav */
.main-nav .cta-primary { color: #FFFFFF; background: var(--col-primary, #12354A); }
.main-nav .cta-primary:hover { background: #0F2D3F; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: flex; align-items: center; justify-content: center; margin-left: auto; width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--col-primary-10, #EDF6FA); color: var(--col-primary, #12354A); font-size: 20px; cursor: pointer; transition: transform var(--transition-fast), background var(--transition-fast); }
.mobile-menu-toggle:hover { transform: translateY(-1px); background: var(--col-primary-20, #DCECF4); }

/* Mobile menu overlay */
.mobile-menu { display: flex; flex-direction: column; position: fixed; inset: 0; background: #FFFFFF; transform: translateX(100%); transition: transform var(--transition-med); z-index: 120; padding: 20px; box-shadow: var(--shadow-soft); }
.mobile-menu[aria-hidden="false"] { transform: translateX(0%); }
.mobile-menu-close { display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 0; background: var(--col-accent, #F4F6F8); color: var(--col-ink, #1F2A33); margin-left: auto; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; margin-top: 16px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 12px; border-radius: 12px; background: var(--col-primary-10, #EDF6FA); color: var(--col-primary, #12354A); font-size: 18px; transition: background var(--transition-fast), transform var(--transition-fast); }
.mobile-nav a:hover { background: var(--col-primary-20, #DCECF4); text-decoration: none; transform: translateX(2px); }

/* ------------------------------
   HERO SECTION (soft pastel)
   ------------------------------ */
.hero { background: var(--col-primary-10, #EDF6FA); border-bottom: 1px solid #E6EEF2; }
.hero .content-wrapper { padding: 28px 0; }
.hero h1 { font-size: 28px; }
.hero .subheadline { font-size: 16px; }

/* CTA buttons */
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-primary, .cta-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; font-weight: 700; transition: transform var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast), color var(--transition-fast); border: 2px solid transparent; }
.cta-primary { background: var(--col-primary, #12354A); color: #FFFFFF; box-shadow: 0 4px 14px rgba(18,53,74,0.18); }
.cta-primary:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18,53,74,0.22); background: #0F2D3F; text-decoration: none; }
.cta-primary:active { transform: translateY(0); }
.cta-secondary { background: var(--col-secondary-10, #F6E9DF); color: var(--col-secondary, #AF5A1B); }
.cta-secondary:hover { background: #F2E2D6; text-decoration: none; }

/* ------------------------------
   TEXT & LIST SECTIONS
   ------------------------------ */
.text-section { display: flex; flex-direction: column; gap: 12px; color: var(--col-ink, #1F2A33); }
.text-section ul, .text-section ol { margin: 0 0 8px 18px; }
.text-section li { margin-bottom: 8px; }
.text-section a { color: var(--col-primary, #12354A); text-decoration: underline; }

/* Text-image section (available for mixed content) */
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.text-image-section > * { flex: 1 1 280px; }

/* Ordered steps with soft card feel */
.text-section ol { padding-left: 18px; }

/* ------------------------------
   CARDS, GRIDS & FEATURES (Flex-only)
   ------------------------------ */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: var(--bg-surface, #FFFFFF); border: 1px solid #EAEFF3; border-radius: var(--radius-lg); padding: 18px; box-shadow: var(--shadow-soft); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.content-grid > * { flex: 1 1 280px; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; background: var(--bg-surface, #FFFFFF); border: 1px solid #EAEFF3; border-radius: var(--radius-lg); padding: 16px; }

/* Testimonials — dark text on light pastel for readability */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #FFFFFF; border: 1px solid #E6EEF2; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); color: var(--col-ink, #1F2A33); }
.testimonial-card p { margin: 0; }

/* ------------------------------
   FOOTER
   ------------------------------ */
footer { display: flex; width: 100%; background: var(--col-accent, #F4F6F8); border-top: 1px solid #E6EEF2; }
footer .content-wrapper { padding: 24px 0; gap: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-nav a { color: var(--col-ink, #1F2A33); background: #FFFFFF; padding: 8px 10px; border-radius: 8px; border: 1px solid #E6EEF2; transition: background var(--transition-fast); }
.footer-nav a:hover { background: var(--col-primary-10, #EDF6FA); text-decoration: none; }

/* ------------------------------
   COOKIE CONSENT (banner + modal)
   ------------------------------ */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 130; display: flex; justify-content: center; padding: 10px 16px; }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 12px; width: 100%; max-width: 1100px; background: #FFFFFF; border: 1px solid #E6EEF2; border-radius: 14px; padding: 14px; box-shadow: var(--shadow-soft); }
.cookie-banner .cookie-text { color: var(--col-ink, #1F2A33); font-size: 14px; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.cookie-buttons .btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; font-weight: 700; transition: background var(--transition-fast), transform var(--transition-fast); }
.cookie-accept { background: var(--col-primary, #12354A); color: #FFFFFF; }
.cookie-accept:hover { background: #0F2D3F; transform: translateY(-1px); }
.cookie-reject { background: #FFFFFF; color: var(--col-ink, #1F2A33); border-color: #D9E3EA; }
.cookie-reject:hover { background: var(--col-accent, #F4F6F8); }
.cookie-settings { background: var(--col-secondary-10, #F6E9DF); color: var(--col-secondary, #AF5A1B); }
.cookie-settings:hover { background: #F2E2D6; }

/* Cookie preferences modal */
.cookie-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; background: rgba(18,53,74,0.35); z-index: 140; padding: 20px; }
.cookie-modal.is-open { display: flex; }
.cookie-modal-content { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 720px; background: #FFFFFF; border-radius: 16px; border: 1px solid #E6EEF2; padding: 20px; box-shadow: var(--shadow-soft); }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Simple toggle (checkbox-based) */
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--col-accent, #F4F6F8); border: 1px solid #E6EEF2; border-radius: 12px; padding: 10px 12px; }
.toggle .label { color: var(--col-ink, #1F2A33); font-weight: 600; }
.toggle-switch { width: 46px; height: 28px; background: #DEE8EE; border-radius: 20px; position: relative; transition: background var(--transition-fast); display: flex; align-items: center; padding: 3px; }
.toggle-switch::after { content: ""; width: 22px; height: 22px; background: #FFFFFF; border-radius: 50%; box-shadow: 0 2px 8px rgba(0,0,0,0.15); transform: translateX(0); transition: transform var(--transition-fast); }
.toggle-input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-input:checked + .toggle-switch { background: #9FD7B8; }
.toggle-input:checked + .toggle-switch::after { transform: translateX(18px); }

/* ------------------------------
   ACCESSIBILITY & STATES
   ------------------------------ */
[aria-current="page"], .active { font-weight: 700; }
button { font-family: inherit; }

/* ------------------------------
   RESPONSIVE (Mobile-first)
   ------------------------------ */
@media (min-width: 480px) {
  h1 { font-size: 34px; }
}

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

  .hero .content-wrapper { padding: 36px 0; }
  .hero h1 { font-size: 36px; }

  /* Show main navigation on tablet+ */
  .main-nav { display: flex; margin-left: auto; }
  .mobile-menu-toggle { display: none; }

  /* Text-image sections side by side */
  .text-image-section { flex-direction: row; align-items: center; }
}

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }

  header .content-wrapper { flex-direction: row; align-items: center; gap: 18px; }
  .tagline { margin: 0; }
}

/* ------------------------------
   UTILITIES & EXTRA FLEX PATTERNS
   ------------------------------ */
.card-content { display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.content-row { display: flex; flex-wrap: wrap; gap: 20px; }
.centered { display: flex; align-items: center; justify-content: center; }

/* ------------------------------
   PAGE-SPECIFIC SOFT PASTEL TOUCHES
   ------------------------------ */
/* Light, airy section backgrounds alternating for rhythm */
main > section:nth-of-type(2n) { background: #FFFFFF; }
main > section:nth-of-type(2n+1) { background: var(--col-accent, #F4F6F8); }

/* Provide inner spacing to section content */
main > section .content-wrapper { padding: 10px 0; }

/* Ensure minimum spacing between all cards and blocks */
main .content-wrapper > * + * { margin-top: 6px; }

/* Links inside footer/text blocks */
.text-section a:hover { color: #0F2D3F; }

/* ------------------------------
   HOVER & MICRO-INTERACTIONS
   ------------------------------ */
.card:hover, .feature-item:hover, .testimonial-card:hover { box-shadow: 0 10px 24px rgba(18,53,74,0.12); transform: translateY(-1px); transition: transform var(--transition-fast), box-shadow var(--transition-fast); }

/* ------------------------------
   PRINT BASICS
   ------------------------------ */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, footer { display: none !important; }
  main { padding: 0; }
}

/* ------------------------------
   REQUIRED FLEX SPACING PATTERNS (already used or ready)
   ------------------------------ */
/* Provided exactly as mandatory instructions */
.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; }

/* ------------------------------
   COLOR CONTRAST FOR TESTIMONIALS
   ------------------------------ */
/* Ensure readable dark text on light backgrounds */
.testimonial-card, .testimonial-card * { color: #15222B; }

/* ------------------------------
   NAV LINK SIZING (touch-friendly)
   ------------------------------ */
.main-nav a, .mobile-nav a { min-height: 40px; }

/* ------------------------------
   MISC BRAND EMPHASIS
   ------------------------------ */
header .logo-text { color: var(--col-primary, #12354A); }
footer .logo-text { color: var(--col-primary, #12354A); }

/* ------------------------------
   SAFETY & NO-OVERLAP GUARANTEES
   ------------------------------ */
/* Generous margins and gaps to prevent crowding across devices */
main > section + section { border-top: 0; }

/* ------------------------------
   REDUCED MOTION PREFERENCE
   ------------------------------ */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
