/* ==========================
   Luminous Momentum Wohnkompass — style.css
   Design: geometric_structured (geometric shapes, structured, angular, precise)
   Mobile-first, flexbox-only layouts, brand-driven UI
   ========================== */

/* ==========================
   Reset & Base
   ========================== */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Verdana, Geneva, Tahoma, sans-serif; color: #142433; background: #ffffff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
svg { max-width: 100%; height: auto; }
a { color: #0E2A47; text-decoration: none; }
a:hover { text-decoration: none; }
button { font-family: inherit; border: none; background: none; cursor: pointer; }
ul, ol { padding-left: 20px; }
blockquote { margin: 0; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #C46A3A; outline-offset: 2px; }

/* ==========================
   CSS Variables
   ========================== */
:root {
  --primary: #0E2A47;   /* deep nautical blue */
  --secondary: #C46A3A; /* terracotta orange */
  --accent: #F5F7FA;    /* soft light gray-blue */
  --ink: #142433;       /* readable dark */
  --muted: #5A6B7C;     /* muted text */
  --line: #DFE6EE;      /* divider */
  --surface: #ffffff;   /* card bg */
  --radius: 6px;        /* slightly angular */
  --shadow-1: 0 2px 8px rgba(14, 42, 71, 0.08);
  --shadow-2: 0 6px 18px rgba(14, 42, 71, 0.12);
  --s-8: 8px; --s-12: 12px; --s-16: 16px; --s-20: 20px; --s-24: 24px; --s-32: 32px; --s-40: 40px; --s-48: 48px; --s-60: 60px;
}

/* ==========================
   Typography — geometric/structured accents
   ========================== */
h1, h2, h3, h4, h5 { font-family: "Trebuchet MS", Verdana, Geneva, sans-serif; color: var(--primary); margin: 0 0 var(--s-16) 0; line-height: 1.2; letter-spacing: 0.4px; }
h1 { font-size: 32px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; text-transform: uppercase; letter-spacing: 1px; }
p, li { font-size: 16px; color: var(--ink); }
small { font-size: 14px; color: var(--muted); }
.subheadline { color: var(--muted); font-size: 18px; }
.tagline { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; color: var(--secondary); }
.tagline::before { content: ""; width: 18px; height: 2px; background: var(--secondary); display: inline-block; }

/* Geometric heading underline */
.content-wrapper > h2 { position: relative; padding-bottom: 8px; }
.content-wrapper > h2::after { content: ""; display: block; width: 60px; height: 4px; background: var(--secondary); margin-top: 8px; clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%); }

/* ==========================
   Layout Containers — Flex Only
   ========================== */
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: var(--s-20); }
.content-wrapper { display: flex; flex-direction: column; gap: var(--s-20); }
section { margin-bottom: var(--s-60); padding: 40px 0; }

/* MANDATORY SPACING PATTERNS (exact) */
.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: 900; background: var(--surface); box-shadow: var(--shadow-1); border-bottom: 2px solid var(--accent); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; gap: var(--s-16); padding: 12px 20px; }
header img { height: 34px; width: auto; }
header nav { display: none; align-items: center; gap: var(--s-16); }
header nav a { font-size: 14px; color: var(--ink); padding: 10px 12px; border-bottom: 2px solid transparent; text-transform: uppercase; letter-spacing: 0.8px; }
header nav a:hover { border-bottom-color: var(--secondary); color: var(--primary); }

