/* ============================================
   Vermessungsbüro Ulrich — Stylesheet
   ============================================ */

:root {
  --green-900: #0a3d0b;
  --green-800: #0e5c10;
  --green-700: #127f14;
  --green-600: #189c1b;
  --green-500: #23b527;
  --green-100: #e2f5e2;
  --green-50: #f1faf1;

  --black: #11151a;
  --ink: #1b2422;
  --gray-800: #29332f;
  --gray-600: #566058;
  --gray-400: #8a938c;
  --gray-300: #c4cbc4;
  --gray-200: #e1e6e1;
  --gray-100: #f0f3f0;
  --gray-50: #f8faf8;
  --white: #ffffff;

  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;

  --max-width: 1200px;
  --radius: 4px;
  --shadow-sm: 0 1px 3px rgba(17, 21, 26, 0.06), 0 1px 2px rgba(17, 21, 26, 0.08);
  --shadow-md: 0 8px 24px rgba(17, 21, 26, 0.08);
  --shadow-lg: 0 20px 48px rgba(17, 21, 26, 0.14);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; width: 100%; }
body {
  overflow-x: hidden;
  width: 100%;
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, figure { margin: 0; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; font-size: 1rem; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--green-700);
  margin-bottom: 16px;
  perspective: 300px;
}
.eyebrow::before {
  /* Totalstation auf Stativ — the actual instrument, as a rotating brand mark */
  content: '';
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><g stroke='%23127f14' stroke-width='1.7' stroke-linecap='round' fill='none'><path d='M12 12 L5 22'/><path d='M12 12 L12 22'/><path d='M12 12 L19 22'/></g><g fill='%23127f14'><rect x='7.6' y='5.2' width='8.8' height='6.4' rx='1.6'/><circle cx='17.6' cy='8' r='2.1'/><circle cx='12' cy='3.1' r='1.3'/></g></svg>");
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  transform-style: preserve-3d;
  animation: eyebrow-spin 3.6s linear infinite;
  filter: drop-shadow(0 1px 1px rgba(10, 61, 11, 0.3));
}
.eyebrow::after {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--green-300, var(--gray-300));
}
@keyframes eyebrow-spin {
  from { transform: rotateY(0deg) rotateX(14deg); }
  to   { transform: rotateY(360deg) rotateX(14deg); }
}
@media (prefers-reduced-motion: reduce) {
  .eyebrow::before { animation: none; }
}

h1, .h1 {
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
}
h2, .h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--black);
}
h3, .h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--black);
}
.lead {
  font-size: 1.15rem;
  color: var(--gray-600);
  line-height: 1.7;
}
p { color: var(--gray-600); }

.section-head {
  max-width: 640px;
  margin-bottom: 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.section-pad { padding: 96px 0; }
.section-pad-sm { padding: 64px 0; }

@media (max-width: 720px) {
  .section-pad { padding: 64px 0; }
  .section-pad-sm { padding: 48px 0; }
  .container { padding: 0 20px; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s var(--ease), color 0.25s var(--ease), border-color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green-700);
  color: var(--white);
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--green-800); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-ghost {
  background: transparent;
  border-color: var(--gray-300);
  color: var(--ink);
}
.btn-ghost:hover { border-color: var(--green-700); color: var(--green-700); transform: translateY(-2px); }

.btn-light {
  background: var(--white);
  color: var(--green-800);
}
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }

.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.btn-sm { padding: 10px 18px; font-size: 0.85rem; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  /* no transform/filter/backdrop-filter/will-change directly on this element —
     any of those would create a containing block for position:fixed
     descendants (like .main-nav on mobile), breaking its full-viewport overlay */
  border-bottom: 1px solid var(--gray-200);
}
.site-header::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  max-width: var(--max-width);
  margin: 0 auto;
}

.logo {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--black);
  font-size: 1.05rem;
  gap: 6px;
  flex-shrink: 0;
}
.logo span:first-child { position: relative; padding-bottom: 6px; }
.logo span:first-child::after {
  content: '';
  position: absolute;
  left: 0; bottom: 0;
  width: 100%;
  height: 2px;
  background: var(--green-600);
}
.logo small {
  display: block;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  text-transform: uppercase;
  margin-top: 2px;
}

