/* ============================================
   ELMA Bauausführung
   Architekten-Ästhetik für eine Baufirma
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&family=Space+Grotesk:wght@300;400;500;600;700&display=swap');

:root {
  --color-bg: #FFFFFF;
  --color-bg-off: #FBFBFD;
  --color-bg-off-2: #FAFAFC;
  --color-bg-dark: #0B0B0B;
  --color-text: #0B0B0B;
  --color-text-sec: #888888;
  --color-accent: #E31E24;
  --color-accent-hover: #C71F24;
  --color-overlay: rgba(0,0,0,0.5);
  --color-overlay-light: rgba(0,0,0,0.3);
  --color-glass: rgba(255,255,255,0.66);
  --color-border: rgba(0,0,0,0.08);
  --color-border-light: rgba(255,255,255,0.1);

  --font-display: 'Space Grotesk', sans-serif;
  --font-body: 'Inter', sans-serif;

  --max-width: 1280px;
  --container-pad: 48px;
  --header-h: 80px;
  --section-pad: 160px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 0.4s var(--ease);
  --transition-fast: 0.2s ease;
}

/* ===== PRELOADER ===== */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: translateY(0);
  transition: transform 0.5s cubic-bezier(0.65, 0, 0.35, 1);
}

.preloader.done {
  transform: translateY(-100%);
  pointer-events: none;
}

.preloader-logo {
  width: 420px;
  max-width: 70vw;
  height: auto;
  filter: brightness(0) saturate(100%) invert(16%) sepia(95%) saturate(5000%) hue-rotate(355deg) brightness(85%) contrast(110%);
  animation: pulse 1s ease-in-out 1;
}

@keyframes pulse {
  0% { opacity: 0.6; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

body.is-loading {
  overflow: hidden;
}

/* Reset */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); color: var(--color-text); background: var(--color-bg); line-height: 1.6; overflow-x: hidden; }
a { text-decoration: none; color: inherit; }
ul, ol { list-style: none; }
img { max-width: 100%; height: auto; display: block; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--color-accent);
  outline-offset: 3px;
}

/* Typography */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--color-text);
}
h1 { font-size: clamp(3rem, 7vw, 5.5rem); letter-spacing: -0.04em; }
h2 { font-size: clamp(2rem, 4.5vw, 3.5rem); }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.8rem); }
p { font-size: 1.05rem; line-height: 1.7; color: var(--color-text-sec); }

.label {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-text-sec);
}

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

/* --- Text Link --- */
.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
  transition: color var(--transition-fast), gap var(--transition);
}
.text-link:hover { color: var(--color-accent); gap: 14px; }
.text-link svg { width: 16px; height: 16px; }

/* --- Button (zurückhaltend) --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 32px;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--color-accent);
  color: #fff;
  border-color: var(--color-accent);
}
.btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
}
.btn-dark {
  background: var(--color-text);
  color: #fff;
  border-color: var(--color-text);
}
.btn-dark:hover { background: #333; border-color: #333; }
.btn-outline {
  background: transparent;
  color: var(--color-text);
  border-color: var(--color-border);
}
.btn-outline:hover { border-color: var(--color-text); }

/* ===== HEADER ===== */
.header {
  position: fixed;
  top: 0; left: 0;
  width: 100%;
  height: 100px;
  z-index: 100;
  transition: all 0.5s ease;
}

.header.scrolled {
  height: 72px;
  background: rgba(255,255,255,0.66);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--color-border);
}

/* 3-Spalten Grid: Logo | Nav | CTA */
.header-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

/* Logo — links, größer */
.header-logo { justify-self: start; }

.logo-img {
  height: 72px;
  transition: all 0.5s ease;
}
.header.scrolled .logo-img { height: 40px; }

/* Nav — zentriert, symmetrisch */
.main-nav {
  display: flex;
  gap: 0;
  align-items: center;
  justify-self: center;
}

.nav-link {
  padding: 10px 20px;
  font-size: 0.82rem;
  font-weight: 450;
  letter-spacing: 0.04em;
  color: var(--color-text);
  position: relative;
  transition: all var(--transition-fast);
}

/* Hover-Underline Animation */
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 4px;
  left: 20px; right: 20px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.3s ease;
}
.nav-link:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* Dropdown */
.nav-item { position: relative; }
.nav-item .arrow { font-size: 0.5rem; opacity: 0.35; margin-left: 3px; }

.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  min-width: 220px;
  background: rgb(255,255,255);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 8px;
  opacity: 0; visibility: hidden;
  transition: all 0.25s ease;
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
  margin-top: 12px;
}
.dropdown::before {
  content: '';
  position: absolute;
  top: -16px; left: 0; right: 0;
  height: 16px;
}
.nav-item:hover .dropdown {
  opacity: 1; visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown a {
  display: block;
  padding: 11px 16px;
  font-size: 0.82rem;
  font-weight: 400;
  color: var(--color-text-sec);
  border-radius: 8px;
  transition: all var(--transition-fast);
}
.dropdown a:hover {
  background: var(--color-bg-off);
  color: rgb(227,30,36);
  padding-left: 20px;
}

/* CTA — rechts */
.header-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  justify-self: end;
}

.header-phone {
  font-size: 0.82rem;
  font-weight: 500;
  display: flex; align-items: center; gap: 7px;
  transition: color var(--transition-fast);
}
.header-phone svg { width: 14px; height: 14px; }
.header-phone:hover { color: rgb(227,30,36); }

