/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:  #FE4A15;
  --green:   #28683B;
  --dark:    #3C3C3C;
  --darker:  #2A2A2A;
  --darkest: #1E1E1E;
  --white:   #FFFFFF;
  --nav-h:   72px;
  --font-h:  'Barlow Condensed', sans-serif;
  --font-b:  'Barlow', sans-serif;
}

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

body {
  background: linear-gradient(180deg, var(--darkest) 0%, var(--dark) 25%, var(--darker) 50%, var(--dark) 75%, var(--darkest) 100%);
  color: var(--white);
  font-family: var(--font-b);
  font-size: 1rem;
  line-height: 1.6;
  overflow-x: hidden;
}

body.modal-open { overflow: hidden; }

img { max-width: 100%; height: auto; display: block; }
ul  { list-style: none; }
a   { text-decoration: none; color: inherit; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; }

.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;
}

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed; inset: 0 0 auto 0;
  z-index: 999;
  background: var(--darkest);
  border-bottom: 3px solid var(--green);
  opacity: 0; translate: 0 -100%;
  transition: box-shadow 0.3s, opacity 0.6s ease, translate 0.6s ease;
}
.header--visible {
  opacity: 1; translate: 0 0;
}

.nav {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1200px; margin: 0 auto; padding: 0 2rem; height: var(--nav-h);
}

.nav-logo { display: flex; align-items: center; gap: 0.75rem; }
.nav-logo img { height: 52px; width: auto; }

.nav-brand {
  font-family: var(--font-h); font-size: 1.8rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); line-height: 1;
}

.nav-links { display: flex; align-items: center; gap: 1rem; }

.nav-links li a {
  font-family: var(--font-h); font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--white);
  transition: color 0.2s;
}

.nav-links li a:hover,
.nav-links li a.active { color: var(--orange); }

.nav-sep { color: var(--orange); font-weight: 900; font-size: 1.1rem; user-select: none; line-height: 1; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px; z-index: 1001;
}
.burger span {
  display: block; width: 26px; height: 3px; background: var(--white);
  border-radius: 2px; transition: transform 0.3s, opacity 0.3s;
}
.burger.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.burger.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  margin-top: var(--nav-h); background: transparent; overflow: hidden;
  position: relative; line-height: 0;
}
.hero img {
  width: 100%; max-height: calc(100vh - var(--nav-h));
  object-fit: cover; object-position: center center;
  will-change: transform;
}

/* Hero swirl background */
.hero-swirl {
  position: absolute; inset: 0; width: 100%; height: 100%;
  z-index: 0; pointer-events: none;
}
.hero img { position: relative; z-index: 1; }
.swirl {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: swirlFlow ease-out forwards;
}
.swirl--1  { animation-delay: 0s;    animation-duration: 4s;  }
.swirl--2  { animation-delay: 0.5s;  animation-duration: 5s;  }
.swirl--3  { animation-delay: 0.2s;  animation-duration: 6s;  }
.swirl--4  { animation-delay: 0.8s;  animation-duration: 4.5s; }
.swirl--5  { animation-delay: 1.2s;  animation-duration: 5.5s; }
.swirl--6  { animation-delay: 0.4s;  animation-duration: 4s;  }
.swirl--7  { animation-delay: 1.5s;  animation-duration: 6.5s; }
.swirl--8  { animation-delay: 0.7s;  animation-duration: 5s;  }
.swirl--9  { animation-delay: 1.8s;  animation-duration: 4.5s; }
.swirl--10 { animation-delay: 1s;    animation-duration: 5.5s; }
@keyframes swirlFlow {
  0%   { stroke-dashoffset: 3000; opacity: 0; }
  10%  { opacity: 0.8; }
  100% { stroke-dashoffset: 0; opacity: 1; }
}