.logo-img {
  height: 44px;
  width: 120px;
  min-width: 120px;
  max-width: none;
  aspect-ratio: 640 / 234;
  object-fit: contain;
  display: block;
  border-radius: 3px;
  flex-shrink: 0;
  align-self: flex-start;
}
.logo-tagline {
  display: block;
  font-size: 0.55rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  text-transform: uppercase;
  margin-top: 6px;
}
.footer-brand .logo-tagline { color: var(--gray-400); }

/* ---------- Photo media (real project photography) ---------- */
.media-cover {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-canvas-wrap { background: var(--green-900); }
.hero-canvas-wrap .media-cover { object-fit: contain; }
.hero-canvas-wrap #heroCanvas { position: relative; z-index: 2; }
.hero-photo-credit {
  position: absolute;
  right: 12px; bottom: 10px;
  z-index: 3;
  font-size: 0.68rem;
  color: rgba(255,255,255,0.75);
  background: rgba(10,20,12,0.35);
  padding: 3px 8px;
  border-radius: 100px;
  letter-spacing: 0.02em;
}
.about-visual #aboutCanvas { position: relative; z-index: 2; mix-blend-mode: overlay; }
.about-visual::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(10,61,11,0.15), rgba(10,61,11,0.55));
  z-index: 1;
}

.proj-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

.equip-item { align-items: center; }
.equip-item.has-photo { display: flex; align-items: center; }
.equip-thumb {
  width: 56px; height: 56px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
  margin-right: 16px;
}

.simple-list li.has-photo { display: flex; gap: 16px; align-items: center; }
.list-thumb {
  width: 68px; height: 68px;
  border-radius: 6px;
  object-fit: cover;
  flex-shrink: 0;
}

.service-photo {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-top: 20px;
}

.about-team-photo {
  width: 100%;
  border-radius: 8px;
  margin-top: 32px;
}

.team-photo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 32px;
}
.team-photo-grid img {
  width: 100%;
  height: 130px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--gray-200);
  transition: transform 0.3s var(--ease);
}
.team-photo-grid img:hover { transform: translateY(-4px); }
@media (max-width: 700px) { .team-photo-grid { grid-template-columns: repeat(2, 1fr); } }

.equip-photos {
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.equip-photos .proj-thumb { height: 140px; border-radius: 8px; border: 1px solid var(--gray-200); }
@media (max-width: 700px) { .equip-photos { grid-template-columns: repeat(2, 1fr); } }

.main-nav { display: flex; align-items: center; gap: 40px; }
.nav-links { display: flex; gap: 32px; }
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--gray-800);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s var(--ease);
}
.nav-links a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0;
  height: 2px;
  background: var(--green-600);
  transition: width 0.25s var(--ease);
}
.nav-links a:hover, .nav-links a.active { color: var(--green-700); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }

.nav-actions { display: flex; align-items: center; gap: 16px; }
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
}
.nav-phone svg { flex-shrink: 0; color: var(--green-700); }

