/* =============================
   LumenArc Rentenkompass
   Vintage_Retro Theme CSS (Flexbox-only)
   ============================= */

/* --------- CSS Reset & Normalize --------- */
* { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, img, nav, header, footer, main, section { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, video { max-width: 100%; height: auto; display: block; }
ul, ol { list-style-position: outside; }
a { text-decoration: none; color: inherit; }
button { font: inherit; cursor: pointer; background: none; border: none; }
:focus { outline: none; }

/* --------- Root Variables (Brand + Vintage) --------- */
:root {
  --color-primary: #0B3A5B;  /* Brand navy-teal */
  --color-secondary: #2E7D6A; /* Brand green-teal */
  --color-accent: #F5F7FA;   /* Brand light */
  --color-cream: #F8F3E7;    /* Vintage paper */
  --color-paper: #FFF8E6;    /* Vintage warm background */
  --color-gold: #C49A6C;     /* Vintage brass/gold */
  --color-brown: #6B4E3D;    /* Vintage brown typography accent */
  --color-rust: #8C3C2F;     /* Vintage rust for alerts/links hover */
  --color-ink: #2A2A2A;      /* Text ink */
  --color-muted: #6E6E6E;    /* Muted text */
  --color-border: #D8C7A6;   /* Sepia border */
  --shadow-soft: 0 2px 0 rgba(0,0,0,0.06), 0 10px 20px rgba(11,58,91,0.04);
  --shadow-card: 0 1px 0 rgba(0,0,0,0.04), 0 12px 18px rgba(0,0,0,0.06);
  --radius-s: 6px; --radius-m: 10px; --radius-l: 16px;
  --font-display: Georgia, "Times New Roman", serif;
  --font-body: Verdana, Geneva, Tahoma, sans-serif;
}

/* --------- Base --------- */
body {
  font-family: var(--font-body);
  color: var(--color-ink);
  background-color: var(--color-paper);
  line-height: 1.6;
}

.container {
  display: flex; /* flex-only requirement */
  justify-content: center;
  width: 100%;
  padding: 0 16px;
}
.content-wrapper {
  display: flex; /* flex-only requirement */
  flex-direction: column;
  flex-wrap: wrap;
  gap: 20px;
  width: 100%;
  max-width: 1200px;
  padding: 24px 0;
}

/* Typography */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--color-primary); letter-spacing: -0.2px; }
h1 { font-size: 32px; line-height: 1.2; }
h2 { font-size: 26px; margin-top: 8px; }
h3 { font-size: 20px; color: var(--color-brown); }
.subheadline { color: var(--color-ink); opacity: 0.9; font-size: 16px; }

p, li { font-size: 15px; }
strong { color: var(--color-ink); }

/* Links */
a { color: var(--color-secondary); border-bottom: 1px dotted var(--color-gold); transition: color .2s ease, border-color .2s ease; }
a:hover { color: var(--color-rust); border-color: var(--color-rust); }
a.btn { border: none; border-bottom: none; }

/* Vintage separators and accents */
.hr-vintage { height: 1px; background: var(--color-border); width: 100%; }

/* --------- Header & Navigation --------- */
header { background: var(--color-cream); border-bottom: 4px double var(--color-border); position: sticky; top: 0; z-index: 50; }
.logo img { height: 42px; }

header .content-wrapper { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; }

.main-nav { display: none; /* hidden on mobile */ }
.main-nav a { padding: 10px 12px; color: var(--color-primary); font-weight: 600; border-radius: var(--radius-s); }
.main-nav a[aria-current="page"] { color: var(--color-brown); }
.main-nav .btn.btn-primary { margin-left: 6px; }

.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 38px; border-radius: var(--radius-s); border: 1px solid var(--color-border); background: #fff; color: var(--color-primary); box-shadow: var(--shadow-soft); transition: transform .2s ease, background .2s ease; }
.mobile-menu-toggle:hover { background: var(--color-accent); transform: translateY(-1px); }
.mobile-menu-toggle:focus { outline: 2px dashed var(--color-gold); outline-offset: 2px; }

