/* ===============================
   FusionSpark style.css
   Tech-Futuristic theme (flexbox-only)
   =============================== */

/* -------- CSS Reset & Normalize -------- */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { font-family: Verdana, Arial, sans-serif; line-height: 1.6; color: #E6EDF3; background-color: #0F1622; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; background: none; border: 0; color: inherit; cursor: pointer; }
:focus { outline: 2px dashed #00E5FF; outline-offset: 2px; }
::selection { background: #00E5FF; color: #0F1622; }

/* -------- CSS Variables -------- */
:root {
  --brand-primary: #22313F; /* deep slate */
  --brand-secondary: #6B5136; /* warm bronze */
  --brand-accent: #F5F1E8; /* light sand */
  --bg-900: #0F1622; /* page background */
  --bg-800: #121B29;
  --bg-700: #172233;
  --text-100: #E6EDF3; /* primary text on dark */
  --text-200: #C8D4E0; /* secondary text on dark */
  --ink-900: #1A2530; /* dark ink for light cards */
  --ink-800: #22313F; /* brand primary as ink */
  --muted: #94A7B8;
  --neon-teal: #00E5FF;
  --neon-purple: #8A7CFF;
  --success: #17D883;
  --warning: #FFC857;
  --danger: #FF5C7A;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --shadow-1: 0 6px 16px rgba(0,0,0,0.25);
  --shadow-2: 0 10px 30px rgba(0,0,0,0.35);
  --ring-neon: 0 0 0 2px rgba(0,229,255,0.15), 0 0 24px rgba(0,229,255,0.08) inset;
  --gap-1: 12px; --gap-2: 16px; --gap-3: 20px; --gap-4: 24px; --gap-5: 32px; --gap-6: 40px;
}

/* -------- Typography -------- */
h1, h2, h3, h4 { font-family: "Trebuchet MS", Tahoma, sans-serif; color: #FFFFFF; line-height: 1.25; margin: 0 0 12px 0; letter-spacing: 0.2px; }
p { margin: 0 0 14px 0; color: var(--text-100); }
small, .muted { color: var(--muted); }

h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }

@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 Primitives (Flexbox-only) -------- */
.container {
  display: flex; flex-direction: column; gap: var(--gap-4);
  width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px;
}
.content-wrapper { display: flex; flex-direction: column; gap: var(--gap-5); }
.content-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; }
.card-container { display: flex; flex-wrap: wrap; gap: 24px; }
.card { margin-bottom: 20px; position: relative; background: var(--bg-700); border-radius: var(--radius-md); box-shadow: var(--shadow-1); }
.section { margin-bottom: 60px; padding: 40px 20px; }
.text-image-section { display: flex; align-items: center; gap: 30px; flex-wrap: wrap; }
.feature-item { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; }
.testimonial-card { display: flex; align-items: center; gap: 20px; padding: 20px; }

/* Ensure default sections spacing */
section { margin-bottom: 60px; padding: 40px 0; position: relative; }

/* -------- Header & Navigation -------- */
header { position: sticky; top: 0; z-index: 50; background: linear-gradient( to right, var(--bg-900), var(--bg-800) ); border-bottom: 1px solid rgba(255,255,255,0.06); box-shadow: 0 6px 18px rgba(0,0,0,0.25); }
header .container { flex-direction: row; align-items: center; justify-content: space-between; padding-top: 14px; padding-bottom: 14px; }
.logo img { height: 36px; filter: drop-shadow(0 0 8px rgba(0,229,255,0.15)); }

.main-nav { display: none; align-items: center; gap: 12px; }
.main-nav a { padding: 10px 12px; border-radius: 10px; color: var(--text-200); transition: color .2s ease, background-color .2s ease, transform .2s ease; }
.main-nav a:hover { color: #FFFFFF; background: rgba(0,229,255,0.08); transform: translateY(-1px); }

/* CTAs in nav */
.cta-primary, .cta-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: var(--radius-md); font-weight: 700; letter-spacing: 0.3px; transition: all .22s ease; }
.cta-primary { background: var(--neon-teal); color: #0F1622; box-shadow: 0 0 0 2px rgba(0,229,255,0.25) inset, 0 8px 20px rgba(0,229,255,0.25); }
.cta-primary:hover { transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(0,229,255,0.4) inset, 0 10px 22px rgba(0,229,255,0.32); }
.cta-secondary { background: transparent; color: #FFFFFF; border: 1px solid rgba(255,255,255,0.2); box-shadow: var(--ring-neon); }
.cta-secondary:hover { background: rgba(255,255,255,0.07); transform: translateY(-2px); }

/* Mobile menu toggle */
.mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 10px; color: #FFFFFF; background: rgba(255,255,255,0.06); transition: background .2s ease, transform .2s ease; }
.mobile-menu-toggle:hover { background: rgba(255,255,255,0.12); transform: translateY(-1px); }

/* Mobile menu overlay */
.mobile-menu { position: fixed; inset: 0 0 0 auto; right: 0; width: 100%; max-width: 420px; background: var(--bg-800); box-shadow: -8px 0 24px rgba(0,0,0,0.45); transform: translateX(100%); transition: transform .35s ease; z-index: 100; display: flex; flex-direction: column; }
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-close { align-self: flex-end; margin: 12px; width: 40px; height: 40px; border-radius: 10px; color: #FFFFFF; background: rgba(255,255,255,0.08); }
.mobile-nav { display: flex; flex-direction: column; padding: 10px 20px 30px; gap: 6px; }
.mobile-nav a { display: flex; align-items: center; min-height: 46px; padding: 12px 14px; border-radius: 10px; color: var(--text-200); border: 1px solid rgba(255,255,255,0.06); background: rgba(255,255,255,0.03); transition: background .2s ease, color .2s ease; }
.mobile-nav a:hover { background: rgba(0,229,255,0.10); color: #FFFFFF; }

@media (min-width: 992px) {
  .main-nav { display: flex; }
  .mobile-menu-toggle { display: none; }
}

/* -------- Hero -------- */
.hero { background: var(--bg-700); padding: 28px; border-radius: var(--radius-lg); box-shadow: var(--shadow-2); position: relative; }
.hero::before { content: ""; position: absolute; inset: -2px; border-radius: calc(var(--radius-lg) + 2px); background: linear-gradient(135deg, rgba(0,229,255,0.28), rgba(138,124,255,0.22), rgba(255,255,255,0.04)); z-index: -1; filter: blur(8px); opacity: 0.7; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.supporting-points { display: flex; flex-wrap: wrap; gap: 10px; }
.supporting-points li { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.14); background: rgba(255,255,255,0.04); color: var(--text-200); }

/* -------- Feature grid -------- */
.feature-grid { display: flex; flex-wrap: wrap; gap: 24px; }
.feature-grid .feature-item { flex: 1 1 260px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 18px; box-shadow: var(--shadow-1); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.feature-grid .feature-item:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0,0,0,0.35); border-color: rgba(0,229,255,0.35); }
.feature-grid .feature-item img { width: 42px; height: 42px; }

/* -------- Stats & Badges -------- */
.stats-badges { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.stat-counters { display: flex; flex-wrap: wrap; gap: 10px; }
.stat-counters li { padding: 8px 12px; border-radius: 12px; background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.25); }
.badges-certifications { display: flex; align-items: center; gap: 10px; color: var(--text-200); }
.badges-certifications img { width: 36px; height: 36px; }

/* -------- Service list cards -------- */
.service-list { display: flex; flex-wrap: wrap; gap: 20px; }
.service-list li { flex: 1 1 280px; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--radius-md); background: var(--bg-700); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow-1); transition: transform .22s ease, border-color .22s; }
.service-list li:hover { transform: translateY(-4px); border-color: rgba(0,229,255,0.35); }
.service-list a { color: var(--neon-teal); font-weight: 700; }

.service-benefits, .surface-qualities, .quality-details, .quality-checks, .aftercare-tips, .maintenance-tips, .curing-handover, .heating-protocol, .budget-timeline-adherence, .quality-gate-description, .communication-cadence, .deliverables-summary, .timeline-estimate, .validity-guarantees, .site-visit-note, .measurement-precision, .handover-warranty, .privacy-officer-contact, .privacy-note, .cookie-help-note, .nutzungsfrage-note, .response-time-promise, .what-to-prepare, .insulation-edges { 
  display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.07);
}

/* -------- Step lists -------- */
.step-list { display: flex; flex-direction: column; gap: 10px; counter-reset: steps; }
.step-list li { padding: 12px 14px; border-radius: 10px; border: 1px dashed rgba(255,255,255,0.18); background: rgba(255,255,255,0.03); }

/* -------- FAQ -------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-list dt { padding: 12px 14px; border-radius: 10px; background: rgba(0,229,255,0.06); border: 1px solid rgba(0,229,255,0.22); color: #FFFFFF; font-weight: 700; }
.faq-list dd { margin: 0 0 0 0; padding: 12px 14px; border-radius: 10px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--text-200); }

/* -------- Testimonials (light cards for readability) -------- */
.testimonial-card { background: var(--brand-accent); color: var(--ink-800); border-radius: var(--radius-md); box-shadow: 0 8px 22px rgba(0,0,0,0.18); border: 1px solid rgba(34,49,63,0.1); }
.testimonial-card blockquote { margin: 0; color: var(--ink-800); font-style: italic; }
.testimonial-meta { color: var(--brand-secondary); font-weight: 700; }
.rating-summary { display: inline-flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 999px; background: #FFFFFF; color: var(--ink-800); border: 1px solid rgba(34,49,63,0.15); font-weight: 700; }

/* -------- Contact infos -------- */
.contact-infos { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.contact-infos > div { display: inline-flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }
.contact-infos img { width: 18px; height: 18px; }

/* -------- Special page wrappers -------- */
.about-section, .company-details, .liability-disclaimer, .rich-text-content, .equipment-list, .safety-protocols, .training-education, .service-area-list, .emergency-note, .languages-supported, .project-info-list, .feature-list, .deliverables { 
  display: flex; flex-direction: column; gap: 10px; color: var(--text-100);
}
.equipment-list li, .service-area-list li, .project-info-list li, .feature-list li, .what-to-prepare li { position: relative; padding-left: 14px; }
.equipment-list li::before, .service-area-list li::before, .project-info-list li::before, .feature-list li::before, .what-to-prepare li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--neon-teal); position: absolute; left: 0; top: 10px;
}

/* -------- Case studies & metrics (Referenzen) -------- */
.case-summaries { display: flex; flex-wrap: wrap; gap: 20px; }
.case-item { flex: 1 1 320px; display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: var(--radius-md); background: var(--bg-700); border: 1px solid rgba(255,255,255,0.08); box-shadow: var(--shadow-1); }
.metrics-grid { display: flex; flex-wrap: wrap; gap: 10px; }
.metrics-grid li { padding: 8px 10px; border-radius: 9px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: var(--text-200); }
.scope-outcomes { display: flex; flex-direction: column; gap: 6px; color: var(--text-200); }

/* -------- Timeline & lists (Referenzen) -------- */
.timeline { display: flex; flex-direction: column; gap: 8px; }
.timeline li { padding: 10px 12px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); }

/* -------- Footer -------- */
footer { background: var(--bg-800); border-top: 1px solid rgba(255,255,255,0.06); padding: 24px 0; }
footer .content-wrapper { display: flex; flex-direction: column; gap: 18px; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 12px; }
.footer-menu a { color: var(--text-200); padding: 8px 10px; border-radius: 10px; transition: background .2s ease; }
.footer-menu a:hover { background: rgba(255,255,255,0.08); color: #FFFFFF; }
.footer-contact { display: flex; flex-wrap: wrap; gap: 10px 16px; color: var(--text-200); }
.footer-contact > div { display: inline-flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); }
.footer-social { display: flex; align-items: center; gap: 10px; }
.footer-social a { display: inline-flex; padding: 8px; border-radius: 8px; background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); transition: transform .2s ease; }
.footer-social a:hover { transform: translateY(-2px); }
.footer-social img { width: 18px; height: 18px; }
.footer-copyright { color: var(--muted); font-size: 14px; }