.header .btn {
  height: 40px;
  padding: 0 24px;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* --- Header: Transparent State --- */
.header--transparent { background: rgba(0,0,0,0); }
.header--transparent .logo-img { filter: brightness(0) invert(1); }
.header--transparent .nav-link { color: rgb(255,255,255); }
.header--transparent .nav-link::after { background: rgb(255,255,255); }
.header--transparent .header-phone { color: rgba(255,255,255,0.8); }
.header--transparent .header-phone:hover { color: rgb(255,255,255); }
.header--transparent .hamburger span { background: rgb(255,255,255); }
.header--transparent .btn-primary {
  background: rgba(0,0,0,0);
  border-color: rgba(255,255,255,0.3);
  color: rgb(255,255,255);
}
.header--transparent .btn-primary:hover {
  background: rgb(255,255,255);
  border-color: rgb(255,255,255);
  color: rgb(11,11,11);
}

/* --- Header: Scrolled State --- */
.header.scrolled .logo-img { filter: none; }
.header.scrolled .nav-link { color: rgb(11,11,11); }
.header.scrolled .nav-link::after { background: rgb(227,30,36); }
.header.scrolled .nav-link:hover { color: rgb(227,30,36); }
.header.scrolled .header-phone { color: rgb(11,11,11); }
.header.scrolled .header-phone:hover { color: rgb(227,30,36); }
.header.scrolled .hamburger span { background: rgb(11,11,11); }
.header.scrolled .btn-primary {
  background: rgb(227,30,36);
  border-color: rgb(227,30,36);
  color: rgb(255,255,255);
}
.header.scrolled .btn-primary:hover {
  background: rgb(199,31,36);
  border-color: rgb(199,31,36);
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  z-index: 101;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  transition: all 0.3s ease;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(4px, -4px); }

/* Mobile Nav */
.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 99;
  opacity: 0; visibility: hidden;
  transition: all 0.3s ease;
}
.mobile-overlay.open { opacity: 1; visibility: visible; }
.mobile-nav {
  position: fixed;
  top: 0; right: -100%;
  width: min(320px, 88vw);
  height: 100vh; height: 100dvh;
  background: #fff;
  z-index: 100;
  padding: 100px 32px 32px;
  transition: right 0.4s var(--ease);
  overflow-y: auto;
}
.mobile-nav.open { right: 0; }
.mobile-nav a:not(.btn) {
  display: block;
  padding: 14px 0;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 400;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}
.mobile-nav a:not(.btn):last-of-type { border-bottom: none; }
.mobile-nav .btn {
  width: 100%;
  justify-content: center;
  margin-top: 24px;
}
.mobile-nav .btn-contact {
  background: rgb(227,30,36);
  border-color: rgb(227,30,36);
  color: rgb(255,255,255);
  margin-top: 16px;
}
.mobile-nav .btn-contact:hover {
  background: rgb(199,31,36);
  border-color: rgb(199,31,36);
}

/* ===== HERO SLIDER ===== */
.hero {
  position: relative;
  height: 100vh; height: 100dvh;
  min-height: 600px;
  overflow: hidden;
}

/* Slides */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
}

.hero-slide.active {
  opacity: 1;
  z-index: 1;
}

.hero-slide-img {
  position: absolute; inset: 0;
}

.hero-slide-img img,
.hero-slide-img video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-slide-img::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(0,0,0,0.75) 0%,
    rgba(0,0,0,0.5) 45%,
    rgba(0,0,0,0.15) 100%
  );
}

/* Slide Content */
.hero-slide-content {
  position: absolute;
  bottom: 120px;
  left: var(--container-pad);
  z-index: 2;
  max-width: 620px;
}

.hero-slide-label {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 18px;
}

.hero-slide-title {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 7vw, 5rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: #fff;
  margin-bottom: 22px;
  text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-slide-desc {
  font-size: 1.02rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.85);
  max-width: 460px;
  margin-bottom: 28px;
}

.hero-slide-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 12px 0;
  border-bottom: 2px solid rgba(255,255,255,0.5);
  transition: all var(--transition);
}

.hero-slide-link:hover {
  border-color: #fff;
  gap: 14px;
}

.hero-slide-link svg {
  width: 14px; height: 14px;
}

/* Progress Bar */
.hero-progress {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255,255,255,0.1);
  z-index: 10;
}

.hero-progress-fill {
  height: 100%;
  width: 0%;
  background: rgba(255,255,255,0.5);
  transition: none;
}

.hero-progress-fill.running {
  width: 100%;
  transition: width linear;
}

/* Slide counter */
.hero-counter {
  position: absolute;
  bottom: 40px;
  right: var(--container-pad);
  z-index: 10;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 400;
  color: rgba(255,255,255,0.35);
  letter-spacing: 0.05em;
}

.hero-counter .current {
  color: #fff;
  font-weight: 500;
}

@media (max-width: 768px) {
  .hero-slide-content {
    bottom: 80px;
    left: 20px;
    right: 20px;
    max-width: none;
  }
  .hero-slide-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }
  .hero-counter { display: none; }
}

/* ===== SECTIONS ===== */
.section { padding: var(--section-pad) 0; }
.section-sm { padding: 100px 0; }

.section-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 48px;
}
.section-top .label { display: block; margin-bottom: 12px; }

@media (max-width: 640px) {
  .section-top { flex-direction: column; align-items: flex-start; gap: 16px; }
}

/* ===== TRUST STRIP ===== */
.trust-strip {
  padding: 100px 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-strip-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.trust-strip-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}

.trust-strip-text p {
  margin-bottom: 20px;
}

.trust-strip-facts {
  display: flex;
  gap: 48px;
}

.trust-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.trust-fact-num {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--color-text);
  line-height: 1;
}

.trust-fact-label {
  font-size: 0.78rem;
  color: var(--color-text-sec);
  font-weight: 400;
}

@media (max-width: 768px) {
  .trust-strip-inner { grid-template-columns: 1fr; gap: 40px; }
  .trust-strip-facts { gap: 32px; }
}

/* ===== INTRO (2-spaltig) ===== */
.intro-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.intro-text .label { margin-bottom: 16px; display: block; }
.intro-text h2 { margin-bottom: 20px; }
.intro-text p { margin-bottom: 16px; }
.intro-text .text-link { margin-top: 12px; }
.intro-img {
  overflow: hidden;
}
.intro-img img {
  width: 100%; height: 500px;
  object-fit: cover;
}

/* ===== LEISTUNGEN (Textliste) ===== */
.services-split {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
}
.services-label { position: sticky; top: 120px; }
.services-label .label { margin-bottom: 12px; display: block; }

