/* =========================
   Reset & Base Normalize
   ========================= */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #2A2A2A; background: #FFF8F3; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: #0D3B66; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 3px solid rgba(200,90,30,0.6); outline-offset: 2px; border-radius: 8px; }

/* =========================
   Theme Tokens
   ========================= */
:root {
  --brand-primary: #0D3B66; /* deep trust blue */
  --brand-secondary: #2E7D6D; /* calm teal */
  --brand-accent: #F5F7FA; /* light neutral */
  --warm-bg: #FFF8F3; /* page background */
  --warm-50: #FFF5EC; /* subtle hero wash */
  --warm-100: #FFF1E6; /* section surface */
  --warm-200: #FFE3D3; /* soft border */
  --surface: #FFFFFF; /* cards + modals */
  --text: #2A2A2A; /* primary text */
  --muted: #6B5E55; /* warm muted text */
  --cta: #C85A1E; /* warm friendly orange */
  --cta-hover: #A84B18; /* darker hover */
  --radius: 12px; --radius-sm: 8px; --radius-lg: 18px;
  --shadow-soft: 0 8px 24px rgba(13,59,102,0.10);
  --shadow-subtle: 0 3px 10px rgba(13,59,102,0.08);
  --shadow-strong: 0 14px 32px rgba(13,59,102,0.18);
}

/* =========================
   Typography
   ========================= */
h1, h2, h3, h4, h5, h6 { font-family: Georgia, 'Times New Roman', serif; color: var(--brand-primary); line-height: 1.25; margin: 0 0 14px 0; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 20px; }
p { margin: 0 0 14px 0; color: var(--text); }
small, .small { font-size: 14px; color: var(--muted); }
ul, ol { margin: 0 0 16px 18px; }
ul, ol, dl { color: var(--text); }
dt { font-weight: bold; margin-top: 12px; color: var(--brand-primary); }
dd { margin: 6px 0 12px 0; color: var(--muted); }

@media (min-width: 600px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 22px; }
  body { font-size: 17px; }
}
@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 24px; }
  body { font-size: 18px; }
}

/* =========================
   Layout Helpers (Flex-only)
   ========================= */
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; 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; }

/* Responsive alignment rule for text-image sections */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

/* =========================
   Header & Navigation
   ========================= */
header { background: var(--surface); box-shadow: 0 2px 10px rgba(13,59,102,0.06); position: relative; z-index: 50; }
.main-nav { display: none; align-items: center; flex-wrap: wrap; gap: 12px; padding: 12px 20px; }
.main-nav a { padding: 8px 10px; color: var(--brand-primary); border-radius: var(--radius-sm); transition: background-color .2s ease, color .2s ease, box-shadow .2s ease; }
.main-nav a:hover { background: var(--warm-100); box-shadow: var(--shadow-subtle); text-decoration: none; }
.main-nav a:first-child { margin-right: auto; padding: 0; }
.main-nav img { height: 40px; width: auto; }

/* Mobile menu toggle */
.mobile-menu-toggle { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 10px 16px; border: none; background: var(--warm-100); color: var(--brand-primary); border-radius: 11px; box-shadow: var(--shadow-subtle); cursor: pointer; transition: transform .2s ease, background-color .2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); background: #FFE9D9; }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0; background: var(--surface); display: flex; flex-direction: column; gap: 16px; padding: 16px; transform: translateX(100%); transition: transform .35s ease; z-index: 9999; box-shadow: var(--shadow-strong); }
.mobile-menu.open, .mobile-menu.active, .mobile-menu[aria-hidden="false"] { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 44px; height: 44px; border: none; background: var(--warm-100); color: var(--brand-primary); border-radius: 11px; box-shadow: var(--shadow-subtle); cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a { display: flex; align-items: center; padding: 14px 12px; border-radius: var(--radius); color: var(--brand-primary); background: transparent; transition: background-color .2s ease, transform .2s ease; }
.mobile-nav a:hover { background: var(--warm-100); transform: translateX(2px); text-decoration: none; }

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

/* =========================
   Hero Sections
   ========================= */
.hero { background: var(--warm-50); padding: 48px 0; border-bottom: 1px solid var(--warm-200); }
.hero .container { gap: 0; }
.hero .content-wrapper { align-items: flex-start; gap: 18px; }
.hero p { color: var(--muted); max-width: 70ch; }

/* =========================
   Lists & Content blocks
   ========================= */
.content-wrapper ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 10px; }
.content-wrapper ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 10px; }
.content-wrapper li { color: var(--text); }