.nav-toggle {
  display: none;
  background: none;
  border: none;
  width: 32px;
  height: 24px;
  position: relative;
  z-index: 210;
}
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--black);
  transition: all 0.3s var(--ease);
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 11px; }
.nav-toggle span:nth-child(3) { top: 22px; }
.nav-toggle.open span:nth-child(1) { top: 11px; transform: rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { top: 11px; transform: rotate(-135deg); }

@media (max-width: 940px) {
  .nav-toggle { display: block; }
  .main-nav {
    position: fixed;
    inset: 0;
    background: var(--white);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 100px 32px 40px;
    gap: 32px;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease);
    box-shadow: var(--shadow-lg);
  }
  .main-nav.open { transform: translateX(0) !important; }
  .nav-links { flex-direction: column; gap: 22px; }
  .nav-links a {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    gap: 14px;
    width: 100%;
    padding: 8px 0;
  }
  .nav-links a::before {
    content: '';
    width: 22px;
    height: 22px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.85;
  }
  .nav-links li:nth-child(1) a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23127f14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M3 11l9-8 9 8'/><path d='M5 10v10h5v-6h4v6h5V10'/></svg>"); }
  .nav-links li:nth-child(2) a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23127f14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><rect x='4' y='3' width='16' height='18' rx='2'/><path d='M8 8h8M8 12h8M8 16h5'/></svg>"); }
  .nav-links li:nth-child(3) a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23127f14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='12' cy='8' r='4'/><path d='M4 21c0-4.4 3.6-8 8-8s8 3.6 8 8'/></svg>"); }
  .nav-links li:nth-child(4) a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23127f14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M21 10c0 7-9 13-9 13s-9-6-9-13a9 9 0 0 1 18 0Z'/><circle cx='12' cy='10' r='3'/></svg>"); }
  .nav-links li:nth-child(5) a::before { background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23127f14' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M22 16.9v3a2 2 0 0 1-2.2 2 19.8 19.8 0 0 1-8.6-3.1 19.5 19.5 0 0 1-6-6A19.8 19.8 0 0 1 2.1 4.2 2 2 0 0 1 4.1 2h3a2 2 0 0 1 2 1.7c.1 1 .4 1.9.7 2.8a2 2 0 0 1-.5 2.1L8.1 9.9a16 16 0 0 0 6 6l1.3-1.3a2 2 0 0 1 2.1-.4c.9.3 1.8.6 2.8.7a2 2 0 0 1 1.7 2Z'/></svg>"); }

  .main-nav.open .nav-links li {
    opacity: 0;
    transform: translateX(28px);
    animation: nav-item-in 0.45s var(--ease) forwards;
  }
  .main-nav.open .nav-links li:nth-child(1) { animation-delay: 0.06s; }
  .main-nav.open .nav-links li:nth-child(2) { animation-delay: 0.12s; }
  .main-nav.open .nav-links li:nth-child(3) { animation-delay: 0.18s; }
  .main-nav.open .nav-links li:nth-child(4) { animation-delay: 0.24s; }
  .main-nav.open .nav-links li:nth-child(5) { animation-delay: 0.3s; }
  @keyframes nav-item-in {
    to { opacity: 1; transform: translateX(0); }
  }

  .nav-actions { flex-direction: column; align-items: flex-start; gap: 20px; width: 100%; }
  .nav-actions .nav-phone { display: none; }
  .nav-actions .btn-primary { width: 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .main-nav.open .nav-links li { animation: none; opacity: 1; transform: none; }
}

.nav-scrim {
  position: fixed; inset: 0;
  background: rgba(17, 21, 26, 0.4);
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s var(--ease);
  z-index: 190;
}
.nav-scrim.open { opacity: 1; pointer-events: auto; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 56px 0 44px;
  background: linear-gradient(180deg, var(--green-50) 0%, var(--white) 100%);
  border-bottom: 1px solid var(--gray-200);
}
.hero::before, .hero::after {
  content: '';
  position: absolute;
  width: 46vw;
  height: 46vw;
  max-width: 620px;
  max-height: 620px;
  border-radius: 50%;
  filter: blur(80px);
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  animation: aurora-drift 16s ease-in-out infinite alternate;
}
.hero::before {
  background: radial-gradient(circle at 30% 30%, var(--green-500), transparent 70%);
  top: -18vw;
  right: -10vw;
}
.hero::after {
  background: radial-gradient(circle at 60% 40%, var(--green-800), transparent 70%);
  bottom: -20vw;
  left: -14vw;
  animation-delay: -8s;
  opacity: 0.28;
}
@keyframes aurora-drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-4%, 5%) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) {
  .hero::before, .hero::after { animation: none; }
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero-content { max-width: 600px; position: relative; z-index: 2; }
.hero-content h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.hero-slogan {
  font-style: italic;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--green-700);
  margin-top: 12px;
}
.hero-slogan span { color: var(--gray-400); font-weight: 500; font-style: normal; }
.hero-content .lead { margin: 14px 0 24px; max-width: 520px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

.hero-canvas-wrap {
  position: relative;
  aspect-ratio: 960 / 253;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255,255,255,0.4);
  transform-style: preserve-3d;
  transform: perspective(1200px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg));
  transition: transform 0.4s var(--ease);
  will-change: transform;
}

