/* =============================================
   STEFAN DABERGER – BAUUNTERNEHMEN
   ============================================= */

/* ---- Inter – lokal gehostet (keine Google-CDN-Verbindung) ---- */
@font-face { font-family:'Inter'; font-style:normal; font-weight:300; font-display:swap; src:url('../fonts/inter-300.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:400; font-display:swap; src:url('../fonts/inter-400.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:500; font-display:swap; src:url('../fonts/inter-500.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:600; font-display:swap; src:url('../fonts/inter-600.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:700; font-display:swap; src:url('../fonts/inter-700.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:800; font-display:swap; src:url('../fonts/inter-800.woff2') format('woff2'); }
@font-face { font-family:'Inter'; font-style:normal; font-weight:900; font-display:swap; src:url('../fonts/inter-900.woff2') format('woff2'); }

:root {
  --orange: #ff6d00;

  --blue: #3F8EC6;
  --blue-dark: #2d6fa3;
  --blue-light: #5fa8d9;
  --blue-xlight: #e8f4fb;
  --gray: #787C7F;
  --gray-dark: #4a4e51;
  --gray-light: #a8acaf;
  --gray-xlight: #f4f5f5;
  --white: #ffffff;
  --dark: #1a1c1e;
  --text: #2e3235;
  --text-muted: #6b7280;

  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 999px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.08), 0 1px 2px rgba(0,0,0,.06);
  --shadow-md: 0 4px 16px rgba(0,0,0,.10), 0 2px 6px rgba(0,0,0,.06);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.14), 0 4px 12px rgba(0,0,0,.08);
  --shadow-blue: 0 8px 32px rgba(63,142,198,.30);

  --font: 'Inter', system-ui, sans-serif;
  --transition: 0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { border: none; background: none; cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: all var(--transition);
  cursor: pointer;
  white-space: nowrap;
}
.btn--primary {
  background: var(--blue);
  color: var(--white);
  box-shadow: var(--shadow-blue);
}
.btn--primary:hover {
  background: var(--blue-dark);
  box-shadow: 0 12px 40px rgba(63,142,198,.45);
  transform: translateY(-2px);
}
.btn--ghost {
  background: rgba(255,255,255,0.12);
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,0.35);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover {
  background: rgba(255,255,255,0.22);
  border-color: rgba(255,255,255,0.6);
  transform: translateY(-2px);
}
.btn--full { width: 100%; justify-content: center; }

/* ---- Section ---- */
.section { padding: 100px 0; }
.section__header {
  text-align: center;
  max-width: 620px;
  margin: 0 auto 64px;
}
.section__tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  background: var(--blue-xlight);
  padding: 5px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 14px;
}
.section__tag--light {
  color: rgba(255,255,255,0.85);
  background: rgba(255,255,255,0.15);
}
.section__title {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800;
  color: var(--dark);
  line-height: 1.18;
  margin-bottom: 16px;
}
.section__title--light { color: var(--white); }
.section__desc {
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1.65;
}

/* =============================================
   HEADER / NAV
   ============================================= */
.header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all var(--transition);
  padding: 8px 0;
}
.header.scrolled {
  box-shadow: 0 1px 0 rgba(0,0,0,.08), var(--shadow-sm);
  padding: 4px 0;
}
.header.scrolled::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(20px);
  z-index: -1;
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav__logo {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--white);
  transition: color var(--transition);
}
.header.scrolled .nav__logo { color: var(--dark); }
.nav__logo-icon { display: flex; align-items: center; color: var(--blue); }

.nav__logo-icon--svg { display: none; }
.nav__logo-icon--img { display: flex; }

.nav__logo-img {
  height: 56px;
  width: auto;
  object-fit: contain;
}
.footer .nav__logo-img {
  height: 64px;
}

.nav__logo-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.nav__logo-name {
  font-size: 15px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.2;
}
.nav__logo-name strong { font-weight: 800; }
.nav__logo-sub {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.75;
  line-height: 1.2;
}

