/* =========================================
   Zephyra Move Renovierung - Professional Corporate CSS
   Mobile-first, Flexbox-only, Blue/Gray Palette, Business Typography
   ========================================= */

/* ---------- CSS Reset & Base Normalize ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, h4, h5, h6, p, ul, ol, li, dl, dt, dd, figure, blockquote { margin: 0; padding: 0; }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; }
ul, ol { list-style: none; }
:focus { outline: none; }

/* ---------- Theme Variables with Fallbacks ---------- */
:root {
  --primary: #1F2937;     /* slate-800: corporate gray */
  --primary-700: #111827; /* slate-900 */
  --blue: #1D4ED8;        /* blue-600: corporate blue */
  --blue-700: #1E40AF;    /* blue-700 */
  --blue-100: #DBEAFE;    /* blue-100 */
  --secondary: #B45309;   /* warm accent */
  --accent: #F5F7FA;      /* light panel */
  --text: #1F2937;        /* main text */
  --muted: #6B7280;       /* secondary text */
  --border: #E5E7EB;      /* borders */
  --border-strong: #CBD5E1; /* stronger border */
  --shadow: rgba(17, 24, 39, 0.08);
  --shadow-strong: rgba(17, 24, 39, 0.15);
  --white: #FFFFFF;
}

/* ---------- Global Typography ---------- */
body {
  background: #FFFFFF;
  color: #1F2937; color: var(--text, #1F2937);
  font-family: Verdana, Geneva, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 { font-family: "Trebuchet MS", Tahoma, sans-serif; color: #111827; color: var(--primary-700, #111827); }
h1 { font-size: 32px; line-height: 1.2; margin-bottom: 16px; }
h2 { font-size: 24px; line-height: 1.25; margin-bottom: 16px; }
h3 { font-size: 18px; line-height: 1.3; margin-bottom: 12px; }

p { font-size: 16px; color: #1F2937; color: var(--text, #1F2937); margin-bottom: 12px; }
small, .text-small { font-size: 14px; color: #6B7280; color: var(--muted, #6B7280); }
strong { font-weight: 700; }

/* Link styles */
a { color: #1D4ED8; color: var(--blue, #1D4ED8); transition: color .2s ease; }
a:hover { color: #1E40AF; color: var(--blue-700, #1E40AF); }
a:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }

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

/* Required spacing utilities */
.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 { background: #FFFFFF; border-bottom: 1px solid #E5E7EB; border-bottom-color: var(--border, #E5E7EB); position: sticky; top: 0; z-index: 1000; }
header .container { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
header img { height: 36px; width: auto; }

.main-nav { display: none; align-items: center; gap: 16px; }
.main-nav a { color: #1F2937; color: var(--text, #1F2937); padding: 10px 8px; border-radius: 6px; transition: background-color .2s ease, color .2s ease; }
.main-nav a:hover { background: #F5F7FA; background: var(--accent, #F5F7FA); color: #111827; color: var(--primary-700, #111827); }
.main-nav a:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }

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

.mobile-menu-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 40px; border-radius: 8px;
  background: #1D4ED8; background: var(--blue, #1D4ED8);
  color: #FFFFFF; border: none; cursor: pointer;
  transition: background .2s ease, transform .1s ease;
}
.mobile-menu-toggle:hover { background: #1E40AF; background: var(--blue-700, #1E40AF); }
.mobile-menu-toggle:active { transform: scale(0.98); }
.mobile-menu-toggle:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }

/* Mobile Menu Overlay (off-canvas) */
.mobile-menu {
  position: fixed; right: 0; top: 0; bottom: 0; width: 100%; max-width: 360px;
  background: #FFFFFF; box-shadow: -8px 0 24px var(--shadow-strong, rgba(17,24,39,0.15));
  transform: translateX(100%);
  transition: transform .3s ease;
  z-index: 2000; display: flex; flex-direction: column; padding: 16px;
}
.mobile-menu.open, .mobile-menu.active { transform: translateX(0); }
.mobile-menu-close {
  align-self: flex-end; background: transparent; border: none; color: #1F2937; color: var(--text);
  font-size: 22px; line-height: 1; padding: 6px; cursor: pointer; border-radius: 6px;
}
.mobile-menu-close:hover { color: #1E40AF; color: var(--blue-700); }
.mobile-menu-close:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }
.mobile-nav { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.mobile-nav a { padding: 12px 10px; border-radius: 8px; color: #111827; color: var(--primary-700); }
.mobile-nav a:hover { background: #F5F7FA; background: var(--accent); }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font-weight: 600; transition: background .2s ease, color .2s ease, border-color .2s ease, transform .06s ease; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 3px solid #93C5FD; outline-offset: 2px; }

.btn-primary { background: #1D4ED8; background: var(--blue, #1D4ED8); color: #FFFFFF; border-color: #1D4ED8; }
.btn-primary:hover { background: #1E40AF; background: var(--blue-700, #1E40AF); border-color: #1E40AF; color: #FFFFFF;}

.btn-secondary { background: #FFFFFF; color: #B45309; color: var(--secondary, #B45309); border-color: #B45309; border-width: 1px; }
.btn-secondary:hover { background: #FFF7ED; border-color: #B45309; }

.btn-muted { background: #F5F7FA; background: var(--accent); color: #1F2937; border-color: #E5E7EB; }

/* ---------- Sections ---------- */
section { margin-bottom: 60px; padding: 40px 20px; }
.hero { background: #F5F7FA; background: var(--accent, #F5F7FA); border-bottom: 1px solid #E5E7EB; }
.hero h1 { font-size: 32px; }
.hero p { color: #374151; }

.features ul, .services ul, .faq ul { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.features li, .services li { padding-left: 20px; position: relative; }
.features li::before, .services li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 8px; border-radius: 50%; background: #1D4ED8; background: var(--blue); }

.features-icons-row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.features-icons-row img { width: 40px; height: 40px; filter: grayscale(20%); opacity: .95; }

/* Services cards */
.services-row { display: flex; flex-wrap: wrap; gap: 20px; }
.service-card { flex: 1 1 260px; background: #FFFFFF; border: 1px solid #E5E7EB; border-color: var(--border); border-radius: 10px; padding: 20px; box-shadow: 0 4px 12px var(--shadow, rgba(17,24,39,0.08)); transition: box-shadow .2s ease, transform .1s ease; }
.service-card:hover { box-shadow: 0 8px 24px var(--shadow-strong, rgba(17,24,39,0.15)); transform: translateY(-2px); }
.service-card h3 { color: #111827; margin-bottom: 6px; }

/* Process */
.process ol { display: flex; flex-direction: column; gap: 10px; counter-reset: step; }
.process ol li { position: relative; padding-left: 36px; }
.process ol li::before { counter-increment: step; content: counter(step); position: absolute; left: 0; top: 2px; width: 24px; height: 24px; border-radius: 50%; background: #DBEAFE; background: var(--blue-100); color: #1D4ED8; color: var(--blue); display: inline-flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 700; }

.timeline-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; padding: 10px; border: 1px dashed #CBD5E1; border-radius: 10px; background: #FFFFFF; }
.timeline-bar span { flex: 1 1 auto; text-align: center; padding: 8px 6px; border-radius: 8px; background: #F5F7FA; color: #1F2937; font-weight: 600; }

/* Testimonials: dark text on light backgrounds for readability */
.testimonials .rating-summary { display: flex; align-items: center; gap: 10px; margin-top: 4px; padding: 12px 14px; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 10px; color: #111827; font-weight: 600; }
.testimonials .rating-summary img { width: 20px; height: 20px; }

.testimonial-card { background: #F5F7FA; background: var(--accent); border: 1px solid #E5E7EB; border-radius: 12px; color: #1F2937; }
.testimonial-card p { margin: 0; }
.testimonial-card span { color: #374151; font-weight: 600; }
.testimonial-card + .testimonial-card { margin-top: 12px; }

.guarantee-badge { display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 12px; border: 1px solid #CBD5E1; border-radius: 20px; background: #FFFFFF; color: #111827; font-weight: 600; }
.guarantee-badge img { width: 18px; height: 18px; }

/* FAQ */
.faq dl { display: flex; flex-direction: column; gap: 12px; }
.faq dt { font-weight: 700; color: #111827; }
.faq dd { margin-left: 0; color: #374151; }

/* Pricing */
.pricing-cards { display: flex; flex-wrap: wrap; gap: 20px; }
.pricing-card { flex: 1 1 260px; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 10px; padding: 20px; box-shadow: 0 4px 12px var(--shadow); }
.pricing-card strong { display: block; font-size: 18px; margin-bottom: 8px; color: #111827; }
.pricing-card ul { display: flex; flex-direction: column; gap: 8px; }

/* CTA Sections */
.cta { background: #1F2937; background: var(--primary); color: #FFFFFF; border-radius: 12px; }
.cta h2 { color: #FFFFFF; }
.cta .btn-primary { background: #FFFFFF; color: #1D4ED8; border-color: #FFFFFF; }
.cta .btn-primary:hover { background: #F5F7FA; color: #1E40AF; border-color: #F5F7FA; }
.cta .btn-secondary { background: transparent; color: #FFFFFF; border-color: #FFFFFF; }
.cta .btn-secondary:hover { background: rgba(255,255,255,0.08); }

/* Contact blocks */
.contact .content-wrapper > div { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact img { width: 18px; height: 18px; }
.dataprivacy-note { margin-top: 8px; color: #6B7280; }

/* Trust badges & contact snippet (home) */
.trust-badges { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.trust-badges span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 999px; background: #FFFFFF; border: 1px solid #E5E7EB; color: #111827; }
.trust-badges img { width: 18px; height: 18px; }

.contact-snippet { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: #FFFFFF; border: 1px solid #E5E7EB; color: #111827; }
.contact-snippet img { width: 18px; height: 18px; }

/* About section specifics */
.about h3 { color: #1F2937; margin-top: 8px; }

/* ---------- Footer ---------- */
footer { background: #0B1220; color: #E5E7EB; padding: 32px 0; margin-top: 20px; }
footer .container { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.footer-brand-logo img { height: 36px; filter: brightness(0) invert(1); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.footer-nav a { color: #E5E7EB; padding: 6px 8px; border-radius: 6px; }
.footer-nav a:hover { background: rgba(255,255,255,0.08); }
.footer-legal { color: #CBD5E1; text-align: center; }
.footer-legal a { color: #CBD5E1; }
.footer-contact-inline { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: center; color: #E5E7EB; }
.footer-address { color: #CBD5E1; text-align: center; }

/* ---------- Cookie Consent Banner ---------- */
.cookie-banner {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 3000;
  background: #FFFFFF; border-top: 1px solid #E5E7EB; box-shadow: 0 -6px 20px var(--shadow);
  display: flex; flex-direction: column; gap: 12px; padding: 16px; align-items: flex-start;
}
.cookie-banner .cookie-text { color: #1F2937; }
.cookie-banner .cookie-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cookie-banner .btn-accept { composes: btn btn-primary; }
.cookie-banner .btn-reject { composes: btn btn-muted; }
.cookie-banner .btn-settings { composes: btn btn-secondary; }
/* Fallback when CSS Modules 'composes' isn't supported */
.cookie-banner .btn-accept { display:inline-flex; align-items:center; justify-content:center; padding:12px 18px; border-radius:8px; border:1px solid #1D4ED8; background:#1D4ED8; color:#FFFFFF; font-weight:600; }
.cookie-banner .btn-accept:hover { background:#1E40AF; border-color:#1E40AF; }
.cookie-banner .btn-reject { display:inline-flex; align-items:center; justify-content:center; padding:12px 18px; border-radius:8px; border:1px solid #E5E7EB; background:#F5F7FA; color:#1F2937; font-weight:600; }
.cookie-banner .btn-reject:hover { background:#FFFFFF; }
.cookie-banner .btn-settings { display:inline-flex; align-items:center; justify-content:center; padding:12px 18px; border-radius:8px; border:1px solid #B45309; background:#FFFFFF; color:#B45309; font-weight:600; }
.cookie-banner .btn-settings:hover { background:#FFF7ED; }

/* Cookie Modal */
.cookie-modal { position: fixed; inset: 0; z-index: 3500; display: none; align-items: center; justify-content: center; padding: 16px; }
.cookie-modal.open, .cookie-modal.active { display: flex; }
.cookie-modal::before { content: ""; position: absolute; inset: 0; background: rgba(0,0,0,0.45); }
.cookie-modal .modal { position: relative; background: #FFFFFF; border: 1px solid #E5E7EB; border-radius: 12px; box-shadow: 0 16px 48px var(--shadow-strong); width: 100%; max-width: 640px; display: flex; flex-direction: column; gap: 14px; padding: 20px; z-index: 1; }
.cookie-modal h3 { font-size: 20px; margin-bottom: 4px; }
.cookie-modal .modal-row { display: flex; flex-direction: column; gap: 8px; }
.cookie-modal .cookie-category { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px; border: 1px solid #E5E7EB; border-radius: 8px; background: #F9FAFB; }
.cookie-modal .modal-actions { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }

/* ---------- Accessibility & Micro-interactions ---------- */
::selection { background: #1D4ED8; color: #FFFFFF; }
button, .btn, .main-nav a, .mobile-nav a { transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .06s ease, box-shadow .2s ease; }

/* ---------- Responsive (Flex-direction, spacing) ---------- */
@media (min-width: 768px) {
  h1 { font-size: 40px; }
  h2 { font-size: 32px; }
  h3 { font-size: 20px; }

  .content-wrapper { gap: 20px; }
  .text-image-section { flex-direction: row; }

  header .container { gap: 16px; }
  .main-nav { display: flex; }
  .cta-buttons { display: flex; }
  .mobile-menu-toggle { display: none; }

  .hero .content-wrapper > div { display: flex; flex-wrap: wrap; gap: 10px; }
}

@media (min-width: 1024px) {
  h1 { font-size: 48px; }
  .container { padding: 0 20px; }
}

/* ---------- Additional Utility & Layout Safeguards ---------- */
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }

/* Ensure no element overlaps and consistent gaps */
.card, .service-card, .pricing-card, .testimonial-card { margin-bottom: 20px; }
.features, .services, .process, .testimonials, .faq, .cta, .contact, .about, .pricing { display: flex; flex-direction: column; gap: 16px; }

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