/*
 * Trendbau RV — Main Stylesheet
 * ==============================
 * 0. Self-hosted Fonts (DSGVO-konform)
 * 1. Design Tokens
 * 2. Reset & Base
 * 3. Typography
 * 4. Utilities & Layout
 * 5. Animation System
 * 6. Components (Buttons, Badges, Cards)
 * 7. Navigation
 * 8. Hero
 * 9. About
 * 10. Services
 * 11. Projects
 * 12. Process
 * 13. Testimonials
 * 14. Contact
 * 15. Footer
 * 16. Cookie Banner
 * 17. Impressum / Datenschutz Pages
 * 18. Responsive
 */

/* ============================================================
   0. SELF-HOSTED FONTS — DSGVO-konform, keine Google-Server-Anfragen
   ============================================================ */

/* Syne — Überschriften (variable font, wght 100–900) */
@font-face {
  font-family: 'Syne';
  src: url('../fonts/Syne/Syne-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

/* Plus Jakarta Sans — Fließtext (variable font, wght 100–900) */
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  src: url('../fonts/Plus_Jakarta_Sans/PlusJakartaSans-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ============================================================
   1. DESIGN TOKENS
   ============================================================ */
:root {
  /* Core palette — clean, modern, structured */
  --clr-dark:        #111827;   /* charcoal — hero, footer, dark sections */
  --clr-dark-800:    #1F2937;   /* dark gray */
  --clr-accent:      #0D9488;   /* teal — CTAs, accents */
  --clr-accent-h:    #0F766E;   /* teal hover */
  --clr-bg:          #FFFFFF;   /* pure white — main bg */
  --clr-bg-alt:      #F9FAFB;   /* near-white gray — alternate sections */
  --clr-text:        #111827;   /* near black */
  --clr-muted:       #6B7280;   /* medium gray */
  --clr-border:      #E5E7EB;   /* light gray border */
  --clr-white:       #FFFFFF;

  /* Typography */
  --ff-display:  'Syne', system-ui, sans-serif;
  --ff-body:     'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;

  /* Font sizes (fluid via clamp) */
  --fs-xs:   0.75rem;
  --fs-sm:   0.875rem;
  --fs-base: 1rem;
  --fs-md:   1.125rem;
  --fs-lg:   1.25rem;
  --fs-xl:   1.5rem;
  --fs-2xl:  2rem;
  --fs-3xl:  clamp(2rem, 4vw, 2.75rem);
  --fs-4xl:  clamp(2.5rem, 5vw, 3.75rem);
  --fs-hero: clamp(3rem, 7vw, 5.5rem);

  /* Spacing */
  --sp-1:  0.25rem;
  --sp-2:  0.5rem;
  --sp-3:  0.75rem;
  --sp-4:  1rem;
  --sp-6:  1.5rem;
  --sp-8:  2rem;
  --sp-10: 2.5rem;
  --sp-12: 3rem;
  --sp-16: 4rem;
  --sp-20: 5rem;
  --sp-24: 6rem;
  --sp-32: 8rem;

  /* Section vertical padding */
  --section-py: clamp(4rem, 8vw, 7rem);

  /* Border radius */
  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --shadow-md: 0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --shadow-lg: 0 12px 40px rgba(0,0,0,.12), 0 4px 12px rgba(0,0,0,.06);
  --shadow-accent: 0 8px 32px rgba(13,148,136,.30);

  /* Transitions */
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast:   150ms ease;
  --t-base:   250ms ease;
  --t-slow:   500ms var(--ease-out-expo);

  /* Z-index scale */
  --z-base:   1;
  --z-card:   10;
  --z-nav:    100;
  --z-modal:  200;
  --z-cookie: 300;

  /* Layout */
  --max-w: 1240px;
  --nav-h: 76px;
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  background-color: var(--clr-dark);
}

body {
  font-family: var(--ff-body);
  font-size: var(--fs-base);
  line-height: 1.65;
  color: var(--clr-text);
  background: var(--clr-bg);
  overflow-x: hidden;
}

img, video { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }
input, textarea, select { font: inherit; }
svg { display: block; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}

/* ============================================================
   3. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4, h5 {
  font-family: var(--ff-display);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.display-heading {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
}

.section-label {
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--clr-accent);
}

.section-title {
  font-size: var(--fs-3xl);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.section-subtitle {
  font-size: var(--fs-md);
  color: var(--clr-muted);
  line-height: 1.7;
  max-width: 54ch;
}

p { line-height: 1.75; }

/* ============================================================
   4. UTILITIES & LAYOUT
   ============================================================ */
.container {
  width: 100%;
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
}

.section { padding-block: var(--section-py); }
.section--dark { background: var(--clr-dark); color: var(--clr-white); }
.section--alt  { background: var(--clr-bg-alt); }

/* Prevent fixed nav from covering section content on anchor scroll */
section[id] {
  scroll-margin-top: calc(var(--nav-h) + 1rem);
}

.section-header {
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-header--center {
  text-align: center;
}

.section-header--center .section-subtitle {
  margin-inline: auto;
}

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-12); align-items: center; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-8); }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: var(--sp-8); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ============================================================
   5. ANIMATION SYSTEM
   ============================================================ */
[data-animate] {
  opacity: 0;
  transition:
    opacity 0.7s var(--ease-out-expo),
    transform 0.7s var(--ease-out-expo);
}

[data-animate="fade-up"]    { transform: translateY(40px); }
[data-animate="fade-down"]  { transform: translateY(-30px); }
[data-animate="fade-left"]  { transform: translateX(-40px); }
[data-animate="fade-right"] { transform: translateX(40px); }
[data-animate="scale-up"]   { transform: scale(0.94); }
[data-animate="fade"]       { transform: none; }

[data-animate].in-view {
  opacity: 1;
  transform: none;
}

[data-delay="100"] { transition-delay: 100ms; }
[data-delay="150"] { transition-delay: 150ms; }
[data-delay="200"] { transition-delay: 200ms; }
[data-delay="300"] { transition-delay: 300ms; }
[data-delay="400"] { transition-delay: 400ms; }
[data-delay="500"] { transition-delay: 500ms; }
[data-delay="600"] { transition-delay: 600ms; }

/* ============================================================
   6. COMPONENTS
   ============================================================ */

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  padding: 0.875rem 2rem;
  border-radius: var(--r-full);
  font-size: var(--fs-sm);
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background var(--t-base), color var(--t-base), box-shadow var(--t-base), transform var(--t-base);
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--clr-accent);
  outline-offset: 3px;
}

