/* ============================================================
   Marco ECKARDT MEISTERBETRIEB — Zentrale CSS-Datei
   Design: Modern Handwerk Premium
   ============================================================ */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,300;0,9..144,400;0,9..144,600;0,9..144,700;1,9..144,400;1,9..144,600&family=Inter:wght@300;400;500;600;700&display=swap');

/* ---- CSS Custom Properties ---- */
:root {
  /* Hintergründe */
  --bg-cream: #FDFCFA;
  --bg-warm: #FEF9F3;
  --bg-soft: #F5F3EE;
  --bg-card: #FFFFFF;
  --bg-dark: #0F172A;

  /* Text */
  --text-dark: #0F172A;
  --text-body: #334155;
  --text-muted: #64748B;

  /* Sanitär — Blau */
  --blue: #0284C7;
  --blue-light: #E0F2FE;
  --blue-dark: #075985;

  /* Heizung — Rot */
  --red: #DC2626;
  --red-light: #FEE2E2;
  --red-dark: #991B1B;

  /* Elektro — Gelb/Gold */
  --yellow: #F59E0B;
  --yellow-light: #FEF3C7;
  --yellow-dark: #B45309;

  /* Erfolg/Grün */
  --green: #10B981;
  --green-light: #D1FAE5;
  --green-dark: #047857;

  /* Utility */
  --border: #E2E8F0;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --shadow-lg: 0 20px 60px rgba(15, 23, 42, 0.12);
  --shadow-xl: 0 30px 80px rgba(15, 23, 42, 0.16);

  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);
  --transition: all 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --container-max: 1280px;
  --nav-h: 76px;
}

/* ---- Reset ---- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  max-width: 100vw;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
  max-width: 100vw;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text-body);
  background: var(--bg-cream);
  overflow-x: hidden;
  max-width: 100vw;
  position: relative;
  touch-action: pan-y;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }

/* ---- Container ---- */
.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}

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

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 9999;
  background: rgba(253, 252, 250, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid transparent;
  transition: var(--transition), box-shadow 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow-md);
  background: rgba(253, 252, 250, 0.98);
}

.nav.nav--dark {
  background: rgba(15, 23, 42, 0.95);
}

.nav.nav--dark.scrolled {
  background: rgba(15, 23, 42, 0.98);
  border-bottom-color: rgba(255,255,255,0.1);
}

.nav-inner {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 32px;
}

@media (min-width: 1024px) {
  .nav-inner { padding: 0 48px; }
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
  text-decoration: none;
}

.logo-img {
  max-height: 60px;
  width: auto;
  object-fit: contain;
}

.logo-mark {
  width: 56px;
  height: 56px;
}

.logo-text-wrap {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.logo-name {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: var(--text-dark);
  letter-spacing: -0.3px;
}

.logo-tagline {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.nav--dark .logo-name,
.nav--dark .logo-tagline {
  color: #fff;
}

/* Nav Links */
.nav-links {
  display: none;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

@media (min-width: 1024px) {
  .nav-links { display: flex; }
}

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-body);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: 4px; left: 14px; right: 14px;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}

.nav-links a:hover { color: var(--text-dark); }
.nav-links a:hover::after,
.nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--text-dark); font-weight: 600; }

.nav--dark .nav-links a { color: rgba(255,255,255,0.8); }
.nav--dark .nav-links a:hover,
.nav--dark .nav-links a.active { color: #fff; }

/* Nav CTA */
.nav-cta {
  display: none;
  align-items: center;
  gap: 10px;
  margin-left: 16px;
  flex-shrink: 0;
}

@media (min-width: 1024px) {
  .nav-cta { display: flex; }
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  margin-left: auto;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

@media (min-width: 1024px) {
  .hamburger { display: none; }
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-dark);
  border-radius: 2px;
  transition: var(--transition);
}

.nav--dark .hamburger span { background: #fff; }

.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  transform: translateY(-110%);
  transition: transform 0.4s var(--ease);
  z-index: 9998;
  box-shadow: var(--shadow-lg);
}

.mobile-menu.open {
  transform: translateY(0);
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 20px;
}

.mobile-menu a {
  display: block;
  padding: 12px 16px;
  font-size: 17px;
  font-weight: 500;
  color: var(--text-body);
  border-radius: var(--radius-sm);
  transition: var(--transition);
}

.mobile-menu a:hover {
  background: var(--bg-soft);
  color: var(--text-dark);
}

.mobile-menu-cta {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  padding: 13px 26px;
  border-radius: 50px;
  border: 2px solid transparent;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}
.btn-primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2, 132, 199, 0.35);
}

.btn-red {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}
.btn-red:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(220, 38, 38, 0.35);
}

.btn-yellow {
  background: var(--yellow);
  color: #fff;
  border-color: var(--yellow);
}
.btn-yellow:hover {
  background: var(--yellow-dark);
  border-color: var(--yellow-dark);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.35);
}

.btn-dark {
  background: var(--text-dark);
  color: #fff;
  border-color: var(--text-dark);
}
.btn-dark:hover {
  background: #1e293b;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-outline {
  background: transparent;
  color: var(--text-dark);
  border-color: var(--border);
}
.btn-outline:hover {
  background: var(--bg-soft);
  border-color: var(--text-muted);
  transform: translateY(-2px);
}

