/* ================================================
   EMAL HAUSTECHNIK AG - Redesign V2
   Weiss-dominant, Grau-Struktur, Rot nur Akzent
   Brand: #E6163E (Rot), #40444A (Dark)
   Fonts: Barlow Condensed + Inter
   ================================================ */

/* --- CSS Custom Properties --- */
:root {
  --primary: #E6163E;
  --primary-dark: #C21235;
  --primary-light: #FEF0F2;
  --dark: #2B2D31;
  --heading: #2B2D31;
  --text: #4A4D55;
  --text-light: #7A7E88;
  --bg: #FFFFFF;
  --surface: #F5F5F6;
  --surface-alt: #EDEDEE;
  --white: #FFFFFF;
  --border: #E0E1E4;
  --shadow-sm: 0 1px 3px rgba(43,45,49,0.06);
  --shadow-md: 0 4px 20px rgba(43,45,49,0.08);
  --shadow-lg: 0 12px 40px rgba(43,45,49,0.12);
  --radius-sm: 4px;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --transition: 0.2s cubic-bezier(0.4,0,0.2,1);
  --max-width: 1200px;
  --header-h: 64px;
}

/* --- Reset & Base --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--bg);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 {
  font-family: 'Barlow Condensed', 'Inter', sans-serif;
  color: var(--heading);
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.01em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.3rem, 3vw, 1.6rem); }
h4 { font-size: 1.15rem; }
p { margin-bottom: 1rem; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 24px; }

/* --- Demo Banner --- */
.demo-banner {
  background: var(--dark);
  color: rgba(255,255,255,0.85);
  text-align: center;
  padding: 10px 16px;
  font-size: 13px;
  letter-spacing: 0.02em;
  position: relative;
  z-index: 1001;
}
.demo-banner strong { color: var(--primary); }

/* --- Header / Navigation --- */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  height: var(--header-h);
  transition: box-shadow var(--transition), border-color var(--transition);
}
.header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--primary);
  opacity: 0;
  transition: opacity var(--transition);
}
.header.scrolled { box-shadow: var(--shadow-md); border-bottom-color: transparent; }
.header.scrolled::after { opacity: 1; }
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

/* Logo as image */
.logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-img {
  height: 40px;
  width: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
}
.nav-links a {
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all var(--transition);
  white-space: nowrap;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: 'Barlow Condensed', sans-serif;
}
.nav-links a:hover {
  color: var(--primary);
  background: var(--primary-light);
}
.nav-links a.active {
  color: var(--primary);
  font-weight: 600;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: var(--white) !important;
  padding: 9px 20px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.02em;
  transition: all var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--primary-dark); color: var(--white) !important; }
.nav-cta svg { width: 16px; height: 16px; }

/* Mobile Menu Toggle */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  color: var(--heading);
}
.menu-toggle svg { width: 28px; height: 28px; }

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  font-family: 'Barlow Condensed', sans-serif;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  text-decoration: none;
}
.btn-primary {
  background: var(--primary);
  color: var(--white);
}
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.btn-outline {
  background: transparent;
  color: var(--heading);
  border: 2px solid var(--border);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white {
  background: var(--white);
  color: var(--heading);
}
.btn-white:hover { background: var(--surface); }
.btn svg { width: 16px; height: 16px; }

/* --- Hero Section (White-based, Emal identity) --- */
.hero {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--white);
  padding: 72px 0 56px;
  border-bottom: 1px solid var(--border);
}
.hero-bg {
  display: none;
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 6px 16px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
  font-family: 'Barlow Condensed', sans-serif;
}
.hero-badge svg { width: 14px; height: 14px; }
.hero h1 {
  color: var(--heading);
  margin-bottom: 20px;
  font-size: clamp(2.4rem, 5vw, 3.4rem);
  text-transform: uppercase;
  letter-spacing: -0.02em;
  line-height: 1.05;
}
.hero h1 span { color: var(--primary); }
.hero-lead {
  font-size: 17px;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-ctas {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.hero .btn-outline {
  border-color: var(--border);
  color: var(--heading);
}
.hero .btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.hero-visual {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-lg);
}
.hero-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-visual-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 24px;
  background: linear-gradient(transparent, rgba(64,68,74,0.8));
}
.hero-visual-tag {
  display: inline-block;
  background: var(--primary);
  color: var(--white);
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* --- Stats Bar (industrial accent) --- */
.stats-bar {
  background: var(--dark);
  padding: 0;
  position: relative;
}
.stats-bar::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}
.stats-bar-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  padding: 28px 24px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-number {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--white);
  line-height: 1;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 12px;
  color: rgba(255,255,255,0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* --- Section Shared --- */
.section {
  padding: 96px 0;
}
.section-dark {
  background: var(--surface);
  color: var(--text);
}
.section-dark h2,
.section-dark h3 { color: var(--heading); }
.section-dark p { color: var(--text); }
.section-surface { background: var(--surface); }
.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 56px;
}
.section-header .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 16px;
  font-family: 'Barlow Condensed', sans-serif;
}
.section-header h2 {
  margin-bottom: 16px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
  letter-spacing: -0.01em;
}
.section-header p { color: var(--text-light); font-size: 17px; }

/* --- Feature Grid (Leistungen) --- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-left: 3px solid transparent;
  border-radius: var(--radius);
  padding: 32px 24px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.section-surface .feature-card,
.section-dark .feature-card {
  background: var(--white);
}
.feature-card:hover {
  border-left-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.feature-card-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: var(--primary);
}
.feature-card-icon svg { width: 28px; height: 28px; }
.feature-card h3 { margin-bottom: 12px; font-size: 1.2rem; }
.feature-card p { font-size: 14.5px; color: var(--text-light); margin-bottom: 20px; }
.feature-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
}
.feature-card-link svg { width: 16px; height: 16px; transition: transform var(--transition); }
.feature-card:hover .feature-card-link svg { transform: translateX(4px); }

/* --- CTA Split --- */
.cta-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.cta-split-text .eyebrow {
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  margin-bottom: 16px;
  display: block;
  font-family: 'Barlow Condensed', sans-serif;
}
.cta-split-text h2 { margin-bottom: 16px; text-transform: uppercase; }
.cta-split-text p { margin-bottom: 24px; font-size: 17px; }
.cta-split-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 32px;
}
.cta-split-feature {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.cta-split-feature svg {
  width: 22px;
  height: 22px;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 2px;
}
.cta-split-feature span { font-size: 15px; }
.cta-split-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}
.cta-split-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Referenzen / Projekt Cards --- */
.ref-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.ref-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all var(--transition);
}
.ref-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}
.ref-card-image {
  aspect-ratio: 16/10;
  overflow: hidden;
}
.ref-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.ref-card:hover .ref-card-image img { transform: scale(1.05); }
.ref-card-body { padding: 24px; }
.ref-card-tag {
  display: inline-block;
  background: var(--primary-light);
  color: var(--primary);
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}
.ref-card-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.ref-card-body p { font-size: 14px; color: var(--text-light); margin-bottom: 0; }
.ref-card-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--text-light);
}
.ref-card-meta svg { width: 14px; height: 14px; }
.ref-card-meta span { display: flex; align-items: center; gap: 6px; }

/* --- CTA Banner (only accent use of red, max 1 instance) --- */
.cta-banner {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
  border-radius: var(--radius-xl);
}
.cta-banner h2 { color: var(--white); margin-bottom: 16px; }
.cta-banner p { color: rgba(255,255,255,0.8); font-size: 18px; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }
.cta-banner .btn-primary { font-size: 16px; padding: 16px 36px; }

/* Inline CTA Banner (full width) */
.cta-banner-full {
  background: var(--dark);
  color: var(--white);
  text-align: center;
  padding: 72px 24px;
  position: relative;
}
.cta-banner-full::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}
.cta-banner-full h2 { color: var(--white); margin-bottom: 16px; text-transform: uppercase; }
.cta-banner-full p { color: rgba(255,255,255,0.7); font-size: 17px; margin-bottom: 32px; max-width: 560px; margin-left: auto; margin-right: auto; }

/* --- Testimonials --- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.testimonial-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all var(--transition);
}
.testimonial-card:hover { box-shadow: var(--shadow-md); }
.testimonial-stars {
  display: flex;
  gap: 2px;
  margin-bottom: 16px;
  color: #FBBF24;
}
.testimonial-stars svg { width: 18px; height: 18px; fill: currentColor; }
.testimonial-card blockquote {
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--primary);
}
.testimonial-author-info strong { display: block; font-size: 14px; color: var(--heading); }
.testimonial-author-info span { font-size: 13px; color: var(--text-light); }

/* --- FAQ Accordion --- */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color var(--transition);
}
.faq-item.active { border-color: var(--primary); }
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  cursor: pointer;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
  font-size: 16px;
  font-weight: 600;
  color: var(--heading);
  font-family: inherit;
  gap: 16px;
}
.faq-question svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  transition: transform var(--transition);
  color: var(--primary);
}
.faq-item.active .faq-question svg { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
}
.faq-item.active .faq-answer {
  max-height: 400px;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  font-size: 15px;
  color: var(--text);
  line-height: 1.7;
}

/* --- Page Header (Subpages) - Emal style --- */
.page-header {
  background: var(--surface);
  color: var(--heading);
  padding: 72px 0 56px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}
.page-header h1 {
  color: var(--heading);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
  text-transform: uppercase;
}
.page-header h1::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 3px;
  background: var(--primary);
}
.page-header p { color: var(--text); font-size: 17px; max-width: 600px; margin: 16px auto 0; }
.breadcrumb {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 24px;
  font-size: 14px;
}
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { color: var(--border); }

/* --- Detail Section (Leistungs-Subpage) --- */
.detail-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.detail-section.reversed { direction: rtl; }
.detail-section.reversed > * { direction: ltr; }
.detail-image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  box-shadow: var(--shadow-md);
}
.detail-image img { width: 100%; height: 100%; object-fit: cover; }
.detail-text h2 { margin-bottom: 16px; }
.detail-text p { margin-bottom: 16px; }
.detail-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0;
}
.detail-list-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
}
.detail-list-item svg { width: 20px; height: 20px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }

/* --- Contact Section --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}
.contact-info-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all var(--transition);
}
.contact-info-card:hover { border-color: var(--primary); }
.contact-info-icon {
  width: 48px;
  height: 48px;
  background: var(--primary-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
}
.contact-info-icon svg { width: 22px; height: 22px; }
.contact-info-text h4 { margin-bottom: 4px; }
.contact-info-text p { font-size: 14.5px; color: var(--text-light); margin-bottom: 0; }
.contact-info-text a { color: var(--text); }
.contact-info-text a:hover { color: var(--primary); }

.contact-form {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 36px;
}
.contact-form h3 { margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 15px;
  color: var(--heading);
  background: var(--white);
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(230,22,62,0.08);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* --- Team Grid --- */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.team-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: all var(--transition);
}
.team-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.team-card-img {
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--surface);
}
.team-card-img img { width: 100%; height: 100%; object-fit: cover; }
.team-card-body { padding: 20px; }
.team-card-body h3 { font-size: 1.05rem; margin-bottom: 4px; }
.team-card-body .role { font-size: 13px; color: var(--primary); font-weight: 600; margin-bottom: 8px; }
.team-card-body .contact-links { display: flex; justify-content: center; gap: 8px; font-size: 13px; }
.team-card-body .contact-links a { color: var(--text-light); }
.team-card-body .contact-links a:hover { color: var(--primary); }

/* --- Timeline --- */
.timeline {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding-left: 40px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 12px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--border);
}
.timeline-item {
  position: relative;
  margin-bottom: 36px;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -34px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  border: 3px solid var(--white);
  box-shadow: var(--shadow-sm);
}
.timeline-year {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--primary);
  margin-bottom: 4px;
}
.timeline-item h3 { font-size: 1rem; margin-bottom: 6px; }
.timeline-item p { font-size: 14.5px; color: var(--text-light); margin-bottom: 0; }

/* --- Footer (Dark, matching original emal.ch vibe) --- */
.footer {
  background: var(--dark);
  color: rgba(255,255,255,0.7);
  padding: 56px 0 0;
  position: relative;
}
.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--primary);
}
.footer-grid {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand p { font-size: 14px; margin-top: 16px; line-height: 1.7; color: rgba(255,255,255,0.5); }
.footer-logo-img {
  height: 44px;
  width: auto;
  margin-bottom: 4px;
  filter: brightness(0) invert(1);
}
.footer h4 {
  color: var(--white);
  font-size: 13px;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color var(--transition);
}
.footer-links a:hover { color: var(--primary); }
.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
}
.footer-contact-item svg { width: 18px; height: 18px; color: var(--primary); flex-shrink: 0; margin-top: 2px; }
.footer-contact-item a { color: rgba(255,255,255,0.7); }
.footer-contact-item a:hover { color: var(--primary); }
.footer-bottom {
  margin-top: 40px;
  padding: 20px 24px;
  border-top: 1px solid rgba(255,255,255,0.1);
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,0.4);
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}
.footer-bottom a { color: rgba(255,255,255,0.4); }
.footer-bottom a:hover { color: var(--primary); }

/* --- ISO Badge --- */
.iso-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--white);
  border: 1px solid var(--border);
  padding: 10px 18px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  color: var(--heading);
}
.iso-badge svg { width: 20px; height: 20px; color: var(--primary); }

/* --- Map Embed --- */
.map-embed {
  width: 100%;
  height: 400px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.map-embed iframe { width: 100%; height: 100%; border: 0; }

/* ================================================
   RESPONSIVE
   ================================================ */

@media (max-width: 968px) {
  .hero-content { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-height: 400px; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-split { grid-template-columns: 1fr; gap: 40px; }
  .ref-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-section { grid-template-columns: 1fr; gap: 40px; }
  .detail-section.reversed { direction: ltr; }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .nav-links { display: none; }
  .menu-toggle { display: block; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 16px 24px;
    box-shadow: var(--shadow-lg);
    gap: 4px;
  }
  .nav-links.open a { padding: 12px 16px; width: 100%; }
  .nav-cta { display: none; }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero { padding: 48px 0 40px; }
  .hero-content { padding: 0 24px; }
  .hero-visual { display: none; }
  .stats-bar-inner { grid-template-columns: repeat(2, 1fr); }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .ref-grid { grid-template-columns: 1fr; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .form-row { grid-template-columns: 1fr; }
  .page-header { padding: 60px 0 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats-bar-inner { grid-template-columns: 1fr 1fr; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; justify-content: center; }
  .btn { padding: 12px 24px; font-size: 14px; }
  .team-grid { grid-template-columns: 1fr; }
  .cta-banner { padding: 48px 16px; border-radius: var(--radius-sm); }
  .logo-img { height: 36px; }
  .footer-logo-img { height: 40px; }
}
