/* =====================================================================
   Vivid Explore RentenNavigator – Warm Friendly Style (Mobile-first)
   - Single stylesheet for all pages
   - Only Flexbox for all layouts (no CSS Grid / no Columns)
   - Warm, approachable look: warm neutrals, rounded corners, soft shadows
   - Brand colors + friendly typography
   ===================================================================== */

/* --------------------------- CSS Reset & Base --------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  color: #1E2A35;
  background: #FFFDFB; /* warm subtle background */
  font-family: Verdana, Geneva, sans-serif; /* Brand body font */
  line-height: 1.6;
  font-size: 16px;
}
img, picture, video, canvas, svg { display: block; max-width: 100%; height: auto; }
input, button, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
:focus { outline: none; }
:focus-visible { outline: 3px solid rgba(31,107,117,0.35); outline-offset: 2px; border-radius: 8px; }

/* ----------------------------- Design Tokens ---------------------------- */
:root {
  /* Brand colors */
  --color-primary: #143B6E; /* deep blue */
  --color-secondary: #1F6B75; /* teal */
  --color-accent: #F2F5F9;   /* light cool accent */

  /* Warm friendly neutrals */
  --warm-50: #FFF7F0;   /* hero/section tint */
  --warm-100: #FFE9DC;  /* cards/pills */
  --warm-150: #FFE1CF;  /* hover tint */
  --warm-200: #FFD7BE;  /* accents */
  --ink: #1E2A35;       /* body text */
  --muted: #4B5A6A;     /* secondary text */
  --on-primary: #FFFFFF; /* text on primary */

  /* Effects */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 2px 6px rgba(20,59,110,0.08);
  --shadow-md: 0 8px 20px rgba(20,59,110,0.12);
  --shadow-lg: 0 14px 38px rgba(20,59,110,0.16);
}