/* Hero animated headline */
.hero-headline {
  position: absolute; bottom: 2.5rem; left: 0; width: 100%;
  display: flex; justify-content: center; gap: 0.6em;
  line-height: 1.1; z-index: 2;
  pointer-events: none;
}
.hero-word {
  font-family: var(--font-h); font-weight: 800; font-size: clamp(2.6rem, 6.5vw, 5.85rem);
  text-transform: uppercase; color: var(--white);
  opacity: 0; translate: 0 30px;
  animation: heroWordIn 0.7s ease forwards;
  text-shadow: 0 2px 20px rgba(0,0,0,0.6);
}
.hero-word--1 { animation-delay: 0.3s; }
.hero-word--2 { animation-delay: 0.6s; color: var(--orange); }
.hero-word--3 { animation-delay: 0.9s; }
@keyframes heroWordIn {
  to { opacity: 1; translate: 0 0; }
}

/* ============================================================
   SECTIONS
   ============================================================ */
.section { padding: 64px 0 80px; background: transparent; overflow: hidden; }
.section--alt { background: transparent; }
.container { max-width: 1100px; margin: 0 auto; padding: 0 2rem; }

/* ============================================================
   SECTION TAGS (green badge with white border)
   ============================================================ */
.tag-row { display: flex; margin-bottom: 2.5rem; }
.tag-row--right { justify-content: flex-end; }

.tag {
  display: inline-block; background: var(--green); color: var(--white);
  font-family: var(--font-h); font-size: 2.6rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em;
  padding: 10px 36px; line-height: 1.2;
  border: 3px solid var(--white);
}

/* ============================================================
   SPECS BOX
   ============================================================ */
.specs-box {
  border: 2px solid var(--orange); padding: 2rem 2.5rem;
  display: grid; grid-template-columns: auto 1fr; gap: 1.5rem 4rem;
  align-items: start; transform: rotate(-1.2deg);
}
.specs-label {
  font-family: var(--font-h); font-size: 1.5rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.04em; white-space: nowrap;
  padding-top: 0.2rem;
}
.specs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0.55rem 3rem; }

.spec-item {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 1rem; border-bottom: 1px solid rgba(255,255,255,0.12); padding-bottom: 0.4rem;
}
.spec-item span  { font-size: 0.9rem; color: rgba(255,255,255,0.65); }
.spec-item strong { font-family: var(--font-h); font-size: 1rem; font-weight: 700; color: var(--orange); white-space: nowrap; }

.sideview-wrap { margin-top: 3rem; transform: rotate(0.8deg); overflow: visible; }
.sideview-img { width: 100%; max-width: none; will-change: transform; transition: transform 0.05s linear; }

/* ============================================================
   EINSÄTZE / ACCORDION
   ============================================================ */
.einsaetze-grid { display: grid; grid-template-columns: 1fr 240px; gap: 3rem; align-items: center; }

.accordion { display: flex; flex-direction: column; gap: 0.5rem; }
.acc-item { border: 2px solid var(--orange); overflow: hidden; }
.acc-item:nth-child(odd)  { transform: rotate(-0.7deg); }
.acc-item:nth-child(even) { transform: rotate(0.6deg); }

.acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  background: transparent; border: none; color: var(--white);
  font-family: var(--font-h); font-size: 1.2rem; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  padding: 1rem 1.25rem; cursor: pointer; text-align: left; transition: background 0.2s;
}
.acc-btn:hover { background: rgba(254,74,21,0.1); }

.acc-chevron { width: 20px; height: 20px; color: var(--orange); flex-shrink: 0; transition: transform 0.3s; }
.acc-item--open .acc-chevron { transform: rotate(180deg); }

