/* SparkBush Immobilien - style.css */
/* =============================
   RESET & BASE TOKENS
   ============================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Arial, Helvetica, sans-serif; color: #1F2937; background-color: #ffffff; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: #1F3A5F; text-decoration: none; }
a:hover { text-decoration: underline; }
:focus { outline: none; }
:focus-visible { outline: 2px solid #1F3A5F; outline-offset: 2px; }

:root {
  --primary: #1F3A5F;  /* Navy */
  --secondary: #C8A25A; /* Gold */
  --accent: #F5F7FA;    /* Light gray/blue */
  --bg: #ffffff;
  --text: #1F2937;      /* Slate-800 */
  --muted: #4B5563;     /* Slate-600 */
  --border: #E5E7EB;    /* Gray-200 */
  --shadow: 0 6px 18px rgba(0,0,0,0.06);
}

/* =============================
   TYPOGRAPHY
   ============================= */
h1, h2, h3, h4 { font-family: Georgia, 'Times New Roman', serif; color: #0F172A; line-height: 1.25; margin: 0 0 16px; }
h1 { font-size: 32px; letter-spacing: -0.5px; }
h2 { font-size: 24px; }
h3 { font-size: 18px; }
h4 { font-size: 16px; }
p { margin: 0 0 16px; color: var(--text); }
ul, ol { margin: 0 0 16px 20px; padding: 0; }
li { margin: 8px 0; }
strong { color: #0F172A; }
small { color: var(--muted); }

/* TYPOGRAPHY - Responsive scale */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 28px; }
  h3 { font-size: 20px; }
}
@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  h2 { font-size: 32px; }
}

/* =============================
   LAYOUT UTILITIES (FLEX-ONLY)
   ============================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; display: flex; flex-direction: column; gap: 20px; }
.content-wrapper { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.text-section { display: flex; flex-direction: column; gap: 16px; }

/* MANDATORY SPACING AND ALIGNMENT PATTERNS */
.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; }
.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; }

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

/* Ensure gaps between sibling sections */
main > section { padding: 40px 0; border-bottom: 1px solid var(--border); }
main > section:last-child { border-bottom: none; }

/* =============================
   HEADER & NAVIGATION
   ============================= */
header { background: var(--bg); border-bottom: 1px solid var(--border); position: relative; z-index: 1000; }
header .container { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.brand-tagline { font-size: 14px; color: var(--muted); display: none; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: var(--primary); padding: 10px 8px; border-bottom: 2px solid transparent; display: inline-flex; align-items: center; }
.main-nav a:hover { border-bottom-color: var(--secondary); text-decoration: none; }

.header-contacts { display: none; align-items: center; gap: 12px; flex-wrap: wrap; }
.header-contacts a { display: inline-flex; align-items: center; gap: 8px; color: var(--primary); }
.header-contacts img { width: 18px; height: 18px; }

/* Mobile burger */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; font-size: 20px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; color: var(--primary); cursor: pointer; transition: background-color .2s ease, box-shadow .2s ease; }
.mobile-menu-toggle:hover { background: var(--accent); box-shadow: var(--shadow); }

