/* =========================================================
   RentenKompass International — style.css
   Design style: Scandinavian Clean (light, simple, functional)
   Brand colors, typography, mobile-first, FLEXBOX-ONLY layouts
   ========================================================= */

/* ---------- CSS RESET & BASE NORMALIZE ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, figure, blockquote, dl, dd { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; height: auto; }
ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; }
:focus-visible { outline: 3px solid #2E7D6E; outline-offset: 2px; }

/* ---------- THEME VARIABLES (with fallbacks) ---------- */
:root {
  --primary: #0B3A53; /* deep blue-green */
  --secondary: #2E7D6E; /* calming green */
  --accent: #F3F6F9; /* soft light */
  --ink: #0F2A33; /* dark text */
  --muted-ink: #4A5B66; /* secondary text */
  --line: #E4EBF0; /* subtle lines */
  --surface: #FFFFFF; /* cards and surfaces */
  --surface-alt: #FAFBFC; /* page background */
  --warning: #9C3D3D;
}

/* ---------- TYPOGRAPHY ---------- */
body {
  font-family: Arial, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, sans-serif;
  color: var(--ink, #0F2A33);
  background: var(--surface-alt, #FAFBFC);
  line-height: 1.6;
}
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: var(--primary, #0B3A53); line-height: 1.25; }
h1 { font-size: 32px; margin-bottom: 16px; }
h2 { font-size: 24px; margin-bottom: 16px; }
h3 { font-size: 20px; margin-bottom: 12px; }
h4 { font-size: 18px; margin-bottom: 10px; }
p { font-size: 16px; color: var(--ink, #0F2A33); }
small { font-size: 14px; color: var(--muted-ink, #4A5B66); }

/* ---------- LINKS ---------- */
a { color: var(--primary, #0B3A53); transition: color .2s ease, background-color .2s ease; }
a:hover { color: var(--secondary, #2E7D6E); }
a.underline { text-decoration: underline; }

/* ---------- LAYOUT HELPERS (FLEXBOX-ONLY) ---------- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex; /* flex container */
  flex-direction: column;
}
.content-wrapper {
  display: flex; /* flex container */
  flex-direction: column;
  gap: 16px;
}
section { margin-bottom: 60px; }

/* 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; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 20px; box-shadow: 0 1px 2px rgba(16,42,51,.06); }
.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(--accent); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 2px 6px rgba(16,42,51,.06); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ---------- HEADER & NAV ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface, #FFFFFF);
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px;
  box-shadow: 0 2px 10px rgba(16,42,51,.04);
}
header > a img { height: 36px; width: auto; }
header nav { display: none; /* mobile hidden */ }
header .btn-primary, header .btn-secondary { display: none; /* hide header CTAs on mobile */ }
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; font-size: 22px; color: var(--primary); border-radius: 8px; background: var(--accent); transition: background-color .2s ease, transform .2s ease; }
.mobile-menu-toggle:hover { background: #EAF1F6; transform: translateY(-1px); }

/* Desktop nav */
@media (min-width: 992px) {
  header { padding: 14px 28px; }
  header nav { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
  header nav a { color: var(--ink); padding: 8px 10px; border-radius: 8px; }
  header nav a:hover { background: var(--accent); color: var(--primary); }
  header .btn-primary, header .btn-secondary { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  background: var(--accent, #F3F6F9);
  border-bottom: 1px solid var(--line);
}
.hero .content-wrapper { padding: 24px 0; }
.subheadline { color: var(--muted-ink); }
.tagline { color: var(--ink); font-weight: 600; }

/* ---------- BUTTONS ---------- */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease, box-shadow .2s ease;
  font-weight: 700; font-size: 16px;
}
.btn-primary { background: var(--primary); color: #fff; box-shadow: 0 2px 8px rgba(11,58,83,.18); }
.btn-primary:hover { background: #0E4766; transform: translateY(-1px); }
.btn-secondary { background: #E9F2F0; color: var(--secondary); border-color: #D6E7E3; }
.btn-secondary:hover { background: #DDECE8; border-color: #CAE1DB; transform: translateY(-1px); }

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

/* ---------- LISTS & ICON ROWS ---------- */
.supporting-points, .problem-statements ul, .outcome-statements ul, .communication-channels ul,
.usp-list, .service-highlights ul, .process-steps, .inclusions-checklist,
.required-documents-list ul, .communication-touchpoints ul, .error-list, .service-steps,
.process-timeline, .evidence-collection-checklist ul, .rights-list, .processing-activities,
.category-list, .latest-articles-list ul, .popular-articles-list ul, .download-list,
.glossary-preview-terms, .cookie-categories, .preparation-checklist, .faq-list ul,
.next-steps-list, .contact-details ul { display: flex; flex-direction: column; gap: 10px; }

.supporting-points li, .problem-statements li, .outcome-statements li, .usp-list li,
.inclusions-checklist li, .required-documents-list li, .communication-touchpoints li,
.error-list li, .service-steps li, .process-timeline li, .evidence-collection-checklist li,
.rights-list li, .processing-activities li, .category-list li, .download-list li,
.glossary-preview-terms li, .preparation-checklist li, .faq-list li, .next-steps-list li,
.user-obligations li { padding-left: 0; color: var(--ink); }

/* Iconed list items */
.communication-channels li, .contact-details p, .contact-details li { display: flex; align-items: center; gap: 10px; }
.communication-channels img, .contact-details img { width: 18px; height: 18px; opacity: .9; }

/* ---------- FEATURE / SERVICE GRIDS (FLEX) ---------- */
.feature-grid, .service-cards, .service-sections, .stat-counters, .country-list, .short-testimonials {
  display: flex; flex-wrap: wrap; gap: 20px;
}
.feature-grid > div, .service-sections > div, .short-testimonials > .testimonial-card {
  flex: 1 1 260px; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 18px; box-shadow: 0 2px 6px rgba(16,42,51,.05);
}
.feature-grid img, .service-sections img { width: 28px; height: 28px; }

/* UL based service cards */
.service-cards { padding: 0; }
.service-cards > li { flex: 1 1 300px; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 2px 6px rgba(16,42,51,.05); }
.service-cards > li a { font-weight: 700; color: var(--primary); }
.service-cards > li:hover { border-color: #D6E2E8; box-shadow: 0 4px 12px rgba(16,42,51,.08); }

/* Stats */
.stat-counters > div { flex: 1 1 180px; min-width: 160px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.stat-counters h3 { font-size: 24px; color: var(--secondary); }

/* Country list */
.country-list span { display: inline-flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 8px 12px; }
.country-list img { width: 20px; height: 20px; }

/* ---------- TESTIMONIALS ---------- */
.testimonials .testimonial-card { background: var(--surface); border: 1px solid #D7E1E7; }
.testimonials blockquote { color: var(--ink); font-style: italic; }
.rating-summary { display: inline-flex; align-items: center; gap: 8px; padding: 10px 12px; background: var(--accent); border: 1px solid var(--line); border-radius: 10px; color: var(--ink); }
.rating-summary img { width: 18px; height: 18px; }

/* ---------- BREADCRUMBS & META ---------- */
.breadcrumbs, .last-updated, .effective-date, .status-note { color: var(--muted-ink); font-size: 14px; }
.deadline-warning { background: #FCECEC; color: #7A2E2E; border: 1px solid #F3D1D1; border-radius: 10px; padding: 10px 12px; }

/* ---------- MAP / PLACEHOLDERS ---------- */
.map-placeholder, .secure-upload-placeholder, .rating-badges-placeholder, .cookie-list-table-placeholder,
.sample-form-references-placeholder, .translation-and-certification-guidance, .drv-correspondence-management,
.status-tracking, .press-mentions, .privacy-contact, .privacy-contact-form, .terms-feedback-form,
.identity-verification-steps, .usage-notes, .update-log, .exclusions-note, .who-is-it-for, .result-expectations,
.sla-expectations, .documents-checklist, .coordination_rules-hint, .brand-story, .mission-statement,
.methodology-overview, .quality-assurance-measures, .team-roles-overview, .expertise-areas, .languages-list,
.memberships-certifications, .partner-network-overview, .commitment-statement, .standards-referenced,
.testing-methods, .known-issues, .improvement-roadmap, .response-time-expectation, .document-preparation-tips,
.support-channels, .calendar-link-placeholder, .country-specific-cases-anonymized, .before-after-outcomes-anonymized,
.impact-explanations, .argumentation-blueprints, .escalation-paths, .evidence-types, .submission-formats,
.consent-process-description, .withdrawal-mechanisms, .objection-to-processing-instructions, .automated-decision-making-note,
.sources-of-data, .mandatory-optional-fields, .consequences-of-non-provision, .how-to-exercise, .supervisory-authority-contacts,
.security-contact, .acceptable-file-formats, .security-notice, .consent-banner-controls-placeholder, .how-to-change-preferences,
.browser-opt-out-instructions, .do-not-track-note, .third-party-cookies-overview, .storage-durations, .service-highlights,
.deliverables-summary, .deliverables-list, .turnaround-times, .communication-touchpoints, .eligibility-criteria,
.pitfalls-list, .success-factors, .checklist-per-country, .evidence-types, .submission-formats {
  display: flex; flex-direction: column; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }

/* ---------- TABLES ---------- */
.pricing-table table, .cookie-list-table-placeholder table { width: 100%; border-collapse: collapse; font-size: 16px; }
.pricing-table th, .pricing-table td, .cookie-list-table-placeholder th, .cookie-list-table-placeholder td {
  border: 1px solid var(--line); padding: 10px; text-align: left;
}
.pricing-table th, .cookie-list-table-placeholder th { background: #EFF4F7; color: var(--primary); }

/* ---------- TAGS / SEARCH ---------- */
.search-field { display: flex; }
.search-field input { width: 100%; border: 1px solid var(--line); background: #FFF; padding: 12px 14px; border-radius: 10px; transition: border-color .2s ease, box-shadow .2s ease; }
.search-field input:focus { border-color: var(--secondary); box-shadow: 0 0 0 3px rgba(46,125,110,.15); }
.tag-cloud { display: flex; gap: 10px; flex-wrap: wrap; }
.tag { display: inline-flex; align-items: center; padding: 6px 10px; background: var(--accent); border: 1px solid var(--line); border-radius: 20px; color: var(--primary); }

/* ---------- CONTACT DETAILS ---------- */
.contact-details { display: flex; flex-direction: column; gap: 8px; }
.privacy-consent { color: var(--muted-ink); }

/* ---------- FOOTER ---------- */
footer { border-top: 1px solid var(--line); background: var(--surface); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.footer-navigation, .footer-cta, .legal-links { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.footer-navigation a { color: var(--muted-ink); padding: 6px 8px; border-radius: 8px; }
.footer-navigation a:hover { background: var(--accent); color: var(--primary); }
.legal-links { color: var(--muted-ink); }

/* ---------- MOBILE MENU (SLIDE-IN) ---------- */
.mobile-menu {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(11,58,83,.08);
  display: flex; /* container */
  align-items: stretch; justify-content: flex-end;
  transform: translateX(100%);
  transition: transform .3s ease;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu .mobile-nav {
  width: 86%; max-width: 380px; background: var(--surface);
  border-left: 1px solid var(--line);
  padding: 20px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto;
}
.mobile-menu-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 10px; background: var(--surface); box-shadow: 0 2px 10px rgba(16,42,51,.1); color: var(--primary); font-size: 18px; }
.mobile-nav a { padding: 12px 10px; border-radius: 10px; color: var(--ink); }
.mobile-nav a:hover { background: var(--accent); color: var(--primary); }

/* Ensure mobile menu sits above content */
.mobile-menu, .cookie-banner, .cookie-modal { will-change: transform, opacity; }

/* ---------- COOKIE CONSENT BANNER & MODAL ---------- */
.cookie-banner {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 90;
  background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 8px 20px rgba(16,42,51,.12);
  padding: 16px; display: none; /* hidden by default */
}
.cookie-banner.show { display: flex; }
.cookie-banner .cookie-content { display: flex; flex-direction: column; gap: 12px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn-accept { background: var(--secondary); color: #fff; border: 1px solid #2A7263; padding: 10px 14px; border-radius: 10px; }
.cookie-actions .btn-reject { background: #EEF3F1; color: var(--secondary); border: 1px solid #D7E7E2; padding: 10px 14px; border-radius: 10px; }
.cookie-actions .btn-settings { background: var(--accent); color: var(--primary); border: 1px solid var(--line); padding: 10px 14px; border-radius: 10px; }
.cookie-actions button:hover { transform: translateY(-1px); }

.cookie-modal {
  position: fixed; inset: 0; z-index: 110; background: rgba(0,0,0,.35);
  display: none; align-items: center; justify-content: center; padding: 20px;
}
.cookie-modal.show { display: flex; }
.cookie-modal .cookie-modal-content {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  width: 100%; max-width: 720px; padding: 20px; display: flex; flex-direction: column; gap: 14px;
}
.cookie-modal .cookie-category { display: flex; align-items: center; justify-content: space-between; background: var(--accent); border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.cookie-toggle { width: 46px; height: 28px; background: #D9E4EA; border-radius: 20px; position: relative; transition: background-color .2s ease; }
.cookie-toggle::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .2s ease; }
.cookie-toggle.on { background: var(--secondary); }
.cookie-toggle.on::after { transform: translateX(18px); }

/* ---------- PAGES: SPECIFIC TWEAKS ---------- */
.trust-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted-ink); }
.trust-badges .trust { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 6px 10px; }
.phone-snippet { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); font-weight: 700; }
.phone-snippet img { width: 18px; height: 18px; }

.languages span, .languages { color: var(--muted-ink); }
.certifications img { width: 36px; height: 36px; }

/* Ratgeber category/filter */
.filter-controls { display: flex; align-items: center; gap: 10px; color: var(--muted-ink); }
.latest-popular .content-wrapper { gap: 20px; }
.editor-picks { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 16px; }

/* ---------- ACCESSIBILITY / FORMS / FAQ ---------- */
.faq-list em { color: var(--secondary); font-style: normal; font-weight: 700; }

/* ---------- RESPONSIVE ADJUSTMENTS ---------- */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  h2 { font-size: 28px; }
}
@media (min-width: 768px) {
  h1 { font-size: 42px; }
  h2 { font-size: 32px; }
  .text-image-section { flex-direction: row; }
  .cookie-banner .cookie-content { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
}

/* ---------- HOVERS & MICRO-INTERACTIONS ---------- */
.card, .service-cards > li, .feature-grid > div, .service-sections > div, .stat-counters > div, .editor-picks {
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card:hover, .service-cards > li:hover, .feature-grid > div:hover, .service-sections > div:hover, .stat-counters > div:hover, .editor-picks:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(16,42,51,.1);
}

/* ---------- ALIGNMENT & SPACING SAFETY ---------- */
.content-wrapper > * + * { margin-top: 0; }
section .container + .container { margin-top: 20px; }

/* ---------- ACCESSIBLE CONTRAST IN TESTIMONIALS ---------- */
.testimonials, .testimonials .content-wrapper { background: transparent; }
.testimonials blockquote, .testimonials p, .testimonials strong { color: #102A33; }

/* ---------- MISC SMALL ELEMENTS ---------- */
.breadcrumbs { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); padding: 6px 10px; border-radius: 8px; width: fit-content; }

/* ---------- SECTION-SPECIFIC FLEX WRAPS ---------- */
.leistungen-overview .service-highlights ul, .deliverables-list ul, .communication-touchpoints ul, .eligibility-criteria ul,
.pitfalls-list ul, .success-factors ul, .status-tracking ul, .evidence-collection-checklist ul {
  display: flex; flex-direction: column; gap: 8px;
}

/* ---------- PRINT TWEAKS ---------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-modal, .footer-cta { display: none !important; }
  a { text-decoration: underline; }
  body { background: #fff; }
}

/* ---------- PAGE-SPECIFIC MINOR CLASSES NOT YET STYLED ---------- */
.languages, .language, .rating-badges-placeholder, .case-notes, .privacy-consent, .deadline-warning, .status-note { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- Ensure no overlap & safe z-index ---------- */
header, .mobile-menu, .cookie-banner, .cookie-modal { z-index: 50; }
.mobile-menu { z-index: 100; }
.cookie-modal { z-index: 110; }

/* ---------- END ---------- */
