/* =============================
   DimozGloba Rückbau Zürich
   style.css – Nature_Organic theme
   Mobile-first, Flexbox-only
   ============================= */

/* -----------------------------
   CSS RESET & NORMALIZE
----------------------------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding-left: 1.2rem; }
p, h1, h2, h3, h4, h5, h6 { margin: 0 0 12px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: none; padding: 0; cursor: pointer; }

/* -----------------------------
   THEME TOKENS (with fallbacks)
----------------------------- */
:root {
  --color-primary: #2A2F36; /* brand charcoal */
  --color-secondary: #D97706; /* brand amber */
  --color-accent: #F5F7FA; /* brand light */
  /* Organic palette */
  --green-700: #1B5E20;
  --green-600: #2E7D32;
  --green-500: #3F8F3D;
  --sage-100: #EEF4EF;
  --sage-50: #F6FAF7;
  --sand-100: #F5F1EA;
  --bark-500: #8B6B4A;
  --stone-200: #E5E7EB;
  --stone-300: #D1D5DB;
  --stone-400: #9CA3AF;
  --stone-700: #374151;
  --white: #FFFFFF;
  --black: #0A0D0C;

  --text-main: #233127; /* deep greenish for nature vibe */
  --text-muted: #4B5A50;

  --radius-s: 10px;
  --radius-m: 16px;
  --radius-l: 22px; /* organic rounded */
  --shadow-s: 0 2px 6px rgba(18, 24, 20, 0.06);
  --shadow-m: 0 6px 18px rgba(18, 24, 20, 0.10);
  --focus-ring: 0 0 0 3px rgba(46, 125, 50, 0.25);
  --speed: 220ms;
}

/* -----------------------------
   TYPOGRAPHY
----------------------------- */
body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--text-main);
  background: var(--sage-50);
  line-height: 1.6;
  font-size: 16px;
}
h1, h2, h3, h4 { font-family: "Trebuchet MS", Arial, Helvetica, sans-serif; color: var(--text-main); }
h1 { font-size: 32px; line-height: 1.2; letter-spacing: 0.2px; }
h2 { font-size: 24px; line-height: 1.3; margin-bottom: 10px; }
h3 { font-size: 18px; line-height: 1.4; }
small, .text-muted { color: var(--text-muted); }

@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; }
  h3 { font-size: 22px; }
}

/* -----------------------------
   LAYOUT WRAPPERS (Flexbox Only)
----------------------------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.content-wrapper {
  display: flex;
  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; }
.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: 50;
  background: var(--white);
  box-shadow: var(--shadow-s);
  border-bottom: 1px solid var(--stone-200);
}
header .container {
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-top: 12px;
  padding-bottom: 12px;
}
.logo { display: flex; align-items: center; }
.logo img { height: 40px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a {
  padding: 10px 12px;
  border-radius: var(--radius-s);
  color: var(--text-main);
  transition: background var(--speed), color var(--speed), transform var(--speed);
}
.main-nav a:hover, .main-nav a:focus { background: var(--sage-100); outline: none; }
.main-nav a:active { transform: translateY(1px); }

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

/* Mobile menu toggle */
.mobile-menu-toggle {
  font-size: 24px;
  line-height: 1;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px;
  background: var(--sage-100);
  color: var(--green-700);
  box-shadow: var(--shadow-s);
}
.mobile-menu-toggle:hover, .mobile-menu-toggle:focus { box-shadow: var(--focus-ring); }

/* Mobile Menu Overlay */
.mobile-menu {
  position: fixed; inset: 0 0 0 auto; /* right side sheet */
  right: 0; top: 0; bottom: 0;
  width: 88%; max-width: 360px;
  background: var(--white);
  box-shadow: -8px 0 24px rgba(0,0,0,0.12);
  transform: translateX(100%);
  transition: transform var(--speed) ease;
  z-index: 100;
  display: flex; flex-direction: column; gap: 10px;
  padding: 16px;
}
.mobile-menu.active { transform: translateX(0%); }
.mobile-menu-close {
  align-self: flex-end;
  font-size: 22px;
  width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 10px; background: var(--sage-100); color: var(--text-main);
}
.mobile-nav { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav a {
  padding: 14px 12px;
  border-radius: 12px;
  background: var(--sage-50);
  border: 1px solid var(--stone-200);
  color: var(--text-main);
}
.mobile-nav a:hover { background: var(--sage-100); }

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

/* -----------------------------
   HERO SECTION – Organic styling
----------------------------- */
.hero { position: relative; }
.hero .container { position: relative; }
.hero .content-wrapper {
  background: var(--sand-100);
  border: 1px solid var(--stone-200);
  border-radius: 28px;
  padding: 28px;
  box-shadow: var(--shadow-m);
}
/* Decorative organic shapes (decorative only) */
.hero .content-wrapper::before,
.hero .content-wrapper::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 140px; height: 140px;
  border-radius: 60% 40% 65% 35% / 60% 40% 60% 40%;
  background: rgba(63, 143, 61, 0.08);
}
.hero .content-wrapper::before { top: -30px; left: -30px; }
.hero .content-wrapper::after { bottom: -30px; right: -30px; background: rgba(217, 119, 6, 0.08); }