.service-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text);
  transition: all var(--transition);
  cursor: pointer;
  text-decoration: none;
}
.service-row:first-child { border-top: 1px solid var(--color-border); }
.service-row:hover {
  padding-left: 12px;
  color: var(--color-accent);
}
.service-row-left {
  display: flex;
  align-items: baseline;
  gap: 20px;
}
.service-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--color-text-sec);
  min-width: 20px;
}
.service-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.service-arrow {
  font-size: 0.9rem;
  opacity: 0;
  transform: translateX(-8px);
  transition: all var(--transition);
}
.service-row:hover .service-arrow {
  opacity: 1;
  transform: translateX(0);
}

/* ===== PROJEKTE (Immersiv) ===== */

/* Featured Project — full-width cinematic */
.project-featured {
  position: relative;
  height: 80vh;
  min-height: 500px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-featured .project-media {
  position: absolute; inset: 0;
}

.project-featured .project-media img,
.project-featured .project-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.project-featured:hover .project-media img,
.project-featured:hover .project-media video {
  transform: scale(1.04);
}

.project-featured .project-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.7) 0%,
    rgba(0,0,0,0) 45%
  );
  transition: opacity 0.6s ease;
}

.project-featured:hover .project-media::after {
  opacity: 0.9;
}

.project-featured .project-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 60px var(--container-pad);
  z-index: 2;
}

.project-featured .project-tag {
  font-size: 0.68rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.5);
  margin-bottom: 12px;
}

.project-featured .project-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.02em;
  margin-bottom: 12px;
}

.project-featured .project-excerpt {
  font-size: 0.92rem;
  color: rgba(255,255,255,0.55);
  max-width: 480px;
  line-height: 1.6;
  margin-bottom: 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s var(--ease);
}

.project-featured:hover .project-excerpt {
  opacity: 1;
  transform: translateY(0);
}

.project-featured .project-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s var(--ease) 0.05s;
}

.project-featured:hover .project-cta {
  opacity: 1;
  transform: translateY(0);
}

.project-featured .project-cta svg {
  width: 14px; height: 14px;
  transition: transform 0.3s ease;
}

.project-featured:hover .project-cta svg {
  transform: translateX(4px);
}

/* Grid Projects — 2 Spalten */
.projects-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
}

.project-card {
  position: relative;
  height: 520px;
  overflow: hidden;
  cursor: pointer;
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card .project-media {
  position: absolute; inset: 0;
}

.project-card .project-media img,
.project-card .project-media video {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.2s var(--ease);
}

.project-card:hover .project-media img,
.project-card:hover .project-media video {
  transform: scale(1.04);
}

.project-card .project-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.65) 0%,
    rgba(0,0,0,0) 50%
  );
  transition: opacity 0.6s ease;
}

.project-card:hover .project-media::after {
  opacity: 0.85;
}

.project-card .project-content {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 40px;
  z-index: 2;
}

.project-card .project-tag {
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: rgba(255,255,255,0.45);
  margin-bottom: 10px;
}

.project-card .project-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 2.5vw, 1.8rem);
  font-weight: 500;
  color: #fff;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.project-card .project-loc {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.project-card .project-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.72rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  margin-top: 16px;
  opacity: 0;
  transform: translateY(6px);
  transition: all 0.5s var(--ease);
}

.project-card:hover .project-cta {
  opacity: 1;
  transform: translateY(0);
}

.project-card .project-cta svg {
  width: 12px; height: 12px;
}

/* Video indicator */
.project-video-badge {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(12px);
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgba(255,255,255,0.7);
}

.project-video-badge::before {
  content: '';
  width: 6px; height: 6px;
  background: var(--color-accent);
  border-radius: 50%;
  animation: videoPulse 2s ease-in-out infinite;
}

@keyframes videoPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

@media (max-width: 768px) {
  .project-featured { height: 60vh; min-height: 400px; }
  .project-featured .project-excerpt { display: none; }
  .project-featured .project-cta { opacity: 1; transform: none; }
  .projects-grid { grid-template-columns: 1fr; }
  .project-card { height: 400px; }
  .project-card .project-cta { opacity: 1; transform: none; }
}

/* ===== TESTIMONIAL (ein Zitat) ===== */
.testimonial-section {
  background: var(--color-bg-off);
  padding: var(--section-pad) 0;
}
.testimonial-inner {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}
.testimonial-stars {
  font-size: 1.1rem;
  color: var(--color-accent);
  letter-spacing: 4px;
  margin-bottom: 24px;
}

.testimonial-quote {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2.5vw, 1.6rem);
  font-weight: 400;
  line-height: 1.6;
  color: var(--color-text);
  font-style: italic;
  margin-bottom: 32px;
}
.testimonial-quote::before {
  content: '\201E';
  display: block;
  font-size: 4rem;
  line-height: 1;
  color: var(--color-accent);
  font-style: normal;
  opacity: 0.3;
  margin-bottom: 16px;
}
.testimonial-author {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--color-text);
}
.testimonial-detail {
  font-size: 0.82rem;
  color: var(--color-text-sec);
  margin-top: 2px;
}

/* ===== KONTAKT-BEREICH ===== */
.contact-bar {
  padding: 100px 0;
  border-top: 1px solid var(--color-border);
}
.contact-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
}
.contact-bar h2 { margin-bottom: 0; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.contact-bar-right {
  display: flex;
  align-items: center;
  gap: 32px;
}
.contact-item {
  font-size: 0.92rem;
  color: var(--color-text-sec);
  display: flex; align-items: center; gap: 8px;
}
.contact-item a { color: var(--color-text); font-weight: 500; }
.contact-item a:hover { color: var(--color-accent); }
.contact-item svg { width: 16px; height: 16px; stroke: var(--color-accent); }

/* ===== FOOTER ===== */
.footer {
  background: var(--color-bg-dark);
  padding: 80px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 60px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--color-border-light);
}
.footer .logo-img {
  height: 132px;
  filter: brightness(0) invert(1);
  margin-bottom: 24px;
}
.footer-brand p {
  color: rgba(255,255,255,0.35);
  font-size: 0.85rem;
  line-height: 1.7;
  max-width: 280px;
}
.footer-col h4 {
  color: rgba(255,255,255,0.5);
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul a {
  color: rgba(255,255,255,0.4);
  font-size: 0.85rem;
  transition: color var(--transition-fast);
}
.footer-col ul a:hover { color: #fff; }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.2);
}
.footer-legal { display: flex; gap: 20px; }
.footer-legal a { color: rgba(255,255,255,0.2); }
.footer-legal a:hover { color: rgba(255,255,255,0.5); }

/* ===== PAGE HEADER (Unterseiten) ===== */
.page-header {
  background: rgb(11,11,11);
  padding: 160px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-header h1 { color: rgb(255,255,255); margin-bottom: 8px; position: relative; z-index: 2; }
.page-header .container { position: relative; z-index: 2; }

/* Variante mit Hintergrundbild */
.page-header--bg .page-header-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-header--bg .page-header-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.page-header--bg::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(11,11,11,0.6) 0%,
    rgba(11,11,11,0.45) 50%,
    rgba(11,11,11,0.75) 100%
  );
}