/* -------- Accessibility + Links -------- */
a:hover, a:focus { text-decoration: none; }

/* -------- Cookie Consent Banner & Modal -------- */
.cookie-banner { position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: flex; flex-direction: column; gap: 12px; padding: 16px 18px; background: var(--bg-800); color: #FFFFFF; border-top: 1px solid rgba(255,255,255,0.15); box-shadow: 0 -8px 24px rgba(0,0,0,0.35); transform: translateY(0); transition: transform .35s ease, opacity .35s ease; }
.cookie-banner.is-hidden { transform: translateY(100%); opacity: 0; }
.cookie-banner .cookie-text { display: flex; flex-direction: column; gap: 6px; }
.cookie-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 10px 14px; border-radius: 10px; font-weight: 700; transition: all .2s ease; }
.btn-accept { background: var(--neon-teal); color: #0F1622; box-shadow: 0 10px 22px rgba(0,229,255,0.25); }
.btn-accept:hover { transform: translateY(-2px); }
.btn-reject { background: rgba(255,255,255,0.08); color: #FFFFFF; border: 1px solid rgba(255,255,255,0.2); }
.btn-reject:hover { background: rgba(255,255,255,0.12); }
.btn-settings { background: transparent; color: #FFFFFF; border: 1px dashed rgba(255,255,255,0.35); }
.btn-settings:hover { border-color: rgba(0,229,255,0.6); color: var(--neon-teal); }

.cookie-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .25s ease; display: flex; }
.cookie-overlay.open { opacity: 1; pointer-events: auto; }
.cookie-modal { margin: auto; width: 92%; max-width: 720px; background: #FFFFFF; color: var(--ink-800); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,0.35); display: flex; flex-direction: column; gap: 16px; padding: 20px; transform: translateY(20px); transition: transform .25s ease; }
.cookie-overlay.open .cookie-modal { transform: translateY(0); }
.cookie-modal h3 { color: var(--ink-800); }
.cookie-categories { display: flex; flex-wrap: wrap; gap: 12px; }
.cookie-category { flex: 1 1 220px; display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 12px; background: #F7F9FB; border: 1px solid #E3EAF0; }
.cookie-category .toggle { display: flex; align-items: center; gap: 10px; }

/* -------- Utilities -------- */
.hidden { display: none !important; }
.center { display: flex; align-items: center; justify-content: center; }
.tag { display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px; background: rgba(0,229,255,0.08); border: 1px solid rgba(0,229,255,0.35); color: #FFFFFF; }

/* -------- Responsive tweaks -------- */
@media (min-width: 768px) {
  .text-image-section { flex-direction: row; }
}
@media (max-width: 768px) {
  .text-image-section { flex-direction: column; }
  .hero { padding: 22px; }
}

/* Ensure no overlapping & spacing */
section > .container > .content-wrapper > * { margin-bottom: 0; }
section > .container > .content-wrapper { gap: var(--gap-5); }

/* -------- Page-specific small touches -------- */
/* Impressum & legal pages light blocks */
.company-details, .liability-disclaimer, .rich-text-content { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); border-radius: var(--radius-md); padding: 18px; }
.rich-text-content h3 { margin-top: 8px; color: #FFFFFF; }
.rich-text-content a { color: var(--neon-teal); text-decoration: underline; }

/* Thank-you page cta area */
.cta-area { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------- Buttons: states & focus -------- */
.cta-primary:focus, .cta-secondary:focus, .btn:focus { box-shadow: 0 0 0 3px rgba(0,229,255,0.35); }

/* -------- Tables (if any appear later) -------- */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 10px; border: 1px solid rgba(255,255,255,0.08); }

/* -------- Header hero gradient accent (simple, with solid fallback) -------- */
.hero { background-color: var(--bg-700); /* fallback solid */ background-image: linear-gradient( to bottom right, rgba(0,229,255,0.08), rgba(138,124,255,0.06) ); }

/* ---------- Alignment rules reiterated ---------- */
/* Flex alignment defaults, applied where needed */
.align-center { display: flex; align-items: center; }
.align-start { display: flex; align-items: flex-start; }
.justify-between { display: flex; justify-content: space-between; }

/* ---------- Mandatory spacing between content cards ---------- */
.case-item + .case-item,
.service-list li + li,
.feature-grid .feature-item + .feature-item,
.testimonial-card + .testimonial-card { margin-top: 0; }

/* ---------- Prevent absolute positioning for content elements ---------- */
/* Only decorative pseudo-elements use absolute positioning above. No cards/text blocks are absolutely positioned. */

/* ---------- High-contrast adjustments for testimonials & reviews ---------- */
/* Already ensured via light backgrounds and dark ink colors. */

/* ---------- Print styles (basic) ---------- */
@media print {
  header, .mobile-menu, .cookie-banner, .cookie-overlay, footer { display: none !important; }
  body { background: #FFFFFF; color: #000; }
  .hero, .feature-grid .feature-item, .service-list li, .case-item, .testimonial-card { box-shadow: none; background: #FFFFFF; color: #000; border: 1px solid #CCC; }
}

/* ---------- Final responsive structure tweaks ---------- */
@media (min-width: 992px) {
  .stats-badges { align-items: center; }
}