.btn--primary {
  background: var(--clr-accent);
  color: var(--clr-white);
  box-shadow: var(--shadow-accent);
}
.btn--primary:hover {
  background: var(--clr-accent-h);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(13,148,136,.35);
}
.btn--primary:active { transform: translateY(0); }

.btn--ghost {
  background: transparent;
  color: var(--clr-white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn--ghost:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.6);
}

.btn--ghost-dark {
  background: transparent;
  color: var(--clr-text);
  border: 1.5px solid var(--clr-border);
}
.btn--ghost-dark:hover {
  border-color: var(--clr-accent);
  color: var(--clr-accent);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-4);
  align-items: center;
}

/* --- Tag / Badge --- */
.tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: var(--r-full);
  font-size: var(--fs-xs);
  font-weight: 600;
  background: rgba(13,148,136,.10);
  color: var(--clr-accent);
}

/* --- Section label with line --- */
.label-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
}
.label-row::before {
  content: '';
  display: block;
  width: 2rem;
  height: 2px;
  background: var(--clr-accent);
  flex-shrink: 0;
}

/* ============================================================
   7. NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: var(--z-nav);
  height: var(--nav-h);
  overflow: visible;
  transition: background var(--t-slow), box-shadow var(--t-slow), backdrop-filter var(--t-slow);
}

.nav.scrolled {
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 2px 24px rgba(0,0,0,.1);
}

/* When scrolled: real logo colors, dark links */
.nav.scrolled .nav__link {
  color: rgba(17,24,39,.75);
}
.nav.scrolled .nav__link:hover {
  color: var(--clr-dark);
}
.nav.scrolled .nav__logo img {
  filter: none !important;
}
.nav.scrolled .nav__burger span {
  background: var(--clr-dark);
}

.nav__inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-8);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav__logo-mark {
  width: 40px;
  height: 40px;
  background: var(--clr-accent);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: var(--fs-lg);
}

.nav__logo-text {
  color: var(--clr-white);
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.1;
}

.nav__logo-text span {
  display: block;
  font-family: var(--ff-body);
  font-size: var(--fs-xs);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.nav__link {
  color: rgba(255,255,255,.75);
  font-size: var(--fs-sm);
  font-weight: 500;
  transition: color var(--t-fast);
  position: relative;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0; right: 0;
  height: 2px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-base);
}

.nav__link:hover { color: var(--clr-white); }
.nav__link:hover::after { transform: scaleX(1); }

.nav__cta { margin-left: var(--sp-4); }

.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
}

.nav__burger span {
  display: block;
  height: 2px;
  background: var(--clr-white);
  border-radius: 2px;
  transition: transform var(--t-base), opacity var(--t-fast);
}

.nav__burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__burger.open span:nth-child(2) { opacity: 0; }
.nav__burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav__mobile {
  position: fixed;
  top: var(--nav-h); left: 0; right: 0;
  background: rgba(255,255,255,.98);
  backdrop-filter: blur(16px);
  padding: var(--sp-8) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--sp-6);
  transform: translateY(-110%);
  transition: transform var(--t-slow);
  z-index: calc(var(--z-nav) - 1);
  border-top: 1px solid var(--clr-border);
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
}

.nav__mobile.open {
  transform: translateY(0);
}

.nav__mobile .nav__link {
  font-size: var(--fs-lg);
  padding-block: var(--sp-2);
  color: var(--clr-text);
}
.nav__mobile .nav__link:hover { color: var(--clr-accent); }

/* ============================================================
   8. HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--clr-dark);
  color: var(--clr-white);
}

.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.hero__bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(1.05);
  animation: hero-drift 20s ease-in-out infinite alternate;
}

@keyframes hero-drift {
  from { transform: scale(1.05) translateX(0); }
  to   { transform: scale(1.05) translateX(-2%); }
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    110deg,
    rgba(13,27,42,0.92) 0%,
    rgba(13,27,42,0.78) 50%,
    rgba(13,27,42,0.55) 100%
  );
}

/* Decorative accent bar */
.hero__accent-bar {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--clr-accent) 0%, transparent 100%);
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 2;
  padding-block: calc(var(--nav-h) + var(--sp-20)) var(--sp-24);
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  width: 100%;
}

.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.2s forwards;
}

.hero__eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
  flex-shrink: 0;
}

.hero__eyebrow-text {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.65);
}

.hero__heading {
  font-size: var(--fs-hero);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 16ch;
  margin-bottom: var(--sp-6);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.35s forwards;
}

.hero__heading em {
  font-style: normal;
  color: var(--clr-accent);
}

.hero__subtext {
  font-size: var(--fs-md);
  color: rgba(255,255,255,.7);
  max-width: 50ch;
  line-height: 1.75;
  margin-bottom: var(--sp-10);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.5s forwards;
}

.hero__actions {
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.65s forwards;
  margin-bottom: var(--sp-16);
}

.hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-6);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.8s forwards;
}

.hero__trust-item {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,.55);
  font-size: var(--fs-sm);
}

.hero__trust-item svg {
  color: var(--clr-accent);
  flex-shrink: 0;
}