/* Variante: heller Hintergrund mit dunklem Text */
.page-header--light {
  background: rgb(255,255,255);
}
.page-header--light h1 { color: rgb(11,11,11); }
.page-header--light .label { color: var(--color-text-sec); }
.page-header--light .breadcrumb,
.page-header--light .breadcrumb span { color: var(--color-text-sec); }
.page-header--light .breadcrumb a { color: var(--color-text-sec); }
.page-header--light .breadcrumb a:hover { color: var(--color-accent); }

/* Variante: kompakt (weniger Höhe, damit Inhalt darunter sofort sichtbar) */
.page-header--compact {
  padding: 130px 0 40px;
}
.page-header--compact h1 {
  margin-bottom: 0;
}

/* Compact Section (weniger Top-Padding für direkten Anschluss) */
.section--compact {
  padding-top: 40px;
}

@media (max-width: 768px) {
  .page-header--compact { padding: 100px 0 32px; }
  .section--compact { padding-top: 32px; }
}
.breadcrumb {
  display: flex; gap: 8px;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.3);
}
.breadcrumb a { color: rgba(255,255,255,0.3); }
.breadcrumb a:hover { color: var(--color-accent); }

/* ===== LEISTUNGEN PAGE ===== */

/* Service Index Nav */
.service-index {
  padding: 0 0 var(--section-pad);
}

.service-index-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--color-border);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  overflow: hidden;
}

.service-index-item {
  background: var(--color-bg);
  padding: 28px 24px;
  display: flex;
  align-items: baseline;
  gap: 14px;
  color: inherit;
  text-decoration: none;
  transition: all var(--transition);
}

.service-index-item:hover {
  background: var(--color-bg-off);
}

.service-index-item:hover .si-name {
  color: var(--color-accent);
}

.si-num {
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 400;
  color: var(--color-text-sec);
  min-width: 18px;
}

.si-name {
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 500;
  transition: color var(--transition-fast);
}

/* Immersive Service Block — full bleed */
.service-immersive {
  position: relative;
  min-height: 90vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}

.service-immersive .service-media {
  position: absolute; inset: 0;
}

.service-immersive .service-media img,
.service-immersive .service-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.service-immersive .service-media::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,0.8) 0%,
    rgba(0,0,0,0.4) 40%,
    rgba(0,0,0,0.15) 100%
  );
}

.service-immersive-content {
  position: relative;
  z-index: 2;
  padding: 80px var(--container-pad);
  max-width: 650px;
}

.service-immersive-content .label {
  color: rgba(255,255,255,0.65);
  margin-bottom: 16px;
  display: block;
  font-weight: 600;
}

.service-immersive-content h2 {
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 600;
  color: #fff;
  margin-bottom: 20px;
  text-shadow: 0 2px 16px rgba(0,0,0,0.3);
}

.service-immersive-content p {
  color: rgba(255,255,255,0.85);
  font-size: 1.02rem;
  margin-bottom: 20px;
  line-height: 1.75;
}

.service-immersive-content ul {
  margin: 0 0 28px;
  list-style: none;
}

.service-immersive-content ul li {
  padding: 8px 0;
  font-size: 0.92rem;
  color: rgba(255,255,255,0.75);
  border-bottom: 1px solid rgba(255,255,255,0.12);
}

.service-immersive-content ul li:last-child { border-bottom: none; }

.service-immersive-content ul li::before {
  content: '— ';
  color: rgba(255,255,255,0.25);
}

.service-immersive-content .text-link {
  color: #fff;
}

.service-immersive-content .text-link:hover {
  color: var(--color-accent);
}

/* Split Service Block — Bild | Text */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 560px;
}

.service-split:nth-child(even) .service-split-media { order: 2; }
.service-split:nth-child(even) .service-split-text { order: 1; }

.service-split-media {
  overflow: hidden;
  position: relative;
}

.service-split-media img,
.service-split-media video {
  width: 100%; height: 100%;
  object-fit: cover;
}

.service-split-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 64px 72px;
}

.service-split-text .label { margin-bottom: 14px; display: block; }
.service-split-text h2 {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  margin-bottom: 16px;
}
.service-split-text p { margin-bottom: 16px; }

.service-split-text ul {
  margin: 8px 0 28px;
  list-style: none;
}

.service-split-text ul li {
  padding: 8px 0;
  font-size: 0.9rem;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
}

.service-split-text ul li:last-child { border-bottom: none; }

.service-split-text ul li::before {
  content: '— ';
  color: var(--color-text-sec);
}

/* Leistungen Page Intro */
.leistungen-intro {
  max-width: 700px;
  padding: 80px 0 0;
}

.leistungen-intro p {
  font-size: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 1024px) {
  .service-index-grid { grid-template-columns: repeat(2, 1fr); }
  .service-split { grid-template-columns: 1fr; }
  .service-split:nth-child(even) .service-split-media { order: 0; }
  .service-split:nth-child(even) .service-split-text { order: 0; }
  .service-split-media { height: 400px; }
  .service-split-text { padding: 48px 40px; }
}

@media (max-width: 768px) {
  .service-index-grid { grid-template-columns: 1fr 1fr; }
  .service-immersive { min-height: 70vh; }
  .service-immersive-content { padding: 48px 20px; }
  .service-split-media { height: 320px; }
  .service-split-text { padding: 36px 20px; }
}