/* Mobile slide-in menu */
.mobile-menu { position: fixed; top: 0; right: 0; bottom: 0; width: 85%; max-width: 360px; background: #ffffff; border-left: 1px solid var(--border); box-shadow: -10px 0 30px rgba(0,0,0,.12); transform: translateX(100%); transition: transform .35s ease; z-index: 1200; display: flex; flex-direction: column; padding: 20px; gap: 16px; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; width: 36px; height: 36px; font-size: 18px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); color: var(--primary); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.mobile-nav { display: flex; flex-direction: column; gap: 8px; }
.mobile-nav a { padding: 12px 8px; border-radius: 6px; color: var(--text); }
.mobile-nav a:hover { background: var(--accent); color: var(--primary); text-decoration: none; }

/* Prevent body scroll when menu open */
.no-scroll { overflow: hidden; }

/* Desktop header */
@media (min-width: 992px) {
  .brand-tagline { display: inline-flex; }
  .main-nav { display: inline-flex; }
  .header-contacts { display: inline-flex; }
  .mobile-menu-toggle { display: none; }
  header .container { gap: 16px; }
}

/* =============================
   HERO
   ============================= */
.hero { background: var(--accent); }
.hero .container { padding-top: 30px; padding-bottom: 30px; }
.hero .content-wrapper { gap: 18px; }
.hero p { max-width: 820px; }

/* =============================
   BUTTONS & LINKS
   ============================= */
.btn-primary, .btn-secondary, .btn-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 10px; font-weight: 600; cursor: pointer; transition: background-color .2s ease, color .2s ease, box-shadow .2s ease, transform .08s ease; border: 1px solid transparent; }
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover { background: #183150; box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px); }
.btn-secondary { background: var(--secondary); color: #0F172A; }
.btn-secondary:hover { background: #B79045; box-shadow: var(--shadow); text-decoration: none; transform: translateY(-1px); }
.btn-link { background: transparent; color: var(--primary); padding-left: 0; padding-right: 0; border-radius: 0; border-color: transparent; }
.btn-link:hover { color: #153056; text-decoration: underline; }

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

/* Inline icon alignment */
p img, li img { display: inline-block; width: 18px; height: 18px; margin-right: 8px; vertical-align: text-bottom; }

/* =============================
   CARDS & LISTINGS
   ============================= */
.listing-card { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: #ffffff; box-shadow: 0 2px 8px rgba(0,0,0,0.03); transition: box-shadow .2s ease, transform .12s ease; }
.listing-card:hover { box-shadow: 0 10px 24px rgba(0,0,0,0.08); transform: translateY(-2px); }
.listing-card h3 { margin-bottom: 4px; }
.listing-card p { margin: 0; color: var(--muted); }
.listing-card a { color: var(--primary); font-weight: 600; }

/* Testimonials - dark text on light bg for readability */
.testimonial-card { background: var(--accent); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 2px 8px rgba(0,0,0,0.03); color: var(--text); }
.testimonial-card p { margin: 0; }

/* Text sections with mixed content and listings */
@media (min-width: 900px) {
  .text-section { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .text-section > .listing-card { flex: 1 1 calc(33.333% - 16px); }
  .text-section > p, .text-section > ul, .text-section > ol, .text-section > h3 { flex: 1 1 100%; }
}

/* =============================
   LISTS & STEPS
   ============================= */
ol { counter-reset: step; list-style: none; margin-left: 0; }
ol > li { position: relative; padding-left: 42px; margin: 14px 0; }
ol > li::before { content: counter(step); counter-increment: step; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }

/* =============================
   FOOTER
   ============================= */
footer { background: var(--primary); color: #E5E7EB; margin-top: 20px; }
footer a { color: #E5E7EB; }
footer a:hover { color: #ffffff; text-decoration: underline; }
footer .container { padding-top: 30px; padding-bottom: 30px; }
footer .content-wrapper { flex-direction: column; gap: 20px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px 18px; }
.footer-logo img { height: 38px; }
footer h3 { color: #ffffff; }

@media (min-width: 992px) {
  footer .content-wrapper { flex-direction: row; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
}

/* =============================
   TABLES (if any appear later)
   ============================= */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 12px; border-bottom: 1px solid var(--border); }
th { background: var(--accent); font-weight: 700; }

/* =============================
   FORMS (generic styles; pages use mailto/links)
   ============================= */
input, select, textarea { width: 100%; padding: 12px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; color: var(--text); font: inherit; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(31,58,95,0.15); }
label { display: block; font-weight: 600; margin-bottom: 8px; }

/* =============================
   RESPONSIVE CONTENT LAYOUT HELPERS
   ============================= */
/* Use these classes where needed within markup (already defined in requirements) */
.card-container > * { flex: 1 1 280px; }
.content-grid > * { flex: 1 1 320px; }
.text-image-section > .text, .text-image-section > .image { flex: 1 1 320px; }
.feature-item > * + * { margin-top: 2px; }

/* =============================
   UTILITIES
   ============================= */
.muted { color: var(--muted); }
.accent-bg { background: var(--accent); }
.divider { width: 100%; height: 1px; background: var(--border); }
.center { display: flex; justify-content: center; align-items: center; }
.right { display: flex; justify-content: flex-end; }

/* =============================
   COOKIE CONSENT BANNER & MODAL
   ============================= */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; background: #ffffff; border-top: 1px solid var(--border); box-shadow: 0 -8px 24px rgba(0,0,0,.08); z-index: 1300; display: none; }
.cookie-banner.show { display: flex; }
.cookie-banner .container { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.cookie-text { display: flex; flex: 1 1 auto; flex-direction: column; gap: 6px; font-size: 14px; }
.cookie-buttons { display: flex; gap: 10px; flex-wrap: wrap; }
.cookie-buttons .btn-accept { background: var(--primary); color: #fff; border: 1px solid var(--primary); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.cookie-buttons .btn-accept:hover { background: #183150; }
.cookie-buttons .btn-reject { background: #ffffff; color: var(--primary); border: 1px solid var(--primary); border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.cookie-buttons .btn-reject:hover { background: var(--accent); }
.cookie-buttons .btn-settings { background: var(--secondary); color: #0F172A; border: 1px solid #B79045; border-radius: 10px; padding: 10px 14px; font-weight: 600; }
.cookie-buttons .btn-settings:hover { background: #B79045; }

/* Cookie Modal */
.cookie-modal { position: fixed; inset: 0; background: rgba(2,6,23,.55); z-index: 1400; display: none; align-items: center; justify-content: center; padding: 20px; }
.cookie-modal.show { display: flex; }
.cookie-modal-content { background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 20px 50px rgba(0,0,0,.2); width: 100%; max-width: 700px; display: flex; flex-direction: column; gap: 14px; padding: 20px; }
.cookie-modal-header { display: flex; align-items: center; justify-content: space-between; }
.cookie-modal-body { display: flex; flex-direction: column; gap: 10px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--accent); }
.cookie-row.small { background: #fff; }
.cookie-label { display: flex; flex-direction: column; gap: 4px; }
.cookie-actions { display: flex; justify-content: flex-end; gap: 10px; }

/* Simple toggle style */
.toggle { position: relative; width: 44px; height: 26px; border-radius: 20px; background: #CBD5E1; transition: background .2s ease; display: inline-flex; align-items: center; padding: 3px; }
.toggle::after { content: ""; width: 20px; height: 20px; border-radius: 50%; background: #ffffff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transform: translateX(0); transition: transform .2s ease; }
.toggle.on { background: var(--primary); }
.toggle.on::after { transform: translateX(18px); }

/* =============================
   ACCESSIBILITY & MICRO-INTERACTIONS
   ============================= */
button, .btn-primary, .btn-secondary { transition: transform .08s ease, box-shadow .2s ease; }
button:active, .btn-primary:active, .btn-secondary:active { transform: translateY(0); box-shadow: none; }

/* =============================
   PAGE-SPECIFIC TWEAKS
   ============================= */
/* Footer copyright row spacing */
footer .container:last-child { padding-top: 12px; padding-bottom: 24px; border-top: 1px solid rgba(255,255,255,.15); }
footer .container:last-child p { margin: 0; color: #E5E7EB; text-align: center; }

/* Brand tagline in header on larger screens only for clarity */
@media (min-width: 1200px) { .brand-tagline { font-size: 15px; } }

/* Ensure adequate spacing between sibling blocks */
.content-wrapper > * + * { margin-top: 4px; }

/* Lists inside text-section maintain proper spacing */
.text-section ul, .text-section ol { margin-left: 20px; }

/* =============================
   RESPONSIVE STRUCTURE
   ============================= */
@media (min-width: 768px) {
  .container { gap: 24px; }
  .content-wrapper { gap: 18px; }
}
@media (min-width: 1024px) {
  /* Header multi-row wrap alignment */
  header .container { row-gap: 8px; }
}

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