.nav__menu { display: flex; align-items: center; gap: 6px; }
.nav__link {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius-full);
  transition: all var(--transition);
}
.nav__link:hover { color: var(--white); background: rgba(255,255,255,0.12); }
.header.scrolled .nav__link { color: var(--text-muted); }
.header.scrolled .nav__link:hover { color: var(--dark); background: var(--gray-xlight); }
.nav__link--cta {
  color: var(--white) !important;
  background: var(--blue);
  padding: 9px 20px;
  font-weight: 600;
}
.nav__link--cta:hover {
  background: var(--blue-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
  box-shadow: var(--shadow-blue);
}

.nav__burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  border-radius: var(--radius-sm);
}
.nav__burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--white);
  border-radius: 2px;
  transition: all var(--transition);
}
.header.scrolled .nav__burger span { background: var(--dark); }

/* =============================================
   HERO – VIDEO
   ============================================= */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #0d1620; /* Fallback wenn kein Video */
}

/* --- Video Layer --- */
.hero__video-wrap {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Gradient-Overlay: unten dunkler, damit Text lesbar bleibt */
.hero__video-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      to right,
      rgba(10, 16, 24, 0.60) 0%,
      rgba(10, 16, 24, 0.35) 50%,
      rgba(10, 16, 24, 0.15) 100%
    ),
    linear-gradient(
      to top,
      rgba(10, 16, 24, 0.50) 0%,
      transparent 50%
    );
}

/* Fallback-Gradient wenn kein Video */
.hero__video-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #0d1620 0%, #162033 40%, #1e3a55 70%, #2d6090 100%);
  z-index: -1;
}

/* --- Content --- */
.hero__inner {
  position: relative;
  z-index: 2;
  padding-top: 120px;
  padding-bottom: 80px;
  max-width: 760px;
}

.hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.75);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}

.hero__badge-dot {
  width: 7px;
  height: 7px;
  background: #4ade80;
  border-radius: 50%;
  box-shadow: 0 0 0 3px rgba(74,222,128,0.25);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(74,222,128,0.25); }
  50% { box-shadow: 0 0 0 6px rgba(74,222,128,0.10); }
}

.hero__title {
  font-size: clamp(44px, 7vw, 84px);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  color: var(--white);
  margin-bottom: 24px;
}
.hero__title-accent {
  background: linear-gradient(135deg, #7ec8f0 0%, #3F8EC6 50%, #a8d8f0 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero__subtitle {
  font-size: 19px;
  font-weight: 400;
  color: rgba(255,255,255,0.68);
  max-width: 520px;
  line-height: 1.65;
  margin-bottom: 40px;
}

.hero__actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 64px;
}

.hero__stats {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
.hero__stat { display: flex; flex-direction: column; gap: 2px; }
.hero__stat-num {
  font-size: 28px;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.02em;
  line-height: 1;
}
.hero__stat-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.50);
  letter-spacing: 0.02em;
}
.hero__stat-divider {
  width: 1px;
  height: 36px;
  background: rgba(255,255,255,0.18);
}

/* --- Scroll Indicator --- */
.hero__scroll-indicator {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.hero__scroll-indicator span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
}
.hero__scroll-mouse {
  width: 24px;
  height: 38px;
  border: 1.5px solid rgba(255,255,255,0.25);
  border-radius: 12px;
  display: flex;
  justify-content: center;
  padding-top: 6px;
}
.hero__scroll-wheel {
  width: 3px;
  height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollWheel 1.8s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  80% { transform: translateY(10px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* --- Video Toggle Button --- */
.hero__video-toggle {
  position: absolute;
  bottom: 40px;
  right: 40px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.7);
  transition: all var(--transition);
  cursor: pointer;
}
.hero__video-toggle:hover {
  background: rgba(255,255,255,0.2);
  border-color: rgba(255,255,255,0.4);
  color: var(--white);
}

/* =============================================
   LEISTUNGEN
   ============================================= */
.leistungen { background: var(--white); }

.leistungen__grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 20px;
  align-items: stretch;
}
.leistung-card { height: 100%; }
/* Reihe 1: 3 Cards à 2 von 6 Spalten */
.leistung-card:nth-child(-n+3) { grid-column: span 2; }
/* Reihe 2: 2 Cards zentriert */
.leistung-card:nth-child(4) { grid-column: 2 / 4; }
.leistung-card:nth-child(5) { grid-column: 4 / 6; }

.leistung-card {
  position: relative;
  background: var(--gray-xlight);
  border: 1.5px solid rgba(0,0,0,0.06);
  border-left: 4px solid var(--blue);
  border-radius: var(--radius-xl);
  padding: 36px 32px 32px;
  transition: all var(--transition);
  cursor: default;
  overflow: hidden;
}
.leistung-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--orange);
  opacity: 0;
  transition: opacity var(--transition);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}