.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.5);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.1);
  border-color: #fff;
  transform: translateY(-2px);
}

.btn-phone {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
  font-size: 14px;
  padding: 10px 18px;
}
.btn-phone:hover {
  background: var(--red-dark);
  border-color: var(--red-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(220,38,38,0.35);
}

.btn-lg {
  font-size: 17px;
  padding: 17px 36px;
}

.btn-sm {
  font-size: 13px;
  padding: 9px 18px;
}

/* ============================================================
   SECTION STYLES
   ============================================================ */
section { padding: 96px 0; }

.section-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 16px;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.15;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  max-width: 600px;
}

.section-header {
  margin-bottom: 64px;
}

.section-header.centered {
  text-align: center;
}

.section-header.centered .section-subtitle {
  margin: 0 auto;
}

/* ============================================================
   HERO — STARTSEITE
   ============================================================ */
.hero {
  min-height: 100vh;
  padding-top: var(--nav-h);
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: var(--bg-cream);
}

.hero-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

/* Animated gradient blobs */
.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  animation: blobFloat 12s ease-in-out infinite;
}

.blob-1 {
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(2,132,199,0.18) 0%, transparent 70%);
  top: -100px; right: -50px;
  animation-delay: 0s;
}

.blob-2 {
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(245,158,11,0.15) 0%, transparent 70%);
  bottom: -80px; left: 20%;
  animation-delay: -4s;
}

.blob-3 {
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(220,38,38,0.12) 0%, transparent 70%);
  top: 30%; left: -60px;
  animation-delay: -8s;
}

@keyframes blobFloat {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(30px, -20px) scale(1.05); }
  66% { transform: translate(-20px, 15px) scale(0.97); }
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 60px 24px;
}

@media (min-width: 1024px) {
  .hero-inner {
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    padding: 80px 48px;
    align-items: center;
  }
}

/* Hero Left */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-body);
  margin-bottom: 28px;
  box-shadow: var(--shadow-sm);
}

.badge-dot {
  width: 8px; height: 8px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.25);
  animation: pulse-green 2s ease-in-out infinite;
}

@keyframes pulse-green {
  0%, 100% { box-shadow: 0 0 0 3px rgba(16,185,129,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(16,185,129,0.1); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4.4rem);
  font-weight: 600;
  color: var(--text-dark);
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 24px;
}

.hero-title .accent-blue { color: var(--blue); }
.hero-title .accent-red { color: var(--red); }
.hero-title .accent-yellow { color: var(--yellow); }

.hero-subtitle {
  font-size: 18px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 36px;
  max-width: 520px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 40px;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-body);
}

.trust-item .icon {
  font-size: 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================================
   WIZARD
   ============================================================ */
.wizard-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.wizard-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow));
}

.wizard-progress {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 28px;
}

.wizard-step-dot {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-card);
  transition: var(--transition);
  flex-shrink: 0;
}

.wizard-step-dot.active,
.wizard-step-dot.done {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
}

.wizard-step-dot.done::before {
  content: '✓';
}

.wizard-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
  transition: background 0.4s;
}

.wizard-connector.done { background: var(--blue); }

.wizard-step-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  margin-top: 6px;
  white-space: nowrap;
}

.wizard-progress-wrap {
  display: grid;
  grid-template-columns: 32px 1fr 32px 1fr 32px;
  align-items: center;
  gap: 0;
  margin-bottom: 32px;
}

.wizard-heading {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 20px;
}

.wizard-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 24px;
}

.wizard-option {
  padding: 14px 12px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-cream);
}

.wizard-option:hover {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue-dark);
  transform: translateY(-2px);
}

.wizard-option.selected {
  border-color: var(--blue);
  background: var(--blue-light);
  color: var(--blue-dark);
}

.wizard-option .opt-icon { font-size: 22px; display: block; margin-bottom: 4px; }

.wizard-step { display: none; }
.wizard-step.active { display: block; }

.wizard-input-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.wizard-input {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-cream);
  transition: var(--transition);
  outline: none;
  width: 100%;
}

.wizard-input:focus {
  border-color: var(--blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(2,132,199,0.08);
}

.wizard-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: none;
}

.wizard-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2,132,199,0.4);
}

.wizard-success {
  display: none;
  text-align: center;
  padding: 20px 0;
}

.wizard-success.show { display: block; }

.success-icon {
  width: 72px; height: 72px;
  background: var(--green-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 32px;
}

.wizard-note {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 12px;
}

/* ============================================================
   ENTFERNUNGSRECHNER
   ============================================================ */
.distance-section {
  background: var(--bg-card);
  padding: 80px 0;
  border-bottom: 1px solid var(--border);
}

.distance-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.distance-form {
  display: flex;
  gap: 12px;
  margin: 32px 0;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.distance-input {
  flex: 1;
  padding: 16px 20px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 16px;
  color: var(--text-dark);
  background: var(--bg-cream);
  outline: none;
  transition: var(--transition);
}

.distance-input:focus {
  border-color: var(--blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(2,132,199,0.08);
}

.distance-result {
  padding: 24px 32px;
  border-radius: var(--radius-lg);
  margin-top: 24px;
  font-size: 17px;
  font-weight: 600;
  display: none;
  animation: fadeInUp 0.4s var(--ease) both;
}

.distance-result.show { display: block; }

.distance-result.green {
  background: var(--green-light);
  border: 2px solid var(--green);
  color: var(--green-dark);
}

.distance-result.yellow {
  background: var(--yellow-light);
  border: 2px solid var(--yellow);
  color: var(--yellow-dark);
}

.distance-result.red {
  background: var(--red-light);
  border: 2px solid var(--red);
  color: var(--red-dark);
}

.distance-result.neutral {
  background: var(--bg-soft);
  border: 2px solid var(--border);
  color: var(--text-body);
}

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   LEISTUNGEN CARDS (3er Grid)
   ============================================================ */
.services-section {
  background: var(--bg-soft);
}

.services-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .services-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .services-grid { grid-template-columns: 1fr 1fr 1fr; }
}

.service-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  transition: transform 0.3s var(--ease);
  transform: scaleX(0);
  transform-origin: left;
}

.service-card--blue::before { background: linear-gradient(90deg, var(--blue), var(--blue-dark)); }
.service-card--red::before { background: linear-gradient(90deg, var(--red), var(--red-dark)); }
.service-card--yellow::before { background: linear-gradient(90deg, var(--yellow), var(--yellow-dark)); }

.service-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-xl);
  border-color: transparent;
}

.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 72px; height: 72px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin-bottom: 24px;
  transition: transform 0.4s var(--ease-bounce);
}

.service-icon svg { width: 48px; height: 48px; flex-shrink: 0; }

.service-card--blue .service-icon { background: var(--blue-light); color: var(--blue); }
.service-card--red .service-icon { background: var(--red-light); color: var(--red); }
.service-card--yellow .service-icon { background: var(--yellow-light); color: var(--yellow-dark); }

.service-card:hover .service-icon { transform: rotate(-8deg) scale(1.1); }

.service-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.service-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 24px;
}

.service-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 32px;
  flex: 1;
}

.service-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-body);
}

.service-features li::before {
  content: '✓';
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.service-card--blue .service-features li::before { color: var(--blue); background: var(--blue-light); }
.service-card--red .service-features li::before { color: var(--red); background: var(--red-light); }
.service-card--yellow .service-features li::before { color: var(--yellow-dark); background: var(--yellow-light); }

.service-link {
  font-size: 15px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: var(--transition);
  margin-top: auto;
}

.service-card--blue .service-link { color: var(--blue); }
.service-card--red .service-link { color: var(--red); }
.service-card--yellow .service-link { color: var(--yellow-dark); }

.service-link:hover { gap: 10px; }

/* ============================================================
   MARQUEE / LOGOS BAND
   ============================================================ */
.marquee-section {
  background: var(--bg-card);
  padding: 40px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  max-width: 100vw;
  position: relative;
  width: 100%;
}

.marquee-label {
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 28px;
}

.marquee-track {
  display: flex;
  gap: 0;
  animation: marquee 30s linear infinite;
  width: max-content;
}

.marquee-item {
  padding: 12px 40px;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 1px;
  border-right: 1px solid var(--border);
  white-space: nowrap;
  transition: color 0.3s;
}

.marquee-item:hover { color: var(--text-dark); }

@keyframes marquee {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@media (max-width: 768px) {
  .marquee-section {
    overflow: hidden;
    max-width: 100vw;
  }
  .marquee-track {
    animation-duration: 20s;
  }
}

/* ============================================================
   VORHER / NACHHER SLIDER
   ============================================================ */
.ba-section {
  background: var(--bg-cream);
}

.ba-tabs {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.ba-tab {
  padding: 10px 22px;
  border: 2px solid var(--border);
  border-radius: 50px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-card);
}

.ba-tab.active, .ba-tab:hover {
  border-color: var(--blue);
  color: var(--blue);
  background: var(--blue-light);
}

.ba-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  cursor: ew-resize;
  user-select: none;
  touch-action: none;
}

.ba-slider {
  display: none;
}

.ba-slider.active {
  display: block;
}

.ba-before-img,
.ba-after-img {
  width: 100%;
  height: 440px;
  object-fit: cover;
  display: block;
}

.ba-before-wrap {
  position: absolute;
  inset: 0;
}

.ba-before-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-after-wrap {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.ba-after-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ba-handle-line {
  position: absolute;
  top: 0; bottom: 0;
  width: 3px;
  background: #fff;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  pointer-events: none;
}

.ba-handle-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  pointer-events: none;
}

.ba-label {
  position: absolute;
  top: 20px;
  padding: 6px 16px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  color: #fff;
  pointer-events: none;
}

.ba-label-before {
  left: 20px;
  background: rgba(0,0,0,0.5);
}

.ba-label-after {
  right: 20px;
  background: var(--blue);
}

.ba-container-inner {
  position: relative;
  height: 440px;
}

.ba-svg-before {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
}

.ba-svg-after {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

/* ============================================================
   STATS / WARUM ECKARDT
   ============================================================ */
.stats-section {
  background: var(--bg-dark);
  padding: 80px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
}

.stat-card {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  transition: var(--transition);
}

.stat-card:hover {
  background: rgba(255,255,255,0.07);
  transform: translateY(-4px);
}

.stat-number {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 4vw, 3.6rem);
  font-weight: 700;
  line-height: 1;
  margin-bottom: 8px;
  background: linear-gradient(135deg, currentColor, currentColor);
  -webkit-background-clip: text;
}

.stat-card:nth-child(1) .stat-number { color: var(--blue); }
.stat-card:nth-child(2) .stat-number { color: var(--red); }
.stat-card:nth-child(3) .stat-number { color: var(--yellow); }
.stat-card:nth-child(4) .stat-number { color: var(--green); }

.stat-label {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.6);
  line-height: 1.4;
}

/* ============================================================
   PROZESS / ABLAUF
   ============================================================ */
.process-section {
  background: var(--bg-warm);
}

.process-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .process-grid {
    grid-template-columns: repeat(4, 1fr);
    position: relative;
  }

  .process-grid::after {
    content: '';
    position: absolute;
    top: 40px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(90deg, var(--blue), var(--red), var(--yellow), var(--green));
    z-index: 0;
  }
}

.process-step {
  text-align: center;
  position: relative;
  z-index: 1;
}

.process-num {
  width: 80px; height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  box-shadow: var(--shadow-md);
}

.process-step:nth-child(1) .process-num { background: var(--blue); }
.process-step:nth-child(2) .process-num { background: var(--red); }
.process-step:nth-child(3) .process-num { background: var(--yellow); }
.process-step:nth-child(4) .process-num { background: var(--green); }

.process-step h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.process-step p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 200px;
  margin: 0 auto;
}

/* ============================================================
   KARTE / EINZUGSGEBIET
   ============================================================ */
.map-section {
  background: var(--bg-cream);
}

.map-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 48px;
  align-items: start;
}

@media (min-width: 1024px) {
  .map-inner { grid-template-columns: 1fr 1fr; }
}

.map-container {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  height: 440px;
}

.map-container iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.map-overlay-card {
  position: absolute;
  bottom: 20px;
  left: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  box-shadow: var(--shadow-lg);
  max-width: 260px;
}

.map-overlay-card h4 {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.map-overlay-card p {
  font-size: 13px;
  color: var(--text-muted);
}

.radius-legend {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 28px 0;
}

.radius-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: var(--text-body);
}

.radius-dot {
  width: 16px; height: 16px;
  border-radius: 50%;
  flex-shrink: 0;
}

.radius-dot.green { background: var(--green); }
.radius-dot.yellow { background: var(--yellow); }
.radius-dot.red { background: var(--red); }

/* ============================================================
   NOTDIENST BANNER
   ============================================================ */
.emergency-banner {
  background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 50%, var(--red-dark) 100%);
  background-size: 200% 200%;
  animation: emergencyPulse 5s ease-in-out infinite;
  padding: 64px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

@keyframes emergencyPulse {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

.emergency-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.02) 21px);
  pointer-events: none;
}

.emergency-inner { position: relative; z-index: 2; }

.emergency-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 7px 18px;
  border-radius: 50px;
  margin-bottom: 20px;
}

.pulse-dot {
  width: 8px; height: 8px;
  background: #fff;
  border-radius: 50%;
  animation: pulseDot 1.2s ease-in-out infinite;
}

@keyframes pulseDot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.6); opacity: 0.5; }
}

.emergency-banner h2 {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 12px;
}

.emergency-banner p {
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  margin-bottom: 32px;
}

.emergency-number {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  transition: transform 0.3s;
}

.emergency-number:hover { transform: scale(1.04); }

.phone-shake {
  display: inline-block;
  animation: phoneShake 3s ease-in-out infinite;
}

@keyframes phoneShake {
  0%, 100% { transform: rotate(0deg); }
  5% { transform: rotate(-15deg); }
  10% { transform: rotate(15deg); }
  15% { transform: rotate(-15deg); }
  20% { transform: rotate(0deg); }
}

/* ============================================================
   TESTIMONIALS
   ============================================================ */
.testimonials-section {
  background: var(--bg-soft);
}

.testimonials-carousel {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.testimonials-track { overflow: hidden; }

.testimonials-inner {
  display: flex;
  transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-slide {
  flex: 0 0 100%;
  padding: 0 8px;
}

.testimonial-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-md);
}

.testimonial-stars {
  color: var(--yellow);
  font-size: 20px;
  letter-spacing: 3px;
  margin-bottom: 20px;
}

.testimonial-text {
  font-family: var(--font-display);
  font-size: 18px;
  font-style: italic;
  color: var(--text-body);
  line-height: 1.75;
  margin-bottom: 28px;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 14px;
}

.author-avatar {
  width: 52px; height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.author-avatar.blue { background: linear-gradient(135deg, var(--blue), var(--blue-dark)); }
.author-avatar.red { background: linear-gradient(135deg, var(--red), var(--red-dark)); }
.author-avatar.yellow { background: linear-gradient(135deg, var(--yellow), var(--yellow-dark)); }

.author-info h5 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 2px;
}

.author-info span {
  font-size: 13px;
  color: var(--text-muted);
}

.author-badge {
  margin-left: auto;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
}

.testimonials-nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 32px;
}

.testimonials-dots {
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  transition: var(--transition);
}