/* Mobile Menu Overlay (slide-in) */
.mobile-menu { position: fixed; inset: 0 0 0 auto; width: 85%; max-width: 360px; background: #fff; border-left: 4px double var(--color-border); box-shadow: -10px 0 30px rgba(0,0,0,0.15); transform: translateX(100%); transition: transform .35s ease; z-index: 100; display: flex; flex-direction: column; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; margin: 14px; width: 36px; height: 36px; border: 1px solid var(--color-border); border-radius: 50%; color: var(--color-primary); background: var(--color-cream); }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 24px; }
.mobile-nav a { padding: 12px 10px; border-bottom: 1px dashed var(--color-border); color: var(--color-primary); font-weight: 600; }

/* Desktop Nav */
@media (min-width: 992px) {
  .main-nav { display: flex; align-items: center; gap: 6px; }
  .mobile-menu-toggle { display: none; }
}

/* --------- Hero Section (vintage card + bold headline) --------- */
.hero { background: var(--color-primary); color: #fff; }
.hero .content-wrapper { flex-direction: column; align-items: flex-start; gap: 16px; padding: 36px 0; }
.hero h1 { color: #fff; font-size: 30px; }
.hero .subheadline { color: #F3F3F3; max-width: 820px; }

/* Trust badges */
.trust-badges ul { display: flex; flex-wrap: wrap; gap: 12px 18px; padding: 12px 0; }
.trust-badges li { display: flex; align-items: center; gap: 8px; color: #f3f3f3; font-weight: 600; padding: 8px 12px; border: 1px dashed rgba(255,255,255,0.5); border-radius: var(--radius-s); }
.trust-badges img { width: 18px; height: 18px; }

/* CTA group */
.cta-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* --------- Buttons (vintage style) --------- */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 16px; border-radius: var(--radius-m); border: 2px solid var(--color-gold); background: var(--color-cream); color: var(--color-brown); font-weight: 700; box-shadow: var(--shadow-soft); transition: background .2s ease, color .2s ease, transform .15s ease, border-color .2s ease; }
.btn:hover { background: #fff; transform: translateY(-1px); border-color: var(--color-rust); color: var(--color-rust); }
.btn:focus { outline: 2px dashed var(--color-gold); outline-offset: 2px; }
.btn-primary { background: var(--color-secondary); color: #fff; border-color: #0d5b49; }
.btn-primary:hover { background: #245f51; color: #fff; border-color: #17463a; }

/* --------- Sections and Layout (Flexbox-only) --------- */
section { border-bottom: 1px solid var(--color-border); }
section:last-of-type { border-bottom: none; }

/* 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; }

/* Generic text block card */
.text-section { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-m); padding: 16px; box-shadow: var(--shadow-card); }
.text-section img { display: inline-block; vertical-align: middle; margin-right: 8px; }
.text-section + .text-section { margin-top: 12px; }

/* Feature grid and service cards (lists as cards) */
.feature-grid { display: flex; flex-wrap: wrap; gap: 20px; }
.feature-grid .text-section { flex: 1 1 260px; min-width: 260px; }

.service-cards { display: flex; flex-wrap: wrap; gap: 20px; padding-left: 0; }
.service-cards > li { list-style: none; flex: 1 1 260px; min-width: 260px; }
.service-cards .text-section { height: 100%; display: flex; flex-direction: column; justify-content: space-between; }

/* Testimonials (readable light background) */
.testimonial-card { background: var(--color-cream); border: 1px solid var(--color-border); border-left: 6px solid var(--color-gold); border-radius: var(--radius-m); color: var(--color-ink); box-shadow: var(--shadow-soft); }
.testimonial-card p { margin: 0; }

/* Lists spacing */
ul.text-section, ol.text-section, .text-section ul, .text-section ol { padding-left: 18px; }
.text-section li { margin-bottom: 8px; }

/* Details / Summary */
details { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-s); padding: 8px 12px; box-shadow: var(--shadow-soft); }
summary { cursor: pointer; font-weight: 700; color: var(--color-primary); }
details[open] { border-color: var(--color-gold); }

/* Breadcrumb-like text links */
.hero .text-section { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.2); color: #fff; }
.hero .text-section a { color: #fff; border-color: rgba(255,255,255,0.5); }
.hero .text-section a:hover { color: #fff; border-color: #fff; }

/* Contact info blocks */
.map-placeholder { background: var(--color-accent); border: 1px dashed var(--color-border); }

/* Footer */
footer { background: var(--color-cream); border-top: 4px double var(--color-border); margin-top: 20px; }
footer .content-wrapper { flex-direction: column; gap: 12px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: var(--color-primary); font-weight: 600; padding: 6px 8px; border: 1px dashed transparent; border-radius: var(--radius-s); }
.footer-nav a[aria-current="page"] { border-color: var(--color-border); }

/* ---- Accessibility helpers ---- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* --------- Cookie Consent Banner --------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 120; background: #fff; border-top: 4px double var(--color-border); box-shadow: 0 -8px 20px rgba(0,0,0,0.08); transform: translateY(100%); transition: transform .35s ease; }
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .bar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 16px; max-width: 1200px; margin: 0 auto; }
.cookie-banner .text { display: flex; flex: 1 1 260px; color: var(--color-ink); }
.cookie-banner .actions { display: flex; gap: 10px; }
.cookie-banner .btn { padding: 9px 14px; }
.cookie-banner .btn-ghost { background: #fff; color: var(--color-primary); border-color: var(--color-border); }

/* Cookie Preferences Modal */
.cookie-modal { position: fixed; inset: 0; display: none; align-items: center; justify-content: center; z-index: 130; }
.cookie-modal.open { display: flex; }
.cookie-modal .backdrop { position: fixed; inset: 0; background: rgba(0,0,0,0.45); }
.cookie-modal .panel { position: relative; background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-l); width: 92%; max-width: 680px; padding: 18px; box-shadow: 0 30px 60px rgba(0,0,0,0.2); display: flex; flex-direction: column; gap: 14px; z-index: 1; }
.cookie-modal .header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .content { display: flex; flex-direction: column; gap: 12px; }
.cookie-modal .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid var(--color-border); border-radius: var(--radius-s); padding: 10px 12px; }
.cookie-modal .footer { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }
.toggle { display: inline-flex; align-items: center; gap: 8px; }
.toggle input { width: 44px; height: 24px; accent-color: var(--color-secondary); }

/* --------- Responsive Rules --------- */
@media (min-width: 480px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}
@media (min-width: 768px) {
  .hero h1 { font-size: 40px; }
  .content-wrapper { gap: 24px; }
  .text-image-section { flex-direction: row; }
}

/* On mobile: ensure column stacks */
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
  .cta-group { flex-direction: column; align-items: stretch; }
}

/* --------- Micro-interactions --------- */
.card, .text-section, .testimonial-card { transition: transform .15s ease, box-shadow .2s ease; }
.card:hover, .text-section:hover, .testimonial-card:hover { transform: translateY(-2px); box-shadow: 0 10px 22px rgba(0,0,0,0.08); }

/* --------- Page-specific small touches --------- */
/* Breadcrumb icons in Auslandszeiten flags */
.hero span img { width: 18px; height: 12px; margin-right: 6px; display: inline-block; }

/* Rating text ensure contrast */
.rating, .review-average { color: var(--color-ink); background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-s); padding: 6px 10px; display: inline-flex; }

/* --------- Forms (if any appear) --------- */
input, select, textarea { width: 100%; padding: 10px 12px; border-radius: var(--radius-s); border: 1px solid var(--color-border); background: #fff; font-family: var(--font-body); }
input:focus, select:focus, textarea:focus { outline: 2px dashed var(--color-gold); outline-offset: 2px; }

/* --------- Utility spacing --------- */
.mt-20 { margin-top: 20px; } .mb-20 { margin-bottom: 20px; }

/* --------- Ensure readability for testimonials & reviews --------- */
/* Dark text on light backgrounds already enforced above */

/* --------- Additional layout helpers (Flexbox only) --------- */
.row { display: flex; flex-wrap: wrap; gap: 20px; }
.col { display: flex; flex-direction: column; gap: 12px; flex: 1 1 260px; }

/* --------- Honor mandatory spacing between content blocks --------- */
section .text-section, section .testimonial-card, section .card { margin: 10px 0; }

/* --------- High-contrast buttons in hero --------- */
.hero .btn { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.1); color: #fff; }
.hero .btn:hover { background: rgba(255,255,255,0.18); border-color: #fff; color: #fff; }
.hero .btn-primary { background: #2E7D6A; border-color: #154a3e; }

/* --------- Tables (if present in FAQs) --------- */
table { width: 100%; border-collapse: collapse; }
th, td { border: 1px solid var(--color-border); padding: 10px; text-align: left; }
th { background: var(--color-cream); font-family: var(--font-display); color: var(--color-primary); }

/* --------- Ensure no overlap & adequate spacing --------- */
main { padding-bottom: 80px; }

/* --------- End --------- */