.acc-body { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.acc-body p { padding: 0 1.25rem 1.25rem; font-size: 0.95rem; line-height: 1.75; color: rgba(255,255,255,0.8); }
.acc-item--open .acc-body { max-height: 300px; }

/* ============================================================
   ANIMATED ICON STAGE
   ============================================================ */
.icon-stage {
  position: relative; display: flex; align-items: flex-start;
  justify-content: center; min-height: 240px; padding-top: 0.5rem;
}
.einsatz-icon {
  position: absolute; inset: 0; width: 100%; max-width: 200px; height: auto;
  margin: 0 auto; opacity: 0; transition: opacity 0.45s ease; pointer-events: none;
}
.einsatz-icon--active { opacity: 0.85; pointer-events: auto; }

/* -- SVG Animations (only play when icon is active) -- */

/* Tiefbau: shovel digs */
.einsatz-icon--active .svg-dig {
  animation: dig 2s ease-in-out infinite;
  transform-origin: 50% 100%; transform-box: fill-box;
}
@keyframes dig {
  0%, 100% { transform: translateY(0) rotate(0); }
  35%      { transform: translateY(-14px) rotate(-4deg); }
  65%      { transform: translateY(2px) rotate(1deg); }
}

.einsatz-icon--active .svg-dirt {
  animation: dirtFly 2s ease-out infinite;
}
.svg-dirt--2 { animation-delay: 0.25s !important; }
.svg-dirt--3 { animation-delay: 0.5s  !important; }
.svg-dirt--4 { animation-delay: 0.75s !important; }
@keyframes dirtFly {
  0%   { opacity: 0; transform: translate(0, 0); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translate(8px, -45px); }
}

/* Kanalsanierung: drops fall */
.einsatz-icon--active .svg-drop {
  animation: dropFall 1.8s ease-in infinite;
}
.svg-drop--2 { animation-delay: 0.5s !important; }
.svg-drop--3 { animation-delay: 1s   !important; }
@keyframes dropFall {
  0%   { opacity: 0; transform: translateY(0); }
  15%  { opacity: 1; }
  100% { opacity: 0; transform: translateY(50px); }
}

.einsatz-icon--active .svg-wrench {
  animation: wrenchWiggle 3s ease-in-out infinite;
  transform-origin: 50% 100%; transform-box: fill-box;
}
@keyframes wrenchWiggle {
  0%, 100% { transform: rotate(0); }
  20%      { transform: rotate(-12deg); }
  40%      { transform: rotate(8deg); }
  60%      { transform: rotate(-5deg); }
  80%      { transform: rotate(0); }
}

/* Industriereinigung: smoke rises */
.einsatz-icon--active .svg-smoke {
  animation: smokeRise 3s ease-out infinite;
  transform-origin: center center; transform-box: fill-box;
}
.svg-smoke--2 { animation-delay: 0.8s !important; }
.svg-smoke--3 { animation-delay: 1.6s !important; }
@keyframes smokeRise {
  0%   { opacity: 0.8; transform: translateY(0) scale(1); }
  100% { opacity: 0;   transform: translateY(-30px) scale(1.6); }
}

/* Leitungsfreilegung: arrow pulses, cables draw in */
.einsatz-icon--active .svg-arrow-pulse {
  animation: arrowBounce 1.2s ease-in-out infinite;
}
@keyframes arrowBounce {
  0%, 100% { transform: translateY(0); opacity: 0.7; }
  50%      { transform: translateY(6px); opacity: 1; }
}

.einsatz-icon--active .svg-cable {
  animation: cableDraw 1.2s ease-out both;
  transform-origin: left center; transform-box: fill-box;
}
.svg-cable--2 { animation-delay: 0.2s !important; }
.svg-cable--3 { animation-delay: 0.4s !important; }
@keyframes cableDraw {
  0%   { transform: scaleX(0); }
  100% { transform: scaleX(1); }
}

/* Erdbewegung: wheels spin, truck bounces */
.einsatz-icon--active .svg-wheel {
  animation: wheelSpin 1.5s linear infinite;
  transform-origin: center center; transform-box: fill-box;
}
.svg-wheel--2 { animation-delay: 0.1s !important; }
@keyframes wheelSpin {
  from { transform: rotate(0); }
  to   { transform: rotate(360deg); }
}

.einsatz-icon--active .svg-truck-body {
  animation: truckBounce 0.6s ease-in-out infinite;
}
@keyframes truckBounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-3px); }
}

.einsatz-icon--active .svg-dump {
  animation: dumpTilt 4s ease-in-out infinite;
  transform-origin: 22px 60px;
}
@keyframes dumpTilt {
  0%, 55%, 100% { transform: rotate(0); }
  25%           { transform: rotate(-10deg); }
}