.hero__scroll {
  position: absolute;
  bottom: var(--sp-8);
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  color: rgba(255,255,255,.4);
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  animation: fade 1s ease 1.2s forwards;
}

.hero__scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(to bottom, rgba(255,255,255,.4), transparent);
  animation: scroll-pulse 2s ease-in-out infinite;
}

@keyframes scroll-pulse {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.6); opacity: 0.5; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ============================================================
   9. ABOUT
   ============================================================ */
.about__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: center;
}

.about__visual {
  position: relative;
}

.about__img {
  border-radius: var(--r-lg);
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.about__img-badge {
  position: absolute;
  bottom: -var(--sp-6);
  right: -var(--sp-6);
  bottom: -1.5rem;
  right: -1.5rem;
  background: var(--clr-accent);
  color: var(--clr-white);
  border-radius: var(--r-lg);
  padding: var(--sp-6) var(--sp-8);
  box-shadow: var(--shadow-lg);
  text-align: center;
  min-width: 140px;
}

.about__img-badge strong {
  display: block;
  font-size: var(--fs-4xl);
  font-family: var(--ff-display);
  font-weight: 700;
  line-height: 1;
}

.about__img-badge span {
  font-size: var(--fs-xs);
  opacity: .85;
  font-weight: 500;
  letter-spacing: 0.04em;
}

.about__content { display: flex; flex-direction: column; gap: var(--sp-6); }

.about__text {
  color: var(--clr-muted);
  font-size: var(--fs-md);
}

.about__stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
  padding: var(--sp-6) 0;
  border-top: 1px solid var(--clr-border);
  border-bottom: 1px solid var(--clr-border);
}

.about__stat strong {
  display: block;
  font-size: var(--fs-2xl);
  font-family: var(--ff-display);
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
}

.about__stat span {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  font-weight: 500;
  margin-top: var(--sp-1);
  display: block;
}

.about__values {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.about__value {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
}

.about__value-icon {
  width: 32px;
  height: 32px;
  background: rgba(13,148,136,.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.about__value-title {
  font-weight: 600;
  font-size: var(--fs-base);
  margin-bottom: 2px;
}
.about__value-desc {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  line-height: 1.6;
}

/* ============================================================
   10. SERVICES
   ============================================================ */
.services__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
}

.service-card {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: box-shadow var(--t-slow), transform var(--t-slow), border-color var(--t-slow);
  cursor: default;
  position: relative;
  overflow: hidden;
}

.service-card::before {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: var(--clr-accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-slow);
}

.service-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
  border-color: transparent;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card__icon {
  width: 52px;
  height: 52px;
  background: rgba(13,148,136,.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  margin-bottom: var(--sp-6);
  transition: background var(--t-base);
}

.service-card:hover .service-card__icon {
  background: var(--clr-accent);
  color: var(--clr-white);
}

.service-card__title {
  font-size: var(--fs-lg);
  font-weight: 700;
  margin-bottom: var(--sp-3);
  font-family: var(--ff-body);
}

.service-card__desc {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ============================================================
   11. PROJECTS / REFERENZEN
   ============================================================ */
.projects__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-4);
}

.project-card {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  cursor: pointer;
}

.project-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out-expo);
}

.project-card:hover .project-card__img {
  transform: scale(1.06);
}

.project-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(13,27,42,0.85) 0%,
    rgba(13,27,42,0.20) 50%,
    transparent 100%
  );
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--sp-6);
  transition: background var(--t-slow);
}

.project-card:hover .project-card__overlay {
  background: linear-gradient(
    to top,
    rgba(13,27,42,0.92) 0%,
    rgba(13,27,42,0.50) 60%,
    rgba(13,27,42,0.15) 100%
  );
}

.project-card__tag {
  align-self: flex-start;
  margin-bottom: auto;
  background: var(--clr-accent);
  color: var(--clr-white);
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  border-radius: var(--r-sm);
}

.project-card__title {
  color: var(--clr-white);
  font-size: var(--fs-lg);
  font-weight: 700;
  font-family: var(--ff-display);
  margin-bottom: var(--sp-1);
}

.project-card__location {
  display: flex;
  align-items: center;
  gap: 4px;
  color: rgba(255,255,255,.65);
  font-size: var(--fs-xs);
}

.project-card__desc {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.75);
  margin-top: var(--sp-2);
  line-height: 1.6;
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--t-slow);
}

.project-card:hover .project-card__desc {
  max-height: 100px;
}

/* ============================================================
   12. PROCESS / ABLAUF
   ============================================================ */
.process__steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--sp-8);
  position: relative;
}

/* Connector line between steps */
.process__steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(12.5% + 24px);
  right: calc(12.5% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--clr-accent) 0%, var(--clr-border) 100%);
  z-index: 0;
}

.process-step {
  position: relative;
  z-index: 1;
}

.process-step__number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--clr-bg-alt);
  border: 2px solid var(--clr-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--ff-display);
  font-size: var(--fs-xl);
  font-weight: 700;
  color: var(--clr-muted);
  margin-bottom: var(--sp-6);
  transition: background var(--t-slow), border-color var(--t-slow), color var(--t-slow);
}

.process-step--active .process-step__number,
.process-step:first-child .process-step__number {
  background: var(--clr-accent);
  border-color: var(--clr-accent);
  color: var(--clr-white);
}

.process-step__title {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: var(--sp-2);
  font-family: var(--ff-body);
}

.process-step__desc {
  font-size: var(--fs-sm);
  color: var(--clr-muted);
  line-height: 1.7;
}

/* ============================================================
   13. TESTIMONIALS
   ============================================================ */
.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--sp-6);
  margin-bottom: var(--sp-16);
}

.testimonial-card {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-lg);
  padding: var(--sp-8);
  transition: background var(--t-slow), border-color var(--t-slow);
}

.testimonial-card:hover {
  background: rgba(255,255,255,.09);
  border-color: rgba(255,255,255,.18);
}

