/* ============================================
   BF&H BAU – Premium Construction Website
   ============================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --yellow: #F5A623;
  --yellow-light: #FFD166;
  --dark: #1A1A2E;
  --charcoal: #2D3436;
  --gray: #636E72;
  --light: #F8F9FA;
  --white: #FFFFFF;
  --green: #4CAF50;
  --green-dark: #2E7D32;
  --blue: #1A237E;
  --radius: 16px;
  --shadow: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.15);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--white);
  color: var(--charcoal);
  overflow-x: hidden;
  cursor: none;
}

/* ── CUSTOM CURSOR ── */
#cursor-dot {
  width: 8px; height: 8px;
  background: var(--yellow);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  transition: transform 0.1s;
}
#cursor-ring {
  width: 36px; height: 36px;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  position: fixed; top: 0; left: 0;
  pointer-events: none;
  z-index: 9998;
  transform: translate(-50%, -50%);
  transition: all 0.15s ease;
  opacity: 0.6;
}

/* ── NAV ── */
#navbar {
  position: fixed; top: 0; width: 100%; z-index: 1000;
  padding: 18px 0;
  background: rgba(13,27,42,0.92);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 30px rgba(0,0,0,0.15);
  transition: background 0.4s, box-shadow 0.4s, padding 0.4s;
}
#navbar.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
  padding: 12px 0;
}
.nav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.logo { display: flex; align-items: baseline; gap: 2px; cursor: default; }
.logo-bf { font-size: 1.6rem; font-weight: 900; color: var(--white); letter-spacing: -1px; transition: color 0.4s; }
.amp { color: var(--yellow); }
.logo-bau { font-size: 1rem; font-weight: 600; color: var(--yellow); letter-spacing: 3px; margin-left: 4px; }
#navbar.scrolled .logo-bf { color: var(--dark); }
.nav-links { display: flex; gap: 32px; list-style: none; }
.nav-links a { text-decoration: none; color: rgba(255,255,255,0.85); font-size: 0.9rem; font-weight: 500; transition: color 0.3s; }
#navbar.scrolled .nav-links a { color: var(--charcoal); }
.nav-links a:hover { color: var(--yellow); }
.nav-cta {
  background: var(--yellow) !important;
  color: var(--dark) !important;
  padding: 10px 22px !important;
  border-radius: 50px !important;
  font-weight: 700 !important;
}
.burger { display: none; background: none; border: none; font-size: 1.5rem; color: white; cursor: pointer; }
#navbar.scrolled .burger { color: var(--dark); }

/* ── HERO ── */
#hero {
  position: relative;
  min-height: 100vh;
  background: linear-gradient(135deg, #0d1b2a 0%, #1a2744 40%, #0f2027 100%);
  display: flex; align-items: center;
  overflow: hidden;
}
#heroCanvas {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 0;
}
.hero-clouds { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; pointer-events: none; }
.cloud {
  position: absolute;
  background: rgba(255,255,255,0.06);
  border-radius: 50px;
}
.cloud::before {
  content: '';
  position: absolute;
  background: inherit;
  border-radius: 50%;
}
.cloud1 { width: 200px; height: 60px; top: 15%; left: -220px; animation: cloudMove 28s linear infinite; }
.cloud1::before { width: 80px; height: 80px; top: -40px; left: 40px; }
.cloud2 { width: 150px; height: 45px; top: 30%; left: -170px; animation: cloudMove 22s linear 8s infinite; }
.cloud3 { width: 280px; height: 70px; top: 8%; left: -300px; animation: cloudMove 35s linear 4s infinite; }
@keyframes cloudMove { to { transform: translateX(calc(100vw + 400px)); } }

.hero-city {
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 260px; z-index: 1;
}

