/* ================================
   Vintage Retro Theme CSS (Flex-only)
   Brand: Rentenkompass International
   ================================ */
/* ---------- CSS Reset & Normalize ---------- */
* { box-sizing: border-box; }
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video { margin: 0; padding: 0; border: 0; vertical-align: baseline; }
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section { display: block; }
body { line-height: 1; }
ol, ul { list-style: none; }
a { text-decoration: none; color: inherit; }
img { max-width: 100%; height: auto; display: block; }
button, input, select, textarea { font: inherit; }

/* ---------- Theme Variables (with fallbacks) ---------- */
:root {
  --primary: #123E66; /* deep vintage navy */
  --secondary: #2E6F5E; /* muted green */
  --accent: #F5F8FC; /* brand accent light */
  --ink: #2B2B2B; /* primary text */
  --ink-soft: #4A4A4A;
  --paper: #FAF6EF; /* warm paper */
  --parchment: #F4EDE1; /* vintage parchment */
  --sunset: #B35C2E; /* retro orange for highlights */
  --gold: #C59B35; /* vintage gold border */
  --muted-blue: #6C8AA6; /* accent text */
  --border: #CFC6B8; /* soft border */
  --shadow: rgba(18,62,102,0.08); /* soft navy shadow */
}

/* ---------- Base Typography ---------- */
html { font-size: 16px; }
body {
  color: var(--ink, #2B2B2B);
  background-color: var(--paper, #FAF6EF);
  font-family: Verdana, Geneva, Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--primary, #123E66); letter-spacing: 0.2px; }
h1 { font-size: 2.25rem; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 1.75rem; line-height: 1.3; margin-bottom: 16px; }
h3 { font-size: 1.25rem; line-height: 1.4; margin-bottom: 12px; }

p { font-size: 1rem; line-height: 1.65; color: var(--ink-soft, #4A4A4A); }
strong { color: var(--ink, #2B2B2B); font-weight: 700; }
small { font-size: 0.875rem; color: var(--ink-soft, #4A4A4A); }

/* Links */
a { color: var(--primary, #123E66); text-decoration: underline; text-decoration-color: rgba(18,62,102,0.25); text-underline-offset: 3px; transition: color 0.2s ease, text-decoration-color 0.2s ease; }
a:hover { color: var(--secondary, #2E6F5E); text-decoration-color: rgba(46,111,94,0.4); }

/* Focus visible */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--gold, #C59B35); outline-offset: 2px; }

/* ---------- Layout Containers (Flex-only) ---------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Mandatory spacing and 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: #FFF; border: 1px solid var(--border, #CFC6B8); border-radius: 10px; padding: 20px; box-shadow: 0 8px 20px var(--shadow, rgba(18,62,102,0.08)); }
.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: #FFF; border: 1px solid var(--border, #CFC6B8); border-radius: 12px; box-shadow: 0 8px 20px var(--shadow, rgba(18,62,102,0.08)); color: var(--ink, #2B2B2B); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ---------- Header & Navigation ---------- */
header { background: var(--parchment, #F4EDE1); border-bottom: 2px solid var(--gold, #C59B35); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 12px; padding-bottom: 12px; }
.logo img { height: 42px; width: auto; filter: saturate(0.9) contrast(1); }

/* Desktop nav hidden by default (mobile-first) */
.main-nav { display: none; gap: 16px; align-items: center; }
.main-nav a { font-weight: 600; font-size: 0.95rem; color: var(--primary, #123E66); padding: 8px 10px; border-radius: 6px; border: 1px solid transparent; transition: background-color 0.2s ease, border-color 0.2s ease; }
.main-nav a:hover { background-color: var(--accent, #F5F8FC); border-color: var(--border, #CFC6B8); }

/***** Mobile Menu *****/
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--gold, #C59B35); background: #FFF; color: var(--primary, #123E66); cursor: pointer; transition: transform 0.2s ease, background 0.2s ease; }
.mobile-menu-toggle:hover { transform: translateY(-1px); background: var(--accent, #F5F8FC); }

.mobile-menu { position: fixed; inset: 0; background: rgba(0,0,0,0.4); display: flex; align-items: stretch; justify-content: flex-end; transform: translateX(100%); transition: transform 0.35s ease; z-index: 9999; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mobile-nav { width: 85%; max-width: 360px; background: var(--parchment, #F4EDE1); border-left: 3px solid var(--gold, #C59B35); display: flex; flex-direction: column; padding: 20px; gap: 12px; overflow-y: auto; }
.mobile-menu-close { align-self: flex-end; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--gold, #C59B35); background: #FFF; color: var(--primary, #123E66); cursor: pointer; margin-bottom: 10px; }
.mobile-nav a { display: flex; padding: 12px 10px; border-radius: 8px; color: var(--ink, #2B2B2B); background: #FFF; border: 1px solid var(--border, #CFC6B8); font-weight: 600; }
.mobile-nav a:hover { background: var(--accent, #F5F8FC); }

/* ---------- Hero ---------- */
.hero { background: #FFF; border-bottom: 1px solid var(--border, #CFC6B8); }
.hero .container { padding-top: 32px; padding-bottom: 32px; }
.hero h1 { position: relative; }
.hero h1:after { content: ""; display: block; height: 6px; width: 120px; background: var(--gold, #C59B35); margin-top: 10px; border-radius: 3px; }
.hero p { max-width: 65ch; }

/* ---------- Buttons ---------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; border: 2px solid var(--primary, #123E66); background: #FFF; color: var(--primary, #123E66); font-weight: 700; letter-spacing: 0.2px; transition: transform 0.15s ease, background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; text-decoration: none; }
.button.primary { background: var(--primary, #123E66); color: #FFF; border-color: var(--primary, #123E66); box-shadow: 0 6px 0 rgba(18,62,102,0.2); }
.button.secondary { background: #FFF; color: var(--secondary, #2E6F5E); border-color: var(--secondary, #2E6F5E); box-shadow: 0 6px 0 rgba(46,111,94,0.18); }
.button:hover { transform: translateY(-2px); }
.button:active { transform: translateY(0); box-shadow: none; }

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

.text-link { font-weight: 700; color: var(--secondary, #2E6F5E); text-decoration: underline; text-underline-offset: 3px; }
.text-link:hover { color: var(--primary, #123E66); }

/* ---------- Lists & Retro Badges ---------- */
ul, ol { display: flex; flex-direction: column; gap: 10px; padding-left: 0; }
ul li, ol li { position: relative; padding-left: 26px; }
ul li:before, ol li:before { content: "◆"; position: absolute; left: 0; top: 0; color: var(--gold, #C59B35); font-size: 0.8rem; line-height: 1.6; }

.trust-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.trust-badges li { padding: 8px 12px; background: var(--parchment, #F4EDE1); color: var(--ink, #2B2B2B); border: 1px solid var(--gold, #C59B35); border-radius: 16px; font-size: 0.9rem; }

/* ---------- Text + Image Sections ---------- */
.text-image-section > * { flex: 1 1 320px; }
.text-image-section img { border: 6px solid #FFF; border-radius: 12px; box-shadow: 0 10px 24px var(--shadow, rgba(18,62,102,0.08)); outline: 1px solid var(--border, #CFC6B8); }

/* ---------- Testimonials (high contrast, light bg) ---------- */
.testimonial-card p { color: var(--ink, #2B2B2B); }
.testimonial-card strong { color: var(--primary, #123E66); }

/* ---------- Footer ---------- */
footer { background: var(--primary, #123E66); color: #FFF; border-top: 3px solid var(--gold, #C59B35); margin-top: 40px; }
footer .container { padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { display: flex; flex-wrap: wrap; gap: 24px; }
footer h3 { color: #FFF; }
footer p, footer a { color: #F7F7F7; }
footer nav { display: flex; flex-direction: column; gap: 8px; }
footer a { text-decoration: underline; text-decoration-color: rgba(255,255,255,0.35); text-underline-offset: 3px; }
footer a:hover { color: var(--accent, #F5F8FC); }

/* ---------- Generic Cards & Micro-interactions ---------- */
.card:hover, .testimonial-card:hover { transform: translateY(-2px); transition: transform 0.2s ease, box-shadow 0.2s ease; box-shadow: 0 12px 26px var(--shadow, rgba(18,62,102,0.12)); }

/* ---------- Tables (if any appear in legal pages) ---------- */
table { width: 100%; border-collapse: collapse; border: 1px solid var(--border, #CFC6B8); }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border, #CFC6B8); }
th { background: var(--parchment, #F4EDE1); font-family: Georgia, 'Times New Roman', serif; color: var(--primary, #123E66); }

/* ---------- Forms (basic) ---------- */
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; padding: 12px 14px; background: #FFF; color: var(--ink, #2B2B2B); border: 1px solid var(--border, #CFC6B8); border-radius: 8px; }
label { font-weight: 700; color: var(--primary, #123E66); margin-bottom: 6px; display: inline-flex; }

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 12px; align-items: center; justify-content: center; background: #FFF; color: var(--ink, #2B2B2B); border-top: 3px solid var(--gold, #C59B35); box-shadow: 0 -10px 24px rgba(0,0,0,0.06); padding: 16px 20px; z-index: 9998; transform: translateY(100%); transition: transform 0.35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { max-width: 900px; text-align: center; }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-btn { padding: 10px 14px; border-radius: 8px; border: 2px solid var(--primary, #123E66); background: #FFF; color: var(--primary, #123E66); font-weight: 700; }
.cookie-btn.accept { background: var(--secondary, #2E6F5E); color: #FFF; border-color: var(--secondary, #2E6F5E); }
.cookie-btn.reject { background: #FFF; color: var(--sunset, #B35C2E); border-color: var(--sunset, #B35C2E); }
.cookie-btn.settings { background: #FFF; }
.cookie-btn:hover { transform: translateY(-1px); transition: transform 0.15s ease; }

/* Cookie Preferences Modal */
.cookie-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 10000; }
.cookie-modal-overlay.open { display: flex; }
.cookie-modal { width: 92%; max-width: 640px; background: var(--parchment, #F4EDE1); border: 2px solid var(--gold, #C59B35); border-radius: 12px; box-shadow: 0 16px 36px rgba(0,0,0,0.2); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.cookie-modal h3 { margin-bottom: 4px; }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; background: #FFF; border: 1px solid var(--border, #CFC6B8); border-radius: 8px; }
.cookie-modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* ---------- Utilities ---------- */
.hide { display: none !important; }
.mute { color: var(--ink-soft, #4A4A4A); }
.center { text-align: center; }

/* ---------- Page-specific subtle accents ---------- */
/* Legal/Policy pages: ensure generous spacing for readability */
main > section { padding: 28px 0; }
main > section .container { gap: 18px; }

/* ---------- Responsive ---------- */
@media (min-width: 769px) {
  .hero .container { padding-top: 48px; padding-bottom: 48px; }
  .content-wrapper { gap: 24px; }
  .cta-group { gap: 16px; }
  h1 { font-size: 2.75rem; }
  h2 { font-size: 2rem; }
  h3 { font-size: 1.35rem; }
  /* Header: show desktop nav */
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
  /* Footer layout */
  footer .content-wrapper { flex-direction: row; }
}

@media (min-width: 992px) {
  .text-image-section { flex-wrap: nowrap; }
  .text-image-section > * { flex: 1 1 0; }
}

@media (max-width: 768px) {
  .text-image-section { flex-direction: column; align-items: center; }
  .hero h1:after { width: 90px; }
}

/* ---------- Additional Vintage Details (subtle, solid colors) ---------- */
/* Section frames to evoke retro prints */
section .content-wrapper {
  background: #FFF;
  border: 1px solid var(--border, #CFC6B8);
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 10px 24px var(--shadow, rgba(18,62,102,0.08));
}
/* Avoid heavy decoration in hero to keep hierarchy clear */
.hero .content-wrapper { background: transparent; border: none; box-shadow: none; padding: 0; }

/* ---------- Ensure gaps between content blocks ---------- */
.content-wrapper > * + * { margin-top: 0; }
main .container { gap: 24px; }

/* ---------- Accessibility: High-contrast in testimonials ---------- */
/* Already light background with dark text; ensure links readable */
.testimonial-card a { color: var(--primary, #123E66); text-decoration: underline; }

/* ---------- Navigation link spacing enhancement ---------- */
.main-nav a + a { margin-left: 6px; }

/* ---------- Lists in legal pages headings spacing ---------- */
.content-wrapper h3 + p, .content-wrapper h3 + ul { margin-top: 6px; }

/* ---------- Misc components mentioned in spec ---------- */
/* features, cards, grids already flex-based with gaps >=20px */
/* No absolute positioning for content elements is used (only decorative EA) */