.testimonial-card__stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--sp-4);
  color: var(--clr-accent);
}

.testimonial-card__quote {
  font-size: var(--fs-md);
  line-height: 1.75;
  color: rgba(255,255,255,.85);
  margin-bottom: var(--sp-6);
  font-style: italic;
}

.testimonial-card__author {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
}

.testimonial-card__avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(13,148,136,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--clr-accent);
  font-size: var(--fs-sm);
  flex-shrink: 0;
}

.testimonial-card__name {
  font-weight: 600;
  font-size: var(--fs-sm);
  color: var(--clr-white);
}
.testimonial-card__location {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.45);
}

/* Partners row */
.partners {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-12);
  text-align: center;
}

.partners__label {
  font-size: var(--fs-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,.35);
  margin-bottom: var(--sp-8);
}

.partners__stage {
  position: relative;
  height: 4rem;
  width: 100%;
  overflow: hidden;
}

.partners__name {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.4rem, 4vw, 2.25rem);
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fff;
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  pointer-events: none;
  white-space: nowrap;
  text-shadow: 0 0 60px rgba(13,148,136,.55);
}

.partners__name.is-active {
  opacity: 1;
  transform: translateY(0);
}

.partners__name.is-exit {
  opacity: 0;
  transform: translateY(-28px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.partners__dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: var(--sp-6);
}

.partners__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,.22);
  cursor: pointer;
  padding: 0;
  transition: background var(--t-base), transform var(--t-base);
}

.partners__dot.is-active {
  background: var(--clr-accent);
  transform: scale(1.5);
}

/* ============================================================
   14. CONTACT
   ============================================================ */
.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-16);
  align-items: start;
}

.contact__info { display: flex; flex-direction: column; gap: var(--sp-8); }

.contact__headline {
  font-size: var(--fs-3xl);
}

.contact__promise {
  font-size: var(--fs-md);
  color: var(--clr-muted);
  line-height: 1.75;
}

.contact__items {
  display: flex;
  flex-direction: column;
  gap: var(--sp-4);
}

.contact__item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-4);
}

.contact__item-icon {
  width: 44px;
  height: 44px;
  background: rgba(13,148,136,.08);
  border-radius: var(--r-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  flex-shrink: 0;
}

.contact__item-label {
  font-size: var(--fs-xs);
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--clr-muted);
  margin-bottom: 2px;
}

.contact__item-value {
  font-size: var(--fs-base);
  font-weight: 500;
  color: var(--clr-text);
}

.contact__item-value a {
  color: var(--clr-text);
  transition: color var(--t-fast);
}
.contact__item-value a:hover { color: var(--clr-accent); }

/* Form */
.contact-form {
  background: var(--clr-white);
  border: 1px solid var(--clr-border);
  border-radius: var(--r-xl);
  padding: var(--sp-10);
  box-shadow: var(--shadow-md);
}

.form__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sp-4);
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.form-field--full { grid-column: 1 / -1; }

.form-field label {
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--clr-text);
}

.form-field input,
.form-field textarea,
.form-field select {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--clr-border);
  border-radius: var(--r-md);
  font-size: var(--fs-sm);
  color: var(--clr-text);
  background: var(--clr-bg);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
  appearance: none;
}

.form-field input:focus,
.form-field textarea:focus,
.form-field select:focus {
  outline: none;
  border-color: var(--clr-accent);
  box-shadow: 0 0 0 3px rgba(13,148,136,.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 140px;
}

.form__privacy {
  display: flex;
  gap: var(--sp-3);
  align-items: flex-start;
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  line-height: 1.6;
  margin-top: var(--sp-2);
  cursor: pointer;
}

.form__privacy input[type="checkbox"] {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  accent-color: var(--clr-accent);
  appearance: auto;
  -webkit-appearance: checkbox;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.form__privacy a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.form__submit { width: 100%; justify-content: center; border-radius: var(--r-md); }

.form__success {
  display: none;
  text-align: center;
  padding: var(--sp-10);
}

.form__success-icon {
  width: 64px;
  height: 64px;
  background: rgba(13,148,136,.08);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  margin: 0 auto var(--sp-4);
}

/* ============================================================
   15. FOOTER
   ============================================================ */
.footer {
  background: var(--clr-dark);
  color: rgba(255,255,255,.6);
  padding-block: var(--sp-16) var(--sp-10);
}

.footer__top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--sp-12);
  padding-bottom: var(--sp-12);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin-bottom: var(--sp-8);
}

.footer__brand {}

.footer__desc {
  font-size: var(--fs-sm);
  line-height: 1.75;
  margin-top: var(--sp-4);
  max-width: 36ch;
}

.footer__col-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--clr-white);
  margin-bottom: var(--sp-4);
}

.footer__nav {
  display: flex;
  flex-direction: column;
  gap: var(--sp-2);
}

.footer__nav a {
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.55);
  transition: color var(--t-fast);
  padding-block: 2px;
}
.footer__nav a:hover { color: var(--clr-white); }

.footer__contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  font-size: var(--fs-sm);
  color: rgba(255,255,255,.55);
  margin-bottom: var(--sp-2);
}
.footer__contact-item svg { flex-shrink: 0; margin-top: 2px; }
.footer__contact-item a { color: rgba(255,255,255,.55); transition: color var(--t-fast); }
.footer__contact-item a:hover { color: var(--clr-white); }

.footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--sp-4);
  font-size: var(--fs-xs);
}

.footer__legal {
  display: flex;
  gap: var(--sp-6);
}
.footer__legal a { color: rgba(255,255,255,.45); transition: color var(--t-fast); }
.footer__legal a:hover { color: var(--clr-white); }

.footer__copyright { color: rgba(255,255,255,.35); }

/* ============================================================
   16. COOKIE BANNER
   ============================================================ */