.leistung-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.leistung-card:hover::before { opacity: 1; }

.leistung-card--featured {
  background: linear-gradient(145deg, var(--dark) 0%, #253340 100%);
  border-color: transparent;
  color: var(--white);
}
.leistung-card--featured::before { opacity: 1; }

.leistung-card__icon {
  width: 64px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-xlight);
  color: var(--blue);
  border-radius: var(--radius-md);
  margin-bottom: 22px;
  transition: all var(--transition);
  box-shadow: 0 4px 12px rgba(63,142,198,0.15);
}
.leistung-card--featured .leistung-card__icon {
  background: rgba(63,142,198,0.2);
  color: var(--blue-light);
}
.leistung-card:hover .leistung-card__icon { background: var(--blue); color: var(--white); }
.leistung-card--featured:hover .leistung-card__icon { background: var(--blue); }

.leistung-card__title {
  font-size: 19px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
  line-height: 1.3;
}
.leistung-card--featured .leistung-card__title { color: var(--white); }

.leistung-card__text {
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 22px;
}
.leistung-card--featured .leistung-card__text { color: rgba(255,255,255,0.6); }

.leistung-card__arrow { display: none; }

.leistung-card__extra {
  display: block;
  margin-top: 12px;
  font-size: 12px;
  color: var(--gray-light);
  font-style: italic;
}

/* =============================================
   ÜBER UNS
   ============================================= */
.ueber-uns { background: var(--gray-xlight); }

.ueber-uns__cols {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: 80px;
  align-items: start;
}

.ueber-uns__col-left .section__tag { display: inline-block; margin-bottom: 12px; }
.ueber-uns__col-left .section__title { margin-bottom: 20px; }
.ueber-uns__col-left .ueber-uns__lead { margin-bottom: 32px; }

.ueber-uns__col-right .ueber-uns__text { margin-bottom: 18px; }

.ueber-uns__logo {
  height: 110px;
  width: auto;
  object-fit: contain;
  margin-bottom: 28px;
  display: block;
}

.ueber-uns__img-wrap { position: relative; border-radius: var(--radius-xl); overflow: visible; }

.ueber-uns__img-placeholder {
  width: 100%;
  aspect-ratio: 4/5;
  background: linear-gradient(145deg, #d0dce6 0%, #b8ccd8 100%);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  color: #6a8599;
  font-size: 13px;
  font-weight: 500;
  border: 2px dashed #a0b8c8;
}

.ueber-uns__badge-float {
  position: absolute;
  bottom: -24px;
  right: -24px;
  background: var(--blue);
  color: var(--white);
  padding: 20px 24px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-blue);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-width: 110px;
}
.ueber-uns__badge-float strong {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
}
.ueber-uns__badge-float span {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
  line-height: 1.4;
  margin-top: 4px;
}

.ueber-uns__content { padding-right: 16px; }
.ueber-uns__lead {
  font-size: 18px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.6;
  margin-top: 16px;
  margin-bottom: 16px;
}
.ueber-uns__text {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 32px;
}