/* ============================================================
   ÜBER UNS
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }

.about-lead {
  font-family: var(--font-h); font-size: 1.7rem; font-weight: 700;
  color: var(--orange); margin-bottom: 1rem; line-height: 1.3;
}
.about-text p {
  font-size: 1rem; color: rgba(255,255,255,0.8); line-height: 1.8; margin-bottom: 0.75rem;
}

.about-stats { display: flex; flex-direction: column; gap: 1rem; }

.stat-card {
  border: 2px solid var(--orange); padding: 1.25rem 1.5rem; text-align: center;
}
.stat-card:nth-child(1) { transform: rotate(1.2deg); }
.stat-card:nth-child(2) { transform: rotate(-0.8deg); }
.stat-card:nth-child(3) { transform: rotate(1deg); }

.stat-num {
  font-family: var(--font-h); font-size: 3rem; font-weight: 800;
  color: var(--orange); line-height: 1;
}
.stat-suffix {
  font-family: var(--font-h); font-size: 1.8rem; font-weight: 800; color: var(--orange);
}
.stat-label {
  display: block; font-size: 0.85rem; color: rgba(255,255,255,0.6);
  margin-top: 0.3rem; text-transform: uppercase; letter-spacing: 0.06em;
}

/* ============================================================
   KONTAKT
   ============================================================ */
.kontakt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; align-items: stretch; }

.map-box {
  border: 2px solid var(--orange); overflow: hidden; min-height: 420px;
  transform: rotate(1deg);
}
.map-box iframe { display: block; width: 100%; height: 100%; min-height: 420px; }

.kontakt-info {
  display: flex; flex-direction: column; gap: 1.25rem;
  transform: rotate(-0.8deg);
}
.kontakt-detail { border-left: 3px solid var(--orange); padding-left: 1rem; }
.kontakt-detail strong {
  font-family: var(--font-h); font-size: 1.3rem; font-weight: 700;
  color: var(--orange); display: block;
}
.kontakt-detail p { color: rgba(255,255,255,0.75); margin-top: 0.15rem; }
.kontakt-label {
  font-family: var(--font-h); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(255,255,255,0.45); display: block; margin-bottom: 0.15rem;
}
.kontakt-link {
  color: var(--white); text-decoration: none; font-size: 1.05rem;
  transition: color 0.2s;
}
.kontakt-link:hover { color: var(--orange); }

.btn-whatsapp {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: #25D366; color: var(--white); border: none;
  font-family: var(--font-h); font-size: 1.15rem; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 1rem 2rem; cursor: pointer; text-decoration: none;
  transition: background 0.2s, transform 0.1s; margin-top: auto;
  justify-content: center;
}
.btn-whatsapp:hover  { background: #1da851; }
.btn-whatsapp:active { transform: scale(0.98); }
.btn-whatsapp svg { flex-shrink: 0; }

/* ============================================================
   MODALS
   ============================================================ */
.modal-overlay {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.85); display: flex;
  align-items: center; justify-content: center; padding: 2rem;
  opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s;
}
.modal-overlay--active { opacity: 1; visibility: visible; }

.modal {
  background: var(--darker); border: 2px solid var(--orange);
  padding: 2.5rem; max-width: 720px; width: 100%; max-height: 80vh;
  overflow-y: auto; position: relative;
  transform: translateY(20px) rotate(-0.5deg);
  transition: transform 0.3s;
}
.modal-overlay--active .modal { transform: translateY(0) rotate(-0.5deg); }

.modal-close {
  position: absolute; top: 1rem; right: 1.25rem;
  background: none; border: none; color: var(--orange);
  font-size: 2.2rem; cursor: pointer; line-height: 1; transition: transform 0.2s;
}
.modal-close:hover { transform: scale(1.2); }

.modal h2 {
  font-family: var(--font-h); font-size: 2rem; color: var(--orange);
  margin-bottom: 1.5rem; text-transform: uppercase;
}
.modal h3 {
  font-family: var(--font-h); font-size: 1.15rem; font-weight: 700;
  margin: 1.5rem 0 0.5rem; color: var(--white);
}
.modal p {
  font-size: 0.92rem; color: rgba(255,255,255,0.78); line-height: 1.75;
}