/* CTA Buttons */
.cta { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 12px 18px; border-radius: var(--radius); border: 2px solid transparent; font-weight: 700; letter-spacing: 0.4px; transition: transform .15s ease, background-color .2s ease, color .2s ease, border-color .2s ease; }
.cta.primary { background: var(--secondary); color: #fff; border-color: var(--secondary); box-shadow: var(--shadow-1); }
.cta.primary:hover { transform: translateY(-1px); background: #b0653b; border-color: #b0653b; }
.cta.secondary { background: transparent; color: var(--secondary); border-color: var(--secondary); }
.cta.secondary:hover { background: rgba(196,106,58,0.08); }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 2px solid var(--primary); color: var(--primary); border-radius: 4px; font-size: 20px; background: transparent; }
.mobile-menu-toggle:hover { background: var(--accent); }

/* Mobile Menu Overlay */
.mobile-menu { position: fixed; inset: 0; background: var(--primary); color: #fff; transform: translateX(100%); transition: transform .35s ease; z-index: 1000; display: flex; flex-direction: column; padding: 20px; gap: 20px; }
.mobile-menu.open, .mobile-menu.active, .mobile-menu[aria-expanded="true"] { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; color: #fff; border: 2px solid #fff; border-radius: 4px; width: 40px; height: 40px; background: transparent; font-size: 18px; }
.mobile-nav { display: flex; flex-direction: column; gap: 14px; }
.mobile-nav a { color: #fff; padding: 12px 10px; border-left: 3px solid transparent; text-transform: uppercase; letter-spacing: 1px; }
.mobile-nav a:hover { border-left-color: var(--secondary); }

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

/* ==========================
   Hero Section — geometric accents
   ========================== */
.hero { background: var(--accent); position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; top: -60px; right: -80px; width: 240px; height: 240px; background: rgba(14,42,71,0.06); transform: rotate(45deg); border: 2px solid rgba(14,42,71,0.12); pointer-events: none; }
.hero .container { padding-top: var(--s-40); padding-bottom: var(--s-40); }
.hero h1 { font-size: 28px; }
.hero .cta-group { display: flex; flex-wrap: wrap; gap: var(--s-16); }
.trust-badges { display: flex; align-items: center; gap: var(--s-16); opacity: 0.9; }
.trust-badges img { width: 28px; height: 28px; }

/* Breadcrumb */
.breadcrumb { display: flex; flex-wrap: wrap; margin-top: 8px; color: var(--muted); font-size: 14px; }
.breadcrumb a { color: var(--secondary); }

/* ==========================
   Feature / Service / Guide / District / Milestone cards
   ========================== */
.feature-grid, .service-cards, .guide-cards, .milestone-cards, .district-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.feature-grid > div, .service-cards > div, .guide-cards > div, .milestone-cards > div, .district-cards > div { flex: 1 1 260px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1); transition: transform .15s ease, box-shadow .2s ease; }
.feature-grid > div:hover, .service-cards > div:hover, .guide-cards > div:hover, .milestone-cards > div:hover, .district-cards > div:hover { transform: translateY(-2px); box-shadow: var(--shadow-2); }
.feature-grid img { width: 36px; height: 36px; }

/* ==========================
   Timelines & Steps (structured, linear)
   ========================== */
.steps-timeline, .timeline { list-style: none; padding-left: 0; border-left: 3px solid var(--line); display: flex; flex-direction: column; gap: 12px; padding-left: 16px; }
.steps-timeline li, .timeline li { position: relative; padding-left: 8px; }
.steps-timeline li::before, .timeline li::before { content: ""; position: absolute; left: -23px; top: 8px; width: 10px; height: 10px; border: 2px solid var(--secondary); background: #fff; transform: rotate(45deg); }

.milestones { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px dashed var(--line); border-radius: var(--radius); background: #fff; }

/* ==========================
   Testimonials — high contrast, readable
   ========================== */
.testimonial-card { background: var(--accent); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.testimonial-card blockquote { color: var(--ink); font-size: 16px; }
.testimonial-card span { color: var(--primary); font-weight: 700; font-size: 14px; }
.ratings-summary { display: flex; align-items: center; justify-content: flex-start; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-weight: 700; color: var(--primary); }

/* ==========================
   Utility Info Boxes
   ========================== */
.lead-magnet-box, .fee-transparency-box, .faq-link-box, .deadline-alerts, .risk-mitigation-tips, .checkpoints { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow-1); }
.lead-magnet-box { border-left: 4px solid var(--secondary); }
.fee-transparency-box { border-left: 4px solid #2a9d8f; }
.deadline-alerts { border-left: 4px solid #d62828; }
.risk-mitigation-tips { border-left: 4px solid #457b9d; }
.faq-link-box a { color: var(--secondary); font-weight: 700; }

/* ==========================
   Lists with icons
   ========================== */
ul li img { width: 18px; height: 18px; margin-right: 8px; }
ul li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; }

/* ==========================
   Tables — structured, legible
   ========================== */
table { width: 100%; border-collapse: collapse; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
th, td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 16px; }
th { background: var(--accent); color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; font-size: 14px; }
tr:hover td { background: #FAFCFF; }

/* ==========================
   Footer
   ========================== */
footer { background: #0c243d; color: #e7eef6; padding-top: 24px; }
footer .container { padding-top: 24px; padding-bottom: 24px; }
.footer-columns { display: flex; flex-wrap: wrap; gap: 20px; }
.footer-columns > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 10px; }
footer a { color: #e7eef6; }
footer a:hover { color: #ffffff; }
footer img { width: 34px; height: auto; }
footer h4, footer ul li{color: #fff !important;}
footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
footer small { display: block; text-align: center; border-top: 1px solid rgba(255,255,255,0.15); padding: 12px 0 16px; margin-top: 8px; color: #b8c7d6; }

/* Newsletter form in footer */
.newsletter-form { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; background: rgba(255,255,255,0.06); padding: 12px; border-radius: var(--radius); }
.newsletter-form label { flex: 1 1 220px; color: #e7eef6; }
.newsletter-form input[type="email"] { flex: 1 1 240px; padding: 10px 12px; border-radius: 4px; border: 1px solid #335777; background: #0f2b49; color: #e7eef6; }
.newsletter-form button { padding: 10px 14px; border-radius: 4px; background: var(--secondary); color: #fff; font-weight: 700; }
.newsletter-form button:hover { background: #b0653b; }

/* ==========================
   USP icons
   ========================== */
.usp-icons { display: flex; align-items: center; gap: 16px; }
.usp-icons img { width: 40px; height: 40px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.06)); }

/* ==========================
   Buyer profile table wrapper
   ========================== */
.buyer-profile-table { display: flex; flex-direction: column; gap: 12px; }

/* ==========================
   Contact Sections
   ========================== */
section.contact ul { display: flex; flex-direction: column; gap: 10px; }
section.contact a { color: var(--secondary); font-weight: 700; }

/* ==========================
   Ratings & badges extras
   ========================== */
.ratings-summary span, .ratings-summary { font-size: 16px; }

/* ==========================
   Buttons & Links general
   ========================== */
button, .cta { will-change: transform; }
a:hover, a:active { color: #0A1E36; }

/* ==========================
   Cookie Consent Banner & Modal
   ========================== */
.cookie-banner { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1100; display: none; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; background: #ffffff; border: 1px solid var(--line); box-shadow: var(--shadow-2); border-radius: 8px; padding: 14px 16px; }
.cookie-banner.show { display: flex; animation: slideUp .35s ease; }
.cookie-banner p { margin: 0; flex: 1 1 240px; font-size: 14px; color: var(--ink); }
.cookie-actions { display: flex; align-items: center; gap: 10px; }
.cookie-accept { background: var(--secondary); color: #fff; border: 2px solid var(--secondary); padding: 10px 14px; border-radius: 4px; font-weight: 700; }
.cookie-accept:hover { background: #b0653b; border-color: #b0653b; }
.cookie-reject { background: transparent; color: var(--primary); border: 2px solid var(--primary); padding: 10px 14px; border-radius: 4px; font-weight: 700; }
.cookie-reject:hover { background: var(--accent); }
.cookie-settings { background: transparent; color: var(--secondary); border: 2px solid var(--secondary); padding: 10px 14px; border-radius: 4px; font-weight: 700; }
.cookie-settings:hover { background: rgba(196,106,58,0.08); }

/* Cookie Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(14,42,71,0.5); z-index: 1150; display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.show { display: flex; animation: fadeIn .25s ease; }
.cookie-modal .modal { width: 100%; max-width: 680px; background: #fff; border-radius: 10px; border: 1px solid var(--line); box-shadow: var(--shadow-2); display: flex; flex-direction: column; gap: 16px; padding: 20px; }
.cookie-modal h3 { margin: 0; }
.cookie-categories { display: flex; flex-direction: column; gap: 12px; }
.cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: #fff; }
.cookie-modal .modal-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }

@keyframes slideUp { from { transform: translateY(14px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================
   Forms (general)
   ========================== */
input[type="text"], input[type="email"], select, textarea { width: 100%; padding: 12px 14px; border-radius: 6px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
input::placeholder, textarea::placeholder { color: #8aa0b2; }

/* ==========================
   Accent alternation helpers
   ========================== */
section:nth-of-type(2n) { background: #fff; }
section:nth-of-type(2n+1):not(.hero) { background: #ffffff; }

/* ==========================
   Geometric separators
   ========================== */
.divider { width: 100%; height: 12px; background: repeating-linear-gradient(45deg, var(--accent), var(--accent) 12px, #fff 12px, #fff 24px); }

/* ==========================
   Page-specific small tweaks
   ========================== */
.hero .content-wrapper[style*="text-align:center"] { align-items: center; }

/* ==========================
   Responsive Rules
   ========================== */
@media (min-width: 600px) {
  h1 { font-size: 36px; }
  .hero h1 { font-size: 36px; }
}

@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
  .container { gap: var(--s-24); }
}

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

@media (min-width: 992px) {
  h1 { font-size: 42px; }
  h2 { font-size: 28px; }
  .hero h1 { font-size: 48px; }
}

/* ==========================
   Assistive utilities
   ========================== */
.hidden { display: none !important; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ==========================
   Ensure minimum spacing between blocks/cards
   ========================== */
.content-wrapper > * + * { margin-top: 0; }
.feature-grid > div + div,
.service-cards > div + div,
.milestone-cards > div + div,
.guide-cards > div + div,
.district-cards > div + div,
.testimonial-card + .testimonial-card,
section + section { margin-top: 0; }

/* ==========================
   Link states refined
   ========================== */
header nav a:focus-visible { outline: 2px dashed var(--secondary); outline-offset: 2px; }

/* ==========================
   Additional structures referenced in HTML
   ========================== */
.risk-mitigation-tips ul, .checkpoints ul { margin: 0; }

/* ==========================
   Card look for generic .card (if used)
   ========================== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1); }

/* ==========================
   Content alignment helpers
   ========================== */
.cta-inline { display: flex; flex-wrap: wrap; gap: 12px; }

/* ==========================
   Ensure top alignment where necessary
   ========================== */
.feature-item, .feature-grid > div, .service-cards > div, .guide-cards > div, .milestone-cards > div, .district-cards > div { align-items: flex-start; }

/* ==========================
   High-contrast in legal pages blocks
   ========================== */
.legal .content-wrapper { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow-1); }

/* ==========================
   Breadcrumb spacing on content pages
   ========================== */
.hero .breadcrumb { margin-top: 6px; }

/* ==========================
   Ratings and status labels
   ========================== */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--line); background: #fff; border-radius: 4px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.8px; }

/* ==========================
   Prevent overlapping & ensure gaps
   ========================== */
.feature-grid, .service-cards, .guide-cards, .milestone-cards, .district-cards, .footer-columns, .cta-group, .newsletter-form, .usp-icons, .mobile-nav, .cookie-actions, .cookie-categories, .cookie-modal .modal-actions { gap: 20px; }

/* ==========================
   ANGULAR micro-interactions on hover for list links
   ========================== */
.content-wrapper a { position: relative; }
.content-wrapper a:not(.cta):hover::after { content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px; background: var(--secondary); transform: skewX(-20deg); }

/* ==========================
   Header CTA visibility on small screens
   ========================== */
@media (max-width: 480px) {
  header .cta.primary { display: none; }
}

/* ==========================
   Readability in testimonial/review sections
   ========================== */
.testimonial-card, .ratings-summary { color: #0E202F; }

/* ==========================
   Misc page blocks
   ========================== */
.newsletter-signup { display: flex; flex-direction: column; gap: 8px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }

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