.cookie-banner {
  position: fixed;
  bottom: var(--sp-6);
  left: var(--sp-6);
  right: var(--sp-6);
  max-width: 680px;
  margin-inline: auto;
  background: var(--clr-dark-800);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--r-xl);
  padding: var(--sp-6);
  box-shadow: 0 24px 64px rgba(0,0,0,.4);
  z-index: var(--z-cookie);
  display: flex;
  gap: var(--sp-6);
  align-items: flex-start;
  transform: translateY(120%);
  transition: transform 0.6s var(--ease-out-expo);
}

.cookie-banner.visible {
  transform: translateY(0);
}

.cookie-banner__icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.cookie-banner__content { flex: 1; }

.cookie-banner__title {
  font-weight: 700;
  color: var(--clr-white);
  font-size: var(--fs-sm);
  margin-bottom: var(--sp-2);
}

.cookie-banner__text {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.6);
  line-height: 1.65;
}

.cookie-banner__text a {
  color: var(--clr-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cookie-banner__actions {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  flex-wrap: wrap;
}

.cookie-banner .btn {
  padding: 0.6rem 1.25rem;
  font-size: var(--fs-xs);
}

/* ============================================================
   17. LEGAL PAGES (Impressum / Datenschutz)
   ============================================================ */
.legal-page {
  padding-top: calc(var(--nav-h) + var(--sp-16));
  padding-bottom: var(--sp-24);
}

.legal-page__header {
  background: var(--clr-dark);
  color: var(--clr-white);
  padding-block: var(--sp-16);
  margin-bottom: var(--sp-16);
}

.legal-content {
  max-width: 760px;
}

.legal-content h2 {
  font-size: var(--fs-xl);
  margin-top: var(--sp-10);
  margin-bottom: var(--sp-3);
}

.legal-content h3 {
  font-size: var(--fs-md);
  font-family: var(--ff-body);
  font-weight: 600;
  margin-top: var(--sp-6);
  margin-bottom: var(--sp-2);
}

.legal-content p,
.legal-content li {
  font-size: var(--fs-base);
  color: var(--clr-muted);
  line-height: 1.8;
  margin-bottom: var(--sp-4);
}

.legal-content ul {
  list-style: disc;
  padding-left: var(--sp-6);
}

/* ============================================================
   18. RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .services__grid { grid-template-columns: repeat(2, 1fr); }
  .projects__grid { grid-template-columns: repeat(2, 1fr); }
  .process__steps { grid-template-columns: repeat(2, 1fr); }
  .process__steps::before { display: none; }
  .footer__top { grid-template-columns: 1fr 1fr; gap: var(--sp-8); }
  .about__grid { gap: var(--sp-10); }
  .testimonials__grid { grid-template-columns: repeat(2, 1fr); }

  .nav__links { gap: var(--sp-5); }
}

/* Hide nav CTA before it gets squeezed at mid-sizes */
@media (max-width: 1140px) {
  .nav__cta { display: none; }
}

@media (max-width: 768px) {
  :root { --nav-h: 68px; }

  .nav__links, .nav__cta { display: none; }
  .nav__burger { display: flex; }

  .about__grid { grid-template-columns: 1fr; }
  .about__img { height: 320px; }
  .about__img-badge { right: var(--sp-4); bottom: var(--sp-4); }
  .about__stats { grid-template-columns: repeat(3, 1fr); }

  .services__grid { grid-template-columns: 1fr; }

  .projects__grid { grid-template-columns: 1fr 1fr; }

  .process__steps { grid-template-columns: 1fr; gap: var(--sp-6); }

  .testimonials__grid { grid-template-columns: 1fr; }

  .contact__grid { grid-template-columns: 1fr; gap: var(--sp-10); }

  .footer__top { grid-template-columns: 1fr; gap: var(--sp-8); }
  .footer__bottom { flex-direction: column; text-align: center; }

  .cookie-banner {
    left: var(--sp-4);
    right: var(--sp-4);
    bottom: var(--sp-4);
    flex-direction: column;
    gap: var(--sp-3);
  }

  .form__grid { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }

  .hero__trust { gap: var(--sp-4); }
}

@media (max-width: 480px) {
  .projects__grid { grid-template-columns: 1fr; }
  .contact-form { padding: var(--sp-6); }
  .btn-group { flex-direction: column; align-items: stretch; text-align: center; }
  .btn-group .btn { justify-content: center; }
}

/* ============================================================
   19. SERVICE CARD IMAGES
   ============================================================ */
.service-card__img-wrap {
  height: 180px;
  overflow: hidden;
  border-radius: var(--r-md) var(--r-md) 0 0;
  margin: calc(-1 * var(--sp-8)) calc(-1 * var(--sp-8)) var(--sp-6);
  position: relative;
}

.service-card__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.55s var(--ease-out-expo);
  display: block;
}

.service-card:hover .service-card__img {
  transform: scale(1.06);
}

/* ============================================================
   20. HORIZONTAL IMAGE STRIP
   ============================================================ */
.img-strip {
  display: flex;
  height: 300px;
  gap: 3px;
  overflow: hidden;
  background: var(--clr-dark);
}

.img-strip__item {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
}

.img-strip__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out-expo), opacity 0.3s ease;
  opacity: 0.88;
}

.img-strip__item:hover img {
  transform: scale(1.06);
  opacity: 1;
}

.img-strip__item::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,27,42,.35) 0%, transparent 60%);
  pointer-events: none;
}

@media (max-width: 768px) {
  .img-strip { height: 200px; }
  .img-strip__item:nth-child(n+4) { display: none; }
}

@media (max-width: 480px) {
  .img-strip__item:nth-child(n+3) { display: none; }
}

/* ============================================================
   21. ABOUT — THREE-IMAGE VISUAL COLUMN
   ============================================================ */