.hero-content {
  position: relative; z-index: 3;
  max-width: 1200px; margin: 0 auto;
  padding: 120px 32px 60px;
  flex: 1;
}
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,0.15);
  border: 1px solid rgba(245,166,35,0.3);
  color: var(--yellow-light);
  padding: 8px 18px; border-radius: 50px;
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.5px;
  margin-bottom: 24px;
  animation: fadeUp 0.8s ease forwards;
}
.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(3rem, 7vw, 6.5rem);
  font-weight: 800; line-height: 1.05;
  color: white; margin-bottom: 24px;
  max-width: 700px;
  text-shadow: 0 20px 45px rgba(0,0,0,0.45);
}
.title-line1 { display: block; animation: fadeUp 0.9s 0.1s ease both; }
.title-line2 {
  display: block; color: var(--yellow);
  animation: fadeUp 0.9s 0.2s ease both;
}
.hero-sub {
  font-size: 1.1rem; line-height: 1.7;
  color: rgba(255,255,255,0.92);
  max-width: 560px; margin-bottom: 36px;
  animation: fadeUp 0.9s 0.3s ease both;
  text-shadow: 0 6px 20px rgba(0,0,0,0.28);
}

/* Glass blur behind hero-sub text for better legibility */
.hero-sub {
  position: relative;
  z-index: 4;
  padding: 20px 24px;
  margin: 0;
  margin-bottom: 5px;
  max-width: fit-content;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}
.hero-sub::before {
  display: none;
}
.hero-btns {
  display: flex; gap: 16px; flex-wrap: wrap;
  animation: fadeUp 0.9s 0.4s ease both;
  margin-bottom: 56px;
}
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--yellow); color: var(--dark);
  padding: 16px 32px; border-radius: 50px;
  text-decoration: none; font-weight: 700; font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 4px 20px rgba(245,166,35,0.4);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 30px rgba(245,166,35,0.5); }
.btn-secondary {
  display: inline-flex; align-items: center;
  background: transparent;
  border: 2px solid rgba(255,255,255,0.3);
  color: white;
  padding: 14px 30px; border-radius: 50px;
  text-decoration: none; font-weight: 600; font-size: 1rem;
  transition: all 0.3s;
}
.btn-secondary:hover { border-color: var(--yellow); color: var(--yellow); }
.full-width { width: 100%; justify-content: center; border: none; cursor: pointer; }

.scroll-hint {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.4); font-size: 0.75rem; z-index: 3;
  animation: fadeIn 1.5s 1s ease both;
}
.scroll-arrow {
  width: 2px; height: 40px;
  background: linear-gradient(to bottom, transparent, rgba(245,166,35,0.6));
  animation: scrollPulse 1.5s ease-in-out infinite;
}
@keyframes scrollPulse { 0%,100%{opacity:.3;transform:scaleY(.8)} 50%{opacity:1;transform:scaleY(1)} }

.hero-panel {
  position: absolute;
  left: 6%;
  bottom: 26%;
  z-index: 4;
  max-width: 340px;
  padding: 18px 22px;
  border-radius: 26px;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.22);
  box-shadow: 0 18px 50px rgba(0,0,0,0.16);
  backdrop-filter: blur(16px);
}
.hero-panel .panel-step {
  color: var(--yellow);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.hero-panel .panel-text {
  color: rgba(255,255,255,0.9);
  font-size: 0.95rem;
  line-height: 1.6;
}

.hero-three-avatar {
  position: absolute;
  right: 7%;
  bottom: 18%;
  width: 280px;
  height: 320px;
  z-index: 4;
  border-radius: 32px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: 0 28px 80px rgba(0,0,0,0.25);
  /* removed backdrop-filter to keep avatar head crisp */
  overflow: hidden;
}
.hero-three-avatar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(245,166,35,0.18), transparent 40%);
  pointer-events: none;
}

.wave-arm {
  animation: wave 0.6s ease-in-out infinite alternate;
  transform-origin: right center;
  animation-play-state: paused;
}
.character:hover .wave-arm { animation-play-state: running; }

.char-svg, .avatar-head {
  transform-origin: center center;
  transition: transform 0.2s ease;
}

.tl-dot.active { background: var(--yellow); border-color: var(--yellow); color: var(--dark); box-shadow: 0 0 0 6px rgba(245,166,35,0.3); }

/* ── CHARACTERS ── */
.character {
  position: absolute; z-index: 4;
  user-select: none;
}
.char-svg { display: block; filter: drop-shadow(0 8px 20px rgba(0,0,0,0.25)); }

