/* =====================================================
   Resonant Pulse Rentenberatung — style.css
   Warm & Friendly theme with brand alignment
   Mobile-first • Only Flexbox • No CSS Grid/Columns
   ===================================================== */

/* -----------------------------
   CSS Reset / Normalize
----------------------------- */
* { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; }
img, picture, svg, video { display: block; max-width: 100%; height: auto; }
ul, ol { padding-left: 1.2rem; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: transparent; border: none; }
:focus-visible { outline: 3px solid #FFB38A; outline-offset: 2px; }

/* -----------------------------
   Design Tokens (CSS Variables)
----------------------------- */
:root {
  /* Brand */
  --primary: #0B3D91; /* Navy */
  --secondary: #2C7A7B; /* Teal */
  --accent: #F4F6FB; /* Soft light */
  /* Warm friendly support palette */
  --warm-50: #FFF9F4; /* section bg */
  --warm-100: #FFF3E6; /* cards/light sections */
  --warm-200: #FFE8D6; /* stronger warm */
  --warm-ink: #2A2A2A; /* readable dark text */
  --muted: #5A6175;
  --border: #E6E6EF;
  --success: #2f855a;
  --danger: #c53030;

  --bg: #FFFFFF;
  --text: #222222;

  /* Typography */
  --font-display: Georgia, 'Times New Roman', serif;
  --font-body: Verdana, Geneva, Tahoma, sans-serif;

  /* Radii & Shadows */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --shadow-sm: 0 2px 10px rgba(11, 61, 145, 0.06);
  --shadow-md: 0 10px 30px rgba(11, 61, 145, 0.10);
  --shadow-soft: 0 8px 24px rgba(0,0,0,0.08);

  /* Spacing scale */
  --space-8: 8px; --space-12: 12px; --space-16: 16px; --space-20: 20px; --space-24: 24px; --space-30: 30px; --space-32: 32px; --space-40: 40px; --space-48: 48px; --space-60: 60px;
}

/* -----------------------------
   Base Typography & Body
----------------------------- */
body {
  font-family: var(--font-body, Verdana);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
}

h1, h2, h3, h4 { font-family: var(--font-display, Georgia); color: var(--primary); line-height: 1.25; }

h1 { font-size: 32px; margin-bottom: var(--space-16); }
h2 { font-size: 24px; margin-bottom: var(--space-16); }
h3 { font-size: 18px; margin-bottom: var(--space-12); }

p { margin-bottom: var(--space-16); color: var(--muted); }
strong, b { color: var(--text); }

/* Links */
a { color: var(--secondary); transition: color .2s ease, background-color .2s ease, box-shadow .2s ease; }
a:hover { color: #215D5E; }

/* Lists */
ul, ol { margin-bottom: var(--space-16); display: flex; flex-direction: column; gap: 8px; }
li { color: var(--warm-ink); }

/* Inputs */
input[type="search"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: #fff;
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease, box-shadow .2s ease;
  margin-bottom: var(--space-16);
}
input[type="search"]:focus { border-color: var(--secondary); box-shadow: 0 0 0 4px rgba(44,122,123,0.12); }

address { font-style: normal; color: var(--warm-ink); }

/* ---------------------------------
   Layout Utilities & Containers
---------------------------------- */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
}
.content-wrapper {
  display: flex;
  flex-direction: column;
  gap: var(--space-16);
  width: 100%;
}

/* Mandatory spacing pattern (also apply to all section tags) */
.section { margin-bottom: 60px; padding: 40px 20px; }
section { margin-bottom: 60px; padding: 40px 20px; }

/* Gentle alternating warm backgrounds for friendly feel */
main > section:nth-of-type(odd) { background: var(--warm-50); }
main > section:nth-of-type(even) { background: var(--accent); }

/* Content grids and cards (Flex Only) */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); 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; background: var(--warm-100); border: 1px solid #f4d6bf; border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); color: var(--warm-ink); }
.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: 0 6px 20px rgba(11,61,145,0.08);
}
header > nav {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-16);
  padding: 12px 20px;
}
header nav img { height: 40px; width: auto; }

/* On mobile: show logo (first link), hide other links */
header nav a { color: var(--warm-ink); padding: 8px 10px; border-radius: 999px; }
header nav a:hover { background: var(--warm-100); }
header nav a:not(:first-child) { display: none; }