/* Iconed list items */
.content-wrapper li, .text-section li, footer li { display: flex; align-items: center; gap: 10px; }
.content-wrapper li img, .text-section li img, footer li img { width: 20px; height: 20px; flex-shrink: 0; }

/* Supporting points with warm bullets */
.supporting-points { display: flex; flex-direction: column; gap: 8px; }
.supporting-points li { position: relative; padding-left: 0; }
.supporting-points li::before { content: "•"; color: var(--cta); margin-right: 8px; font-weight: bold; }

/* Trust badges row */
.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; color: var(--muted); font-size: 14px; }

/* =========================
   Buttons
   ========================= */
.button-primary, .button-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: 999px; border: 2px solid transparent; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .1s ease; white-space: nowrap; }
.button-primary { background: var(--cta); color: #FFFFFF; box-shadow: var(--shadow-subtle); }
.button-primary:hover { background: var(--cta-hover); color: #FFFFFF; box-shadow: var(--shadow-soft); text-decoration: none; transform: translateY(-1px); }
.button-primary:active { transform: translateY(0); }
.button-secondary { background: #FFE9D9; color: var(--cta); border-color: #FFD4BF; }
.button-secondary:hover { background: #FFD4BF; color: var(--cta-hover); text-decoration: none; box-shadow: var(--shadow-subtle); }

.cta-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================
   Cards & Testimonials
   ========================= */
.card { background: var(--surface); border: 1px solid var(--warm-200); border-radius: var(--radius); box-shadow: var(--shadow-subtle); padding: 18px; }
.testimonial-card { background: #FFFFFF; border: 1px solid var(--warm-200); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.testimonial-card p { margin: 0; color: var(--text); }
.testimonial-card strong { color: var(--brand-primary); }

/* =========================
   Text Sections
   ========================= */
.text-section { display: flex; flex-direction: column; gap: 14px; background: var(--surface); border: 1px solid var(--warm-200); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-subtle); }

/* =========================
   Generic Sections
   ========================= */
section { display: flex; padding: 32px 0; }
section .container { gap: 10px; }
section .content-wrapper { background: transparent; padding: 0; }

/* Highlighted neutral sections */
section:nth-of-type(odd):not(.hero) { background: #FFFDFB; }

/* =========================
   Footer
   ========================= */
footer { background: var(--brand-primary); color: #FFFFFF; padding: 32px 0; margin-top: 20px; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 12px; }
footer a { color: #FFFFFF; opacity: 0.95; }
footer a:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.footer-links, .legal-links { display: flex; flex-wrap: wrap; gap: 12px; }

/* =========================
   Mobile-friendly spacing
   ========================= */
@media (min-width: 768px) {
  .hero { padding: 64px 0; }
  .content-wrapper { gap: 18px; }
}

/* =========================
   Strong contrast for reviews/testimonials (requirement)
   ========================= */
.testimonial-card, .testimonial-card p, .testimonial-card strong { background: #FFFFFF; color: #1E1E1E; }

/* =========================
   Cookie Consent Banner & Modal
   ========================= */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: var(--surface); border-top: 3px solid var(--warm-200); box-shadow: 0 -8px 24px rgba(13,59,102,0.12); padding: 16px; display: flex; flex-direction: column; gap: 12px; z-index: 10000; transform: translateY(110%); transition: transform .35s ease; }
.cookie-banner.show, .cookie-banner.active { transform: translateY(0); }
.cookie-banner .cookie-row { display: flex; flex-direction: column; gap: 12px; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .button-primary { background: var(--cta); }
.cookie-banner .button-secondary { background: #FFE9D9; color: var(--cta); border-color: #FFD4BF; }
.cookie-banner .button-tertiary { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 999px; background: var(--brand-accent); color: var(--brand-primary); border: 2px solid transparent; transition: background-color .2s ease; }
.cookie-banner .button-tertiary:hover { background: #E8EEF6; text-decoration: none; }

.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: none; z-index: 10001; }
.cookie-overlay.show, .cookie-overlay.active { display: flex; }
.cookie-modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -40%); background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--warm-200); box-shadow: var(--shadow-strong); width: min(92%, 720px); padding: 20px; z-index: 10002; display: none; flex-direction: column; gap: 14px; }
.cookie-modal.show, .cookie-modal.active { display: flex; transform: translate(-50%, -50%); transition: transform .25s ease; }
.cookie-modal .cookie-modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .cookie-modal-body { display: flex; flex-direction: column; gap: 10px; }
.cookie-modal .cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--brand-accent); border-radius: var(--radius); padding: 12px; }
.cookie-modal .cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* =========================
   Utilities
   ========================= */
.badge { display: inline-flex; align-items: center; padding: 6px 10px; background: var(--warm-100); color: var(--cta); border: 1px solid var(--warm-200); border-radius: 999px; font-size: 14px; }
.muted { color: var(--muted); }

/* =========================
   Page-specific light enhancements
   ========================= */
/* Index & shared hero CTAs already covered */

/* Link clusters in footers and headers */
.footer-links a, .legal-links a, .main-nav a { transition: color .2s ease, background-color .2s ease, box-shadow .2s ease; }

/* =========================
   Tables (if any appear in Ratgeber later)
   ========================= */
.table { display: flex; flex-direction: column; width: 100%; gap: 8px; }
.table-row { display: flex; flex-wrap: wrap; gap: 10px; padding: 10px; background: var(--surface); border: 1px solid var(--warm-200); border-radius: var(--radius-sm); }
.table-cell { display: flex; align-items: center; flex: 1 1 160px; }

/* =========================
   Ensure adequate gaps between sections
   ========================= */
main { display: flex; flex-direction: column; gap: 20px; }

/* =========================
   Strong hover states for links in content
   ========================= */
.content-wrapper a:not(.button-primary):not(.button-secondary) { color: var(--brand-secondary); }
.content-wrapper a:not(.button-primary):not(.button-secondary):hover { color: var(--cta-hover); }

/* =========================
   Forms (future-proof)
   ========================= */
.input, input[type="text"], input[type="email"], textarea, select { width: 100%; padding: 12px 14px; border: 1px solid var(--warm-200); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); transition: box-shadow .2s ease, border-color .2s ease; }
.input:focus, input[type="text"]:focus, input[type="email"]:focus, textarea:focus, select:focus { border-color: var(--cta); box-shadow: 0 0 0 4px rgba(200,90,30,0.15); outline: none; }

/* =========================
   Make headings and CTA areas feel warm & friendly
   ========================= */
h1, h2 { text-shadow: 0 1px 0 rgba(255,255,255,0.4); }

/* =========================
   Spacing scale utilities (optional)
   ========================= */
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.gap-20 { display: flex; gap: 20px; }

/* =========================
   Desktop enhancements
   ========================= */
@media (min-width: 992px) {
  .hero .content-wrapper { max-width: 860px; }
  .content-grid { justify-content: flex-start; }
}

/* =========================
   Accessibility & Contrast tweaks
   ========================= */
button, .button-primary, .button-secondary, .button-tertiary { cursor: pointer; }
button:disabled, .button-primary:disabled, .button-secondary:disabled { opacity: .6; cursor: not-allowed; }

/* =========================
   Compliance with Flex-only requirement
   (All layout containers above use display:flex; No CSS Grid or Columns used)
   ========================= */