.hero-badges {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}
.hero-badge {
  display: flex;
  flex-direction: column;
  padding: 14px 18px;
  border-radius: 10px;
  background: rgba(255,255,255,0.55);
  border: 1px solid rgba(255,255,255,0.8);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 16px rgba(17,21,26,0.05);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.hero-badge:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(17,21,26,0.09); }
.hero-badge .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--green-800);
  perspective: 400px;
}
.hero-badge .label { font-size: 0.82rem; color: var(--gray-600); margin-top: 2px; }

@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-canvas-wrap { order: -1; transform: none !important; }
  .hero { padding: 28px 0 36px; }
  .hero-slogan { margin-top: 8px; font-size: 0.95rem; }
  .hero-content .lead { margin: 8px 0 18px; font-size: 0.96rem; line-height: 1.55; }
  .hero-actions .btn { padding: 11px 20px; font-size: 0.88rem; }
  .hero-badges { margin-top: 16px; gap: 10px; }
  .hero-badge { padding: 10px 14px; }
  .hero-badge .num { font-size: 1.6rem; }
}
@media (max-width: 480px) {
  .hero-badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .hero-badge { padding: 8px 4px; text-align: center; align-items: center; }
  .hero-badge .num { font-size: 1.15rem; }
  .hero-badge .label { font-size: 0.6rem; line-height: 1.2; }
}

/* ---------- Flip counter (3D) ---------- */
.flip-num {
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.6s var(--ease);
}

/* ---------- 3D tilt cards (JS-driven) ---------- */
.tilt-card {
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg)) translateY(calc(var(--liftY, 0px) + var(--revealY, 0px))) scale(var(--tiltScale, 1));
  transition: transform 0.6s var(--ease-soft), box-shadow 0.4s var(--ease), border-color 0.4s var(--ease);
  will-change: transform;
}
.tilt-card.is-tilting { transition: transform 0.08s linear; }
/* Higher specificity than either .reveal or .tilt-card alone, so this always
   wins regardless of source order — otherwise whichever rule appears later
   in the file silently discards the other's transform. */
.reveal.tilt-card {
  transform: perspective(900px) rotateX(var(--tiltX, 0deg)) rotateY(var(--tiltY, 0deg)) translateY(calc(var(--liftY, 0px) + var(--revealY, 0px))) scale(var(--tiltScale, 1));
}

/* ---------- Magnetic buttons ---------- */
.btn-primary {
  position: relative;
  overflow: hidden;
  transform: translate(var(--mx, 0px), var(--my, 0px));
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(160px circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.28), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
  pointer-events: none;
}
.btn-primary:hover::before { opacity: 1; }

/* ---------- Grain texture overlay ---------- */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: 999;
  pointer-events: none;
  opacity: 0.035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

/* ---------- Cards / Tiles ---------- */
.tile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 940px) { .tile-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .tile-grid { grid-template-columns: 1fr; } }

.tile {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  padding: 32px 28px;
  transition: transform 0.3s var(--ease), box-shadow 0.6s var(--ease-soft), border-color 0.6s var(--ease-soft);
}
.tile:hover, .tile.is-glowing { box-shadow: var(--shadow-md); border-color: var(--green-500); }
.tile::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: radial-gradient(200px circle at var(--gx, 50%) var(--gy, 50%), var(--green-100), transparent 72%);
  opacity: 0;
  transition: opacity 0.7s var(--ease-soft);
  pointer-events: none;
}
.tile:hover::before, .tile.is-glowing::before { opacity: 1; }
.tile-icon {
  width: 52px; height: 52px;
  border-radius: 8px;
  background: var(--green-100);
  color: var(--green-700);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 20px;
}
.tile h3 { margin-bottom: 10px; }
.tile p { font-size: 0.95rem; }

