/* =============================================================
   Filibaccal Deutschlandkompass — Professional Corporate Styles
   Mobile-first, Flexbox-only, high-contrast, responsive UI
   Brand: Primary #1E3A5F, Secondary #C5972D, Accent #F5F1E8
   Fonts: Georgia (display), Arial (body)
   ============================================================= */

/* ---------------------------
   CSS Reset & Base Normalize
   --------------------------- */
* { box-sizing: border-box; }
html, body { height: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #223040; line-height: 1.6; background: #ffffff; }
img, svg { max-width: 100%; height: auto; display: inline-block; }
figure { margin: 0; }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
h1, h2, h3, h4, h5, h6 { margin: 0 0 12px 0; font-family: Georgia, "Times New Roman", serif; color: #1E3A5F; line-height: 1.25; }
p { margin: 0 0 14px 0; }
a { color: #1E3A5F; text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
button { font-family: inherit; color: inherit; }
:focus-visible { outline: 3px solid #C5972D; outline-offset: 2px; }

/* ---------------------------
   CSS Variables (with fallbacks)
   --------------------------- */
:root {
  --color-primary: #1E3A5F; /* deep blue */
  --color-secondary: #C5972D; /* warm gold */
  --color-accent: #F5F1E8; /* light warm accent */
  --color-text: #223040; /* dark gray-blue */
  --color-muted: #5A6B80; /* muted blue-gray */
  --color-border: #E2E8F0; /* light border */
  --color-surface: #FFFFFF; /* cards */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow-md: 0 6px 16px rgba(4, 24, 45, 0.12);
  --radius-sm: 6px;
  --radius-md: 10px;
}

/* ---------------------------
   Typography scale
   --------------------------- */
body { font-size: 16px; }
.subheadline { color: #5A6B80; font-size: 18px; margin-bottom: 16px; }
h1 { font-size: 32px; letter-spacing: 0.2px; }
h2 { font-size: 24px; margin-bottom: 16px; }
h3 { font-size: 18px; margin-top: 8px; }
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  .subheadline { font-size: 20px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

/* ---------------------------
   Layout containers (Flexbox only)
   --------------------------- */
.container { display: flex; flex-direction: column; gap: 20px; width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; }

/* Generic section spacing (applies to all sections) */
section { margin-bottom: 60px; padding: 40px 0; background: transparent; }

/* Mandatory spacing utilities (available for use) */
.section { margin-bottom: 60px; padding: 40px 20px; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); padding: 16px; }
.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: #FFFFFF; color: #223040; border: 1px solid #E2E8F0; border-left: 4px solid #C5972D; border-radius: var(--radius-md); box-shadow: var(--shadow-sm); }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }

/* ---------------------------
   Header & Navigation
   --------------------------- */
header { position: relative; z-index: 50; background: #FFFFFF; border-bottom: 1px solid #E2E8F0; box-shadow: 0 1px 0 rgba(0,0,0,0.02); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; }
.logo img { height: 36px; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: #223040; font-weight: 500; padding: 8px 10px; border-radius: var(--radius-sm); transition: background-color 160ms ease, color 160ms ease; }
.main-nav a:hover { background: #F5F1E8; color: #1E3A5F; text-decoration: none; }

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

/* Mobile menu button */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 8px; border: 1px solid #E2E8F0; background: #FFFFFF; color: #1E3A5F; cursor: pointer; transition: background-color 150ms ease, box-shadow 150ms ease, transform 150ms ease; }
.mobile-menu-toggle:hover { background: #F5F1E8; box-shadow: var(--shadow-sm); transform: translateY(-1px); }

/* Mobile overlay + sliding panel (Flex-only) */
.mobile-menu { position: fixed; inset: 0; display: flex; flex-direction: row; justify-content: flex-end; align-items: stretch; background: rgba(2, 12, 24, 0.45); transform: translateX(0); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 220ms ease, visibility 220ms ease; z-index: 100; }
.mobile-menu .mobile-nav { display: flex; flex-direction: column; gap: 6px; width: 80%; max-width: 360px; height: 100%; background: #FFFFFF; border-left: 1px solid #E2E8F0; box-shadow: var(--shadow-md); padding: 16px; transform: translateX(100%); transition: transform 260ms ease; }
.mobile-menu.open { opacity: 1; visibility: visible; pointer-events: auto; }
.mobile-menu.open .mobile-nav { transform: translateX(0); }
.mobile-menu-close { display: inline-flex; align-self: flex-end; align-items: center; justify-content: center; width: 40px; height: 40px; margin-bottom: 8px; border: 1px solid #E2E8F0; border-radius: 8px; background: #FFFFFF; color: #1E3A5F; cursor: pointer; transition: background-color 150ms ease; }
.mobile-menu-close:hover { background: #F5F1E8; }
.mobile-nav a { display: block; padding: 12px; border-radius: 8px; color: #223040; font-size: 18px; font-weight: 500; transition: background-color 150ms ease; }
.mobile-nav a:hover { background: #F5F1E8; text-decoration: none; }

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

/* ---------------------------
   Hero Section
   --------------------------- */
.hero { background: #F5F1E8; border-bottom: 1px solid #EDE8DC; }
.hero .container { gap: 0; }
.hero .content-wrapper { padding: 16px 0; gap: 16px; }
.hero h1 { color: #1E3A5F; }
.hero .text-section { display: flex; flex-direction: column; gap: 14px; }

/* ---------------------------
   Text & content blocks
   --------------------------- */
.text-section { display: flex; flex-direction: column; gap: 12px; }
.text-section ul, .text-section ol { margin-left: 20px; }
.text-section ol { list-style: decimal; }
.text-section ul { list-style: disc; }

.stats { color: #223040; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: var(--radius-md); padding: 12px 16px; }

.seo-intro { color: #223040; font-weight: 500; border-left: 4px solid #C5972D; padding-left: 12px; }

.quick-links { color: #5A6B80; }
.quick-links a { color: #1E3A5F; font-weight: 600; }

/* Badges row */
.badges { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.badges li { display: flex; align-items: center; gap: 8px; background: #FFFFFF; border: 1px solid #E2E8F0; border-radius: 999px; padding: 8px 12px; color: #223040; box-shadow: var(--shadow-sm); }
.badges img { width: 18px; height: 18px; }

/* Testimonial cards (high contrast) */
.testimonial-card p { margin: 0; }
.testimonial-card p + p { color: #1E3A5F; }

/* ---------------------------
   Buttons & Links
   --------------------------- */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border-radius: var(--radius-sm); border: 1px solid #1E3A5F; background: #FFFFFF; color: #1E3A5F; font-weight: 600; cursor: pointer; transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease, transform 120ms ease; text-decoration: none; }
.button:hover { background: #F5F1E8; text-decoration: none; box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.button.primary { background: #1E3A5F; color: #FFFFFF; border-color: #1E3A5F; }
.button.primary:hover { background: #2A4C7D; }
.button.secondary { background: #FFFFFF; color: #C5972D; border-color: #C5972D; }
.button.secondary:hover { background: #FCFAF6; }

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

/* ---------------------------
   Footer
   --------------------------- */
footer { background: #0F2137; color: #E8EEF6; padding-top: 24px; padding-bottom: 24px; }
footer a { color: #E8EEF6; }
footer .content-wrapper { gap: 20px; }
.footer-cols { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-cols > div { flex: 1 1 260px; display: flex; flex-direction: column; gap: 8px; }
footer h3 { color: #FFFFFF; font-size: 16px; margin-bottom: 8px; }
footer p { margin: 0; color: #D8E2EE; }
footer img { width: 16px; height: 16px; margin-right: 8px; vertical-align: middle; }

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

/* ---------------------------
   Utility spacing & alignment
   --------------------------- */
.mt-0 { margin-top: 0 !important; }
.mb-0 { margin-bottom: 0 !important; }
.mt-16 { margin-top: 16px !important; }
.mb-16 { margin-bottom: 16px !important; }
.centered { display: flex; align-items: center; justify-content: center; }

/* ---------------------------
   Tables, code (generic styling)
   --------------------------- */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 10px; border-bottom: 1px solid #E2E8F0; }
code, pre { font-family: Consolas, Monaco, monospace; font-size: 14px; background: #F7FAFC; border: 1px solid #E2E8F0; border-radius: 6px; padding: 4px 6px; }

/* ---------------------------
   Cards (generic, not absolute positioned)
   --------------------------- */
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); transition: transform 160ms ease, box-shadow 160ms ease; }

/* ---------------------------
   Lists inside content wrappers
   --------------------------- */
.content-wrapper ul { display: flex; flex-direction: column; gap: 6px; }

/* ---------------------------
   Header CTA button alignment on desktop
   --------------------------- */
@media (min-width: 992px) {
  .header-cta { margin-left: auto; }
}

/* ---------------------------
   High-contrast notes & emphasis
   --------------------------- */
em { color: #223040; }
strong { color: #1E3A5F; }

/* ---------------------------
   Cookie Consent Banner & Modal
   --------------------------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 200; display: flex; flex-direction: column; gap: 12px; background: #FFFFFF; color: #223040; border-top: 1px solid #E2E8F0; box-shadow: 0 -6px 24px rgba(4,24,45,0.08); padding: 16px 20px; transform: translateY(100%); opacity: 0; visibility: hidden; transition: transform 260ms ease, opacity 260ms ease, visibility 260ms ease; }
.cookie-banner.show { transform: translateY(0); opacity: 1; visibility: visible; }
.cookie-banner .cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-banner .button { padding: 10px 14px; }
.cookie-banner .button.accept { background: #1E3A5F; color: #FFFFFF; border-color: #1E3A5F; }
.cookie-banner .button.reject { background: #FFFFFF; color: #1E3A5F; border-color: #1E3A5F; }
.cookie-banner .button.settings { background: #FFFFFF; color: #C5972D; border-color: #C5972D; }

.cookie-modal { position: fixed; inset: 0; z-index: 210; display: flex; align-items: center; justify-content: center; background: rgba(2,12,24,0.45); visibility: hidden; opacity: 0; transition: opacity 220ms ease, visibility 220ms ease; }
.cookie-modal.show { visibility: visible; opacity: 1; }
.cookie-modal .modal-content { display: flex; flex-direction: column; gap: 14px; background: #FFFFFF; color: #223040; width: 92%; max-width: 560px; border-radius: 12px; border: 1px solid #E2E8F0; box-shadow: var(--shadow-md); padding: 18px; transform: translateY(30px); transition: transform 260ms ease; }
.cookie-modal.show .modal-content { transform: translateY(0); }
.cookie-modal .modal-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.cookie-modal .modal-body { display: flex; flex-direction: column; gap: 10px; }
.cookie-modal .category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid #E2E8F0; }
.cookie-modal .category .label { font-weight: 600; }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }

/* Simple toggle style (for checkboxes) */
.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.toggle input[type="checkbox"] { width: 18px; height: 18px; accent-color: #1E3A5F; }

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

/* ---------------------------
   Page-specific polish
   --------------------------- */
/* Hero CTA alignment */
.hero .cta-group { margin-top: 8px; }

/* Inline icon alignment in paragraphs */
p img[alt] { vertical-align: middle; margin-right: 8px; }

/* Ordered lists in steps sections */
ol.text-section { padding-left: 18px; }
ol.text-section li { margin-bottom: 8px; }

/* Emphasize update dates in legal pages */
main p:has(> a.button) { margin-top: 8px; }

/* ---------------------------
   Responsive refinements
   --------------------------- */
@media (min-width: 768px) {
  .container { gap: 24px; }
  .content-wrapper { gap: 18px; }
}
@media (min-width: 1024px) {
  .logo img { height: 40px; }
  .main-nav a { padding: 10px 12px; }
  .hero .content-wrapper { padding: 24px 0; gap: 18px; }
}

/* ---------------------------
   Prevent overlaps & ensure spacing
   --------------------------- */
section + section { margin-top: 0; }
.content-wrapper > * + * { margin-top: 0; }

/* ---------------------------
   Link styles in footer columns
   --------------------------- */
.footer-cols a { text-decoration: none; border-bottom: 1px solid transparent; }
.footer-cols a:hover { border-bottom-color: rgba(232, 238, 246, 0.6); }

/* ---------------------------
   Print basics (optional)
   --------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal { display: none !important; }
  section { padding: 20px 0; margin-bottom: 24px; }
}

/* End of file */