.engineer-char {
  right: 8%; bottom: 0;
  width: clamp(100px, 14vw, 180px);
  animation: walkIn 1.2s 0.5s cubic-bezier(.22,.61,.36,1) both;
}
@keyframes walkIn {
  from { transform: translateX(200px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

.worker-intro {
  position: relative; z-index: 4;
  width: 120px; margin: 0 auto 32px;
  animation: bounce 2s ease-in-out infinite;
}
.architect-char {
  position: relative; z-index: 2;
  width: clamp(130px, 16vw, 200px);
  animation: idleFloat 3s ease-in-out infinite;
}
.manager-char {
  position: relative; z-index: 2;
  width: clamp(110px, 12vw, 160px);
  margin-top: 20px;
}

/* Character walking legs */
.walk .left-leg { animation: legL 0.5s ease-in-out infinite alternate; transform-origin: top center; }
.walk .right-leg { animation: legR 0.5s ease-in-out infinite alternate; transform-origin: top center; }
.walk .left-arm { animation: armL 0.5s ease-in-out infinite alternate; transform-origin: top center; }
.walk .right-arm { animation: armR 0.5s ease-in-out infinite alternate; transform-origin: top center; }
@keyframes legL { from{transform:rotate(-15deg)} to{transform:rotate(15deg)} }
@keyframes legR { from{transform:rotate(15deg)} to{transform:rotate(-15deg)} }
@keyframes armL { from{transform:rotate(12deg)} to{transform:rotate(-12deg)} }
@keyframes armR { from{transform:rotate(-12deg)} to{transform:rotate(12deg)} }

/* Wave animation */
.wave-arm { animation: wave 0.6s ease-in-out infinite alternate; transform-origin: right center; }
@keyframes wave { from{transform:rotate(-30deg)} to{transform:rotate(30deg)} }

/* Idle breathe */
@keyframes idleFloat { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes bounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-12px)} }

/* Speech bubble */
.speech-bubble {
  position: absolute;
  top: -52px; left: 50%;
  transform: translateX(-50%);
  background: white;
  color: var(--dark);
  font-size: 0.75rem; font-weight: 600;
  padding: 8px 14px;
  border-radius: 20px;
  box-shadow: var(--shadow);
  white-space: nowrap;
  opacity: 1; /* make bubbles visible by default */
  transition: opacity 0.3s;
  pointer-events: none;
}
.speech-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px; left: 50%;
  transform: translateX(-50%);
  border: 8px solid transparent;
  border-top-color: white;
  border-bottom: 0;
}