/* ============================================================
   COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 1500;
  background: var(--darkest); border-top: 3px solid var(--orange);
  padding: 1.25rem 2rem;
  transform: translateY(100%); transition: transform 0.45s ease;
}
.cookie-banner--visible { transform: translateY(0); }

.cookie-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  gap: 2rem; flex-wrap: wrap;
}
.cookie-inner p { flex: 1; font-size: 0.9rem; color: rgba(255,255,255,0.8); min-width: 220px; }
.cookie-inner a { color: var(--orange); text-decoration: underline; }

.cookie-btns { display: flex; gap: 0.75rem; flex-shrink: 0; }

.cookie-btn {
  padding: 0.65rem 1.3rem; font-family: var(--font-h); font-weight: 700;
  font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.04em;
  cursor: pointer; transition: opacity 0.2s; border: none;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn--accept { background: var(--green); color: var(--white); }
.cookie-btn--reject { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.5); }

/* ============================================================
   SCROLL REVEAL ANIMATIONS
   Uses individual `translate` property → no conflict with `transform: rotate()`
   ============================================================ */
.anim {
  opacity: 0; translate: 0 40px;
  transition: opacity 0.7s ease, translate 0.7s ease;
}
.anim--left  { translate: -50px 0; }
.anim--right { translate: 50px 0;  }

.anim.anim--visible { opacity: 1; translate: 0 0; }

.anim--d1 { transition-delay: 0.1s; }
.anim--d2 { transition-delay: 0.2s; }
.anim--d3 { transition-delay: 0.3s; }
.anim--d4 { transition-delay: 0.4s; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: transparent; padding: 1.5rem 2rem; border-top: 2px solid var(--darker); }

.footer-inner {
  display: flex; align-items: center; justify-content: center;
  gap: 0.75rem; flex-wrap: wrap; font-size: 0.9rem;
}
.footer-inner a { color: rgba(255,255,255,0.7); transition: color 0.2s; }
.footer-inner a:hover { color: var(--orange); }
.footer-inner span { color: var(--orange); }

/* ============================================================
   RESPONSIVE – Tablet (≤ 900px)
   ============================================================ */
@media (max-width: 900px) {
  .einsaetze-grid { grid-template-columns: 1fr 180px; gap: 2rem; }
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { flex-direction: row; flex-wrap: wrap; }
  .stat-card { flex: 1; min-width: 140px; }
}

/* ============================================================
   RESPONSIVE – Mobile (≤ 768px)
   ============================================================ */