.center-cta { text-align: center; margin-top: 48px; }

/* ---------- reveal on scroll ---------- */
.reveal {
  opacity: 0;
  --revealY: 28px;
  transform: translateY(var(--revealY));
  transition: opacity 1s var(--ease-soft), transform 1s var(--ease-soft);
}
.reveal.in-view { opacity: 1; --revealY: 0px; }
.reveal-delay-1.in-view { transition-delay: 0.08s; }
.reveal-delay-2.in-view { transition-delay: 0.16s; }
.reveal-delay-3.in-view { transition-delay: 0.24s; }
.reveal-delay-4.in-view { transition-delay: 0.32s; }
.reveal-delay-5.in-view { transition-delay: 0.4s; }

.reveal.fly-in { --revealY: -34px; transition: opacity 0.7s var(--ease-soft), transform 0.7s var(--ease-soft); }
.reveal.fly-in.in-view { --revealY: 0px; }

/* ---------- About teaser ---------- */
.about-teaser {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
  border-bottom: 1px solid var(--gray-200);
}
.about-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 64px;
  align-items: center;
}
.about-visual {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: linear-gradient(135deg, var(--green-900), var(--green-700));
}
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
}

.stat-row { display: flex; gap: 40px; margin-top: 32px; flex-wrap: wrap; }
.stat-row .num { font-size: 2.2rem; font-weight: 800; color: var(--green-800); }
.stat-row .label { font-size: 0.85rem; color: var(--gray-600); }

/* ---------- Projects / references ---------- */
.proj-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
@media (max-width: 940px) { .proj-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .proj-grid { grid-template-columns: 1fr; } }

.proj-card {
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--gray-200);
  background: var(--white);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.proj-card:hover { box-shadow: var(--shadow-md); transform: translateY(-5px); }
.proj-card.is-popping { animation: card-pop 0.35s var(--ease-soft); }
@keyframes card-pop {
  0% { transform: scale(1); }
  40% { transform: scale(1.035); box-shadow: var(--shadow-md); }
  100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .proj-card.is-popping { animation: none; }
}
.proj-thumb {
  height: 170px;
  position: relative;
  overflow: hidden;
  background: var(--green-800);
}
.proj-thumb svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.proj-body { padding: 22px 24px; }
.proj-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--green-700);
  background: var(--green-100);
  padding: 4px 10px;
  border-radius: 100px;
  margin-bottom: 12px;
}
.proj-body h3 { font-size: 1.05rem; margin-bottom: 8px; }
.proj-body p { font-size: 0.9rem; }

/* ---------- Google reviews ---------- */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
}
@media (max-width: 940px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .reviews-grid { grid-template-columns: 1fr; } }

.review-card {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 28px;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.review-card:hover { box-shadow: var(--shadow-md); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--green-600), var(--green-900));
  color: var(--white);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 1.1rem;
  flex-shrink: 0;
}
.review-name { font-weight: 700; font-size: 0.95rem; color: var(--ink); }
.review-meta { font-size: 0.78rem; color: var(--gray-400); margin-top: 1px; }
.review-stars { color: #f5b400; letter-spacing: 2px; font-size: 0.95rem; margin-bottom: 10px; }
.review-text { color: var(--gray-800); font-size: 0.94rem; line-height: 1.6; }
.review-date { font-size: 0.76rem; color: var(--gray-400); margin-top: 14px; }

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border: 1px solid var(--gray-300);
  border-radius: 100px;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink);
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.google-badge:hover { border-color: var(--gray-400); transform: translateY(-2px); box-shadow: var(--shadow-sm); }

/* ---------- Contact ---------- */
.contact-section { background: var(--green-900); color: var(--white); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
}
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; gap: 48px; } }