.dot.active {
  background: var(--blue);
  width: 28px;
  border-radius: 5px;
}

.nav-arrow {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: var(--transition);
  color: var(--text-muted);
}

.nav-arrow:hover {
  background: var(--blue);
  border-color: var(--blue);
  color: #fff;
  transform: scale(1.05);
}

/* ============================================================
   FAQ AKKORDEON
   ============================================================ */
.faq-section {
  background: var(--bg-card);
}

.faq-list {
  max-width: 780px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-cream);
  transition: var(--transition);
}

.faq-item.open {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  background: none;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: var(--transition);
}

.faq-question:hover { color: var(--blue); }

.faq-item.open .faq-question { color: var(--blue); }

.faq-chevron {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease), background 0.3s;
}

.faq-item.open .faq-chevron {
  transform: rotate(180deg);
  background: var(--blue);
  color: #fff;
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.3s;
  padding: 0 24px;
}

.faq-item.open .faq-answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-answer p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.7;
  padding-top: 4px;
}

/* ============================================================
   CTA SECTION
   ============================================================ */
.cta-section {
  background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%);
  padding: 100px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(2,132,199,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.cta-section h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.cta-section p {
  font-size: 18px;
  color: rgba(255,255,255,0.65);
  margin-bottom: 40px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}

.cta-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   PAGE HERO (Unterseiten)
   ============================================================ */
.page-hero {
  padding: calc(var(--nav-h) + 64px) 0 80px;
  position: relative;
  overflow: hidden;
}

.page-hero--blue { background: linear-gradient(135deg, var(--blue-dark) 0%, var(--blue) 100%); }
.page-hero--red { background: linear-gradient(135deg, var(--red-dark) 0%, var(--red) 100%); }
.page-hero--yellow { background: linear-gradient(135deg, var(--yellow-dark) 0%, var(--yellow) 100%); }
.page-hero--dark { background: linear-gradient(135deg, var(--bg-dark) 0%, #1e293b 100%); }
.page-hero--cream { background: var(--bg-cream); padding-top: calc(var(--nav-h) + 64px); }

.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.page-hero--cream h1 { color: var(--text-dark); }

.page-hero p {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  max-width: 580px;
  line-height: 1.7;
  margin-bottom: 36px;
}

.page-hero--cream p { color: var(--text-muted); }

.page-hero-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 24px;
}

.page-hero-breadcrumb a { color: rgba(255,255,255,0.6); transition: color 0.2s; }
.page-hero-breadcrumb a:hover { color: #fff; }
.page-hero--cream .page-hero-breadcrumb { color: var(--text-muted); }
.page-hero--cream .page-hero-breadcrumb a { color: var(--text-muted); }
.page-hero--cream .page-hero-breadcrumb a:hover { color: var(--text-dark); }

/* ============================================================
   DETAIL PAGE — LEISTUNGEN LISTE
   ============================================================ */
.detail-section { background: var(--bg-cream); }

.detail-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .detail-grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: repeat(3, 1fr); }
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  transition: var(--transition);
}

.detail-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}

.detail-card-icon {
  font-size: 28px;
  margin-bottom: 14px;
}

.detail-card h4 {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 10px;
}

.detail-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* ============================================================
   IMAGE GALLERY
   ============================================================ */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

@media (min-width: 768px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--bg-soft);
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}

.gallery-item:hover img { transform: scale(1.06); }

/* ============================================================
   KONTAKT FORMULAR
   ============================================================ */
.contact-section { background: var(--bg-cream); }

.contact-inner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
}

@media (min-width: 1024px) {
  .contact-inner { grid-template-columns: 1fr 1fr; align-items: start; }
}

.contact-info-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.contact-info-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.contact-info-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
}

.contact-info-icon {
  font-size: 22px;
  width: 44px; height: 44px;
  background: var(--blue-light);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-info-text h4 {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.contact-info-text p,
.contact-info-text a {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.5;
  text-decoration: none;
  transition: color 0.2s;
}

.contact-info-text a:hover { color: var(--blue); }

/* Form */
.contact-form-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-md);
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 480px) {
  .form-grid { grid-template-columns: 1fr 1fr; }
}

.form-full { grid-column: 1 / -1; }

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-body);
  letter-spacing: 0.3px;
}

.form-control {
  padding: 13px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--text-dark);
  background: var(--bg-cream);
  outline: none;
  transition: var(--transition);
  width: 100%;
}

.form-control:focus {
  border-color: var(--blue);
  background: var(--bg-card);
  box-shadow: 0 0 0 4px rgba(2,132,199,0.08);
}

textarea.form-control {
  resize: vertical;
  min-height: 120px;
}

.form-submit {
  width: 100%;
  padding: 16px;
  background: linear-gradient(135deg, var(--blue), var(--blue-dark));
  color: #fff;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  margin-top: 8px;
}

.form-submit:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(2,132,199,0.4);
}

/* ============================================================
   FOOTER — FINAL PREMIUM
   ============================================================ */
.footer {
  background: linear-gradient(180deg, #0c1730 0%, #081226 100%);
  color: rgba(255,255,255,0.74);
  padding: 84px 0 0;
  margin: 0;
  position: relative;
  overflow: hidden;
}

.footer .container {
  max-width: 1320px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 56px;
  align-items: end;
  margin-bottom: 40px;
}

.footer-col {
  min-width: 0;
}

.footer-inner > .footer-col:not(.footer-brand) {
  padding-top: 52px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ---------- Linke Spalte ---------- */
.footer-brand .logo {
  display: inline-flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.footer-brand .logo-img {
  height: 108px;
  max-height: 108px;
  width: auto;
  object-fit: contain;
  display: block;
}

.footer-brand .logo-name {
  color: #ffffff;
}

.footer-brand .logo-tagline {
  color: rgba(255,255,255,0.45);
}

.footer-desc,
.footer-brand p {
  max-width: 410px;
  font-size: 16px;
  line-height: 1.75;
  color: rgba(255,255,255,0.68);
}

.footer-contact-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 26px;
}

.footer-contact-links a,
.footer-contact-links span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.5;
  color: rgba(255,255,255,0.78);
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-contact-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

.footer-contact-links svg {
  flex-shrink: 0;
  opacity: 0.9;
}

/* ---------- Headings ---------- */
.footer-col h4 {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #ffffff;
  margin-bottom: 20px;
}

/* ---------- Link-Spalten ---------- */
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.footer-links a {
  font-size: 16px;
  line-height: 1.5;
  color: rgba(255,255,255,0.68);
  transition: color 0.25s ease, transform 0.25s ease;
}

.footer-links a:hover {
  color: #ffffff;
  transform: translateX(2px);
}

/* ---------- Gewerke / Farben ---------- */
.footer-gewerke {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 22px;
}

.gewerk-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 124px;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  width: auto;
}

.gewerk-tag.blue {
  background: #e0f2fe;
  color: #075985;
}

.gewerk-tag.red {
  background: #fee2e2;
  color: #991b1b;
}

.gewerk-tag.yellow {
  background: #fef3c7;
  color: #b45309;
}

.footer-hours {
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,0.56);
  margin-top: 8px;
}