.about__visual-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: auto auto;
  gap: var(--sp-3);
}

.about__visual-main {
  grid-column: 1 / -1;
  border-radius: var(--r-lg);
  overflow: hidden;
  position: relative;
}

.about__visual-main img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out-expo);
}

.about__visual-main:hover img { transform: scale(1.03); }

.about__visual-sub {
  border-radius: var(--r-md);
  overflow: hidden;
  position: relative;
}

.about__visual-sub img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  transition: transform 0.55s var(--ease-out-expo);
}

.about__visual-sub:hover img { transform: scale(1.05); }

/* Badge repositioned for grid layout */
.about__visual-grid .about__img-badge {
  bottom: var(--sp-4);
  right: var(--sp-4);
  position: absolute;
}

@media (max-width: 768px) {
  .about__visual-main img { height: 240px; }
  .about__visual-sub img  { height: 120px; }
}

/* ============================================================
   22. DYNAMIC GALLERY
   ============================================================ */
.gallery-grid {
  columns: 3 280px;
  column-gap: var(--sp-4);
  margin-bottom: var(--sp-10);
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  position: relative;
  background: var(--clr-bg-alt);
  min-height: 200px;
}

.gallery-item img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 0.5s var(--ease-out-expo);
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item__overlay {
  position: absolute;
  inset: 0;
  background: rgba(13,27,42,0);
  transition: background 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-item:hover .gallery-item__overlay {
  background: rgba(13,27,42,0.3);
}

.gallery-item__icon {
  color: white;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: scale(0.8);
  background: rgba(255,255,255,.15);
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.gallery-item:hover .gallery-item__icon {
  opacity: 1;
  transform: scale(1);
}

/* Loading skeleton */
.gallery-skeleton {
  break-inside: avoid;
  margin-bottom: var(--sp-4);
  border-radius: var(--r-lg);
  background: linear-gradient(
    90deg,
    var(--clr-bg-alt) 25%,
    var(--clr-border) 50%,
    var(--clr-bg-alt) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  aspect-ratio: 4/3;
}

/* Alternate heights for more natural masonry feel */
.gallery-skeleton:nth-child(3n+1) { aspect-ratio: 4/3; }
.gallery-skeleton:nth-child(3n+2) { aspect-ratio: 3/4; }
.gallery-skeleton:nth-child(3n)   { aspect-ratio: 1/1; }

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

.gallery-actions {
  text-align: center;
  margin-top: var(--sp-8);
}

.gallery-empty {
  text-align: center;
  padding: var(--sp-16) 0;
  color: var(--clr-muted);
}

/* ============================================================
   23. LIGHTBOX
   ============================================================ */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(5, 10, 18, 0.95);
  z-index: var(--z-cookie);  /* above cookie banner */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
  backdrop-filter: blur(6px);
}

.lightbox.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox__img-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  max-width: calc(100vw - 160px);
  max-height: calc(100vh - 100px);
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  border-radius: var(--r-md);
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  transition: opacity 0.2s ease;
  display: block;
}

.lightbox__img.loading {
  opacity: 0.3;
}

.lightbox__close {
  position: absolute;
  top: var(--sp-6);
  right: var(--sp-6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-fast);
}
.lightbox__close:hover {
  background: rgba(255,255,255,.2);
  transform: scale(1.05);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background var(--t-fast), transform var(--t-base);
}
.lightbox__nav:hover {
  background: rgba(255,255,255,.2);
  transform: translateY(-50%) scale(1.05);
}
.lightbox__prev { left: var(--sp-6); }
.lightbox__next { right: var(--sp-6); }

.lightbox__counter {
  position: absolute;
  bottom: var(--sp-6);
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,.6);
  font-size: var(--fs-xs);
  font-family: var(--ff-body);
  letter-spacing: 0.06em;
  background: rgba(0,0,0,.4);
  padding: 0.3rem 0.8rem;
  border-radius: var(--r-full);
}

@media (max-width: 768px) {
  .lightbox__img-wrap { max-width: calc(100vw - 20px); }
  .lightbox__nav { display: none; }
  .gallery-grid { columns: 2 200px; }
}

@media (max-width: 480px) {
  .gallery-grid { columns: 1; }
}

/* ============================================================
   25. HERO — FULL-SCREEN BACKGROUND (LN-TEAM INSPIRED)
   ============================================================ */

/* Base hero: full-screen background image */
.hero {
  position: relative;
  height: 100svh;
  min-height: 640px;
  background-color: var(--clr-dark);
  background-image: url('../hero-bg.png');
  background-size: cover;
  background-position: center 40%;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: var(--clr-white);
  /* Undo section 8 defaults */
  align-items: unset;
  padding: 0;
}

@media (max-width: 767px) {
  .hero { background-attachment: scroll; background-position: center center; }
}

/* Layer 1: dark base overlay across full hero */
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: rgba(10,14,20,.55);
  pointer-events: none;
  z-index: 1;
}

/* Layer 2: directional gradient (darker left for text) + bottom vignette */
.hero::after {
  content: '';
  position: absolute; inset: 0;
  background:
    linear-gradient(to right, rgba(10,14,20,.75) 0%, rgba(10,14,20,.45) 55%, rgba(10,14,20,.15) 80%, transparent 100%),
    linear-gradient(to top, rgba(10,14,20,.88) 0%, transparent 35%);
  pointer-events: none;
  z-index: 1;
}

/* Grid texture on the left half */
.hero__grid-tex {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 54px 54px;
  -webkit-mask-image: linear-gradient(to right, black 0%, black 42%, transparent 80%);
  mask-image: linear-gradient(to right, black 0%, black 42%, transparent 80%);
  pointer-events: none;
  z-index: 1;
}