.contact-section .section-head .lead { color: rgba(255,255,255,0.72); }
.contact-section .eyebrow { color: var(--green-500); }
.contact-section h2 { color: var(--white); }

.contact-info { display: flex; flex-direction: column; gap: 28px; }
.info-row { display: flex; gap: 16px; align-items: flex-start; }
.info-row .icon {
  width: 42px; height: 42px; flex-shrink: 0;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  display: flex; align-items: center; justify-content: center;
  color: var(--green-500);
}
.info-row .label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.info-row a, .info-row div.val { font-weight: 600; color: var(--white); }
.info-row a:hover { color: var(--green-500); }

.form-card {
  background: var(--white);
  border-radius: 10px;
  padding: 36px;
  color: var(--ink);
  box-shadow: var(--shadow-lg);
}
.form-row { margin-bottom: 18px; }
.form-row label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-bottom: 8px;
}
.form-row input, .form-row textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  background: var(--gray-50);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.form-row input:focus, .form-row textarea:focus {
  outline: none;
  border-color: var(--green-600);
  box-shadow: 0 0 0 3px var(--green-100);
  background: var(--white);
}
.form-row textarea { resize: vertical; min-height: 120px; }
.radio-group { display: flex; gap: 20px; }
.radio-group label { display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 0.92rem; color: var(--ink); }
.radio-group input { width: auto; accent-color: var(--green-700); }
.form-note { font-size: 0.78rem; color: var(--gray-400); margin-top: 14px; }
.form-success {
  display: none;
  align-items: center;
  gap: 12px;
  background: var(--green-100);
  color: var(--green-800);
  padding: 14px 16px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  margin-top: 16px;
}
.form-success.show { display: flex; }

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
#captchaQuestion { color: var(--green-700); font-weight: 700; }
.captcha-error {
  display: none;
  color: #b3261e;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 8px;
}
.captcha-error.show { display: block; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  padding: 72px 0 56px;
  background: linear-gradient(180deg, var(--green-50), var(--white));
  border-bottom: 1px solid var(--gray-200);
}
.breadcrumb {
  font-size: 0.82rem;
  color: var(--gray-400);
  margin-bottom: 20px;
}
.breadcrumb a:hover { color: var(--green-700); }
.page-hero .lead { max-width: 680px; margin-top: 18px; }

/* ---------- Services detail list ---------- */
.service-detail {
  position: relative;
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 28px;
  padding: 40px 44px 40px 0;
  border-bottom: 1px solid var(--gray-200);
}
.service-detail:first-of-type { padding-top: 0; }
.service-detail:first-of-type .service-icon { top: 4px; }
.service-icon {
  position: absolute;
  top: 42px;
  right: 0;
  width: 30px;
  height: 30px;
  color: var(--green-500);
  opacity: 0.55;
  pointer-events: none;
}
@media (max-width: 620px) {
  .service-detail { padding-right: 40px; }
  .service-icon { top: 36px; width: 26px; height: 26px; }
  .service-detail:first-of-type .service-icon { top: 36px; }
}

.service-icon-spin { perspective: 120px; }
.cube-3d {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transform: translateZ(-14px);
  animation: cube-spin-3d 7s linear infinite;
}
.cube-face {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  border: 1.4px solid currentColor;
  background: rgba(35, 181, 39, 0.16);
}
.cube-front  { transform: translateZ(14px); }
.cube-back   { transform: rotateY(180deg) translateZ(14px); }
.cube-right  { transform: rotateY(90deg) translateZ(14px); }
.cube-left   { transform: rotateY(-90deg) translateZ(14px); }
.cube-top    { transform: rotateX(90deg) translateZ(14px); }
.cube-bottom { transform: rotateX(-90deg) translateZ(14px); }
@keyframes cube-spin-3d {
  from { transform: translateZ(-14px) rotateX(0deg) rotateY(0deg); }
  to   { transform: translateZ(-14px) rotateX(360deg) rotateY(360deg); }
}
@media (prefers-reduced-motion: reduce) {
  .cube-3d { animation: none; }
}