.ueber-uns__features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 36px; }
.ueber-uns__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
}
.ueber-uns__feature-icon {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--orange);
  color: var(--white);
  border-radius: var(--radius-full);
}

/* =============================================
   REFERENZEN
   ============================================= */
.referenzen { background: var(--white); }

.referenzen__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 280px;
  gap: 16px;
}

.referenz-card {
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition);
}
.referenz-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.referenz-card--large { grid-column: 1 / 3; grid-row: 1 / 3; }

.referenz-card__img-wrap {
  position: absolute;
  inset: 0;
}
.referenz-card__photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.referenz-card:hover .referenz-card__photo { transform: scale(1.06); }

.referenz-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,16,24,0.82) 0%, rgba(10,16,24,0.2) 55%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}
.referenz-card--large .referenz-card__overlay { padding: 32px; }

.referenz-card__cat {
  display: inline-flex;
  align-self: flex-start;
  background: var(--blue);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
}
.referenz-card__title {
  color: var(--white);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}
.referenz-card--large .referenz-card__title { font-size: 22px; }
.referenz-card__year {
  color: rgba(255,255,255,0.60);
  font-size: 13px;
  font-weight: 500;
}
.referenz-card__count {
  display: inline-flex;
  align-self: flex-start;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(6px);
  color: rgba(255,255,255,0.85);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  border: 1px solid rgba(255,255,255,0.2);
}

/* =============================================
   LIGHTBOX
   ============================================= */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(5, 10, 16, 0.95);
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.lightbox--open {
  display: flex;
  animation: lbFadeIn 0.2s ease;
}
@keyframes lbFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.lightbox__img-wrap {
  max-width: min(90vw, 1200px);
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}
.lightbox__img-wrap--fade { transform: scale(0.97); }
.lightbox__img {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 32px 80px rgba(0,0,0,0.7);
  transition: opacity 0.25s ease;
  display: block;
}
.lightbox__img--fade { opacity: 0; }