/* Vertical terracotta accent line at the edge of the text area */
.hero__edge-accent {
  position: absolute;
  top: 14%; bottom: 14%;
  right: 37%;
  width: 3px;
  background: linear-gradient(to bottom, transparent, var(--clr-accent) 28%, var(--clr-accent) 72%, transparent);
  opacity: .5;
  pointer-events: none;
  z-index: 2;
}

/* ── Inner layout: text left + card right ────────────────── */
.hero__inner {
  position: relative;
  z-index: 3;
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 288px;
  align-content: center;
  align-items: center;
  gap: var(--sp-10);
  max-width: var(--max-w);
  margin-inline: auto;
  width: 100%;
  padding-inline: var(--sp-6);
  padding-top: calc(var(--nav-h) + var(--sp-6));
  padding-bottom: var(--sp-6);
}

/* ── Left: text content ──────────────────────────────────── */
.hero__content {
  display: flex;
  flex-direction: column;
  gap: clamp(1rem, 2vh, 1.6rem);
}

/* Eyebrow */
.hero__eyebrow {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  opacity: 0;
  animation: fade-up 0.8s var(--ease-out-expo) 0.15s forwards;
}

.hero__eyebrow-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--clr-accent);
  flex-shrink: 0;
  box-shadow: 0 0 12px rgba(13,148,136,.70);
}

.hero__eyebrow-text {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(255,255,255,.7);
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}

/* Heading */
.hero__heading {
  font-size: clamp(2.8rem, 5.5vw, 4.75rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.05;
  max-width: 14ch;
  margin: 0;
  text-shadow: 0 2px 24px rgba(0,0,0,.85), 0 1px 6px rgba(0,0,0,.9);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.3s forwards;
}

.hero__heading em {
  font-style: normal;
  color: var(--clr-accent);
}

/* Subtext */
.hero__subtext {
  font-size: var(--fs-base);
  color: rgba(255,255,255,.75);
  max-width: 50ch;
  line-height: 1.75;
  margin: 0;
  text-shadow: 0 1px 12px rgba(0,0,0,.8);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.45s forwards;
}

/* CTA row */
.hero__actions {
  margin: 0;
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.6s forwards;
}

/* Trust badges */
.hero__trust-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--sp-4);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.75s forwards;
}

.hero__trust-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__trust-stat strong {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-white);
  line-height: 1;
  text-shadow: 0 1px 8px rgba(0,0,0,.7);
}

.hero__trust-stat span {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.55);
  font-weight: 500;
  letter-spacing: 0.04em;
}

.hero__trust-sep {
  width: 1px;
  height: 30px;
  background: rgba(255,255,255,.2);
  flex-shrink: 0;
}

/* Legacy — keep hidden */
.hero__trust-item { display: none; }

/* Suppress legacy elements no longer in markup */
.hero__center-bar,
.hero__scroll,
.hero__trust,
.hero__stats,
.hero__phone-link,
.hero__media-col,
.hero__media-main,
.hero__media-grid,
.hero__media-sub,
.hero__badge { display: none; }

/* ── Right: glassmorphism contact card ───────────────────── */
.hero__contact-card {
  background: rgba(10,14,20,.82);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(0,0,0,.55);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.55s forwards;
}

.hero__card-accent-bar {
  height: 3px;
  background: linear-gradient(to right, var(--clr-accent), rgba(13,148,136,.25));
}

.hero__card-inner {
  padding: var(--sp-6);
}

.hero__card-title {
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.5);
  margin-bottom: var(--sp-5);
}

.hero__card-row {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  margin-bottom: var(--sp-3);
  color: var(--clr-white);
  transition: color var(--t-fast);
}
.hero__card-row:last-of-type { margin-bottom: 0; }
.hero__card-row:hover { color: var(--clr-accent); }

.hero__card-icon {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  background: rgba(13,148,136,.18);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-accent);
  flex-shrink: 0;
  transition: background var(--t-base);
}

.hero__card-icon--alt {
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.65);
}

.hero__card-row:hover .hero__card-icon { background: rgba(13,148,136,.35); }
.hero__card-row:hover .hero__card-icon--alt { background: rgba(255,255,255,.14); color: var(--clr-white); }

.hero__card-sub {
  display: block;
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.45);
  margin-bottom: 1px;
  font-weight: 500;
}

.hero__card-val {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 600;
  transition: color var(--t-fast);
}
.hero__card-row:hover .hero__card-val { color: var(--clr-accent); }

.hero__card-divider {
  height: 1px;
  background: rgba(255,255,255,.08);
  margin-block: var(--sp-3);
}

.hero__card-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  background: var(--clr-accent);
  color: var(--clr-white);
  padding: 0.75rem 1rem;
  border-radius: var(--r-md);
  font-size: var(--fs-xs);
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: background var(--t-base), transform var(--t-base);
}
.hero__card-cta:hover { background: var(--clr-accent-h); transform: translateY(-1px); }

/* ── Bottom stats bar ────────────────────────────────────── */
.hero__bottom-bar {
  position: relative;
  z-index: 3;
  border-top: 1px solid rgba(255,255,255,.12);
  background: rgba(10,14,20,.60);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  animation: fade-up 0.9s var(--ease-out-expo) 0.9s forwards;
}

.hero__bottom-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--sp-6);
  padding-block: clamp(var(--sp-3), 1.5vh, var(--sp-5));
  display: flex;
  align-items: center;
  gap: var(--sp-8);
}

.hero__stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stat strong {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-accent);
  line-height: 1;
}

.hero__stat span {
  font-size: var(--fs-xs);
  color: rgba(255,255,255,.5);
  font-weight: 500;
}

.hero__stat-sep {
  width: 1px;
  height: 24px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .hero__inner { grid-template-columns: 1fr 260px; gap: var(--sp-6); }
  .hero__edge-accent { right: 28%; }
}

@media (max-width: 900px) {
  .hero__contact-card { display: none; }
  .hero__inner { grid-template-columns: 1fr; }
  .hero__edge-accent { display: none; }
}