.service-num {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--green-600);
  border: 1px solid var(--green-200, var(--gray-200));
  width: 44px; height: 44px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--green-50);
}
.service-detail h3 { font-size: 1.3rem; margin-bottom: 12px; }
.service-detail ul { margin-top: 14px; display: grid; gap: 8px; }
.service-detail li {
  font-size: 0.92rem;
  color: var(--gray-600);
  padding-left: 22px;
  position: relative;
}
.service-detail li::before {
  content: '';
  position: absolute; left: 0; top: 8px;
  width: 8px; height: 8px;
  background: var(--green-500);
  border-radius: 2px;
}
@media (max-width: 620px) {
  .service-detail { grid-template-columns: 1fr; }
}

/* ---------- Equipment list ---------- */
.equip-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
@media (max-width: 700px) { .equip-grid { grid-template-columns: 1fr; } }
.equip-item {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--gray-50);
}
.equip-item .qty { font-weight: 800; color: var(--green-700); flex-shrink: 0; }
.equip-item .desc { color: var(--gray-600); font-size: 0.9rem; }
.equip-item .name { font-weight: 600; color: var(--ink); display: block; margin-bottom: 4px; }

/* ---------- Timeline (About) ---------- */
.timeline { border-left: 2px solid var(--gray-200); margin-left: 8px; }
.timeline-item { position: relative; padding: 0 0 40px 32px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: '';
  position: absolute; left: -7px; top: 4px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--green-600);
  border: 3px solid var(--white);
  box-shadow: 0 0 0 2px var(--green-200, var(--green-500));
}
.timeline-item .year { font-weight: 800; color: var(--green-700); font-size: 0.85rem; letter-spacing: 0.04em; margin-bottom: 6px; display: block; }

/* ---------- Job posting box ---------- */
.job-box {
  background: var(--green-900);
  color: var(--white);
  border-radius: 10px;
  padding: 40px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
}
.job-box h3 { color: var(--white); font-size: 1.4rem; margin-bottom: 8px; }
.job-box p { color: rgba(255,255,255,0.72); max-width: 520px; }

/* ---------- Category headers on Projekte page ---------- */
.cat-header { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 32px; flex-wrap: wrap; gap: 12px; }
.cat-header h2 { font-size: 1.5rem; }
.cat-count { font-size: 0.85rem; color: var(--gray-400); font-weight: 600; }
.cat-block { padding: 56px 0; border-bottom: 1px solid var(--gray-200); }
.cat-block:last-child { border-bottom: none; }

.simple-list { display: grid; gap: 14px; }
.simple-list li {
  padding: 18px 22px;
  border: 1px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  transition: border-color .25s var(--ease), transform .25s var(--ease);
}
.simple-list li:hover { border-color: var(--green-500); transform: translateX(4px); }
.simple-list strong { display: block; color: var(--ink); margin-bottom: 4px; font-size: 0.98rem; }
.simple-list span { color: var(--gray-600); font-size: 0.88rem; }

/* ---------- Legal pages ---------- */
.legal-content { max-width: 780px; }
.legal-content h2 { font-size: 1.3rem; margin: 40px 0 14px; }
.legal-content h2:first-child { margin-top: 0; }
.legal-content p, .legal-content li { color: var(--gray-600); font-size: 0.96rem; margin-bottom: 12px; }
.legal-content ul { padding-left: 20px; list-style: disc; }
.legal-content a { color: var(--green-700); text-decoration: underline; }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--black);
  color: var(--gray-300);
  padding: 32px 0;
}
.footer-brand .logo { color: var(--white); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: var(--gray-400);
  flex-wrap: wrap;
  gap: 16px;
}
.footer-bottom a:hover { color: var(--green-500); }
.footer-legal { display: flex; gap: 20px; }

.footer-credit {
  text-align: center;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 0.72rem;
  color: var(--gray-400);
}
.footer-credit a { color: var(--gray-400); transition: color 0.2s; }
.footer-credit a:hover { color: var(--green-500); }

/* ---------- Misc ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }
