/* ============================================================
   E&K GaLaBau GmbH — Design System
   Light Theme · Grün (#1b672e / #74b52b) · Schwarz auf Weiß
   Sans-Serif, Bold-Headlines
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  /* Brand */
  --c-bg:          #ffffff;
  --c-bg-alt:      #f5f7f3;
  --c-surface:     #ffffff;
  --c-surface-2:   #f0f3ec;
  --c-line:        rgba(0,0,0,0.08);
  --c-line-strong: rgba(0,0,0,0.18);

  --c-fg:          #0d0f0d;
  --c-fg-muted:    #3a423a;
  --c-fg-dim:      #6b7269;

  --c-green:       #1b672e;
  --c-green-dark:  #134a21;
  --c-green-light: #74b52b;
  --c-green-tint:  #eef6e3;

  --c-anthracite:  #1c1e22;

  /* Type — alles Sans-Serif, Inter mit Bold-Stufen */
  --f-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Spacing */
  --s-1: .25rem;
  --s-2: .5rem;
  --s-3: .75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* Layout */
  --container: 1280px;
  --container-narrow: 880px;
  --radius:  4px;
  --radius-lg: 12px;
  --ease: cubic-bezier(.2,.6,.2,1);

  --header-h: 96px;
}

/* ---------- Reset / Base ---------- */
* { box-sizing: border-box; margin: 0; padding: 0; min-width: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
body {
  font-family: var(--f-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--c-fg);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; transition: color .25s var(--ease); }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul, ol { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

::selection { background: var(--c-green-light); color: #0d0f0d; }

/* ---------- Typography ---------- */
h1, h2, h3, h4, h5 {
  font-family: var(--f-sans);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -.018em;
  color: var(--c-fg);
}
h1 { font-size: clamp(2.4rem, 5.8vw, 4.6rem); font-weight: 900; letter-spacing: -.025em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.95rem); font-weight: 800; }
h3 { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 700; }
h4 { font-size: 1.2rem; font-weight: 700; }
.eyebrow {
  font-family: var(--f-sans);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-bottom: var(--s-4);
  display: inline-block;
}
.eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--c-green-light);
  vertical-align: middle;
  margin-right: var(--s-3);
}
p { color: var(--c-fg-muted); margin-bottom: var(--s-4); }
p.lead { font-size: 1.18rem; color: var(--c-fg); font-weight: 500; }
strong { color: var(--c-fg); font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}
.container--narrow { max-width: var(--container-narrow); }
.section { padding: var(--s-10) 0; }
.section--tight { padding: var(--s-8) 0; }
.section--alt { background: var(--c-bg-alt); }
.section--green {
  background: linear-gradient(135deg, var(--c-green) 0%, var(--c-green-dark) 100%);
  color: #fff;
}
.section--green h2, .section--green h3 { color: #fff; }
.section--green p { color: rgba(255,255,255,.92); }
.section--green .eyebrow { color: var(--c-green-light); }
.section--green .eyebrow::before { background: var(--c-green-light); }

.grid { display: grid; gap: var(--s-6); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-4) var(--s-6);
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: .03em;
  border-radius: var(--radius);
  transition: all .3s var(--ease);
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
}
.btn--primary {
  background: var(--c-green);
  color: #fff;
}
.btn--primary:hover {
  background: var(--c-green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(27,103,46,.45);
}
.btn--accent {
  background: var(--c-green-light);
  color: #0d0f0d;
}
.btn--accent:hover {
  background: #5c9522;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px -8px rgba(116,181,43,.5);
}
.btn--outline {
  background: transparent;
  color: var(--c-fg);
  border-color: var(--c-line-strong);
}
.btn--outline:hover {
  border-color: var(--c-green);
  color: var(--c-green);
  background: var(--c-green-tint);
}
.btn--ghost {
  background: transparent;
  color: var(--c-fg-muted);
  padding-left: 0;
  padding-right: 0;
  font-weight: 700;
}
.btn--ghost:hover { color: var(--c-green); }
.btn .arrow { transition: transform .3s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* For dark sections (section--green): inverted button */
.section--green .btn--outline { color: #fff; border-color: rgba(255,255,255,.4); }
.section--green .btn--outline:hover { background: rgba(255,255,255,.15); color: #fff; border-color: #fff; }

/* ---------- Header / Navigation ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0);
  transition: background .35s var(--ease), border-color .35s var(--ease), backdrop-filter .35s var(--ease), box-shadow .35s var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled,
.site-header.is-inverted {
  background: rgba(13,15,13,.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: rgba(255,255,255,.08);
  box-shadow: 0 2px 24px -12px rgba(0,0,0,.5);
  color: #fff;
}
.site-header.is-scrolled .nav a,
.site-header.is-inverted .nav a {
  color: rgba(255,255,255,.85);
}
.site-header.is-scrolled .nav a:hover,
.site-header.is-inverted .nav a:hover,
.site-header.is-scrolled .nav a.active,
.site-header.is-inverted .nav a.active {
  color: #fff;
}
.site-header.is-scrolled .nav-toggle span,
.site-header.is-inverted .nav-toggle span {
  background: #fff;
}
.site-header.is-scrolled .brand,
.site-header.is-inverted .brand { color: #fff; }

/* On hero (transparent header), keep text white */
.site-header:not(.is-scrolled):not(.is-inverted) { color: #fff; }
.site-header:not(.is-scrolled):not(.is-inverted) .nav a { color: rgba(255,255,255,.92); }
.site-header:not(.is-scrolled):not(.is-inverted) .brand { color: #fff; }
.site-header:not(.is-scrolled):not(.is-inverted) .nav-toggle span { background: #fff; }

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
.brand {
  display: flex;
  align-items: center;
  gap: var(--s-4);
  color: var(--c-fg);
  font-weight: 800;
  letter-spacing: -.01em;
  transition: color .3s var(--ease);
}
.brand img {
  height: 56px;
  width: auto;
  transition: height .3s var(--ease);
}
.site-header.is-scrolled .brand img,
.site-header.is-inverted .brand img { height: 48px; }
.site-header:not(.is-scrolled):not(.is-inverted) .brand img {
  filter: drop-shadow(0 2px 12px rgba(0,0,0,.55));
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: -.015em;
}
.brand-text small {
  font-size: .7rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--c-green);
  font-weight: 800;
  margin-top: 4px;
}
.site-header:not(.is-scrolled):not(.is-inverted) .brand-text {
  text-shadow: 0 2px 12px rgba(0,0,0,.6), 0 0 1px rgba(0,0,0,.5);
}
.site-header:not(.is-scrolled):not(.is-inverted) .brand-text small {
  color: var(--c-green-light);
  text-shadow: 0 1px 8px rgba(0,0,0,.6);
}
.site-header:not(.is-scrolled):not(.is-inverted) .nav a {
  text-shadow: 0 1px 8px rgba(0,0,0,.5);
}

.site-header.is-scrolled .brand img,
.site-header.is-inverted .brand img { height: 56px; }

.nav { display: flex; align-items: center; gap: var(--s-5); }
@media (min-width: 1100px) { .nav { gap: var(--s-6); } }
.nav a {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: .02em;
  color: var(--c-fg-muted);
  position: relative;
  padding: var(--s-2) 0;
}
.nav a:hover, .nav a.active { color: var(--c-green); }
.site-header:not(.is-scrolled):not(.is-inverted) .nav a:hover,
.site-header:not(.is-scrolled):not(.is-inverted) .nav a.active { color: #fff; }
.nav a::after {
  content: '';
  position: absolute;
  inset: auto 0 -6px 50%;
  width: 0;
  height: 2px;
  background: var(--c-green-light);
  transition: all .3s var(--ease);
  transform: translateX(-50%);
}
.nav a:hover::after, .nav a.active::after { width: 100%; }

.nav-cta {
  background: var(--c-green);
  color: #fff !important;
  padding: var(--s-3) var(--s-5) !important;
  border-radius: var(--radius);
  font-weight: 700;
  white-space: nowrap;
}
.nav { flex-wrap: nowrap; }
.nav a { white-space: nowrap; }
.nav-cta:hover { background: var(--c-green-dark) !important; }
.nav-cta::after { display: none; }

/* ---------- Dropdown unter Leistungen ---------- */
.has-dropdown { position: relative; }
.has-dropdown > a::after {
  /* override default underline placement so dropdown still anchors below */
}
.dropdown {
  position: absolute;
  top: calc(100% + 16px);
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  min-width: 320px;
  background: rgba(13,15,13,.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255,255,255,.10);
  border-radius: var(--radius-lg);
  padding: var(--s-3);
  box-shadow: 0 24px 48px -16px rgba(0,0,0,.45);
  display: grid;
  grid-template-columns: 1fr;
  gap: 2px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 0;
  right: 0;
  height: 20px;
}
.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown,
.has-dropdown.is-open .dropdown {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-4) !important;
  font-size: .95rem !important;
  font-weight: 600 !important;
  color: rgba(255,255,255,.85) !important;
  letter-spacing: 0 !important;
  border-radius: var(--radius);
  white-space: nowrap;
  transition: all .2s var(--ease);
}
.dropdown a::after { display: none !important; }
.dropdown a:hover {
  background: rgba(116,181,43,.15);
  color: var(--c-green-light) !important;
  padding-left: calc(var(--s-4) + 6px) !important;
}
.dropdown a .num {
  font-size: .72rem;
  font-weight: 800;
  color: var(--c-green-light);
  opacity: .55;
  letter-spacing: .04em;
  min-width: 22px;
}
.dropdown a:hover .num { opacity: 1; }
.dropdown__head {
  font-size: .68rem !important;
  letter-spacing: .22em !important;
  text-transform: uppercase;
  color: rgba(255,255,255,.45) !important;
  font-weight: 700 !important;
  padding: var(--s-3) var(--s-4) !important;
  pointer-events: none;
}
.dropdown__divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin: var(--s-2) 0;
}
.dropdown__overview {
  background: rgba(116,181,43,.12) !important;
  color: var(--c-green-light) !important;
  border: 1px solid rgba(116,181,43,.25);
  margin-top: var(--s-2);
  justify-content: space-between;
}

/* Caret/chevron after Leistungen */
.has-dropdown > a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.has-dropdown > a .caret {
  width: 10px;
  height: 10px;
  transition: transform .25s var(--ease);
}
.has-dropdown:hover > a .caret,
.has-dropdown.is-open > a .caret { transform: rotate(180deg); }

@media (max-width: 960px) {
  .has-dropdown { width: 100%; text-align: center; }
  .dropdown {
    position: static;
    transform: none;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
    min-width: 0;
    margin-top: var(--s-2);
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .has-dropdown > a .caret { display: none; }
  .dropdown a {
    font-size: .95rem !important;
    justify-content: center;
    padding: var(--s-2) var(--s-3) !important;
    color: rgba(255,255,255,.7) !important;
  }
  .dropdown a:hover { padding-left: var(--s-3) !important; }
  .dropdown a .num { display: none; }
  .dropdown__head, .dropdown__divider, .dropdown__overview { display: none; }
}
.site-header:not(.is-scrolled):not(.is-inverted) .nav-cta {
  background: #fff;
  color: var(--c-green) !important;
}
.site-header:not(.is-scrolled):not(.is-inverted) .nav-cta:hover {
  background: var(--c-green-light) !important;
  color: #0d0f0d !important;
}
.site-header.is-scrolled .nav-cta,
.site-header.is-inverted .nav-cta {
  background: var(--c-green-light);
  color: #0d0f0d !important;
}
.site-header.is-scrolled .nav-cta:hover,
.site-header.is-inverted .nav-cta:hover {
  background: #fff !important;
  color: var(--c-green-dark) !important;
}

/* Burger */
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  position: relative;
  z-index: 110;
}
.nav-toggle span {
  position: absolute;
  inset: 50% 8px auto 8px;
  height: 2px;
  background: var(--c-fg);
  transition: all .3s var(--ease);
}
.nav-toggle span:nth-child(1) { transform: translateY(-7px); }
.nav-toggle span:nth-child(3) { transform: translateY(7px); }
.nav-toggle.is-open span { background: var(--c-fg); }
.nav-toggle.is-open span:nth-child(1) { transform: rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: rotate(-45deg); }

@media (max-width: 960px) {
  :root { --header-h: 72px; }
  .nav-toggle { display: block; }
  .brand img { height: 44px; }
  .site-header.is-scrolled .brand img,
  .site-header.is-inverted .brand img { height: 40px; }
  .nav {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    height: 100dvh;
    background: rgba(13,15,13,.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    justify-content: center;
    gap: var(--s-4);
    padding: var(--s-8) var(--s-5);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .4s var(--ease);
    z-index: 105;
  }
  .nav.is-open { transform: translateX(0); }
  .nav > a, .nav > .has-dropdown > a { font-size: 1.35rem; font-weight: 700; color: rgba(255,255,255,.85); }
  .nav a { color: rgba(255,255,255,.85); }
  .nav a.active, .nav a:hover { color: var(--c-green-light); }
  .nav-cta { font-size: 1rem !important; padding: var(--s-4) var(--s-6) !important; color: #0d0f0d !important; background: var(--c-green-light) !important; }
  .nav-toggle.is-open span { background: #fff; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  padding: var(--s-10) 0 var(--s-9);
  color: #fff;
  overflow: hidden;
}
.hero--compact { min-height: 70vh; padding: var(--s-10) 0 var(--s-8); align-items: center; }
.hero__media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero__media video,
.hero__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.hero__media::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.20) 22%, rgba(0,0,0,.15) 45%, rgba(0,0,0,.70) 100%),
    radial-gradient(120% 80% at 50% 100%, rgba(0,0,0,.30), transparent 70%);
  z-index: 1;
}
.hero__content {
  position: relative;
  z-index: 2;
  max-width: 800px;
}
.hero__content--center { margin: 0 auto; text-align: center; }
.hero h1 { color: #fff; margin-bottom: var(--s-5); text-shadow: 0 2px 18px rgba(0,0,0,.35); }
.hero p { font-size: 1.18rem; color: rgba(255,255,255,.95); max-width: 620px; font-weight: 500; text-shadow: 0 2px 10px rgba(0,0,0,.4); }
.hero__content--center p { margin-left: auto; margin-right: auto; }
.hero__cta { display: flex; gap: var(--s-4); margin-top: var(--s-6); flex-wrap: wrap; }
.hero__content--center .hero__cta { justify-content: center; }
.hero .eyebrow { color: var(--c-green-light); }
.hero .eyebrow::before { background: var(--c-green-light); }
.hero__breadcrumb {
  font-size: .8rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: rgba(255,255,255,.75);
  margin-bottom: var(--s-4);
  font-weight: 600;
}
.hero__breadcrumb a:hover { color: var(--c-green-light); }
.hero__breadcrumb .sep { margin: 0 var(--s-3); color: var(--c-green-light); }

.hero .btn--outline { color: #fff; border-color: rgba(255,255,255,.5); }
.hero .btn--outline:hover { background: rgba(255,255,255,.92); color: var(--c-green); border-color: #fff; }

/* Scroll indicator */
.scroll-cue {
  position: absolute;
  inset: auto 0 var(--s-6) 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  pointer-events: none;
}
.scroll-cue span {
  display: block;
  width: 2px;
  height: 48px;
  background: linear-gradient(180deg, transparent, var(--c-green-light) 50%, transparent);
  animation: scrollCue 2.4s infinite var(--ease);
}
@keyframes scrollCue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

/* ---------- Cards / Service tiles ---------- */
.service-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  overflow: hidden;
  transition: all .35s var(--ease);
  min-height: 280px;
  color: var(--c-fg);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--c-green) 0%, var(--c-green-light) 100%);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .5s var(--ease);
}
.service-card:hover {
  transform: translateY(-6px);
  border-color: var(--c-green-light);
  box-shadow: 0 16px 40px -16px rgba(27,103,46,.25);
}
.service-card:hover::before { transform: scaleX(1); }
.service-card__num {
  font-family: var(--f-sans);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--c-green);
  opacity: .35;
  margin-bottom: var(--s-3);
  letter-spacing: -.04em;
}
.service-card h3 { margin-bottom: var(--s-3); }
.service-card p { font-size: .95rem; flex-grow: 1; margin-bottom: var(--s-5); }
.service-card .arrow-link {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-size: .8rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-green);
  margin-top: auto;
}
.service-card:hover .arrow-link svg { transform: translateX(4px); }
.service-card .arrow-link svg { transition: transform .3s var(--ease); }

/* Feature blocks */
.feature {
  display: flex;
  gap: var(--s-5);
  padding: var(--s-5) 0;
}
.feature__icon {
  flex: 0 0 56px;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--c-green-tint);
  color: var(--c-green);
  border-radius: var(--radius);
}
.feature h4 { margin-bottom: var(--s-2); color: var(--c-fg); }
.feature p { margin-bottom: 0; font-size: .95rem; }

/* ---------- Stats ---------- */
.stat-strip {
  background: var(--c-green-tint);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.stat-strip .grid-4 { gap: 0; }
.stat {
  padding: var(--s-7) var(--s-5);
  text-align: center;
  border-left: 1px solid rgba(27,103,46,.18);
}
.stat:first-child { border-left: none; }
.stat__num {
  font-family: var(--f-sans);
  font-size: clamp(2.6rem, 4.2vw, 3.8rem);
  font-weight: 900;
  letter-spacing: -.04em;
  color: var(--c-green);
  line-height: 1;
  margin-bottom: var(--s-2);
}
.stat__label {
  font-size: .8rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--c-fg-muted);
  font-weight: 600;
}

/* ---------- Partner-Strip ---------- */
.partner-strip {
  padding: var(--s-7) 0;
  background: var(--c-bg);
  border-top: 1px solid var(--c-line);
  border-bottom: 1px solid var(--c-line);
}
.partner-strip__title {
  text-align: center;
  font-size: .8rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--c-fg-dim);
  margin-bottom: var(--s-6);
  font-weight: 600;
}
.partner-marquee {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.partner-track {
  display: flex;
  gap: var(--s-9);
  align-items: center;
  width: max-content;
  animation: scroll-x 50s linear infinite;
}
.partner-track img {
  height: 42px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  filter: grayscale(1);
  opacity: .6;
  transition: all .3s var(--ease);
}
.partner-track img:hover {
  filter: grayscale(0);
  opacity: 1;
}
@keyframes scroll-x {
  to { transform: translateX(-50%); }
}

/* ---------- Referenz-Slider ---------- */
.ref-slider {
  position: relative;
  overflow: hidden;
}
.ref-track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 70%;
  gap: var(--s-5);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: var(--s-5);
}
.ref-track::-webkit-scrollbar { display: none; }
.ref-item {
  scroll-snap-align: start;
  position: relative;
  aspect-ratio: 16/10;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-surface);
  display: block;
}
.ref-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
}
.ref-item:hover img { transform: scale(1.05); }
.ref-item__label {
  position: absolute;
  inset: auto 0 0 0;
  padding: var(--s-6);
  background: linear-gradient(0deg, rgba(0,0,0,.92), transparent);
  color: #fff;
}
.ref-item__label h3 { color: #fff; margin-bottom: 0; }
.ref-item__label .meta {
  display: block;
  font-size: .72rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--c-green-light);
  margin-bottom: var(--s-2);
  font-weight: 700;
}
.ref-controls {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-5);
  justify-content: flex-end;
}
.ref-controls button {
  width: 48px;
  height: 48px;
  border: 1.5px solid var(--c-line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--c-fg);
  transition: all .3s var(--ease);
  background: var(--c-bg);
}
.ref-controls button:hover {
  background: var(--c-green);
  color: #fff;
  border-color: var(--c-green);
}