@media (max-width: 768px) {
  .hero__grid-tex {
    -webkit-mask-image: linear-gradient(to right, black 0%, transparent 65%);
    mask-image: linear-gradient(to right, black 0%, transparent 65%);
  }
  .hero__inner {
    padding-top: calc(var(--nav-h) + var(--sp-6));
    align-content: start;
    align-items: start;
  }
  .hero__bottom-inner { gap: var(--sp-5); flex-wrap: wrap; }
}

@media (max-width: 480px) {
  .hero__trust-row { gap: var(--sp-3); }
  .hero__bottom-inner { gap: var(--sp-3); }
}

/* ============================================================
   26. HERO HEADING — PER-LETTER ANIMATION (unchanged)
   ============================================================ */

/*
 * When JS splits the heading into .hero__letter spans, the parent
 * heading must stop animating as a whole so letters handle it.
 */
.hero__heading--split {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

/* Each letter — blur + rise, triggered via animation-delay set in JS */
.hero__letter {
  display: inline-block;
  will-change: opacity, transform, filter;
  opacity: 0;
  animation: letter-rise 0.6s var(--ease-out-expo) forwards;
  /* delay is set inline per-letter by JS */
}

/* The italic "bleibt." span — same motion but tiny scale for emphasis */
.hero__letter--accent {
  animation-name: letter-rise-accent;
  animation-duration: 0.65s;
}

@keyframes letter-rise {
  from {
    opacity: 0;
    transform: translateY(26px);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@keyframes letter-rise-accent {
  from {
    opacity: 0;
    transform: translateY(26px) scale(0.84);
    filter: blur(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

/* ── Eyebrow dot pulse animation ─────────────────────────── */
.hero__eyebrow-dot {
  animation: dot-pulse 2.5s ease-in-out 1.2s infinite !important;
}

@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13,148,136,.7), 0 0 12px rgba(13,148,136,.60); }
  50%       { box-shadow: 0 0 0 6px rgba(13,148,136,.0), 0 0 18px rgba(13,148,136,.40); }
}

/* ── Hero image drift (parallax on bg) ────────────────────── */
@keyframes hero-bg-drift {
  0%   { background-position: center 40%; }
  50%  { background-position: center 44%; }
  100% { background-position: center 40%; }
}

.hero { animation: hero-bg-drift 18s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
}

/* Respect prefers-reduced-motion — show instantly, no animation */
@media (prefers-reduced-motion: reduce) {
  .hero__letter,
  .hero__letter--accent {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    animation: none !important;
  }
}

/* ============================================================
   19. REFERENCES PREVIEW (index.html)
   ============================================================ */

/* City cards grid on the preview section */
.ref-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--sp-6);
}

.ref-preview__city {
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--clr-bg);
  border: 1px solid var(--clr-border);
  transition: box-shadow var(--t-base), transform var(--t-base);
  cursor: pointer;
}

.ref-preview__city:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.ref-preview__imgs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.ref-preview__imgs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out-expo);
}

.ref-preview__city:hover .ref-preview__imgs img { transform: scale(1.04); }

.ref-preview__imgs img:first-child:last-child {
  grid-column: 1 / -1;
}

.ref-preview__footer {
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.ref-preview__name {
  font-family: var(--ff-display);
  font-size: var(--fs-lg);
  font-weight: 700;
  color: var(--clr-text);
}

.ref-preview__count {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  white-space: nowrap;
}

.ref-preview__arrow {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  color: var(--clr-accent);
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  transition: gap var(--t-fast);
}

.ref-preview__arrow:hover { gap: var(--sp-3); }

/* Skeleton states */
.ref-preview__skeleton,
.ba-preview__skeleton {
  border-radius: var(--r-lg);
  background: linear-gradient(90deg, var(--clr-bg-alt) 25%, #e9ebee 50%, var(--clr-bg-alt) 75%);
  background-size: 200% 100%;
  animation: ref-shimmer 1.4s infinite;
  aspect-ratio: 4/3;
}

@keyframes ref-shimmer { to { background-position: -200% 0; } }

/* ============================================================
   20. BEFORE/AFTER PREVIEW (index.html)
   ============================================================ */

.ba-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(440px, 1fr));
  gap: var(--sp-6);
}

.ba-preview__card {
  border-radius: var(--r-lg);
  overflow: hidden;
  border: 1px solid var(--clr-border);
  background: var(--clr-bg-alt);
  transition: box-shadow var(--t-base), transform var(--t-base);
}

.ba-preview__card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.ba-preview__split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  overflow: hidden;
  aspect-ratio: 16/9;
}

.ba-preview__half {
  position: relative;
  overflow: hidden;
}

.ba-preview__half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s var(--ease-out-expo);
}

.ba-preview__card:hover .ba-preview__half img { transform: scale(1.04); }

.ba-preview__label {
  position: absolute;
  bottom: var(--sp-3);
  left: var(--sp-3);
  font-size: var(--fs-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: var(--sp-1) var(--sp-3);
  border-radius: var(--r-full);
  backdrop-filter: blur(4px);
}

.ba-preview__label--before {
  background: rgba(0,0,0,.55);
  color: rgba(255,255,255,.9);
}

.ba-preview__label--after {
  background: rgba(13,148,136,.85);
  color: #fff;
}

.ba-preview__footer {
  padding: var(--sp-4) var(--sp-6);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-4);
}

.ba-preview__title {
  font-family: var(--ff-display);
  font-size: var(--fs-md);
  font-weight: 700;
  color: var(--clr-text);
}

.ba-preview__loc {
  font-size: var(--fs-xs);
  color: var(--clr-muted);
  margin-top: 2px;
}

@media (max-width: 540px) {
  .ba-preview {
    grid-template-columns: 1fr;
  }
  .ref-preview {
    grid-template-columns: 1fr;
  }
}