.avatar-hub {
  position: fixed;
  right: 24px;
  bottom: 120px;
  left: auto;
  top: auto;
  z-index: 999;
  width: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 16px;
  background: transparent; /* removed background */
  border: none;
  border-radius: 28px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.28);
  transform: translate(-50%, -50%);
  pointer-events: none;
  will-change: transform, left, top;
}
.avatar-hub:focus-within, .avatar-hub:hover {
  background: rgba(12,18,34,0.98);
}
.avatar-label {
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
@keyframes floatAvatar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.avatar {
  width: 98px;
  height: 132px;
  position: relative;
}

/* trail particles for vehicle follower */
.vehicle-trail {
  position: fixed;
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(245,166,35,0.9);
  pointer-events: none; z-index: 998;
  transform: translate(-50%, -50%) scale(1);
  animation: trailFade 700ms forwards ease-out;
}
@keyframes trailFade {
  0% { opacity: 0.9; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(2.4); }
}
.avatar-head {
  width: 98px;
  height: 96px;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffd8b8 0%, #f4c48b 100%);
  position: relative;
  box-shadow: inset 0 10px 16px rgba(0,0,0,0.08);
  overflow: hidden;
}
.avatar-hat {
  position: absolute;
  top: -6px;
  left: 50%;
  width: 84px;
  height: 24px;
  transform: translateX(-50%);
  background: #f5a623;
  border-radius: 50% 50% 40% 40%;
  border-bottom: 4px solid #ffd166;
}
.avatar-hat::after {
  content: '';
  position: absolute;
  left: 18px;
  top: 12px;
  width: 46px;
  height: 10px;
  background: #ffd166;
  border-radius: 999px;
}
.avatar-eye {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  position: absolute;
  top: 36px;
  box-shadow: inset 0 0 0 2px #2d3436;
}
.avatar-eye.left { left: 22px; }
.avatar-eye.right { right: 22px; }
.avatar-mouth {
  width: 28px;
  height: 12px;
  border-bottom: 3px solid #2d3436;
  border-radius: 0 0 14px 14px;
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
}
.avatar-body {
  width: 60px;
  height: 68px;
  background: linear-gradient(180deg, #1a237e 0%, #263238 100%);
  border-radius: 28px;
  position: absolute;
  left: 50%;
  bottom: -8px;
  transform: translateX(-50%);
  box-shadow: inset 0 8px 16px rgba(0,0,0,0.16);
}
.avatar-stripe {
  position: absolute;
  width: 40px;
  height: 10px;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #ffd166;
}
.avatar-stripe.left {
  top: 16px;
  transform: translateX(-50%) rotate(-6deg);
}
.avatar-stripe.right {
  top: 34px;
  transform: translateX(-50%) rotate(6deg);
}
.avatar-label {
  color: white;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: center;
  line-height: 1.3;
}
@keyframes floatAvatar {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

/* ── SECTIONS GENERAL ── */
section { padding: 100px 0; }

.section-intro {
  text-align: center;
  max-width: 640px; margin: 0 auto 64px;
  padding: 0 32px;
}
.section-tag {
  display: inline-block;
  background: rgba(245,166,35,0.12);
  color: var(--yellow);
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 50px;
  margin-bottom: 16px;
}
.section-intro h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; line-height: 1.2;
  margin-bottom: 16px;
}
.section-intro p { color: var(--gray); line-height: 1.7; }
.highlight { color: var(--yellow); }
.highlight-green { color: var(--green); }

/* ── REVEAL ANIMATION ── */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ── FACHBEREICHE ── */
#fachbereiche {
  background: var(--light);
  padding: 100px 0;
}
.cards-grid {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.service-card {
  background: white;
  border-radius: var(--radius);
  padding: 36px 32px 28px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.service-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.card-icon { width: 70px; height: 70px; margin-bottom: 20px; }
.card-icon svg { width: 100%; height: 100%; }
.service-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: 10px; }
.service-card p { color: var(--gray); line-height: 1.6; font-size: 0.93rem; flex: 1; }
.card-anim { margin: 20px -12px 0; border-radius: 8px; overflow: hidden; }
.mini-canvas { width: 100%; height: 90px; display: block; }
.card-link {
  display: inline-flex; align-items: center;
  color: var(--yellow); font-weight: 600; font-size: 0.9rem;
  text-decoration: none; margin-top: 20px;
  transition: gap 0.2s;
}
.card-link:hover { gap: 4px; }

/* ── ÜBER UNS ── */
#ueber-uns {
  max-width: 1200px; margin: 0 auto;
  padding: 100px 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
}
.ueber-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800; margin-bottom: 20px;
}
.lead-text { font-size: 1.1rem; font-weight: 600; color: var(--dark); margin-bottom: 16px; }
.ueber-left p { color: var(--gray); line-height: 1.7; margin-bottom: 32px; }

.stages-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 16px;
}
.stage {
  background: var(--light);
  border-radius: 12px; padding: 20px;
  border-left: 3px solid var(--yellow);
}
.stage-icon { font-size: 1.5rem; margin-bottom: 8px; }
.stage h4 { font-weight: 700; margin-bottom: 4px; }
.stage p { font-size: 0.82rem; color: var(--gray); }

.ueber-right {
  display: flex; flex-direction: column;
  align-items: center; gap: 32px;
}
.glass-card {
  background: rgba(255,255,255,0.7);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(245,166,35,0.2);
  border-radius: var(--radius);
  padding: 28px 32px;
  box-shadow: var(--shadow);
  display: flex; flex-wrap: wrap; gap: 28px;
  width: 100%;
}
.glass-stat { text-align: center; flex: 1; }
.big-num {
  display: block;
  font-size: 1.8rem; font-weight: 800; color: var(--yellow);
  font-family: 'Playfair Display', serif;
}
.glass-stat p { font-size: 0.8rem; color: var(--gray); margin-top: 4px; }

/* ── TIMELINE ── */
#timeline { padding: 100px 0; background: white; }
.timeline-track {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  position: relative;
  overflow: hidden;
}

.timeline-street {
  position: absolute;
  top: 15px;
  left: 32px;
  right: 32px;
  height: 50px;
  z-index: 1;
  opacity: 0.85;
  pointer-events: none;
}
.timeline-street svg {
  width: 100%;
  height: 100%;
  display: block;
}

.timeline-builder {
  position: absolute;
  top: 8px;
  left: 32px;
  z-index: 2;
  display: none;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateX(0);
  pointer-events: none;
}
.builder-avatar {
  width: 54px;
  height: 54px;
  background: #ffffff;
  border: 2px solid var(--yellow);
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 32px rgba(0,0,0,0.22);
}
.builder-avatar svg { width: 30px; height: 30px; }
.builder-label {
  font-size: 0.78rem;
  color: var(--dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.timeline-track.build-active .timeline-builder {
  animation: walkAcross 2.4s ease forwards;
  opacity: 1;
}
.timeline-backhoe {
  position: absolute;
  top: 0;
  left: 32px;
  z-index: 3;
  width: 100px;
  height: 60px;
  pointer-events: none;
  opacity: 1;
  animation: backhoeMove 8s ease-in-out infinite;
}
.timeline-backhoe svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}
.timeline-track.build-active .timeline-backhoe {
  animation: backhoeMove 8s ease-in-out infinite;
  opacity: 1;
}
.timeline-track.build-active .tl-item:nth-child(1) .tl-card,
.timeline-track.build-active .tl-item:nth-child(2) .tl-card,
.timeline-track.build-active .tl-item:nth-child(3) .tl-card,
.timeline-track.build-active .tl-item:nth-child(4) .tl-card,
.timeline-track.build-active .tl-item:nth-child(5) .tl-card,
.timeline-track.build-active .tl-item:nth-child(6) .tl-card {
  animation: cardBuild 0.35s ease forwards;
}
.timeline-track.build-active .tl-item:nth-child(1) .tl-card { animation-delay: 0.1s; }
.timeline-track.build-active .tl-item:nth-child(2) .tl-card { animation-delay: 0.4s; }
.timeline-track.build-active .tl-item:nth-child(3) .tl-card { animation-delay: 0.7s; }
.timeline-track.build-active .tl-item:nth-child(4) .tl-card { animation-delay: 1.0s; }
.timeline-track.build-active .tl-item:nth-child(5) .tl-card { animation-delay: 1.3s; }
.timeline-track.build-active .tl-item:nth-child(6) .tl-card { animation-delay: 1.6s; }

@keyframes walkAcross {
  0% { transform: translateX(-12%) translateY(0); opacity: 0; }
  10% { opacity: 1; }
  25% { transform: translateX(14%) translateY(-3px); }
  40% { transform: translateX(34%) translateY(0); }
  55% { transform: translateX(56%) translateY(-3px); }
  70% { transform: translateX(76%) translateY(0); }
  85% { transform: translateX(96%) translateY(-2px); }
  100% { transform: translateX(108%) translateY(0); opacity: 0; }
}

@keyframes backhoeMove {
  0% { transform: translateX(-80px) scaleX(1); opacity: 1; }
  5% { opacity: 1; }
  10% { transform: translateX(0) scaleX(1); opacity: 1; }
  20% { transform: translateX(120px) scaleX(1); opacity: 1; }
  35% { transform: translateX(280px) scaleX(1); opacity: 1; }
  50% { transform: translateX(440px) scaleX(1); opacity: 1; }
  65% { transform: translateX(600px) scaleX(1); opacity: 1; }
  80% { transform: translateX(760px) scaleX(1); opacity: 1; }
  100% { transform: translateX(880px) scaleX(1); opacity: 1; }
}

@keyframes cardBuild {
  0% { transform: translateY(0); box-shadow: none; border-color: rgba(245,166,35,0.18); }
  50% { transform: translateY(-6px); box-shadow: 0 16px 30px rgba(245,166,35,0.12); border-color: var(--yellow); }
  100% { transform: translateY(0); box-shadow: 0 10px 22px rgba(245,166,35,0.12); border-color: rgba(245,166,35,0.22); }
}

.timeline-items {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  position: relative; z-index: 1;
}
.tl-item { display: flex; flex-direction: column; align-items: center; }
.tl-dot {
  width: 44px; height: 44px; border-radius: 50%;
  background: white; border: 3px solid rgba(245,166,35,0.3);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.9rem; color: var(--gray);
  margin-bottom: 20px; z-index: 2;
  transition: all 0.3s;
}
.tl-dot.active { background: var(--yellow); border-color: var(--yellow); color: var(--dark); box-shadow: 0 0 0 6px rgba(245,166,35,0.2); }
.tl-item:hover .tl-dot { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }
.tl-card {
  background: var(--light); border-radius: 12px;
  padding: 16px; text-align: center;
  border: 1px solid rgba(0,0,0,0.06);
  transition: transform 0.3s, box-shadow 0.3s;
  width: 100%;
}
.tl-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tl-card.featured { background: var(--yellow); }
.tl-card.featured h4, .tl-card.featured p { color: var(--dark); }
.tl-icon { font-size: 1.5rem; margin-bottom: 8px; }
.tl-card h4 { font-size: 0.85rem; font-weight: 700; margin-bottom: 4px; }
.tl-card p { font-size: 0.72rem; color: var(--gray); line-height: 1.4; }
.mini-char { width: 40px; margin-top: 10px; display: none; }

/* ── KONTAKT ── */
#kontakt { padding: 100px 0; background: var(--light); }
.kontakt-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: start;
}
.kontakt-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 800; margin: 16px 0 20px;
  line-height: 1.15;
}
.kontakt-left p { color: var(--gray); line-height: 1.7; margin-bottom: 32px; }
.contact-info { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.contact-item {
  display: flex; gap: 14px; align-items: flex-start;
  background: white; border-radius: 12px; padding: 16px 18px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}
.ci-icon { font-size: 1.3rem; flex-shrink: 0; }
.contact-item strong { display: block; font-size: 0.8rem; color: var(--gray); margin-bottom: 2px; }
.contact-item a, .contact-item span { font-weight: 600; color: var(--dark); text-decoration: none; font-size: 0.95rem; }

.contact-form {
  background: white; border-radius: var(--radius);
  padding: 40px; box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-group label { font-size: 0.82rem; font-weight: 600; color: var(--charcoal); }
.form-group input,
.form-group select,
.form-group textarea {
  padding: 12px 16px; border: 2px solid #E9ECEF;
  border-radius: 10px; font-size: 0.93rem;
  font-family: 'Inter', sans-serif;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; background: var(--light);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--yellow);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.12);
  background: white;
}
.form-group textarea { resize: vertical; }