/* Trust badges */
.trust-badges ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.trust-badges li {
  display: flex; align-items: center; gap: 10px;
  background: var(--sage-100);
  border: 1px solid var(--stone-200);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--text-main);
}
.trust-badges img { width: 18px; height: 18px; }

.key-contacts p { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.key-contacts img { width: 16px; height: 16px; }

.stats {
  display: flex; flex-wrap: wrap; gap: 10px;
  background: var(--sage-100);
  border-left: 6px solid var(--green-600);
  border-radius: var(--radius-l);
  padding: 14px 16px;
}
.stats strong { color: var(--green-700); }

/* -----------------------------
   BUTTONS
----------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 12px 18px;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.2px;
  transition: background var(--speed), color var(--speed), box-shadow var(--speed), transform var(--speed);
  border: 2px solid transparent;
}
.btn:focus { outline: none; box-shadow: var(--focus-ring); }
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--green-600);
  color: var(--white);
}
.btn-primary:hover { background: var(--green-700); }

.btn-secondary {
  background: var(--white);
  color: var(--green-700);
  border-color: var(--green-600);
}
.btn-secondary:hover { background: var(--sage-100); }

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

/* -----------------------------
   GENERAL CONTENT STYLES
----------------------------- */
.text-section {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-m);
  padding: 16px;
  box-shadow: var(--shadow-s);
}
.text-section h3 { color: var(--green-700); }

.content-wrapper > ul, .content-wrapper > ol { display: flex; flex-direction: column; gap: 8px; }
.content-wrapper > ul li, .content-wrapper > ol li { margin-left: 16px; }

/* Ordered list alignment in process steps */
ol { padding-left: 18px; }

/* Links inside content */
.content-wrapper a { color: #1a8d23; text-decoration: underline; text-underline-offset: 3px; }
.content-wrapper a:hover { color: var(--green-600); }

/* -----------------------------
   TESTIMONIALS – high contrast
----------------------------- */
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-left: 6px solid var(--green-600);
  border-radius: var(--radius-l);
  color: var(--text-main);
  box-shadow: var(--shadow-s);
}
.testimonial-card p { margin: 0; }
.testimonial-card p strong { color: var(--text-main); }

/* -----------------------------
   CARDS (generic)
----------------------------- */
.card {
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-m);
  padding: 16px;
  box-shadow: var(--shadow-s);
}

/* -----------------------------
   FOOTER
----------------------------- */
footer {
  background: var(--primary, var(--color-primary));
  background-color: var(--color-primary);
  color: var(--white);
  padding-top: 28px; padding-bottom: 28px;
}
footer .container { gap: 20px; }
footer .content-wrapper {
  display: flex; flex-direction: column; gap: 20px;
}
.footer-nav, .footer-legal, .footer-cta, .footer-contact {
  display: flex; flex-wrap: wrap; gap: 12px;
}
.footer-nav a, .footer-legal a { color: #EAF3EC; text-decoration: none; }
.footer-nav a:hover, .footer-legal a:hover { text-decoration: underline; }
.footer-cta .btn-primary { background: var(--secondary, var(--color-secondary)); border-color: transparent; }
.footer-cta .btn-primary:hover { background: #b86605; }
.footer-cta .btn-secondary { background: transparent; color: #EAF3EC; border-color: #EAF3EC; }

/* Footer brand (on index) */
.footer-brand { display: flex; flex-direction: column; gap: 10px; }
.footer-brand img { height: 36px; }
.footer-brand p { color: #EAF3EC; }

/* -----------------------------
   RESPONSIVE LAYOUTS
----------------------------- */
@media (min-width: 768px) {
  .content-wrapper { gap: 18px; }
  .text-image-section { flex-direction: row; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
}

@media (min-width: 992px) {
  .content-grid { justify-content: space-between; }
  footer .content-wrapper { flex-direction: row; flex-wrap: wrap; align-items: flex-start; }
  .footer-nav, .footer-contact, .footer-legal, .footer-cta { flex: 1 1 220px; }
}

/* -----------------------------
   FORMS (basic, future-proof)
----------------------------- */
input[type="text"], input[type="email"], input[type="tel"], textarea, select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--stone-300);
  background: var(--white);
  transition: border-color var(--speed), box-shadow var(--speed);
}
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--green-600); box-shadow: var(--focus-ring); }

/* -----------------------------
   ACCESSIBILITY FOCUS FOR LINKS
----------------------------- */
a:focus-visible { outline: 3px solid rgba(46,125,50,0.35); outline-offset: 2px; border-radius: 6px; }

/* -----------------------------
   UTILITIES
----------------------------- */
.badge { display: inline-flex; align-items: center; gap: 6px; background: var(--sage-100); border: 1px solid var(--stone-200); border-radius: 999px; padding: 6px 10px; }
.muted { color: var(--text-muted); }

/* -----------------------------
   PAGE-SPECIFIC LIGHT TUNING
----------------------------- */
/* Give inner sections a gentle card look for readability */
main > section .content-wrapper:not(.hero .content-wrapper) {
  background: var(--white);
  border: 1px solid var(--stone-200);
  border-radius: var(--radius-l);
  padding: 20px;
  box-shadow: var(--shadow-s);
}
/* Keep hero already styled */
.hero + section .content-wrapper { margin-top: 0; }

/* -----------------------------
   COOKIE CONSENT BANNER & MODAL
----------------------------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0;
  z-index: 120;
  display: flex; flex-direction: column; gap: 12px;
  background: var(--white);
  border-top: 3px solid var(--green-600);
  box-shadow: 0 -10px 24px rgba(0,0,0,0.08);
  padding: 16px 20px;
}
.cookie-banner .content { display: flex; flex-direction: column; gap: 8px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.cookie-actions .btn { padding: 10px 14px; }
.cookie-actions .btn-accept { background: var(--green-600); color: var(--white); }
.cookie-actions .btn-accept:hover { background: var(--green-700); }
.cookie-actions .btn-reject { background: var(--white); color: var(--green-700); border: 2px solid var(--green-600); }
.cookie-actions .btn-settings { background: var(--sage-100); color: var(--text-main); }

/* Cookie Modal */
.cookie-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 140;
  opacity: 0; pointer-events: none; transition: opacity var(--speed);
}
a.btn.btn-primary {color: white;}
.cookie-backdrop.active { opacity: 1; pointer-events: auto; }
.cookie-modal {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 100%; max-width: 520px;
  background: var(--white);
  z-index: 150; transform: translateX(100%);
  transition: transform var(--speed) ease;
  display: flex; flex-direction: column; gap: 16px; padding: 18px;
  border-left: 6px solid var(--green-600);
}
.cookie-modal.active { transform: translateX(0%); }
.cookie-modal header { display: flex; align-items: center; justify-content: space-between; }
.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(--stone-200); border-radius: 12px; background: var(--sage-50); }
.cookie-note { color: var(--text-muted); font-size: 14px; }

/* Toggle Switch */
.switch { position: relative; width: 48px; height: 28px; display: inline-flex; align-items: center; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: relative; width: 100%; height: 100%;
  background: var(--stone-300);
  border-radius: 999px;
  transition: background var(--speed);
}
.switch .slider::after {
  content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%; background: var(--white); box-shadow: var(--shadow-s); transition: transform var(--speed);
}
.switch input:checked + .slider { background: var(--green-600); }
.switch input:checked + .slider::after { transform: translateX(20px); }
.switch input:focus + .slider { box-shadow: var(--focus-ring); }

/* -----------------------------
   MICRO-INTERACTIONS
----------------------------- */
[data-elevate="true"], .card:hover, .text-section:hover, .testimonial-card:hover { box-shadow: var(--shadow-m); transition: box-shadow var(--speed); }

/* -----------------------------
   FLEXBOX CONSTRAINTS (NO GRID)
----------------------------- */
/* Ensure all multi-item wrappers are flex */
.footer-nav, .footer-legal, .footer-cta, .footer-contact,
.trust-badges ul, .cta-group, header .container, .main-nav,
.mobile-nav, .cookie-actions, .cookie-categories, .card-container, .content-grid, .text-image-section, .feature-item { display: flex; }

/* -----------------------------
   PRINT BASICS
----------------------------- */
@media print {
  header, footer, .mobile-menu, .cookie-banner, .cookie-modal, .cookie-backdrop { display: none !important; }
  body { color: #000; background: #fff; }
}
