/* =============================
   FlickerRay RentenKompass – style.css
   Vintage Retro aesthetic with brand alignment
   Mobile-first • Flexbox-only • No CSS Grid/Columns
   ============================= */

/* =============================
   0) RESET & NORMALIZE
   ============================= */
html { line-height: 1.5; -webkit-text-size-adjust: 100%; }
*, *::before, *::after { box-sizing: border-box; }
body, h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding-left: 1.25rem; }
img, picture { max-width: 100%; display: block; height: auto; }
a { text-decoration: none; color: inherit; }
button, input, textarea { font: inherit; }
:focus { outline: 2px dashed #2A7B6F; outline-offset: 2px; }

/* =============================
   1) THEME VARIABLES (with fallbacks)
   ============================= */
:root {
  --color-primary: #123C64;
  --color-secondary: #2A7B6F;
  --color-accent: #F5F7FA;
  --color-paper: #F3EDE3; /* vintage paper */
  --color-ink: #2B2B2B; /* body text */
  --color-warm: #E7D9C4; /* soft beige accents */
  --color-amber: #C49A6C; /* retro brass highlight */
  --color-rose: #B76E79; /* muted retro rose */
  --shadow-soft: 0 2px 10px rgba(18,60,100,0.08);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --space-8: 8px; --space-12: 12px; --space-16: 16px; --space-20: 20px; --space-24: 24px; --space-32: 32px; --space-40: 40px; --space-60: 60px;
}

/* =============================
   2) BASE TYPOGRAPHY
   ============================= */
body {
  font-family: Verdana, Geneva, Tahoma, sans-serif; /* brand body */
  color: var(--color-ink);
  background-color: var(--color-paper);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, h4 {
  font-family: Georgia, "Times New Roman", serif; /* brand display */
  color: var(--color-primary);
}
h1 { font-size: 32px; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 3px double var(--color-secondary); }
h3 { font-size: 18px; line-height: 1.4; margin-top: 8px; margin-bottom: 8px; color: #0E2E4B; }
.subheadline { font-size: 18px; color: #3a3a3a; margin-bottom: 16px; font-style: italic; }

p { margin-bottom: 12px; }
ul, ol { margin: 0 0 16px 20px; }
li { margin-bottom: 8px; }

/* Retro link styling */
a { color: var(--color-primary); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--color-secondary); }

/* =============================
   3) LAYOUT WRAPPERS (FLEX ONLY)
   ============================= */
.container {
  width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px;
  display: flex; flex-direction: column; gap: 20px;
}

/* Sections */
section { margin-bottom: 60px; padding: 40px 0; background-color: transparent; }
/* mandated spacing class */
.section { margin-bottom: 60px; padding: 40px 20px; }

/* Content wrapper for inner spacing */
.content-wrapper { display: flex; flex-direction: column; gap: 16px; }

/* Alternating subtle vintage backgrounds */
main > section:nth-of-type(odd) { background-color: #FBF8F2; }
main > section:nth-of-type(even) { background-color: var(--color-accent); }

/* Hero first section punch */
main > section:first-of-type { background-color: #FFF7E9; border-bottom: 4px solid var(--color-amber); }

/* =============================
   4) HEADER & NAVIGATION
   ============================= */
header { background-color: #FFFDF7; border-bottom: 5px double var(--color-primary); box-shadow: var(--shadow-soft); position: relative; z-index: 50; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-top: 12px; padding-bottom: 12px; }
header img { height: 40px; width: auto; }

/* Desktop nav defaults to hidden on mobile */
header nav { display: none; align-items: center; gap: 16px; }
header nav a { padding: 8px 10px; border-radius: var(--radius-sm); color: var(--color-primary); font-weight: 600; }
header nav a:hover { background-color: var(--color-warm); color: #0E2E4B; }

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

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border: 2px solid var(--color-primary); background: #FFF7E9; color: var(--color-primary); border-radius: 50%; cursor: pointer; box-shadow: var(--shadow-soft); transition: transform .2s ease, background-color .2s ease; }
.mobile-menu-toggle:hover { transform: scale(1.04); background-color: #FCEFD8; }

/* Mobile menu overlay */
.mobile-menu {
  position: fixed; top: 0; right: 0; height: 100vh; width: 84%; max-width: 380px; background: #FFFDF7; border-left: 5px double var(--color-primary);
  box-shadow: -12px 0 24px rgba(0,0,0,0.08);
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column; gap: 12px; padding: 20px; z-index: 900;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 38px; height: 38px; border: 2px solid var(--color-primary); background: #FFF7E9; color: var(--color-primary); border-radius: 50%; cursor: pointer; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a { display: flex; padding: 12px 10px; border-radius: var(--radius-sm); background: var(--color-accent); color: var(--color-primary); font-weight: 600; }
.mobile-nav a:hover { background: #EAF1F9; color: var(--color-secondary); }

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

/* =============================
   5) BUTTONS & LINKS
   ============================= */
.btn-primary, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px; border-radius: var(--radius-md);
  border: 3px solid var(--color-primary);
  font-weight: 700; letter-spacing: 0.3px;
  transition: background-color .25s ease, color .25s ease, transform .12s ease;
  box-shadow: 0 3px 0 rgba(0,0,0,0.08);
}
.btn-primary { background: var(--color-primary); color: #fff; }
.btn-primary:hover { background: #0F3353; transform: translateY(-1px); }

.btn-secondary { background: #FFF7E9; color: var(--color-primary); border-color: var(--color-amber); }
.btn-secondary:hover { background: #FCEFD8; color: #0E2E4B; transform: translateY(-1px); }

/* =============================
   6) COMMON BLOCKS
   ============================= */
/* Trust badges */
.trust-badges { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.trust-badges img { height: 28px; width: auto; filter: saturate(0.8); }

/* Feature grid & Service cards */
.feature-grid, .service-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.feature-grid > div, .service-cards > div {
  flex: 1 1 260px; background: #FFFFFF; border: 3px solid var(--color-amber);
  border-radius: var(--radius-lg); padding: 16px; box-shadow: var(--shadow-soft); position: relative;
}
.feature-grid > div::before, .service-cards > div::before {
  content: ""; position: absolute; top: 10px; left: 10px; width: 14px; height: 14px; border-top: 3px solid var(--color-secondary); border-left: 3px solid var(--color-secondary); border-top-left-radius: 4px;
}
.feature-grid img, .service-cards img { height: 36px; width: 36px; }
.feature-grid h3, .service-cards h3 { margin-top: 8px; margin-bottom: 6px; }

/* Stats highlight as retro stamps */
.stat-highlights ul { display: flex; flex-wrap: wrap; gap: 12px; list-style: none; padding-left: 0; }
.stat-highlights li { display: flex; align-items: center; padding: 8px 12px; background: #fff; border: 3px dashed var(--color-secondary); border-radius: 20px; color: #0E2E4B; font-weight: 700; }

/* Certifications */
.certifications { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; background: #fff; border: 3px solid var(--color-warm); border-radius: var(--radius-md); }

/* Contact details */
.contact-details { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #fff; border: 3px solid var(--color-amber); border-radius: var(--radius-md); }
.contact-details p { display: flex; align-items: center; gap: 8px; margin: 0; }
.contact-details img { height: 18px; width: 18px; }

/* Data privacy note */
.data-privacy-note { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; background: #fff; border-left: 6px solid var(--color-secondary); border-radius: var(--radius-sm); }

/* Rating summary */
.rating-summary { display: flex; align-items: center; justify-content: flex-start; padding: 12px 14px; background: #fff; border: 3px solid var(--color-warm); border-radius: var(--radius-md); font-weight: 700; color: #0E2E4B; }

/* Testimonial cards – ensure dark text on light bg */
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; background: #FFFFFF; color: #1e1e1e; border: 3px solid var(--color-secondary); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.testimonial-card blockquote { font-family: Georgia, serif; font-size: 18px; color: #1e1e1e; }

/* Topic & featured guides blocks (Wissen) */
.topic-categories, .featured-guides, .country-briefs { display: flex; flex-direction: column; gap: 8px; padding: 16px; background: #fff; border: 3px solid var(--color-warm); border-radius: var(--radius-md); }

/* Search input */
input[type="search"] { width: 100%; padding: 12px 14px; border: 3px solid var(--color-primary); border-radius: var(--radius-md); background: #fff; color: var(--color-ink); box-shadow: inset 0 2px 0 rgba(0,0,0,0.05); }
input[type="search"]::placeholder { color: #6e6e6e; }

/* Lists with vintage bullets */
.content-wrapper ul li { position: relative; padding-left: 14px; }
.content-wrapper ul li::before { content: "◆"; color: var(--color-rose); position: absolute; left: 0; top: 0; line-height: 1.3; font-size: 12px; }

/* =============================
   7) FOOTER
   ============================= */
footer { background: var(--color-primary); color: #F5F7FA; margin-top: 40px; border-top: 5px double #0F3353; }
footer .container { flex-direction: column; gap: 20px; padding-top: 24px; padding-bottom: 24px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.footer-nav nav { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-nav a { color: #E6EEF6; padding: 6px 8px; border-radius: var(--radius-sm); }
.footer-nav a:hover { background: rgba(255,255,255,0.1); color: #fff; }
.footer-contact { display: flex; flex-direction: column; gap: 4px; color: #E6EEF6; }
.brand-signature { display: flex; align-items: center; gap: 10px; }
.brand-signature img { height: 28px; width: auto; filter: brightness(1.1); }

/* =============================
   8) RESPONSIVE FLEX BEHAVIOR
   ============================= */
/* Text-image sections default column on mobile */
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; flex-direction: column; }
@media (min-width: 768px) { .text-image-section { flex-direction: row; } }

/* Feature/Service cards grow with breakpoints */
@media (min-width: 768px) {
  .feature-grid > div, .service-cards > div { flex: 1 1 45%; }
}
@media (min-width: 1024px) {
  .feature-grid > div, .service-cards > div { flex: 1 1 30%; }
}

/* Footer layout row on wider screens */
@media (min-width: 768px) {
  footer .container { gap: 24px; }
}

/* =============================
   9) ACCESSORY/UTILITY FLEX CLASSES (MANDATORY PATTERNS)
   ============================= */
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: #fff; border: 3px solid var(--color-warm); border-radius: var(--radius-md); padding: 16px; box-shadow: var(--shadow-soft); }
.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; }

/* =============================
   10) MICRO INTERACTIONS & HOVERS
   ============================= */
button, .btn-primary, .btn-secondary, .mobile-nav a, header nav a { transition: transform .12s ease, background-color .2s ease, color .2s ease; }
button:active, .btn-primary:active, .btn-secondary:active { transform: translateY(1px); }

/* =============================
   11) COOKIE CONSENT BANNER & MODAL
   ============================= */
/* Banner */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  background: #FFF7E9; color: #1e1e1e; border-top: 5px double var(--color-primary);
  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 .container { flex-direction: column; gap: 12px; padding-top: 14px; padding-bottom: 14px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: var(--radius-md); border: 3px solid var(--color-primary); font-weight: 700; }
.cookie-btn.accept { background: var(--color-primary); color: #fff; }
.cookie-btn.reject { background: #fff; color: var(--color-primary); }
.cookie-btn.settings { background: #FFF7E9; border-color: var(--color-amber); color: var(--color-primary); }
.cookie-btn:hover { filter: brightness(0.97); }

/* Modal */
.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.5); display: none; align-items: center; justify-content: center; z-index: 1100; }
.cookie-overlay.open { display: flex; }
.cookie-modal { width: 92%; max-width: 640px; background: #fff; border: 5px double var(--color-primary); border-radius: var(--radius-lg); box-shadow: 0 20px 50px rgba(0,0,0,0.2); padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.cookie-modal h3 { margin-bottom: 4px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 10px; border: 3px solid var(--color-warm); border-radius: var(--radius-md); background: var(--color-accent); }
.cookie-modal .modal-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; padding-top: 8px; }

/* Simple toggle style (if used) */
.toggle { width: 44px; height: 26px; background: #ddd; border: 2px solid var(--color-primary); border-radius: 20px; position: relative; }
.toggle::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: var(--color-primary); transition: left .2s ease; }
.toggle.on { background: #D7E6F6; }
.toggle.on::after { left: 22px; }

/* =============================
   12) MISC ELEMENT REFINEMENTS
   ============================= */
blockquote { padding-left: 14px; border-left: 4px solid var(--color-secondary); }
hr { border: none; border-top: 3px double var(--color-warm); margin: 16px 0; }

/* Lists inside legal pages – keep clean */
main ul li, main ol li { margin-bottom: 6px; }

/* =============================
   13) ACCESSIBILITY & PRINT BASICS
   ============================= */
@media print {
  .mobile-menu, .mobile-menu-toggle, .cookie-banner, .cookie-overlay { display: none !important; }
  a { text-decoration: underline; }
}

/* =============================
   14) DESKTOP TWEAKS
   ============================= */
@media (min-width: 768px) {
  .container { gap: 24px; }
  section { padding: 50px 0; }
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
}
@media (min-width: 1200px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

/* =============================
   15) COMPONENT-SPECIFIC POLISH
   ============================= */
/* Header CTA layout on desktop */
@media (min-width: 992px) { .cta-buttons { gap: 10px; } }

/* Aligning footer blocks consistently */
@media (min-width: 992px) {
  footer .container { flex-direction: column; }
  .footer-nav { justify-content: space-between; }
}

/* Ensure no overlapping & adequate spacing */
.feature-grid > div + div, .service-cards > div + div, .testimonial-card + .testimonial-card { margin-top: 0; }

/* =============================
   16) FLEX-ONLY ENFORCEMENT FOR LAYOUT CONTAINERS
   (Applied already above; re-assert common containers)
   ============================= */
header .container, .footer-nav, .footer-nav nav, .brand-signature, .cta-buttons, .trust-badges, .feature-grid, .service-cards, .stat-highlights ul, .certifications, .contact-details, .data-privacy-note, .rating-summary, .topic-categories, .featured-guides, .country-briefs { display: flex; }
/* Ensure column orientation where needed */
.certifications, .contact-details, .data-privacy-note, .topic-categories, .featured-guides, .country-briefs, .footer-contact { flex-direction: column; }

/* =============================
   End of style.css
   ============================= */