@media (max-width: 480px) {
  .service-index-grid { grid-template-columns: 1fr; }
}

/* ===== PROJEKTE GRID (Referenzen-Übersicht) ===== */
.projekte-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.projekt-kachel {
  display: block;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.projekt-kachel-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-off);
}

.projekt-kachel-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.projekt-kachel:hover .projekt-kachel-img img {
  transform: scale(1.04);
}

.projekt-kachel-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.65) 0%, rgba(0,0,0,0) 50%);
  opacity: 0;
  transition: opacity var(--transition);
}

.projekt-kachel:hover .projekt-kachel-img::after {
  opacity: 1;
}

.projekt-kachel-cta {
  position: absolute;
  bottom: 20px;
  left: 20px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #fff;
  opacity: 0;
  transform: translateY(8px);
  transition: all 0.5s var(--ease);
  z-index: 2;
}

.projekt-kachel:hover .projekt-kachel-cta {
  opacity: 1;
  transform: translateY(0);
}

.projekt-kachel-cta svg { width: 14px; height: 14px; }

.projekt-kachel-info {
  padding: 16px 0 0;
}

.projekt-kachel-cat {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 6px;
}

.projekt-kachel-titel {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
  transition: color var(--transition-fast);
}

.projekt-kachel:hover .projekt-kachel-titel {
  color: var(--color-accent);
}

.projekt-kachel-ort {
  font-size: 0.85rem;
  color: var(--color-text-sec);
}

@media (max-width: 1024px) {
  .projekte-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
}

@media (max-width: 640px) {
  .projekte-grid { grid-template-columns: 1fr; gap: 32px; }
  .projekt-kachel-cta { opacity: 1; transform: none; }
}

/* ===== PROJEKT DETAILSEITE ===== */
.projekt-hero {
  position: relative;
  height: 75vh;
  min-height: 500px;
  overflow: hidden;
  margin-top: 0;
}

.projekt-hero-img {
  position: absolute; inset: 0;
}

.projekt-hero-img img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.projekt-hero-img::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,0.4) 100%);
}

.projekt-hero-content {
  position: absolute;
  bottom: 60px;
  left: 0; right: 0;
  z-index: 2;
}

.projekt-hero .breadcrumb {
  margin-bottom: 16px;
}

.projekt-hero .breadcrumb,
.projekt-hero .breadcrumb a {
  color: rgba(255,255,255,0.5);
}

.projekt-hero .projekt-hero-cat {
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgba(255,255,255,0.75);
  margin-bottom: 14px;
  display: block;
}

.projekt-hero h1 {
  color: #fff;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin-bottom: 16px;
  max-width: 800px;
}

.projekt-hero-meta {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.projekt-hero-meta-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.projekt-hero-meta-label {
  font-size: 0.7rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5);
}

.projekt-hero-meta-value {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 500;
  color: #fff;
}

/* Projekt Story (Essay-Modus) */
.projekt-story {
  padding: 120px 0 60px;
}

.projekt-story-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.projekt-story .label {
  display: block;
  margin-bottom: 12px;
}

.projekt-story-grid h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  position: sticky;
  top: 120px;
}

.projekt-story-text p {
  font-size: 1.02rem;
  line-height: 1.8;
  margin-bottom: 20px;
}

.projekt-story-text h3 {
  font-size: 1.1rem;
  margin-top: 28px;
  margin-bottom: 8px;
  color: var(--color-text);
}

@media (max-width: 768px) {
  .projekt-story-grid { grid-template-columns: 1fr; gap: 24px; }
  .projekt-story-grid h2 { position: static; }
  .projekt-story { padding: 80px 0 60px; }
}

/* Projekt Galerie (Legacy — wird nicht mehr genutzt) */
.projekt-galerie { padding: 0 0 120px; }
.projekt-galerie-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 8px;
  padding: 0 var(--container-pad);
}
.projekt-galerie-item { cursor: pointer; overflow: hidden; position: relative; background: var(--color-bg-off); }
.projekt-galerie-item img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.4s ease; }
.projekt-galerie-item:hover img { opacity: 0.85; }
.projekt-galerie-item.span-6 { grid-column: span 6; aspect-ratio: 4 / 3; }
.projekt-galerie-item.span-12 { grid-column: span 12; aspect-ratio: 16 / 7; }
.projekt-galerie-item.span-4 { grid-column: span 4; aspect-ratio: 3 / 4; }
.projekt-galerie-item.span-8 { grid-column: span 8; aspect-ratio: 4 / 3; }

/* === EDITORIAL LAYOUT (Story → Liste → Eindrücke) === */

/* Was wurde gemacht — Liste */
.projekt-was {
  padding: 60px 0 100px;
  border-top: 1px solid var(--color-border);
}

.projekt-was-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 80px;
  max-width: 1000px;
  margin: 0 auto;
}

.projekt-was-grid h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.projekt-was-liste {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  list-style: none;
}

.projekt-was-liste li {
  padding: 18px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 500;
  color: var(--color-text);
  border-bottom: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  gap: 14px;
}

.projekt-was-liste li::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-accent);
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .projekt-was { padding: 40px 0 60px; }
  .projekt-was-grid { grid-template-columns: 1fr; gap: 24px; }
  .projekt-was-liste { grid-template-columns: 1fr; }
}

/* Eindrücke — saubere 3-Spalten-Galerie */
.projekt-eindruecke {
  padding: 60px 0 120px;
  background: var(--color-bg-off);
}

.projekt-eindruecke-header {
  text-align: left;
  margin-bottom: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 var(--container-pad);
}

.projekt-eindruecke-header .label {
  display: block;
  margin-bottom: 8px;
}

.projekt-eindruecke-header h2 {
  font-size: clamp(1.4rem, 2.5vw, 1.9rem);
}

.projekt-eindruecke-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.eindruck-item {
  cursor: pointer;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg);
}

.eindruck-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

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

@media (max-width: 900px) {
  .projekt-eindruecke-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
}

@media (max-width: 560px) {
  .projekt-eindruecke { padding: 40px 0 80px; }
  .projekt-eindruecke-grid { grid-template-columns: 1fr; gap: 16px; }
}

/* === STORY-FLOW (alte Projekt-Erzählung — wird nicht mehr genutzt) === */
.projekt-story-flow {
  padding: 100px 0 60px;
}

.story-step {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto 120px;
  padding: 0 var(--container-pad);
}

.story-step:last-child { margin-bottom: 0; }

/* Abwechselnd: gerade = Bild rechts */
.story-step:nth-child(even) .story-step-img { order: 2; }
.story-step:nth-child(even) .story-step-text { order: 1; }

.story-step-img {
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--color-bg-off);
  cursor: pointer;
}

.story-step-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.story-step-img:hover img {
  transform: scale(1.03);
}

.story-step-text {
  padding: 0 8px;
}

.story-step-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 14px;
}

.story-step-text h3 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
}

.story-step-text p {
  font-size: 1rem;
  line-height: 1.75;
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .story-step {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-bottom: 72px;
  }
  .story-step:nth-child(even) .story-step-img { order: 0; }
  .story-step:nth-child(even) .story-step-text { order: 0; }
  .story-step-text { padding: 0; }
  .projekt-story-flow { padding: 60px 0 20px; }
}

/* Projekt CTA / Navigation */
.projekt-cta {
  background: var(--color-bg-off);
  padding: 80px 0;
}

.projekt-cta-inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.projekt-cta-inner h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin-bottom: 16px;
}

.projekt-cta-inner p {
  margin-bottom: 32px;
  font-size: 1rem;
}

.projekt-cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===== GALLERY (Referenzen) ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.gallery-item {
  overflow: hidden;
  cursor: pointer;
}
.gallery-item img {
  width: 100%; height: 320px;
  object-fit: cover;
  transition: opacity 0.4s ease;
}
.gallery-item:hover img { opacity: 0.85; }
.gallery-caption {
  margin-top: 10px;
}
.gallery-caption h3 {
  font-size: 0.95rem;
  font-weight: 500;
  margin-bottom: 2px;
}
.gallery-caption span {
  font-size: 0.8rem;
  color: var(--color-text-sec);
}

/* ===== ABOUT (Über uns) ===== */
.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 560px;
}
.about-img { overflow: hidden; }
.about-img img { width: 100%; height: 100%; object-fit: cover; }
.about-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 60px 64px;
}
.about-text .label { margin-bottom: 12px; display: block; }
.about-text h2 { margin-bottom: 20px; }
.about-text p { margin-bottom: 14px; }
.about-text ul {
  margin: 16px 0;
}
.about-text ul li {
  padding: 4px 0;
  font-size: 0.92rem;
  color: var(--color-text);
}
.about-text ul li::before {
  content: '— ';
  color: var(--color-text-sec);
}

/* Timeline */
.timeline {
  max-width: 700px;
  margin: 0 auto;
  position: relative;
  padding-left: 32px;
}
.timeline::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 1px;
  background: var(--color-border);
}
.timeline-item {
  padding: 0 0 48px 32px;
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -36px; top: 6px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--color-accent);
}
.timeline-year {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 6px;
}
.timeline-item h3 { font-size: 1.05rem; margin-bottom: 4px; }
.timeline-item p { font-size: 0.88rem; margin-bottom: 0; }

/* Facts Einzeiler */
.facts-line {
  text-align: center;
  padding: 60px 0;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-text-sec);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--color-border);
}
.facts-line strong {
  color: var(--color-text);
  font-weight: 500;
}

/* ===== KONTAKT ===== */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 80px;
}
.contact-info-item {
  display: flex;
  gap: 14px;
  padding: 20px 0;
  border-bottom: 1px solid var(--color-border);
}
.contact-info-item svg {
  width: 20px; height: 20px;
  stroke: var(--color-accent);
  flex-shrink: 0;
  margin-top: 2px;
}
.contact-info-item h4 { font-size: 0.92rem; margin-bottom: 2px; }
.contact-info-item p { font-size: 0.88rem; margin-bottom: 0; }

.contact-form {
  background: var(--color-bg-off);
  padding: 48px;
  border-radius: 16px;
}
.contact-form h3 { margin-bottom: 28px; font-size: 1.3rem; }
.form-group { margin-bottom: 16px; }
.form-group label {
  display: block;
  font-size: 0.78rem;
  font-weight: 500;
  margin-bottom: 6px;
}
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text);
  background: #fff;
  transition: border-color var(--transition-fast);
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--color-text);
}
.form-group textarea { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23888' stroke-width='1.5' fill='none'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.map-section { height: 360px; }
.map-section iframe {
  width: 100%; height: 100%;
  border: none;
  filter: grayscale(0.6) contrast(1.05);
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
}
.lightbox.active { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute; top: 24px; right: 24px;
  width: 44px; height: 44px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  color: #fff; font-size: 1.1rem;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

/* ===== LEGAL PAGES (Impressum, Datenschutz) ===== */
.legal {
  padding: 80px 0 120px;
}

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

.legal-content h2 {
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin: 48px 0 12px;
  padding-top: 12px;
}

.legal-content h2:first-child { margin-top: 0; }

.legal-content h3 {
  font-size: 1.05rem;
  margin: 28px 0 8px;
  color: var(--color-text);
}

.legal-content p,
.legal-content li {
  font-size: 0.95rem;
  line-height: 1.75;
  color: var(--color-text);
  margin-bottom: 14px;
}

.legal-content p strong { color: var(--color-text); }

.legal-content ul {
  margin: 0 0 16px;
  padding-left: 20px;
  list-style: disc;
}

.legal-content ul li { margin-bottom: 6px; }

.legal-content a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-content a:hover { color: var(--color-accent-hover); }

.legal-todo {
  display: inline-block;
  background: rgba(227,30,36,0.08);
  color: var(--color-accent);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-body);
}

.legal-meta {
  margin-top: 60px;
  padding-top: 24px;
  border-top: 1px solid var(--color-border);
  font-size: 0.85rem;
  color: var(--color-text-sec);
}

@media (max-width: 768px) {
  .legal { padding: 48px 0 80px; }
  .legal-content h2 { margin: 36px 0 10px; }
}

/* ===== MULTI-STEP FORM ===== */
.multi-step-form .form-progress {
  display: flex;
  justify-content: space-between;
  margin-bottom: 28px;
  gap: 8px;
  position: relative;
}

.form-progress-step {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--color-text-sec);
  padding: 8px 0;
  border-top: 2px solid var(--color-border);
  transition: all 0.3s ease;
}

.form-progress-step span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--color-border);
  color: var(--color-text-sec);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 600;
}

.form-progress-step.active {
  color: var(--color-text);
  border-top-color: var(--color-accent);
}

.form-progress-step.active span {
  background: var(--color-accent);
  color: #fff;
}

.form-progress-step.done {
  color: var(--color-text);
  border-top-color: var(--color-accent);
}

.form-progress-step.done span {
  background: var(--color-accent);
  color: #fff;
}

.form-step {
  display: none;
  animation: fadeStepIn 0.4s ease;
}

.form-step.active {
  display: block;
}

@keyframes fadeStepIn {
  from { opacity: 0; transform: translateX(10px); }
  to { opacity: 1; transform: translateX(0); }
}

.form-step-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: 8px;
}

.form-step-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  margin-bottom: 8px;
}

.form-step-hint {
  font-size: 0.88rem;
  color: var(--color-text-sec);
  margin-bottom: 20px;
}

.form-actions {
  margin-top: 24px;
}

.form-actions-split {
  display: flex;
  gap: 12px;
}

.form-actions-split .btn-outline {
  flex: 1;
  justify-content: center;
}

.form-actions-split .btn-dark {
  flex: 2;
  justify-content: center;
}

.form-step-success {
  text-align: center;
  padding: 24px 0;
}

.form-success-icon {
  width: 64px;
  height: 64px;
  background: var(--color-accent);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 16px;
}

/* ===== EXIT-INTENT POPUP ===== */
.exit-popup {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.exit-popup.show {
  opacity: 1;
  visibility: visible;
}

.exit-popup-inner {
  background: #fff;
  max-width: 480px;
  width: 100%;
  padding: 40px 32px;
  border-radius: 16px;
  position: relative;
  text-align: center;
  transform: scale(0.92);
  transition: transform 0.3s ease;
}

.exit-popup.show .exit-popup-inner {
  transform: scale(1);
}

.exit-popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  font-size: 1.2rem;
  color: var(--color-text-sec);
  cursor: pointer;
  border-radius: 50%;
}

.exit-popup-close:hover {
  background: var(--color-bg-off);
  color: var(--color-text);
}

.exit-popup-label {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-accent);
  margin-bottom: 10px;
}

.exit-popup h3 {
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.exit-popup p {
  font-size: 0.95rem;
  color: var(--color-text-sec);
  margin-bottom: 24px;
}

.exit-popup-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.exit-popup-buttons .btn {
  width: 100%;
  justify-content: center;
}

@media (max-width: 480px) {
  .exit-popup-inner { padding: 32px 20px; }
  .exit-popup h3 { font-size: 1.25rem; }
}

/* ===== FLOATING PROJECT-CTA ===== */
.projekt-floating-cta {
  position: fixed;
  bottom: 100px;
  left: 24px;
  background: rgb(11,11,11);
  color: #fff;
  padding: 12px 22px;
  border-radius: 50px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 85;
  box-shadow: 0 8px 24px rgba(0,0,0,0.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.projekt-floating-cta.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.projekt-floating-cta:hover {
  background: rgb(227,30,36);
  transform: translateY(-2px);
}

.projekt-floating-cta svg {
  width: 14px;
  height: 14px;
}

@media (max-width: 768px) {
  .projekt-floating-cta { display: none; }
}

/* ===== TRUST-BADGES (Branche & Auszeichnungen) ===== */
.trust-badges {
  padding: 60px 0;
  background: var(--color-bg-off);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.trust-badges-header {
  text-align: center;
  margin-bottom: 32px;
}

.trust-badges-header .label {
  display: block;
  margin-bottom: 8px;
}

.trust-badges-header p {
  font-size: 0.95rem;
  color: var(--color-text-sec);
  margin: 0;
}

.trust-badges-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 24px;
  max-width: 1100px;
  margin: 0 auto;
  align-items: center;
}

.trust-badge {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 16px;
  background: #fff;
  border: 1px solid var(--color-border);
  border-radius: 12px;
  transition: all 0.3s ease;
  min-height: 130px;
}

.trust-badge:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.06);
}

.trust-badge-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 12px;
  color: var(--color-accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.trust-badge-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.trust-badge-title {
  font-family: var(--font-display);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--color-text);
  margin-bottom: 4px;
  line-height: 1.3;
}

.trust-badge-sub {
  font-size: 0.72rem;
  color: var(--color-text-sec);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

@media (max-width: 900px) {
  .trust-badges-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .trust-badge { min-height: 110px; padding: 18px 10px; }
}

@media (max-width: 560px) {
  .trust-badges-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ===== WHATSAPP-BUTTON (Floating) ===== */
.whatsapp-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35);
  z-index: 90;
  transition: all 0.3s ease;
  cursor: pointer;
}

.whatsapp-fab:hover {
  background: #1ebe57;
  transform: scale(1.08);
  box-shadow: 0 12px 32px rgba(37, 211, 102, 0.45);
}

.whatsapp-fab svg {
  width: 32px;
  height: 32px;
  fill: #fff;
}

.whatsapp-fab::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(37, 211, 102, 0.35);
  z-index: -1;
  animation: wa-pulse 2s ease-out infinite;
}

@keyframes wa-pulse {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.5); opacity: 0; }
}

/* WhatsApp Bubble (Nachricht) */
.whatsapp-bubble {
  position: fixed;
  bottom: 100px;
  right: 24px;
  max-width: 280px;
  background: #fff;
  border-radius: 12px;
  padding: 16px 18px 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,0.15);
  z-index: 91;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px) scale(0.95);
  transform-origin: bottom right;
  transition: all 0.3s ease;
}