.mobile-menu-toggle {
  margin: 8px 16px 16px auto;
  width: 44px; height: 44px;
  border-radius: 12px; border: 1px solid var(--border);
  background: var(--warm-100);
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, background-color .2s ease;
}
.mobile-menu-toggle:hover { transform: translateY(-1px); background: #FFE1CC; }

/* Mobile slide-in menu */
.mobile-menu {
  position: fixed; inset: 0; z-index: 1100;
  background: #ffffff;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch;
  transform: translateX(100%);
  transition: transform .35s ease;
  box-shadow: -12px 0 30px rgba(0,0,0,.12);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end;
  margin: 16px;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--accent); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
}
.mobile-nav { display: flex; flex-direction: column; gap: 12px; padding: 10px 20px 40px; }
.mobile-nav a {
  padding: 14px 16px; border-radius: 12px;
  background: var(--warm-100);
  color: var(--warm-ink);
  box-shadow: var(--shadow-sm);
}
.mobile-nav a:hover { background: #FFE1CC; }

/* Desktop navigation */
@media (min-width: 992px) {
  header > nav { padding: 14px 24px; }
  header nav a:not(:first-child) { display: inline-flex; }
  header nav { gap: 10px; }
  header nav a { padding: 10px 14px; }
  .mobile-menu-toggle { display: none; }
}

/* ---------------------------------
   CTAs & Buttons
---------------------------------- */
.cta-primary, .cta-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 12px 18px;
  border-radius: 999px;
  transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease;
  border: 1px solid transparent;
  margin-right: 8px; margin-bottom: 8px;
}
.cta-primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 6px 18px rgba(11,61,145,0.18), inset 0 -2px 0 rgba(255,255,255,0.15);
}
.cta-primary:hover { background: #0A347C; transform: translateY(-1px); box-shadow: 0 10px 24px rgba(11,61,145,0.25); }
.cta-primary:active { transform: translateY(0); }

.cta-secondary {
  background: #FFE8D6; color: #5A3B2E; border-color: #FFD3B4;
  box-shadow: var(--shadow-sm);
}
.cta-secondary:hover { background: #FFDCC2; }

.micro-cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* ---------------------------------
   Home & Section-specific Components
---------------------------------- */
.trust-badges { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.trust-badges img { height: 28px; width: auto; filter: saturate(.9); }

.usp-grid, .service-cards, .category-cards, .package-cards {
  display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-start;
}
.usp-grid > div, .service-cards > div, .category-cards > div, .package-cards > div {
  flex: 1 1 260px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  transition: transform .15s ease, box-shadow .2s ease;
}
.usp-grid > div:hover, .service-cards > div:hover, .category-cards > div:hover, .package-cards > div:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.proof-points { display: flex; flex-wrap: wrap; gap: 10px; color: var(--secondary); font-weight: bold; }

/* Steps (ordered lists) */
ol { display: flex; flex-direction: column; gap: 10px; margin-bottom: var(--space-16); padding-left: 1.2rem; }

/* Testimonials: readable dark text on light backgrounds */
.testimonial-card blockquote { font-style: italic; color: var(--warm-ink); }
.testimonial-card p { margin: 0; color: var(--warm-ink); }

/* FAQ */
.faq-block { display: flex; flex-direction: column; gap: 12px; }
.faq-block details { border: 1px solid var(--border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-sm); overflow: hidden; }
.faq-block summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 14px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  color: var(--primary); font-weight: bold;
}
.faq-block summary::-webkit-details-marker { display: none; }
.faq-block summary::after {
  content: '\25BC'; font-size: 12px; color: var(--secondary);
  transition: transform .25s ease;
}
.faq-block details[open] summary::after { transform: rotate(180deg); }
.faq-block details > p { padding: 0 16px 16px 16px; color: var(--warm-ink); }

/* Contact & Info rows */
.cta-section { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------------------------------
   Footer
---------------------------------- */
footer { background: #0B3D91; color: #F5FAFF; }
.footer-wrapper { display: flex; flex-direction: column; gap: 16px; padding: 24px 20px; max-width: 1100px; margin: 0 auto; }
.footer-wrapper a { color: #E6F0FF; }
.footer-wrapper a:hover { color: #ffffff; }
.brand-signature { display: flex; align-items: center; gap: 10px; color: #E6F0FF; }
.brand-signature img { height: 28px; width: auto; }
.mini-navigation, .legal-links, .contact-details { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.contact-details p { color: #E6F0FF; }

@media (min-width: 992px) {
  .footer-wrapper { flex-direction: row; justify-content: space-between; align-items: flex-start; }
  .mini-navigation, .legal-links, .contact-details { gap: 12px; }
}

/* ---------------------------------
   Cookie Consent Banner & Modal
---------------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1200;
  display: flex; flex-direction: column; gap: 12px; align-items: stretch;
  background: #FFFFFF; border-top: 1px solid var(--border);
  padding: 16px 20px; box-shadow: 0 -10px 30px rgba(0,0,0,0.08);
  transform: translateY(100%);
  transition: transform .35s ease;
}
.cookie-banner.show { transform: translateY(0); }
.cookie-banner p { color: var(--warm-ink); }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.cookie-actions .btn { padding: 10px 14px; border-radius: 999px; border: 1px solid var(--border); }
.cookie-actions .accept { background: var(--secondary); color: #fff; border-color: transparent; }
.cookie-actions .accept:hover { background: #256b6c; }
.cookie-actions .reject { background: #FFE8D6; color: #5A3B2E; border-color: #FFD3B4; }
.cookie-actions .settings { background: var(--accent); color: var(--primary); }

/* Cookie settings modal */
.cookie-modal-backdrop {
  position: fixed; inset: 0; z-index: 1300; background: rgba(0,0,0,0.45);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal-backdrop.show { display: flex; }
.cookie-modal {
  width: 100%; max-width: 640px; background: #fff; border-radius: 16px; border: 1px solid var(--border);
  box-shadow: var(--shadow-soft);
  display: flex; flex-direction: column; gap: 12px; padding: 20px;
  transform: translateY(10px); transition: transform .25s ease;
}
.cookie-modal-backdrop.show .cookie-modal { transform: translateY(0); }
.cookie-modal header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal .options { display: flex; flex-direction: column; gap: 10px; }
.cookie-toggle { display: flex; align-items: center; justify-content: space-between; padding: 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--accent); }
.cookie-toggle .label { font-weight: bold; color: var(--primary); }
.cookie-toggle .always { color: var(--success); font-weight: bold; }

/* ---------------------------------
   Reusable Flex Helpers
---------------------------------- */
.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-center { display: flex; align-items: center; justify-content: center; }

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

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

  .content-grid { justify-content: space-between; }
  .text-image-section { flex-direction: row; }
}

@media (min-width: 992px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
  h3 { font-size: 22px; }
}

/* ---------------------------------
   Page-specific light tweaks
---------------------------------- */
/* Index/hero emphasis */
main section:first-of-type h1 { color: var(--primary); }

/* Ratgeber search spacing */
input[type="search"][aria-label="Suche im Ratgeber"] { margin-top: 4px; }

/* Kontakt info rows */
.content-wrapper p img { display: inline-block; vertical-align: middle; margin-right: 6px; }

/* ---------------------------------
   Ensured spacing between components
---------------------------------- */
.content-wrapper > * + * { margin-top: 2px; }
.usp-grid > div, .service-cards > div, .category-cards > div, .package-cards > div, .testimonial-card, .faq-block details { margin-bottom: 20px; }

/* ---------------------------------
   Additional required classes (consistency)
---------------------------------- */
/* Even if not used everywhere, keep consistent warm-friendly visuals */
.card-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.card-content { display: flex; flex-direction: column; justify-content: center; gap: 10px; }

/* ---------------------------------
   Tables (if any appear later)
---------------------------------- */
table { width: 100%; border-collapse: collapse; margin-bottom: 16px; display: flex; flex-direction: column; }
thead, tbody, tr { display: flex; }
thead { font-weight: bold; background: var(--accent); }
tr { width: 100%; display: flex; justify-content: space-between; border-bottom: 1px solid var(--border); }
th, td { flex: 1 1 0; padding: 12px; }

/* ---------------------------------
   Link chips in footer mini-navigation
---------------------------------- */
.mini-navigation a, .legal-links a { padding: 6px 10px; border-radius: 999px; }
.mini-navigation a:hover, .legal-links a:hover { background: rgba(255,255,255,0.12); }

/* ---------------------------------
   Print basics
---------------------------------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal-backdrop, footer { display: none !important; }
  section { background: #fff !important; box-shadow: none !important; }
}

/* =====================================================
   End of file
   ===================================================== */