/* --------------------------- Typography Scale --------------------------- */
h1, h2, h3, h4 { font-family: Georgia, "Times New Roman", serif; /* Brand display font */ color: var(--color-primary); margin: 0 0 12px; line-height: 1.25; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p { margin: 0 0 12px; color: var(--ink); }
strong { color: var(--color-primary); }
.subheadline { color: var(--muted); font-size: 16px; }

/* ----------------------------- Global Layout ---------------------------- */
.container { 
  display: flex; 
  flex-direction: column; 
  align-items: stretch; 
  width: 100%; 
  max-width: 1160px; 
  margin: 0 auto; 
  padding: 0 16px; 
}
.content-wrapper { 
  display: flex; 
  flex-direction: column; 
  gap: 18px; 
}

main { display: flex; flex-direction: column; gap: 24px; }
section { width: 100%; }

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

/* --------------------------- Header & Navigation ------------------------ */
header { position: sticky; top: 0; z-index: 1000; background: #FFFFFF; box-shadow: var(--shadow-sm); }
header .content-wrapper { padding: 14px 0; }
.logo img { height: 40px; width: auto; }

/* Header layout uses flex only */
header .container > .content-wrapper { 
  display: flex; 
  flex-direction: row; 
  align-items: center; 
  justify-content: space-between; 
}

.main-nav { display: none; gap: 16px; align-items: center; }
.main-nav a { padding: 10px 12px; border-radius: var(--radius-sm); color: var(--color-primary); transition: background-color .25s ease, color .25s ease, transform .2s ease; }
.main-nav a:hover { background: var(--warm-50); }
.main-nav a[aria-current="page"] { background: var(--warm-100); color: var(--color-primary); box-shadow: var(--shadow-sm); }

.header-cta { display: none; gap: 10px; align-items: center; }

/* Mobile burger */
.mobile-menu-toggle { 
  display: inline-flex; 
  align-items: center; 
  justify-content: center; 
  width: 40px; height: 40px; 
  border: 0; border-radius: var(--radius-md); 
  background: var(--warm-100); color: var(--color-primary); 
  box-shadow: var(--shadow-sm); 
  transition: background .25s ease, transform .2s ease; 
}
.mobile-menu-toggle:hover { background: var(--warm-150); transform: translateY(-1px); }

/* Mobile menu overlay */
.mobile-menu { 
  position: fixed; inset: 0; 
  display: flex; flex-direction: column; 
  background: #FFFFFF; 
  transform: translateX(100%); 
  transition: transform .35s ease; 
  z-index: 2000; 
  box-shadow: var(--shadow-lg); 
}
.mobile-menu[aria-hidden="false"],
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { 
  align-self: flex-end; 
  margin: 16px; 
  width: 40px; height: 40px; 
  border: 0; border-radius: var(--radius-md); 
  background: var(--warm-100); color: var(--color-primary); 
}
.mobile-nav { display: flex; flex-direction: column; gap: 8px; padding: 0 20px 30px; }
.mobile-nav a { 
  display: flex; align-items: center; 
  min-height: 48px; 
  padding: 12px 14px; 
  border-radius: var(--radius-md); 
  color: var(--color-primary); 
  background: var(--warm-50); 
  box-shadow: var(--shadow-sm); 
  transition: background .25s ease, transform .2s ease; 
}
.mobile-nav a:hover { background: var(--warm-100); transform: translateX(4px); }
.mobile-nav a[aria-current="page"] { background: var(--warm-200); color: var(--color-primary); font-weight: bold; }

/* ------------------------------- Hero ---------------------------------- */
.hero { background: var(--warm-50); border-bottom: 1px solid #FFE7D6; }
.hero .content-wrapper { padding: 28px 0; }
.hero h1 { font-size: 26px; }
.hero .subheadline { font-size: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ------------------------------- Buttons ------------------------------- */
.btn { 
  display: inline-flex; align-items: center; justify-content: center; 
  gap: 8px; 
  padding: 12px 16px; 
  border-radius: 999px; /* friendly round pills */
  border: 2px solid transparent; 
  font-weight: 700; 
  text-align: center; 
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease, transform .2s ease; 
}
.btn.primary { background: var(--color-primary); color: var(--on-primary); box-shadow: var(--shadow-md); }
.btn.primary:hover { background: #0F2E56; transform: translateY(-1px); box-shadow: var(--shadow-lg); }
.btn.secondary { background: var(--warm-100); color: var(--color-primary); border-color: var(--warm-150); box-shadow: var(--shadow-sm); }
.btn.secondary:hover { background: var(--warm-150); }
.btn:active { transform: translateY(0); }

/* ------------------------------- Lists --------------------------------- */
ul, ol { padding-left: 20px; margin: 0 0 12px; }

/* USP chips */
.usp { 
  display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 8px 0 0; 
}
.usp li { 
  display: flex; align-items: center; 
  padding: 8px 12px; 
  background: var(--warm-100); 
  color: var(--color-primary); 
  border-radius: 999px; 
  box-shadow: var(--shadow-sm); 
  font-size: 14px; 
}

/* Feature & Service lists */
.feature-list, .service-list { display: flex; flex-direction: column; gap: 10px; }
.feature-list li, .service-list li { background: #FFFFFF; border: 1px solid #FFE7D6; padding: 12px 14px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

/* Icon list */
.icon-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; }
.icon-list li { display: flex; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid #FFE7D6; padding: 10px 12px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); color: var(--color-primary); }
.icon-list img { width: 22px; height: 22px; }

/* ------------------------------ Text Blocks ---------------------------- */
.text-section { display: flex; flex-direction: column; gap: 10px; }
.text-section p img { margin-right: 8px; }
address.text-section { font-style: normal; }
address.text-section p { display: flex; align-items: center; gap: 10px; }
address.text-section img { width: 20px; height: 20px; }
.microcopy { color: var(--muted); font-size: 14px; }

/* ---------------------------- Testimonials ----------------------------- */
/* Dark text on light backgrounds for readability */
.testimonial-card { 
  background: #FFFFFF; 
  border: 1px solid #FFE1CF; 
  border-radius: var(--radius-lg); 
  box-shadow: var(--shadow-md); 
}
.testimonial-card p { margin: 0; color: var(--ink); }
.testimonial-card strong { color: var(--color-secondary); }

/* ------------------------------- FAQ ----------------------------------- */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq h3 { font-size: 18px; margin: 0; color: var(--color-secondary); }
.faq p { margin: 0; background: #FFFFFF; border: 1px solid #FFE7D6; padding: 12px; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }

/* -------------------------------- Cards -------------------------------- */
.card { background: #FFFFFF; border: 1px solid #FFE7D6; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 16px; transition: transform .2s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

/* ------------------------------- Footer -------------------------------- */
footer { background: var(--accent, var(--color-accent)); border-top: 1px solid #E6EDF5; }
footer .content-wrapper { padding: 22px 0; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 10px; }
.footer-nav a { padding: 8px 10px; border-radius: var(--radius-sm); color: var(--color-primary); }
.footer-nav a:hover { background: var(--warm-50); }

/* ----------------------------- Utility Layouts ------------------------- */
/* Ensure adequate spacing between sections */
main > section .container > .content-wrapper > h2 { margin-top: 4px; }
main > section { padding: 10px 0 0; }

/* Content groupings */
.content-grid > * { flex: 1 1 280px; }
.card-container > .card { flex: 1 1 260px; }

/* ------------------------------ Responsive ----------------------------- */
@media (min-width: 480px) {
  h1 { font-size: 32px; }
  h2 { font-size: 24px; }
  .hero h1 { font-size: 32px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .hero .content-wrapper { padding: 42px 0; }
  .hero h1 { font-size: 40px; }
  .subheadline { font-size: 18px; }
  .main-nav { display: flex; }
  .header-cta { display: flex; }
  .mobile-menu-toggle { display: none; }
  /* Header nav alignment */
  header .container > .content-wrapper { gap: 16px; }
  .main-nav { margin-left: 16px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 28px; }
  .container { max-width: 1200px; }
}

/* -------------------------- Alignment & Gaps --------------------------- */
/* Ensure minimum 20px spacing between cards/sections */
main > section + section { margin-top: 20px; }
.card + .card { margin-top: 20px; }

/* --------------------------- Visual Hierarchy --------------------------- */
section > .container > .content-wrapper > h2 + .text-section,
section > .container > .content-wrapper > h2 + ul,
section > .container > .content-wrapper > h2 + ol { margin-top: 6px; }

/* ------------------------- Links & Interactions ------------------------- */
a:hover { color: var(--color-secondary); }
a:active { opacity: .9; }

/* -------------------------- Mobile Menu Z-Index ------------------------- */
header { z-index: 1200; }
.mobile-menu { z-index: 2000; }

/* ----------------------- Cookie Consent Components ---------------------- */
/* Fixed bottom banner */
.cookie-banner { 
  position: fixed; left: 0; right: 0; bottom: 0; 
  display: flex; flex-direction: column; gap: 12px; 
  padding: 16px; 
  background: #FFFFFF; 
  color: var(--ink); 
  border-top: 3px solid var(--warm-200); 
  box-shadow: 0 -10px 24px rgba(20,59,110,0.12); 
  z-index: 2500; 
  transform: translateY(110%); 
  transition: transform .35s ease; 
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner .cookie-text { font-size: 14px; color: var(--ink); }
.cookie-buttons { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-buttons .btn { padding: 10px 14px; }
.cookie-buttons .btn.reject { background: #FFFFFF; border-color: #FFD2B7; color: var(--color-primary); }
.cookie-buttons .btn.reject:hover { background: var(--warm-50); }
.cookie-buttons .btn.settings { background: var(--warm-100); color: var(--color-primary); }

/* Cookie modal + overlay */
.cookie-overlay { 
  position: fixed; inset: 0; 
  background: rgba(30,42,53,0.45); 
  display: none; 
  align-items: center; justify-content: center; 
  z-index: 3000; 
}
.cookie-overlay.show { display: flex; }
.cookie-modal { 
  width: 92%; max-width: 720px; 
  background: #FFFFFF; 
  border-radius: var(--radius-lg); 
  box-shadow: var(--shadow-lg); 
  padding: 18px; 
  display: flex; flex-direction: column; gap: 14px; 
}
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .modal-title { font-size: 20px; color: var(--color-primary); font-family: Georgia, "Times New Roman", serif; }
.cookie-modal .modal-close { 
  width: 36px; height: 36px; border: 0; border-radius: var(--radius-md); 
  background: var(--warm-100); color: var(--color-primary); 
}
.cookie-modal .modal-content { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { 
  display: flex; flex-direction: row; align-items: center; justify-content: space-between; 
  gap: 12px; padding: 12px; 
  background: var(--accent); border: 1px solid #E6EDF5; border-radius: var(--radius-md); 
}
.cookie-category .label { display: flex; flex-direction: column; gap: 4px; }
.cookie-category .label strong { color: var(--color-secondary); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Toggle switches */
.toggle-switch { 
  position: relative; display: inline-flex; align-items: center; 
  width: 46px; height: 26px; border-radius: 999px; 
  background: #E3E9F0; transition: background .25s ease; 
}
.toggle-switch .dot { 
  width: 20px; height: 20px; background: #FFFFFF; border-radius: 50%; 
  box-shadow: var(--shadow-sm); 
  transform: translateX(3px); transition: transform .25s ease; 
}
.toggle-switch.on { background: var(--color-secondary); }
.toggle-switch.on .dot { transform: translateX(23px); }

/* ------------------------ Accessibility & Helpers ----------------------- */
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); border: 0; }

/* -------------------------- Page-specific Tweaks ------------------------ */
/* Make lists in legal pages tidy */
main ul li, main ol li { margin-bottom: 6px; }

/* Emphasize key numbers/price sections */
section:has(> .container > .content-wrapper > h2:contains("Preis")) {}
/* Note: :has and :contains have limited support; kept without functional selectors to maintain compatibility */

/* ----------------------- Desktop Content Alignment ---------------------- */
@media (min-width: 992px) {
  .content-wrapper.wide, .content-grid { justify-content: space-between; }
}

/* -------------------------- Prevent Overlapping ------------------------- */
/* Adequate padding for sections */
main > section .container > .content-wrapper { padding-top: 8px; padding-bottom: 8px; }

/* --------------------- Print-friendly Minor Styling --------------------- */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-overlay { display: none !important; }
  a { text-decoration: underline; }
}
