/* =============================
   Luminous Voyage Rentenberatung
   Geometric Structured UI - style.css
   Mobile-first, Flexbox-only layouts
   ============================= */

/* ===== CSS RESET / NORMALIZE ===== */
* { box-sizing: border-box; }
*::before,*::after { box-sizing: inherit; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg, video { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul,ol { margin: 0 0 0 1.2rem; padding: 0; }

/* ===== THEME VARIABLES (with fallbacks) ===== */
:root {
  --primary: #1F3B5C; /* brand primary */
  --secondary: #2E7D6B; /* brand secondary */
  --accent: #F4F6F9; /* brand accent */
  --bg: #FFFFFF;
  --text: #1B2A3A; /* deep neutral for readability */
  --muted: #5E7186; /* muted text */
  --line: #D6DEE7; /* separators */
  --shadow: rgba(10, 22, 40, 0.06);
  --shadow-strong: rgba(10, 22, 40, 0.12);
}

/* ===== BASE TYPOGRAPHY ===== */
body {
  font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  color: var(--text, #1B2A3A);
  background: var(--bg, #FFFFFF);
  line-height: 1.65;
  font-size: 16px;
}

h1, h2, h3, h4, h5, h6 {
  font-family: Georgia, "Times New Roman", Times, serif;
  color: var(--primary, #1F3B5C);
  line-height: 1.2;
  margin: 0 0 12px 0;
  letter-spacing: 0.4px; /* precise, structured */
}

h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }

p { margin: 0 0 14px 0; }
small { font-size: 0.875rem; color: var(--muted, #5E7186); }
.subtitle { color: var(--muted, #5E7186); font-size: 18px; }

/* Heading accent bar (geometric) */
.content-wrapper h2, section h2 {
  position: relative;
  padding-left: 16px;
}
.content-wrapper h2::before, section h2::before {
  content: "";
  position: absolute;
  left: 0; top: 4px; bottom: 4px;
  width: 6px;
  background: var(--secondary, #2E7D6B);
}

/* ===== LAYOUT UTILS / CONTAINERS ===== */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex; /* flexbox only */
  flex-direction: column;
}

.content-wrapper {
  display: flex; /* flexbox only */
  flex-direction: column;
  gap: 24px;
}

/* 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: 2px solid var(--line, #D6DEE7); border-radius: 8px; box-shadow: 0 6px 12px var(--shadow, rgba(10,22,40,0.06)); padding: 20px; }
.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 rhythm even without .section class */
section { padding: 40px 0; }
section + section { border-top: 1px solid var(--line, #D6DEE7); }

/* ===== HEADER & NAV ===== */
header {
  background: #fff;
  border-bottom: 2px solid var(--line, #D6DEE7);
  position: sticky; top: 0; z-index: 50;
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px; padding-bottom: 12px;
}
.logo img { height: 44px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a {
  padding: 10px 14px;
  border: 2px solid transparent;
  border-radius: 6px;
  color: var(--primary, #1F3B5C);
  transition: background-color .2s ease, color .2s ease, transform .2s ease, border-color .2s ease;
}
.main-nav a:hover, .main-nav a:focus-visible {
  background: var(--accent, #F4F6F9);
  border-color: var(--line, #D6DEE7);
  transform: translateY(-1px);
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; /* flexbox */
  align-items: center; justify-content: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 8px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  border: 2px solid transparent;
  transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.btn:focus-visible { outline: 2px solid var(--secondary, #2E7D6B); outline-offset: 2px; }
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--primary, #1F3B5C);
  color: #fff;
  border-color: var(--primary, #1F3B5C);
  box-shadow: 0 6px 14px var(--shadow-strong, rgba(10,22,40,.12));
}
.btn-primary:hover { background: #17324D; border-color: #17324D; }

.btn-secondary {
  background: var(--secondary, #2E7D6B);
  color: #fff!important;
  border-color: var(--secondary, #2E7D6B);
}
.btn-secondary:hover { background: #256857; border-color: #256857; }

.btn-link {
  background: transparent;
  color: var(--secondary, #2E7D6B);
  border-color: transparent;
  padding-left: 0; padding-right: 0;
}
.btn-link:hover { color: #225F50; text-decoration: underline; }

/* ===== HERO ===== */
.hero {
  background: var(--accent, #F4F6F9);
  position: relative;
  overflow: hidden;
  padding: 56px 0;
  border-bottom: 2px solid var(--line, #D6DEE7);
}
/* Geometric decorative bands */
.hero::before, .hero::after {
  content: ""; position: absolute; z-index: 0;
  width: 220px; height: 220px; opacity: .18;
  background: var(--secondary, #2E7D6B);
  transform: rotate(45deg);
}
.hero::before { left: -80px; top: -80px; }
.hero::after { right: -80px; bottom: -80px; background: var(--primary, #1F3B5C); }
.hero .container { position: relative; z-index: 1; }
.hero h1 { font-size: 28px; }
.hero .cta-group { display: flex; flex-wrap: wrap; gap: 12px; }
.language-switcher { font-size: 14px; letter-spacing: 1px; color: var(--muted, #5E7186); }

/* Trust icons - geometric list */
.trust-icons ul { list-style: none; display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding: 0; margin: 8px 0 0 0; }
.trust-icons li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 2px solid var(--line, #D6DEE7); border-radius: 8px; background: #fff; }
.trust-icons img { width: 20px; height: 20px; }

/* ===== TEXT BLOCKS & LISTS ===== */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section ul { display: flex; flex-direction: column; gap: 8px; }
.text-section ol { display: flex; flex-direction: column; gap: 8px; padding-left: 1.2rem; }
.text-section li { padding-left: 2px; }

.note { background: var(--accent, #F4F6F9); border-left: 6px solid var(--secondary, #2E7D6B); padding: 14px 16px; border-radius: 6px; color: var(--text, #1B2A3A); }

/* ===== TESTIMONIALS ===== */
.testimonial-card {
  background: #FAFCFE; /* very light for contrast */
  border: 2px solid var(--line, #D6DEE7);
  border-radius: 10px;
  box-shadow: 0 8px 16px var(--shadow, rgba(10,22,40,0.06));
  color: var(--text, #1B2A3A);
}
.testimonial-card p { margin: 0; }
.testimonial-card p + p { margin-top: 8px; }

/* ===== MAP PLACEHOLDER ===== */
.map-placeholder { border: 2px dashed var(--line, #D6DEE7); padding: 16px; border-radius: 8px; background: #fff; color: var(--muted, #5E7186); }

/* ===== FOOTER ===== */
footer { background: var(--primary, #1F3B5C); color: #fff; margin-top: 40px; }
footer .container { padding-top: 28px; padding-bottom: 28px; }
footer .content-wrapper { flex-direction: column; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.footer-nav a { color: #E9EFF6; padding: 8px 10px; border: 2px solid transparent; border-radius: 6px; }
.footer-nav a:hover, .footer-nav a:focus-visible { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.18); }

/* ===== MOBILE NAVIGATION ===== */
.mobile-menu-toggle {
  position: fixed; right: 16px; bottom: 20px;
  width: 52px; height: 52px;
  border-radius: 10px;
  background: #fff;
  color: var(--primary, #1F3B5C);
  border: 2px solid var(--line, #D6DEE7);
  box-shadow: 0 10px 20px var(--shadow, rgba(10,22,40,0.06));
  z-index: 70;
  display: inline-flex; align-items: center; justify-content: center;
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-2px); background: var(--accent, #F4F6F9); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 80;
  background: #fff;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column; /* flexbox */
  border-left: 2px solid var(--line, #D6DEE7);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; margin: 14px; width: 44px; height: 44px;
  border-radius: 8px; border: 2px solid var(--line, #D6DEE7);
  color: var(--primary, #1F3B5C);
}
.mobile-nav { display: flex; flex-direction: column; gap: 6px; padding: 10px 20px 30px; }
.mobile-nav a {
  padding: 14px 12px; border-radius: 8px; border: 2px solid var(--line, #D6DEE7);
  color: var(--primary, #1F3B5C);
}
.mobile-nav a:hover { background: var(--accent, #F4F6F9); }

/* Hide/show navs depending on viewport */
@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* Body lock when menu open (JS toggles .menu-open) */
body.menu-open { overflow: hidden; }

/* ===== COOKIE CONSENT BANNER ===== */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  background: #fff; color: var(--text, #1B2A3A);
  border-top: 2px solid var(--line, #D6DEE7);
  box-shadow: 0 -8px 20px var(--shadow, rgba(10,22,40,0.06));
  transform: translateY(100%);
  transition: transform .3s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-inner {
  display: flex; flex-direction: column; gap: 14px;
  padding: 16px 20px; max-width: 1200px; margin: 0 auto;
}
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 14px; }
.btn-accept { background: var(--secondary, #2E7D6B); color: #fff; border-color: var(--secondary, #2E7D6B); }
.btn-accept:hover { background: #256857; border-color: #256857; }
.btn-reject { background: #fff; color: var(--primary, #1F3B5C); border: 2px solid var(--primary, #1F3B5C); }
.btn-reject:hover { background: var(--accent, #F4F6F9); }
.btn-settings { background: #fff; color: var(--secondary, #2E7D6B); border: 2px solid var(--secondary, #2E7D6B); }
.btn-settings:hover { background: var(--accent, #F4F6F9); }

/* Cookie modal + overlay */
.cookie-overlay {
  position: fixed; inset: 0; z-index: 95;
  background: rgba(10,22,40,0.5);
  display: none; /* toggled via .open */
}
.cookie-overlay.open { display: flex; }
.cookie-modal {
  margin: auto; width: 92%; max-width: 720px;
  background: #fff; border: 2px solid var(--line, #D6DEE7); border-radius: 12px;
  box-shadow: 0 20px 40px rgba(10,22,40,0.24);
  display: flex; flex-direction: column; gap: 16px; padding: 20px;
}
.cookie-modal .cookie-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-list { display: flex; flex-direction: column; gap: 10px; }
.cookie-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 2px solid var(--line, #D6DEE7); border-radius: 8px; }
.cookie-item .toggle { width: 52px; height: 30px; border: 2px solid var(--line, #D6DEE7); border-radius: 20px; background: var(--accent, #F4F6F9); position: relative; }
.cookie-item .toggle::after { content: ""; position: absolute; width: 20px; height: 20px; border-radius: 50%; background: var(--line, #D6DEE7); left: 4px; top: 50%; transform: translateY(-50%); transition: left .2s ease, background-color .2s ease; }
.cookie-item.enabled .toggle { border-color: var(--secondary, #2E7D6B); }
.cookie-item.enabled .toggle::after { left: 26px; background: var(--secondary, #2E7D6B); }

/* ===== ACCESSIBILITY STATES ===== */
:focus-visible { outline: 2px solid var(--secondary, #2E7D6B); outline-offset: 2px; }

/* ===== GEOMETRIC MICRO-DETAILS ===== */
/* Sharp card edges, subtle shadow */
.card, .testimonial-card, .map-placeholder { border-radius: 8px; box-shadow: 0 6px 12px var(--shadow, rgba(10,22,40,0.06)); }

/* ===== RESPONSIVE ADJUSTMENTS ===== */
@media (min-width: 576px) {
  h1 { font-size: 34px; }
  .hero h1 { font-size: 32px; }
}

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

  .content-wrapper { gap: 28px; }
  .text-image-section { flex-direction: row; }
  .hero { padding: 72px 0; }
  .hero .cta-group { gap: 16px; }
}

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  .container { padding: 0 24px; }
  header .container { padding-top: 14px; padding-bottom: 14px; }
}

/* ===== LINKS IN CONTENT ===== */
.text-section a { color: var(--secondary, #2E7D6B); border-bottom: 2px solid currentColor; padding-bottom: 2px; transition: color .18s ease, border-color .18s ease; }
.text-section a:hover { color: #225F50; border-color: #225F50; }

/* ===== FLEX GRIDS (SIMULATED, NO CSS GRID) ===== */
/* Content grid cards spacing */
.content-grid > * { flex: 1 1 260px; min-width: 260px; }
.card-container > .card { flex: 1 1 280px; min-width: 280px; }

/* ===== TOP/BOTTOM UTILITIES ===== */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.hidden { display: none !important; }

/* ===== ADDITIONAL STRUCTURAL STYLES FOR GIVEN MARKUP ===== */
/* Header CTA button spacing on mobile */
header .btn { display: none; }
@media (min-width: 992px) { header .btn { display: inline-flex; } }

/* Footer CTA button style tweak */
footer .btn-primary { background: #fff; color: var(--primary, #1F3B5C); border-color: #fff; }
footer .btn-primary:hover { background: #EAF0F6; border-color: #EAF0F6; }

/* Lists inside sections - precise spacing */
section ul, section ol { margin-top: 0; margin-bottom: 0; }

/* ===== SPECIFIC PAGE MODULES (based on provided HTML) ===== */
/* FAQ headings spacing */
.text-section h3 { margin-top: 8px; color: var(--primary, #1F3B5C); }

/* CTA groups generic */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer stack on mobile, can row-align on wider */
@media (min-width: 768px) {
  footer .content-wrapper { flex-direction: row; justify-content: space-between; align-items: flex-start; }
}

/* ===== PRINT BASICS ===== */
@media print {
  .mobile-menu-toggle, .mobile-menu, .cookie-banner, .cookie-overlay { display: none !important; }
  a { text-decoration: underline; }
  header { position: static; }
}

/* ===== END ===== */