@media (min-width: 800px) {
  .ref-track { grid-auto-columns: 42%; }
}
@media (min-width: 1200px) {
  .ref-track { grid-auto-columns: 32%; }
}

/* ---------- Referenzen-Seite: Reine Bild-Galerie ---------- */
.ref-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--s-6);
}
.ref-gallery .ref-item { aspect-ratio: 4/3; }
.ref-gallery .ref-item__label {
  padding: var(--s-5);
  background: linear-gradient(0deg, rgba(0,0,0,.92), transparent 80%);
}
.ref-gallery .ref-item__label h3 { font-size: 1.4rem; }

.ref-collection { margin-top: var(--s-9); }
.ref-collection h2 { margin-bottom: var(--s-3); }
.ref-collection > p { margin-bottom: var(--s-6); max-width: 720px; }
.ref-slide-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s-3);
}
.ref-slide-strip img {
  aspect-ratio: 4/3;
  object-fit: cover;
  border-radius: var(--radius);
  cursor: zoom-in;
  transition: transform .35s var(--ease), opacity .25s;
  border: 1px solid var(--c-line);
}
.ref-slide-strip img:hover {
  transform: scale(1.02);
  border-color: var(--c-green-light);
}

/* Lightbox */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,.94);
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--s-6);
}
.lightbox.is-open { display: flex; }
.lightbox img {
  max-width: 96vw;
  max-height: 90vh;
  width: auto;
  object-fit: contain;
}
.lightbox__close {
  position: absolute;
  top: var(--s-5);
  right: var(--s-5);
  width: 48px; height: 48px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
}
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 56px; height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
}
.lightbox__nav--prev { left: var(--s-5); }
.lightbox__nav--next { right: var(--s-5); }
.lightbox__caption {
  position: absolute;
  bottom: var(--s-5);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.85);
  font-size: .9rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  font-weight: 600;
}

/* ---------- Forms ---------- */
.form {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-7);
  box-shadow: 0 1px 0 rgba(0,0,0,.02);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-5); margin-bottom: var(--s-5); }
.form-row--single { grid-template-columns: 1fr; }
@media (max-width: 720px) {
  .form-row { grid-template-columns: 1fr; gap: var(--s-4); margin-bottom: var(--s-4); }
  .form { padding: var(--s-5); }
}
@media (max-width: 480px) {
  .form { padding: var(--s-4); }
  .pill__box { padding: var(--s-4); font-size: .9rem; }
  .pill__box small { font-size: .75rem; }
}
.form-field { display: flex; flex-direction: column; gap: var(--s-2); }
.form-field label {
  font-size: .78rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--c-fg-dim);
  font-weight: 700;
}
.form-field label .req { color: var(--c-green); }
.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: var(--s-4);
  background: var(--c-bg);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  color: var(--c-fg);
  font-size: 1rem;
  font-weight: 500;
  transition: all .25s var(--ease);
}
.form-field textarea { min-height: 140px; resize: vertical; }
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--c-green);
  background: #fff;
  box-shadow: 0 0 0 3px var(--c-green-tint);
}
.form-field--check {
  flex-direction: row;
  align-items: flex-start;
  gap: var(--s-3);
}
.form-field--check input { width: 18px; height: 18px; margin-top: 4px; accent-color: var(--c-green); }
.form-field--check label {
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: .9rem;
  color: var(--c-fg-muted);
  line-height: 1.6;
}

/* Pill-options (Multi-Step Form) */
.pill-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(190px, 100%), 1fr));
  gap: var(--s-3);
}
.pill {
  position: relative;
  display: block;
  cursor: pointer;
  user-select: none;
  min-width: 0;
}
.pill input { position: absolute; opacity: 0; pointer-events: none; }
.pill__box {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding: var(--s-5);
  background: var(--c-bg);
  border: 1.5px solid var(--c-line);
  border-radius: var(--radius);
  font-size: .95rem;
  font-weight: 600;
  color: var(--c-fg);
  text-align: left;
  transition: all .25s var(--ease);
  min-height: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.pill__box small {
  display: block;
  font-size: .78rem;
  color: var(--c-fg-dim);
  font-weight: 400;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.pill:hover .pill__box {
  border-color: var(--c-green-light);
  background: var(--c-green-tint);
}
.pill input:checked + .pill__box {
  border-color: var(--c-green);
  background: var(--c-green-tint);
  color: var(--c-green-dark);
  box-shadow: inset 0 0 0 1.5px var(--c-green);
}

/* Multi-step */
.multi-step { display: grid; gap: var(--s-7); }
.steps-progress {
  display: flex;
  gap: var(--s-3);
  margin-bottom: var(--s-7);
}
.steps-progress li {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-size: .78rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--c-fg-dim);
  padding-bottom: var(--s-3);
  border-bottom: 2px solid var(--c-line);
  transition: all .3s var(--ease);
  font-weight: 700;
  min-width: 0;
}
.steps-progress li > span:not(.num) {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
}
.steps-progress li .num {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  border: 1.5px solid var(--c-line);
  font-family: var(--f-sans);
  font-size: .85rem;
  font-weight: 700;
  flex: 0 0 28px;
}

/* Mobile: kompakt — Steps nur als Nummern, Label nur bei aktiv */
@media (max-width: 640px) {
  .steps-progress {
    gap: var(--s-2);
  }
  .steps-progress li {
    gap: var(--s-2);
    font-size: .7rem;
    padding-bottom: var(--s-2);
  }
  .steps-progress li > span:not(.num) {
    display: none;
  }
  .steps-progress li.is-active > span:not(.num) {
    display: inline;
  }
  .steps-progress li {
    justify-content: center;
  }
  .steps-progress li.is-active {
    flex: 2;
    justify-content: flex-start;
  }
}
.steps-progress li.is-active { color: var(--c-green); border-bottom-color: var(--c-green); }
.steps-progress li.is-active .num { border-color: var(--c-green); color: var(--c-green); background: var(--c-green-tint); }
.steps-progress li.is-done { color: var(--c-green); border-bottom-color: var(--c-green); }
.steps-progress li.is-done .num { background: var(--c-green); color: #fff; border-color: var(--c-green); }

.step { display: none; animation: fadeIn .4s var(--ease); }
.step.is-active { display: block; }
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.step h3 { margin-bottom: var(--s-2); }
.step > p { color: var(--c-fg-muted); margin-bottom: var(--s-5); }

.step-actions {
  display: flex;
  justify-content: space-between;
  gap: var(--s-4);
  margin-top: var(--s-6);
  padding-top: var(--s-6);
  border-top: 1px solid var(--c-line);
}
.step-actions .btn:only-child { margin-left: auto; }

.form-success {
  text-align: center;
  padding: var(--s-7);
}
.form-success__icon {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: var(--c-green-tint);
  color: var(--c-green);
  display: grid; place-items: center;
  margin: 0 auto var(--s-5);
  font-size: 2.2rem;
}

/* ---------- Info-Cards (contact details) ---------- */
.info-card {
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  display: flex;
  gap: var(--s-5);
  align-items: flex-start;
  transition: all .3s var(--ease);
}
.info-card:hover {
  border-color: var(--c-green-light);
  box-shadow: 0 8px 24px -12px rgba(27,103,46,.18);
}
.info-card__icon {
  flex: 0 0 48px;
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  background: var(--c-green-tint);
  color: var(--c-green);
  border-radius: var(--radius);
}
.info-card h4 { font-family: var(--f-sans); font-size: .78rem; letter-spacing: .15em; text-transform: uppercase; color: var(--c-fg-dim); margin-bottom: var(--s-2); font-weight: 700; }
.info-card p, .info-card a { color: var(--c-fg); font-size: 1.08rem; font-weight: 600; margin: 0; }
.info-card a:hover { color: var(--c-green); }

/* ---------- Footer ---------- */
.site-footer {
  background: #0d0f0d;
  color: rgba(255,255,255,.7);
  padding-top: var(--s-10);
  padding-bottom: var(--s-6);
  border-top: 4px solid var(--c-green-light);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1.2fr;
  gap: var(--s-7);
  margin-bottom: var(--s-9);
}
@media (max-width: 880px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s-6); }
}
.footer-grid h5 {
  font-family: var(--f-sans);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: var(--s-4);
  font-weight: 700;
}
.footer-grid a { color: rgba(255,255,255,.65); font-size: .92rem; display: block; padding: var(--s-1) 0; font-weight: 500; }
.footer-grid a:hover { color: var(--c-green-light); }
.footer-grid p { font-size: .92rem; line-height: 1.7; color: rgba(255,255,255,.7); }
.footer-grid p a { display: inline; padding: 0; }
.footer-brand { display: flex; align-items: center; gap: var(--s-3); margin-bottom: var(--s-4); }
.footer-brand img { height: 56px; }
.footer-brand .brand-text { font-size: 1.2rem; color: #fff; font-weight: 800; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--s-5);
  display: flex;
  justify-content: space-between;
  font-size: .82rem;
  color: rgba(255,255,255,.5);
  gap: var(--s-4);
  flex-wrap: wrap;
}
.footer-bottom a { color: rgba(255,255,255,.55); }
.footer-bottom a:hover { color: var(--c-green-light); }
.footer-meta { display: flex; gap: var(--s-5); }

/* ---------- Cookie Banner ---------- */
.cookie {
  position: fixed;
  inset: auto var(--s-5) var(--s-5) var(--s-5);
  z-index: 150;
  background: var(--c-bg);
  border: 1px solid var(--c-line-strong);
  border-radius: var(--radius-lg);
  padding: var(--s-6);
  max-width: 520px;
  margin: 0 auto;
  box-shadow: 0 20px 60px -10px rgba(0,0,0,.18);
  transform: translateY(140%);
  transition: transform .5s var(--ease);
}
.cookie.is-open { transform: translateY(0); }
.cookie h4 { margin-bottom: var(--s-2); font-family: var(--f-sans); font-size: 1rem; font-weight: 700; }
.cookie p { font-size: .88rem; line-height: 1.55; margin-bottom: var(--s-5); }
.cookie__actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
.cookie .btn { padding: var(--s-3) var(--s-5); font-size: .85rem; }
.cookie__link {
  font-size: .8rem;
  color: var(--c-fg-dim);
  text-decoration: underline;
  margin-top: var(--s-3);
  display: inline-block;
  font-weight: 600;
}
.cookie__link:hover { color: var(--c-green); }

/* Video-Consent overlay */
.video-consent {
  position: relative;
  background: var(--c-bg);
  border: 1px solid var(--c-line);
  border-radius: var(--radius-lg);
  aspect-ratio: 16/9;
  display: grid;
  place-items: center;
  text-align: center;
  padding: var(--s-7);
  overflow: hidden;
}
.video-consent__poster {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(.4);
}
.video-consent__inner { position: relative; z-index: 1; max-width: 480px; }
.video-consent h4 { margin-bottom: var(--s-3); color: #fff; }
.video-consent p { margin-bottom: var(--s-5); font-size: .92rem; color: rgba(255,255,255,.85); }

/* ---------- Two-column blocks ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-8);
  align-items: center;
}
.two-col--narrow { gap: var(--s-7); }
@media (max-width: 880px) {
  .two-col { grid-template-columns: 1fr; gap: var(--s-6); }
}
.two-col__media {
  aspect-ratio: 4/5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  position: relative;
  box-shadow: 0 24px 60px -24px rgba(0,0,0,.25);
}
.two-col__media img, .two-col__media video { width: 100%; height: 100%; object-fit: cover; }
.two-col__media--wide { aspect-ratio: 5/4; }

.bullet-list { margin-top: var(--s-5); }
.bullet-list li {
  display: flex;
  gap: var(--s-3);
  align-items: flex-start;
  padding: var(--s-3) 0;
  border-bottom: 1px solid var(--c-line);
  color: var(--c-fg-muted);
}
.bullet-list li::before {
  content: '';
  flex: 0 0 10px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-green-light);
  margin-top: 8px;
}
.section--green .bullet-list li { color: rgba(255,255,255,.92); border-bottom-color: rgba(255,255,255,.15); }
.section--green .bullet-list li strong { color: #fff; }

/* ---------- Reveal Animation ---------- */
.reveal {
  opacity: 0;
  transform: translateY(30px);
  transition: all .8s var(--ease);
}
.reveal.is-visible {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive grids ---------- */
@media (max-width: 880px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}
@media (min-width: 880px) and (max-width: 1100px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
}

/* ---------- Long content (Impressum/Datenschutz) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin-top: var(--s-8); margin-bottom: var(--s-4); }
.prose h3 { margin-top: var(--s-6); margin-bottom: var(--s-3); font-family: var(--f-sans); font-size: 1.1rem; font-weight: 700; }
.prose p, .prose ul { margin-bottom: var(--s-4); }
.prose ul { padding-left: var(--s-5); }
.prose ul li { margin-bottom: var(--s-2); list-style: disc; color: var(--c-fg-muted); }
.prose a { color: var(--c-green); text-decoration: underline; font-weight: 600; }
.prose strong { color: var(--c-fg); }

/* ---------- Mobile fixes ---------- */
@media (max-width: 720px) {
  .section { padding: var(--s-8) 0; }
  .hero { min-height: 90vh; }
  .hero--compact { min-height: 60vh; }
  .footer-meta { flex-direction: column; gap: var(--s-2); }
  .step-actions { flex-direction: column-reverse; }
  .step-actions .btn { width: 100%; justify-content: center; }
}

/* Print-friendly */
@media print {
  .site-header, .site-footer, .cookie, .hero__media, .nav { display: none; }
  body { background: white; color: black; }
}