.lightbox__arrow {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
.lightbox__arrow:hover { background: rgba(255,255,255,0.22); }
.lightbox__arrow--prev { left: 20px; }
.lightbox__arrow--next { right: 20px; }

.lightbox__close {
  position: fixed;
  top: 20px;
  right: 20px;
  background: rgba(255,255,255,0.1);
  border: 1.5px solid rgba(255,255,255,0.2);
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 10000;
}
.lightbox__close:hover { background: rgba(255,255,255,0.22); }

.lightbox__header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10001;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 72px 18px 24px;
  background: linear-gradient(to bottom, rgba(5,10,16,0.85) 0%, transparent 100%);
  pointer-events: none;
}
.lightbox__title {
  color: rgba(255,255,255,0.90);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.lightbox__counter {
  color: rgba(255,255,255,0.55);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.05em;
}

@media (max-width: 600px) {
  .lightbox__arrow { width: 40px; height: 40px; font-size: 16px; }
  .lightbox__arrow--prev { left: 8px; }
  .lightbox__arrow--next { right: 8px; }
}

/* =============================================
   REFERENZEN PAGINATION
   ============================================= */
.referenzen__pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.ref-page__btn {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  border: 2px solid var(--border);
  background: var(--white);
  color: var(--dark);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.ref-page__btn:hover:not(:disabled):not(.ref-page__btn--active) {
  border-color: var(--blue);
  color: var(--blue);
}
.ref-page__btn--active {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}
.ref-page__btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.referenzen__cta {
  margin-top: 56px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}
.referenzen__cta p { font-size: 19px; font-weight: 600; color: var(--dark); }

/* =============================================
   KONTAKT
   ============================================= */
.kontakt {
  background: linear-gradient(145deg, #1a2a3a 0%, #1f3a52 40%, #2d5978 70%, #3F8EC6 100%);
  position: relative;
  overflow: hidden;
}
.kontakt::before {
  content: '';
  position: absolute;
  top: -30%; right: -5%;
  width: 50%; height: 80%;
  background: radial-gradient(ellipse, rgba(63,142,198,0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.kontakt__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}
.kontakt__desc {
  font-size: 16px;
  color: rgba(255,255,255,0.65);
  line-height: 1.7;
  margin-top: 16px;
  margin-bottom: 40px;
}
.kontakt__details { display: flex; flex-direction: column; gap: 22px; border-top: 1px solid rgba(255,255,255,0.1); padding-top: 32px; }
.kontakt__detail {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  color: var(--white);
}
.kontakt__detail-icon {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.1);
  border-radius: var(--radius-md);
  color: var(--blue-light);
  border: 1px solid rgba(255,255,255,0.1);
}
.kontakt__detail div { display: flex; flex-direction: column; gap: 2px; }
.kontakt__detail strong {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  line-height: 1;
}
.kontakt__detail span,
.kontakt__detail a {
  font-size: 16px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: color var(--transition);
}
.kontakt__detail a:hover { color: var(--blue-light); }

/* Form */
.kontakt__form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 44px 40px;
  box-shadow: var(--shadow-lg);
}
.kontakt__form-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 28px;
}
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form__group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.form__label { font-size: 13px; font-weight: 600; color: var(--dark); }
.form__input {
  width: 100%;
  padding: 12px 16px;
  background: var(--gray-xlight);
  border: 1.5px solid transparent;
  border-radius: var(--radius-md);
  font-size: 15px;
  color: var(--dark);
  transition: all var(--transition);
  outline: none;
}
.form__input:focus {
  border-color: var(--blue);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(63,142,198,0.12);
}
.form__input::placeholder { color: var(--gray-light); }
.form__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23787C7F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 40px;
}
.form__textarea { resize: vertical; min-height: 120px; }
.form__note { text-align: center; font-size: 12.5px; color: var(--gray-light); margin-top: 12px; }

/* ---- Form Validation States ---- */
.form__input--error {
  border-color: #dc2626 !important;
  background: #fff5f5;
}
.form__input--error:focus {
  box-shadow: 0 0 0 4px rgba(220,38,38,0.10) !important;
}
.form__input--valid {
  border-color: #16a34a !important;
  background: var(--white);
}
/* Honeypot: visuell versteckt, aber im DOM vorhanden */
.sr-hidden {
  position: absolute;
  left: -9999px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
/* Formular-Fehlermeldung (globale, unterhalb des Submit-Buttons) */
.form__error {
  display: none;
  margin-top: 10px;
  color: #dc2626;
  font-size: 14px;
  text-align: center;
}
.form__error-msg {
  font-size: 12px;
  color: #dc2626;
  font-weight: 500;
  line-height: 1.4;
  display: none;
  margin-top: -2px;
}
.form__error-msg.visible { display: block; }
.form__char-count {
  font-size: 11px;
  color: var(--gray-light);
  text-align: right;
  margin-top: -2px;
  transition: color var(--transition);
}
.form__char-count--warn  { color: #f59e0b; }
.form__char-count--limit { color: #dc2626; font-weight: 600; }

/* =============================================
   FOOTER
   ============================================= */
.footer { background: var(--dark); color: rgba(255,255,255,0.7); }
.footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 48px;
  padding-top: 64px;
  padding-bottom: 48px;
}
.footer__brand .nav__logo { color: var(--white); margin-bottom: 16px; }
.footer__tagline { font-size: 14px; line-height: 1.65; color: rgba(255,255,255,0.45); margin-top: 4px; }
.footer__innung-logo { margin-top: 16px; height: 60px; width: auto; object-fit: contain; }
.footer__links h4,
.footer__contact h4 {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 18px;
}
.footer__links ul { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { font-size: 14.5px; color: rgba(255,255,255,0.6); transition: color var(--transition); }
.footer__links a:hover { color: var(--white); }
.footer__contact { display: flex; flex-direction: column; }
.footer__contact p,
.footer__contact a { font-size: 14.5px; color: rgba(255,255,255,0.6); margin-bottom: 8px; transition: color var(--transition); }
.footer__contact a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,0.08); }
.footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  font-size: 13px;
  color: rgba(255,255,255,0.35);
}
.footer__legal { display: flex; gap: 24px; }
.footer__legal a { color: rgba(255,255,255,0.35); transition: color var(--transition); }
.footer__legal a:hover { color: rgba(255,255,255,0.7); }

/* =============================================
   GOOGLE MAPS – KONTAKT-SEKTION
   ============================================= */
.kontakt__map-section {
  padding-bottom: 64px;
}
.kontakt__map-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  margin-bottom: 14px;
}
.kontakt__map-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  height: 420px;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.1);
}
.kontakt__map-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.map-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: center;
  padding: 32px;
  background: rgba(12, 24, 36, 0.88);
  backdrop-filter: blur(6px);
}
.map-placeholder__icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(63,142,198,0.15);
  border: 1.5px solid rgba(63,142,198,0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-light);
  margin-bottom: 4px;
}
.map-placeholder h4 {
  font-size: 17px;
  font-weight: 700;
  color: var(--white);
}
.map-placeholder p {
  font-size: 14px;
  color: rgba(255,255,255,0.55);
  max-width: 360px;
  line-height: 1.65;
}
.map-placeholder__ext-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
  margin-top: 4px;
  transition: color var(--transition);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.map-placeholder__ext-link:hover { color: var(--blue-light); }

/* =============================================
   COOKIE CONSENT BANNER
   ============================================= */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1100;
  padding: 12px 16px 16px;
  transform: translateY(110%);
  transition: transform 0.42s cubic-bezier(0.4, 0, 0.2, 1);
  pointer-events: none;
}
.cookie-banner.visible {
  transform: translateY(0);
  pointer-events: all;
}
.cookie-banner__card {
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-xl) var(--radius-xl) var(--radius-md) var(--radius-md);
  padding: 26px 30px 22px;
  box-shadow: 0 -4px 48px rgba(0,0,0,.15), var(--shadow-lg);
  border-top: 3px solid var(--blue);
}
.cookie-banner__head { margin-bottom: 20px; }
.cookie-banner__title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.cookie-banner__icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--blue-xlight);
  color: var(--blue);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cookie-banner__title {
  font-size: 16px;
  font-weight: 800;
  color: var(--dark);
}
.cookie-banner__desc {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.65;
}
.cookie-banner__desc a {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.cookie-banner__desc a:hover { color: var(--blue-dark); }

/* Cookie options rows */
.cookie-banner__options {
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1.5px solid rgba(0,0,0,0.08);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 18px;
}
.cookie-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 18px;
  background: var(--gray-xlight);
}
.cookie-option + .cookie-option {
  border-top: 1.5px solid rgba(0,0,0,0.07);
  background: var(--white);
}
.cookie-option__info {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.cookie-option__info strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--dark);
}
.cookie-option__info span {
  font-size: 12.5px;
  color: var(--text-muted);
}
.cookie-always-on {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #2a9d5c;
  background: rgba(42,157,92,0.1);
  border: 1px solid rgba(42,157,92,0.25);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  flex-shrink: 0;
}

/* Toggle switch */
.cookie-toggle {
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.cookie-toggle input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}
.cookie-toggle__track {
  position: relative;
  width: 46px;
  height: 26px;
  background: var(--gray-light);
  border-radius: 13px;
  transition: background var(--transition);
  flex-shrink: 0;
}
.cookie-toggle__track::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 20px; height: 20px;
  background: var(--white);
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0,0,0,.22);
  transition: transform var(--transition);
}
.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle__track {
  background: var(--blue);
}
.cookie-toggle input[type="checkbox"]:checked + .cookie-toggle__track::after {
  transform: translateX(20px);
}
.cookie-toggle input[type="checkbox"]:focus-visible + .cookie-toggle__track {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}

/* Cookie action buttons */
.cookie-banner__actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}
.cookie-btn {
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  font-family: var(--font);
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.cookie-btn--primary {
  background: var(--blue);
  color: var(--white);
  border: 2px solid var(--blue);
  box-shadow: var(--shadow-blue);
}
.cookie-btn--primary:hover {
  background: var(--blue-dark);
  border-color: var(--blue-dark);
  transform: translateY(-1px);
}
.cookie-btn--outline {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(0,0,0,0.12);
}
.cookie-btn--outline:hover {
  border-color: var(--blue);
  color: var(--blue);
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .cookie-banner { transition: none; }
}

/* =============================================
   SCROLL ANIMATIONS
   ============================================= */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* =============================================
   RESPONSIVE
   ============================================= */
@media (max-width: 1024px) {
  .leistungen__grid { grid-template-columns: repeat(2, 1fr); }
  .leistung-card:nth-child(n) { grid-column: auto; }
  .referenzen__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 240px; }
  .referenz-card--large { grid-column: 1 / 3; grid-row: 1 / 3; }
  .ueber-uns__cols { grid-template-columns: 1fr 1fr; gap: 48px; }
  .kontakt__inner { gap: 48px; }
  .footer__inner { grid-template-columns: 1fr 1fr; gap: 36px; }
}

@media (max-width: 860px) {
  .cookie-banner__card { padding: 22px 20px 18px; }
  .cookie-banner__actions { flex-direction: column-reverse; }
  .cookie-btn { width: 100%; text-align: center; justify-content: center; display: flex; }
}

@media (max-width: 768px) {
  .section { padding: 72px 0; }
  .section__header { margin-bottom: 44px; }

  .nav__menu { display: none; }
  .nav__menu.open {
    display: flex;
    flex-direction: column;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(15,25,35,0.98);
    backdrop-filter: blur(20px);
    z-index: 999;
    align-items: center;
    justify-content: center;
    gap: 8px;
  }
  .nav__menu.open .nav__link { font-size: 22px; font-weight: 700; color: var(--white); padding: 14px 28px; }
  .nav__menu.open .nav__link--cta { background: var(--blue); border-radius: var(--radius-full); }
  .nav__burger { display: flex; z-index: 1000; position: relative; }
  .nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__burger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
  .nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__inner { padding-top: 100px; }
  .hero__actions { flex-direction: column; align-items: flex-start; }
  .hero__scroll-indicator { display: none; }
  .hero__stats { gap: 16px; }
  .hero__stat-divider { display: none; }
  .hero__video-toggle { bottom: 24px; right: 24px; }

  .leistungen__grid { grid-template-columns: 1fr; }
  .ueber-uns__cols { grid-template-columns: 1fr; gap: 36px; }

  .referenzen__grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 200px; }
  .referenz-card--large { grid-column: 1 / 3; grid-row: 1 / 3; }
  .referenz-card__overlay { padding: 14px; }
  .referenz-card--large .referenz-card__overlay { padding: 18px; }
  .referenz-card__title { font-size: 12px; }
  .referenz-card--large .referenz-card__title { font-size: 14px; }
  .referenz-card__count { font-size: 10px; padding: 2px 7px; }

  .kontakt__map-frame { height: 280px; }
  .kontakt__map-section { padding-top: 40px; }
  .kontakt__inner { grid-template-columns: 1fr; gap: 40px; }
  .kontakt__form-wrap { padding: 32px 24px; }
  .form__row { grid-template-columns: 1fr; }

  .footer__inner { grid-template-columns: 1fr; gap: 28px; padding-top: 44px; padding-bottom: 32px; }
  .footer__bottom-inner { flex-direction: column; gap: 12px; text-align: center; }
}

@media (max-width: 768px) {
  .section__desc { font-size: 15px; }
  .hero__subtitle { font-size: 16px; }
}

@media (max-width: 480px) {
  .hero__title { font-size: 38px; }
  .section__title { font-size: 26px; }
  .section__desc { font-size: 14px; }
  .hero__subtitle { font-size: 15px; }
  .kontakt__form-wrap { padding: 24px 16px; }
}