@media (max-width: 768px) {
  :root { --nav-h: 64px; }

  .burger { display: flex; }
  .nav-brand { font-size: 1.3rem; }

  .nav-links {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--darkest); border-bottom: 3px solid var(--green);
    flex-direction: column; gap: 0; padding: 0.75rem 0;
    visibility: hidden; opacity: 0; transform: translateY(-6px);
    transition: opacity 0.25s, transform 0.25s, visibility 0.25s;
  }
  .nav-links.open { visibility: visible; opacity: 1; transform: translateY(0); }
  .nav-links li { width: 100%; text-align: center; }
  .nav-links li a { display: block; padding: 0.75rem 2rem; font-size: 1.3rem; }
  .nav-sep { display: none; }

  .hero { height: calc(100svh - var(--nav-h)); }
  .hero img {
    max-height: calc(100svh - var(--nav-h)); width: auto; min-width: 100%; min-height: 100%;
    object-position: 0% center;
    animation: heroPanLeftRight 25s ease-in-out infinite alternate;
  }
  @keyframes heroPanLeftRight {
    0%   { object-position: 0% center; }
    100% { object-position: 100% center; }
  }
  .hero-headline { bottom: auto; top: 55%; flex-direction: column; align-items: flex-start; gap: 0; padding-left: 1.5rem; }
  .hero-word { font-size: clamp(4.5rem, 18vw, 7.5rem); line-height: 0.95; }

  .section { padding: 48px 0 64px; }
  .tag { font-size: 1.8rem; padding: 8px 24px; }

  /* Specs */
  .specs-box { grid-template-columns: 1fr; gap: 1.25rem; padding: 1.5rem; }
  .specs-grid { grid-template-columns: 1fr; }

  /* Einsätze */
  .einsaetze-grid { grid-template-columns: 1fr; gap: 2rem; }
  .icon-stage { order: -1; min-height: 150px; }
  .einsatz-icon { max-width: 120px; }

  /* About */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
  .about-stats { flex-direction: column; overflow: hidden; }
  .stat-card { max-width: 100%; }
  .accordion { overflow: hidden; }

  /* Kontakt */
  .kontakt-grid { grid-template-columns: 1fr; }
  .map-box, .map-box iframe { min-height: 280px; }

  /* Smoother, slower SVG animations on mobile */
  .swirl {
    animation-duration: 6s !important;
    will-change: stroke-dashoffset, opacity;
  }
  .swirl--1  { animation-duration: 6s !important; }
  .swirl--2  { animation-duration: 7.5s !important; }
  .swirl--3  { animation-duration: 9s !important; }
  .swirl--4  { animation-duration: 7s !important; }
  .swirl--5  { animation-duration: 8s !important; }
  .swirl--6  { animation-duration: 6.5s !important; }
  .swirl--7  { animation-duration: 9s !important; }
  .swirl--8  { animation-duration: 7.5s !important; }
  .swirl--9  { animation-duration: 7s !important; }
  .swirl--10 { animation-duration: 8s !important; }

  .einsatz-icon--active .svg-dig       { animation-duration: 3s; }
  .einsatz-icon--active .svg-dirt      { animation-duration: 3s; }
  .einsatz-icon--active .svg-drop      { animation-duration: 2.8s; }
  .einsatz-icon--active .svg-wrench    { animation-duration: 4.5s; }
  .einsatz-icon--active .svg-smoke     { animation-duration: 4.5s; }
  .einsatz-icon--active .svg-arrow-pulse { animation-duration: 2s; }
  .einsatz-icon--active .svg-wheel     { animation-duration: 2.5s; }
  .einsatz-icon--active .svg-truck-body { animation-duration: 1s; }
  .einsatz-icon--active .svg-dump      { animation-duration: 6s; }

  .einsatz-icon,
  .einsatz-icon--active .svg-dig,
  .einsatz-icon--active .svg-wheel,
  .einsatz-icon--active .svg-truck-body,
  .einsatz-icon--active .svg-smoke {
    will-change: transform, opacity;
  }

  /* Contain rotated elements */
  .container { padding: 0 1.75rem; overflow: hidden; }

  /* Reduce rotations */
  .specs-box { transform: rotate(-0.5deg); }
  .acc-item:nth-child(odd)  { transform: rotate(-0.3deg); }
  .acc-item:nth-child(even) { transform: rotate(0.25deg); }
  .map-box { transform: rotate(0.4deg); }
  .kontakt-info { transform: rotate(-0.3deg); }
  .stat-card:nth-child(1) { transform: rotate(0.5deg); }
  .stat-card:nth-child(2) { transform: rotate(-0.3deg); }
  .stat-card:nth-child(3) { transform: rotate(0.4deg); }
  .sideview-wrap { transform: rotate(0.4deg); }

  /* Modal */
  .modal { padding: 1.75rem; max-height: 85vh; }

  /* Cookie */
  .cookie-inner { flex-direction: column; gap: 1rem; text-align: center; }
  .cookie-btns { width: 100%; justify-content: center; }
}

/* ============================================================
   3D MODEL VIEWER
   ============================================================ */
.model-viewer-wrap {
  position: relative;
  margin-bottom: 2.5rem;
  overflow: hidden;
}

.model-viewer-label {
  position: absolute; top: 0; left: 0;
  font-family: var(--font-h); font-size: 0.85rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.07em;
  color: var(--orange); background: rgba(0,0,0,0.45);
  padding: 0.3rem 0.75rem; z-index: 2; pointer-events: none;
}

#bagger-canvas {
  display: block; width: 100%; aspect-ratio: 16 / 7;
  cursor: grab; touch-action: none;
  background: transparent;
}
#bagger-canvas:active { cursor: grabbing; }

.model-viewer-hint {
  position: absolute; bottom: 0; right: 0;
  font-size: 0.75rem; color: rgba(255,255,255,0.38);
  padding: 0.3rem 0.65rem; pointer-events: none; z-index: 2;
  font-family: var(--font-b); letter-spacing: 0.03em;
}

/* fade in once model is loaded */
.model-viewer-wrap #bagger-canvas { opacity: 0; transition: opacity 0.8s ease; }
.model-viewer-wrap.model-loaded #bagger-canvas { opacity: 1; }

/* error state */
.model-viewer-wrap.model-error::after {
  content: 'Modell konnte nicht geladen werden.';
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.4); font-family: var(--font-h); font-size: 1.1rem;
  text-transform: uppercase; letter-spacing: 0.06em; pointer-events: none;
}

/* ============================================================
   BILDERGALERIE STRIP
   ============================================================ */

/* outer clips horizontally; strip stays overflow:visible so rotated corners aren't cut */
.galerie-outer {
  overflow: hidden;
  width: 100%;
}

.galerie-strip {
  padding: 2.5rem 0 3rem;
  overflow: visible;
}

.galerie-track {
  display: flex;
  gap: 1.5rem;
  align-items: center;
  will-change: transform;
  animation: galerie-scroll 35s linear infinite;
}

@keyframes galerie-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.galerie-item {
  flex-shrink: 0;
  width: 340px;
  aspect-ratio: 4 / 3;
  border: 3px solid var(--orange);
  overflow: hidden;
}

.galerie-item img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  background: #2a2a2a;
}

.galerie-item--t1 { transform: rotate(-1.8deg); }
.galerie-item--t2 { transform: rotate( 1.2deg); }
.galerie-item--t3 { transform: rotate(-0.6deg); }
.galerie-item--t4 { transform: rotate( 2.1deg); }
.galerie-item--t5 { transform: rotate(-1.4deg); }

@media (max-width: 768px) {
  .galerie-strip { padding: 1.5rem 0 2rem; }
  .galerie-item { width: 240px; }
}

/* ============================================================
   SAUGBAGGER INFO BOX
   ============================================================ */
.saugbagger-info {
  margin-top: 3rem;
  border: 2px solid var(--green);
  padding: 2.5rem;
  transform: rotate(0.5deg);
  background: rgba(40, 104, 59, 0.06);
}

.saugbagger-info__inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2.5rem;
}

.saugbagger-info__col h3 {
  font-family: var(--font-h); font-size: 1.3rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: 0.05em;
  color: var(--orange); margin-bottom: 0.75rem;
  padding-bottom: 0.5rem; border-bottom: 2px solid var(--green);
}

.saugbagger-info__col p {
  font-size: 0.95rem; color: rgba(255,255,255,0.78);
  line-height: 1.8; margin-bottom: 0.75rem;
}
.saugbagger-info__col p:last-child { margin-bottom: 0; }

/* accordion max-height increase for longer texts */
.acc-item--open .acc-body { max-height: 500px; }

/* responsive */
@media (max-width: 768px) {
  .saugbagger-info { padding: 1.5rem; transform: rotate(0.25deg); }
  .saugbagger-info__inner { grid-template-columns: 1fr; gap: 1.5rem; }
  .model-viewer-wrap { transform: none; }
}

/* ============================================================
   RESPONSIVE – Small Mobile (≤ 480px)
   ============================================================ */
@media (max-width: 480px) {
  .nav { padding: 0 1rem; }
  .container { padding: 0 1rem; }
  .nav-brand { font-size: 1.1rem; }
  .tag { font-size: 1.5rem; padding: 6px 18px; }
  .specs-box { padding: 1.25rem; }

  /* Kill rotations on tiny screens to prevent overflow */
  .specs-box,
  .acc-item:nth-child(odd),
  .acc-item:nth-child(even),
  .map-box,
  .kontakt-info,
  .sideview-wrap,
  .stat-card:nth-child(1),
  .stat-card:nth-child(2),
  .stat-card:nth-child(3) { transform: none; }
  .stat-num { font-size: 2.2rem; }
  .stat-suffix { font-size: 1.4rem; }
  .about-lead { font-size: 1.35rem; }
  .modal { padding: 1.25rem; }
  .modal h2 { font-size: 1.5rem; }
}