/* ---------- Footer Bottom / Copyright ---------- */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 22px 0 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.footer-bottom p {
  margin: 0;
  font-size: 12px;
  color: rgba(255,255,255,0.42);
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom-links a {
  font-size: 12px;
  color: rgba(255,255,255,0.42);
  transition: color 0.25s ease;
}

.footer-bottom-links a:hover {
  color: rgba(255,255,255,0.82);
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
    gap: 38px 30px;
    align-items: start;
  }

  .footer-inner > .footer-col:not(.footer-brand) {
    padding-top: 0;
    justify-content: flex-start;
  }

  .footer-brand .logo-img {
    height: 88px;
    max-height: 88px;
  }
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .footer {
    padding: 64px 0 0;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 30px;
    margin-bottom: 34px;
  }

  .footer-brand .logo-img {
    height: 72px;
    max-height: 72px;
  }

  .footer-desc,
  .footer-brand p {
    max-width: none;
    font-size: 15px;
  }

  .footer-links a,
  .footer-contact-links a,
  .footer-contact-links span,
  .footer-hours {
    font-size: 15px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-bottom-links {
    justify-content: center;
    gap: 16px;
  }
}

/* ============================================================
   SCROLL REVEAL ANIMATIONEN
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* Directional + scale animations */
.fade-up {
  opacity: 0;
  transform: translateY(40px);
  will-change: transform, opacity;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-up.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}

.fade-left {
  opacity: 0;
  transform: translateX(-40px);
  will-change: transform, opacity;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-left.visible {
  opacity: 1;
  transform: translateX(0);
  will-change: auto;
}

.fade-right {
  opacity: 0;
  transform: translateX(40px);
  will-change: transform, opacity;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.fade-right.visible {
  opacity: 1;
  transform: translateX(0);
  will-change: auto;
}

.scale-in {
  opacity: 0;
  transform: scale(0.9);
  will-change: transform, opacity;
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}
.scale-in.visible {
  opacity: 1;
  transform: scale(1);
  will-change: auto;
}

@media (prefers-reduced-motion: reduce) {
  .fade-up, .fade-left, .fade-right, .scale-in {
    transition-duration: 0.01ms !important;
    opacity: 1;
    transform: none;
  }
}

/* ============================================================
   PROMO / FÖRDERUNG BANNER
   ============================================================ */
.promo-banner {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  border-radius: var(--radius-xl);
  padding: 40px 36px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 48px 0;
}

.promo-icon {
  font-size: 48px;
  flex-shrink: 0;
}

.promo-text h3 {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.promo-text p {
  font-size: 15px;
  color: rgba(255,255,255,0.85);
  line-height: 1.6;
}

.promo-cta { margin-left: auto; }

/* ============================================================
   FEATURE LIST — 2-Spalten
   ============================================================ */
.feature-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 60px;
  align-items: center;
}

@media (min-width: 1024px) {
  .feature-split { grid-template-columns: 1fr 1fr; }
}

.feature-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: var(--transition);
}

.feature-item:hover {
  border-color: var(--blue);
  box-shadow: var(--shadow-sm);
  transform: translateX(4px);
}

.feature-item-icon {
  font-size: 24px;
  width: 48px; height: 48px;
  border-radius: var(--radius-sm);
  background: var(--blue-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.feature-item h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.feature-item p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}

.feature-image {
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}

.feature-image img {
  width: 100%;
  height: 460px;
  object-fit: cover;
  display: block;
}

/* ============================================================
   ÜBER UNS — TIMELINE / WERTE
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 768px) {
  .values-grid { grid-template-columns: repeat(3, 1fr); }
}

.value-card {
  text-align: center;
  padding: 40px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  transition: var(--transition);
}

.value-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.value-icon {
  font-size: 40px;
  margin-bottom: 16px;
  display: block;
}

.value-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.value-card p {
  font-size: 15px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   IMPRESSUM / DATENSCHUTZ
   ============================================================ */
.legal-content {
  max-width: 820px;
  margin: 0 auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 48px 56px;
}

@media (max-width: 640px) {
  .legal-content { padding: 32px 24px; }
}

.legal-content h2 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 36px 0 12px;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.legal-content h2:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.legal-content h3 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: var(--text-dark);
  margin: 24px 0 10px;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 14px;
}

.legal-content a {
  color: var(--blue);
  text-decoration: underline;
}

.legal-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 14px;
}

.legal-content ul li {
  font-size: 15px;
  color: var(--text-body);
  line-height: 1.7;
  margin-bottom: 6px;
}

/* ============================================================
   RESPONSIVE UTILITIES
   ============================================================ */
@media (max-width: 480px) {
  section { padding: 48px 0; }
  .hero-inner { padding: 40px 20px; gap: 40px; }
  .wizard-card { padding: 24px; }
  .contact-form-card { padding: 28px 20px; }
  .legal-content { padding: 28px 20px; }
  .promo-banner { padding: 28px 20px; flex-direction: column; }
  .promo-cta { margin-left: 0; }
}

@media (max-width: 768px) {
  .ba-wrapper { cursor: ns-resize; }
  .ba-container-inner { height: 280px; }
  .ba-before-img, .ba-after-img { height: 280px; }
  .feature-image img { height: 300px; }
  .map-container { height: 320px; aspect-ratio: 4/3; }

  /* Hero mobile */
  .hero { min-height: auto; }
  .hero-inner { padding: 40px 20px; }
  .hero-title { font-size: clamp(1.8rem, 6vw, 2.4rem); }
  .hero-actions .btn { width: 100%; justify-content: center; min-height: 48px; }
  .hero-trust { gap: 10px; }

  /* Page hero + tighter sections */
  .page-hero,
  .page-hero--blue,
  .page-hero--red,
  .page-hero--yellow,
  .page-hero--dark,
  .page-hero--cream {
    padding-top: calc(var(--nav-h) + 40px) !important;
    padding-bottom: 40px !important;
    min-height: auto !important;
  }
  .page-hero h1,
  .page-hero-title {
    font-size: clamp(1.8rem, 6vw, 2.4rem) !important;
  }

  /* Wizard mobile */
  .wizard-options { grid-template-columns: 1fr; }

  /* Cards: full width, touch-friendly */
  .btn { min-height: 48px; width: 100%; }
  section { padding: 64px 0; }
  .container,
  .nav-inner { padding-left: 20px; padding-right: 20px; }
  .services-grid,
  .services-grid-premium,
  .process-grid,
  .process-grid-premium,
  .contact-inner,
  .map-inner,
  .feature-split,
  .smarthome-grid {
    grid-template-columns: 1fr !important;
  }

  /* Distance-Form: vertikal stapeln */
  .distance-form { flex-direction: column; }

  /* Service icons smaller on mobile */
  .service-icon { width: 60px; height: 60px; }
  .service-icon svg { width: 36px; height: 36px; }
}

@media (min-width: 1440px) {
  :root { --container-max: 1380px; }
  body { font-size: 18px; }
}

/* ============================================================
   REDUCED MOTION
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .blob { animation: none; }
  .marquee-track { animation: none; }
  .about-marquee-track,
  .brand-marquee-track,
  .premium-marquee-track { animation: none; }
  .emergency-banner { animation: none; }
  .phone-shake { animation: none; }
  .pulse-dot,
  .badge-dot { animation: none; }
}

/* ============================================================
   SMART HOME SHOWCASE (elektro.html)
   ============================================================ */
.smarthome-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 640px) {
  .smarthome-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .smarthome-grid { grid-template-columns: repeat(3, 1fr); }
}

.smarthome-card {
  background: var(--bg-dark);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  position: relative;
  overflow: hidden;
  transition: var(--transition);
}

.smarthome-card:hover {
  border-color: rgba(245,158,11,0.3);
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(245,158,11,0.1);
}

.smarthome-card-icon {
  width: 56px;
  height: 56px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  border-radius: 18px;
  background: rgba(245,158,11,0.12);
  color: var(--yellow);
}

.smarthome-card-icon svg {
  width: 28px;
  height: 28px;
}

.smarthome-card h4 {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
}

.smarthome-card p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  line-height: 1.6;
}

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-to-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 48px; height: 48px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: var(--shadow-md);
  cursor: pointer;
  border: none;
  opacity: 0;
  transform: translateY(16px);
  transition: var(--transition);
  z-index: 9000;
  text-decoration: none;
}

.back-to-top.visible {
  opacity: 1;
  transform: translateY(0);
}