/* ── FOOTER ── */
footer {
  background: var(--dark);
  padding: 60px 0 0;
}
.footer-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px 48px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
}
.footer-brand .logo-bf { color: white; }
.footer-brand p { color: rgba(255,255,255,0.45); font-size: 0.88rem; margin-top: 12px; }
.footer-links h5, .footer-contact h5 { color: var(--yellow); font-size: 0.78rem; letter-spacing: 2px; text-transform: uppercase; margin-bottom: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 10px; }
.footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.9rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--yellow); }
.footer-contact p { color: rgba(255,255,255,0.55); font-size: 0.9rem; margin-bottom: 6px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 20px 32px;
  text-align: center;
  color: rgba(255,255,255,0.3);
  font-size: 0.82rem;
}

/* ── ANIMATIONS ── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  #ueber-uns { grid-template-columns: 1fr; gap: 48px; }
  .ueber-right { align-items: flex-start; }
  .kontakt-inner { grid-template-columns: 1fr; gap: 48px; }
  .timeline-items { grid-template-columns: repeat(3, 1fr); }
  .timeline-line { top: 80px; left: 80px; right: 80px; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .burger { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 60px; left: 0; right: 0;
    background: rgba(26,26,46,0.98);
    padding: 24px 32px; gap: 20px; z-index: 999;
  }
  #ueber-uns { padding: 60px 24px; }
  .stages-grid { grid-template-columns: 1fr; }
  .timeline-items { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .hero-content { padding: 100px 24px 40px; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .stat-div { display: none; }
  .engineer-char { width: 90px; right: 4%; }
  .form-row { grid-template-columns: 1fr; }
  body { cursor: auto; }
  #cursor-dot, #cursor-ring { display: none; }
  .hero-three-avatar { display: none; }
}
@media (max-width: 480px) {
  .timeline-items { grid-template-columns: 1fr; }
  .timeline-line { display: none; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .cards-grid { padding: 0 20px; }
  .ref-grid { padding: 0 20px; }
}