.whatsapp-bubble.show {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.whatsapp-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  right: 30px;
  width: 16px;
  height: 16px;
  background: #fff;
  transform: rotate(45deg);
  box-shadow: 4px 4px 8px rgba(0,0,0,0.05);
}

.whatsapp-bubble-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  background: none;
  border: none;
  color: var(--color-text-sec);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.whatsapp-bubble-close:hover { color: var(--color-text); }

.whatsapp-bubble-text {
  font-size: 0.88rem;
  line-height: 1.5;
  color: var(--color-text);
  padding-right: 16px;
  margin-bottom: 10px;
}

.whatsapp-bubble-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #25D366;
  text-decoration: none;
}

.whatsapp-bubble-cta:hover { color: #1ebe57; }

/* ===== MOBILE CALL-BAR (Sticky bottom) ===== */
.mobile-callbar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgb(11,11,11);
  z-index: 88;
  padding: 10px 12px;
  gap: 8px;
  box-shadow: 0 -4px 20px rgba(0,0,0,0.15);
}

.mobile-callbar a {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 44px;
  border-radius: 22px;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}

.mobile-callbar a svg {
  width: 16px;
  height: 16px;
}

.mobile-callbar-call {
  background: rgb(227,30,36);
}

.mobile-callbar-contact {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
}

@media (max-width: 768px) {
  .whatsapp-fab {
    bottom: 16px;
    right: 16px;
    width: 52px;
    height: 52px;
  }
  .whatsapp-fab svg { width: 28px; height: 28px; }
  .whatsapp-bubble {
    bottom: 78px;
    right: 16px;
    max-width: calc(100vw - 32px);
  }
  .back-to-top {
    bottom: 16px;
    right: 76px;
  }
}

/* Back to top */
.back-to-top {
  position: fixed; bottom: 32px; right: 32px;
  width: 40px; height: 40px;
  background: var(--color-text);
  color: #fff;
  border: none; border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.9rem;
  opacity: 0; visibility: hidden;
  transition: all var(--transition);
  z-index: 50;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--color-accent); }

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  :root { --container-pad: 32px; --section-pad: 100px; }
  .intro-grid { gap: 48px; }
  .services-split { grid-template-columns: 1fr; gap: 32px; }
  .services-label { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .service-block { grid-template-columns: 1fr; }
  .service-block:nth-child(even) .service-block-img { order: 0; }
  .service-block:nth-child(even) .service-block-text { order: 0; }
  .service-block-img { height: 340px; }
  .service-block-img img { height: 100%; }
  .service-block-text { padding: 40px 32px; }
  .about-split { grid-template-columns: 1fr; }
  .about-img { height: 400px; }
  .about-img img { height: 100%; }
  .about-text { padding: 40px 32px; }
  .contact-grid { grid-template-columns: 1fr; gap: 48px; }
}

@media (max-width: 768px) {
  :root { --container-pad: 20px; --section-pad: 80px; }
  .main-nav, .header-cta .btn { display: none; }
  .hamburger { display: flex; }
  .header-phone { font-size: 0; }
  .header-phone svg { width: 20px; height: 20px; }

  /* Mobile: Logo + Hamburger auf gleicher Linie */
  .header { height: auto; padding-top: 16px; padding-bottom: 16px; }
  .header.scrolled { padding-top: 10px; padding-bottom: 10px; }
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .logo-img { height: 48px; }
  .header.scrolled .logo-img { height: 36px; }
  /* CTA-Wrapper ausblenden, nur Phone-Icon bleibt */
  .header-cta {
    position: absolute;
    right: calc(var(--container-pad) + 44px);
    top: 50%;
    transform: translateY(-50%);
  }
  .hamburger {
    position: absolute;
    right: var(--container-pad);
    top: 50%;
    transform: translateY(-50%);
  }

  /* === HERO SLIDER (Mobile) === */
  .hero { min-height: 540px; height: 90vh; height: 90dvh; }
  .hero h1 { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-content { padding-bottom: 48px; }

  .hero-slide-content {
    bottom: 60px;
    left: 20px;
    right: 20px;
    max-width: none;
  }
  .hero-slide-label {
    font-size: 0.7rem;
    letter-spacing: 0.15em;
    margin-bottom: 12px;
  }
  .hero-slide-title {
    font-size: clamp(2rem, 9vw, 3rem) !important;
    line-height: 1.05;
    margin-bottom: 16px;
  }
  .hero-slide-desc {
    font-size: 0.9rem !important;
    line-height: 1.6;
    margin-bottom: 22px;
  }
  .hero-slide-link {
    font-size: 0.78rem;
    padding: 10px 0;
  }
  .hero-progress { height: 3px; }

  /* === FEATURED PROJECT (Mobile: kürzer + Text immer sichtbar) === */
  .project-featured {
    height: 60vh;
    min-height: 420px;
  }
  .project-featured .project-content {
    padding: 32px 20px;
  }
  .project-featured .project-title {
    font-size: clamp(1.6rem, 6vw, 2rem);
  }
  .project-featured .project-excerpt {
    opacity: 1;
    transform: none;
    font-size: 0.85rem;
    line-height: 1.55;
  }
  .project-featured .project-cta {
    opacity: 1;
    transform: none;
  }
  .project-featured .project-media::after {
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.2) 60%);
  }

  /* === PROJECT CARDS (Mobile: Text immer sichtbar — kein Hover auf Touch) === */
  .project-card .project-cta {
    opacity: 1;
    transform: none;
  }
  .project-card .project-media::after {
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 55%);
  }

  /* === LEGACY (alte Klassen — falls noch genutzt) === */
  .intro-grid { grid-template-columns: 1fr; gap: 32px; }
  .intro-img img { height: 320px; }
  .projects-duo { grid-template-columns: 1fr; }
  .project-full { height: 360px; }
  .project-half { height: 300px; }

  /* === REST === */
  .gallery-grid { grid-template-columns: 1fr 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  .contact-bar-inner { flex-direction: column; text-align: center; }
  .contact-bar-right { flex-direction: column; gap: 16px; }

  .page-header { padding: 120px 0 48px; }

  .form-row { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .gallery-grid { grid-template-columns: 1fr; }
  .gallery-item img { height: 260px; }
}