.back-to-top:hover {
  background: var(--blue-dark);
  transform: translateY(-4px);
}

/* ============================================================
   MISC
   ============================================================ */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.text-center { text-align: center; }
.text-blue { color: var(--blue); }
.text-red { color: var(--red); }
.text-yellow { color: var(--yellow-dark); }
.text-green { color: var(--green-dark); }

.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }

.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 48px 0;
}

/* ============================================================
   GLOBAL FIXES — Lesbarkeit, Marquee, Stats, Footer
   ============================================================ */

/* ---------- Premium Marquee / Lauftext ---------- */
.about-marquee,
.brand-marquee,
.premium-marquee {
  position: relative;
  overflow: hidden;
  background: #f3efe8;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 14px 0;
}

.about-marquee-track,
.brand-marquee-track,
.premium-marquee-track {
  display: flex;
  align-items: center;
  gap: 0;
  width: max-content;
  min-width: 100%;
  animation: premiumMarquee 32s linear infinite;
  white-space: nowrap;
}

.about-marquee-track span,
.brand-marquee-track span,
.premium-marquee-track span {
  display: inline-flex;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
  padding-right: 38px;
  opacity: 0.95;
}

.about-marquee-track span::after,
.brand-marquee-track span::after,
.premium-marquee-track span::after {
  content: "•";
  margin-left: 38px;
  color: #94a3b8;
  font-size: 14px;
}

@keyframes premiumMarquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* ---------- dunkles Stats-Band für gute Lesbarkeit ---------- */
.about-stats-band,
.premium-stats-band,
.stats-band-dark {
  background: #0f172a;
  color: #ffffff;
  padding: 72px 0;
}

.about-stats-band .container,
.premium-stats-band .container,
.stats-band-dark .container {
  position: relative;
  z-index: 2;
}

.about-stats-grid,
.premium-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.about-stat,
.premium-stat {
  text-align: center;
}

.about-stat-number,
.premium-stat-number,
.about-stat [data-count],
.premium-stat [data-count] {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: 1;
  font-weight: 700;
  color: #ffffff !important;
  margin-bottom: 12px;
}

.about-stat-label,
.premium-stat-label {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.74) !important;
  line-height: 1.6;
}

/* optionale Farbakzente für einzelne Zahlen */
.about-stat-number.blue,
.premium-stat-number.blue { color: #38bdf8 !important; }
.about-stat-number.red,
.premium-stat-number.red { color: #f87171 !important; }
.about-stat-number.yellow,
.premium-stat-number.yellow { color: #fbbf24 !important; }

/* ---------- responsive ---------- */
@media (max-width: 768px) {
  .about-marquee,
  .brand-marquee,
  .premium-marquee {
    padding: 12px 0;
  }

  .about-marquee-track span,
  .brand-marquee-track span,
  .premium-marquee-track span {
    font-size: 12px;
    letter-spacing: 0.06em;
    padding-right: 26px;
  }

  .about-marquee-track span::after,
  .brand-marquee-track span::after,
  .premium-marquee-track span::after {
    margin-left: 26px;
  }

  .about-stats-grid,
  .premium-stats-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .about-stats-band,
  .premium-stats-band,
  .stats-band-dark {
    padding: 52px 0;
  }
}

/* ============================================================
   FIX 4 — ELEKTRO CARD OVERFLOW
   ============================================================ */
.services-grid-premium article,
.process-grid-premium > div,
.smarthome-card,
.feature-card {
  overflow: hidden;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
}

.services-grid-premium article h3,
.process-grid-premium > div h3,
.smarthome-card h3 {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  line-height: 1.3;
  word-break: break-word;
}

.services-grid-premium article p,
.process-grid-premium > div p,
.smarthome-card p {
  font-size: clamp(0.85rem, 1.5vw, 0.95rem);
  line-height: 1.5;
}

/* ============================================================
   FIX 7 — FOERDERUNG CONTRAST FIX
   ============================================================ */
.foerderung-step,
.process-step,
.step-card {
  background: var(--bg-card);
  color: var(--text-dark);
}

.foerderung-step h3,
.process-step h3,
.step-card h3 {
  color: var(--text-dark);
}

.foerderung-step p,
.process-step p,
.step-card p {
  color: var(--text-body);
}

/* ============================================================
   FIX 9 — MOBILE OPTIMIERUNG
   ============================================================ */
@media (max-width: 768px) {
  body {
    overflow-x: hidden;
  }

  section {
    padding: 60px 16px;
  }

  .hero {
    padding: 100px 16px 50px;
    min-height: auto;
  }

  .services-grid,
  .features-grid,
  .why-grid,
  .testimonial-grid,
  .cards-grid {
    grid-template-columns: 1fr !important;
    gap: 16px;
  }

  .service-card,
  .feature-card,
  .card {
    padding: 28px 20px;
    overflow: hidden;
    word-wrap: break-word;
  }

  h1, h2, h3 {
    word-break: break-word;
    hyphens: auto;
  }

  .btn {
    min-height: 48px;
    padding: 14px 24px;
    width: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 32px;
    text-align: center;
  }

  .map-container,
  iframe {
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 480px) {
  section {
    padding: 50px 14px;
  }

  .service-card,
  .feature-card {
    padding: 24px 16px;
  }
}
