.e3d-scroll-story {
  --e3d-progress: 0;
  --e3d-concept: 0;
  --e3d-scan: 0;
  --e3d-digital: 0;
  --e3d-finish: 0;
  --e3d-real-opacity: 1;
  --e3d-real-scale: 1;
  --e3d-real-image-x: 0vw;
  --e3d-real-image-scale: 1;
  --e3d-concept-opacity: 0;
  --e3d-concept-scale: 1.12;
  --e3d-concept-x: 2.5vw;
  --e3d-concept-image-scale: 1.14;
  --e3d-concept-saturation: 1;
  --e3d-concept-contrast: 1;
  --e3d-digital-scale: 1.1;
  --e3d-digital-image-scale: 1.18;
  --e3d-digital-saturation: .68;
  --e3d-depth-opacity: 0;
  --e3d-depth-z: 0px;
  --e3d-depth-scale: 1;
  --e3d-scan-overlay: 0;
  --e3d-scan-beam-opacity: 0;
  --e3d-scan-beam-x: 0%;
  --e3d-points-opacity: 0;
  position: relative;
  height: 540vh;
  min-height: 3200px;
  background: #030709;
  color: #fff;
}

.home-page > .onepage-home-header {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  z-index: 40;
  min-height: 0;
  border: 0;
  padding: 20px clamp(18px, 3.5vw, 58px);
  background: linear-gradient(180deg, rgba(2, 6, 8, .82), transparent);
  backdrop-filter: none;
}

.home-page::before {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: calc(var(--e3d-page-progress, 0) * 100%);
  height: 3px;
  background: linear-gradient(90deg, #b87b18, #f0bc5e);
  box-shadow: 0 0 16px rgba(240,188,94,.48);
  content: "";
  pointer-events: none;
  transition: width .08s linear;
}

.home-page .small-rule {
  transform: scaleX(.12);
  transform-origin: left center;
  transition: transform 1.2s cubic-bezier(.16,.74,.16,1) .16s;
}
.home-page .is-visible .small-rule,
.home-page [data-e3d-motion].is-in-view .small-rule,
.home-page .section-title.is-in-view .small-rule { transform: scaleX(1); }

.onepage-home-header .compact-brand .brand-logo {
  width: 100%;
  max-width: 100%;
}

.onepage-home-header .compact-brand {
  box-sizing: border-box;
  width: clamp(320px, 28vw, 420px);
  max-width: calc(100vw - 32px);
  padding: 7px 12px;
  overflow: hidden;
  background: #030303;
}

.onepage-home-header .brand-claim {
  display: flex;
  font-size: clamp(7px, .54vw, 10px);
  letter-spacing: .1em;
}

.onepage-home-header .brand-claim i {
  padding: 0 .3em;
}

.onepage-header-contact {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  gap: 16px;
  border: 1px solid rgba(240, 188, 94, .72);
  padding: 0 18px;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}

.onepage-header-contact:hover,
.onepage-header-contact:focus-visible {
  background: var(--gold-soft);
  color: #05090b;
}

#leistungen,
#projekte,
#ueber-mich,
#ablauf,
#festpreis,
#kontakt {
  scroll-margin-top: 30px;
}

.e3d-scroll-stage {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
  isolation: isolate;
}

.e3d-scroll-media,
.e3d-scroll-poster,
.e3d-scroll-video,
.e3d-scene,
.e3d-scene picture,
.e3d-scene img,
.e3d-vignette,
.e3d-scan-grid,
.e3d-point-cloud,
.e3d-depth-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.e3d-scroll-poster {
  z-index: 1;
  display: block;
  object-fit: cover;
  filter: brightness(1.08) saturate(1.04);
}

.e3d-scroll-video {
  z-index: 1;
  display: block;
  object-fit: cover;
  opacity: 0;
  background: #030709;
  transform: scale(1.01);
  transition: opacity .45s ease;
  will-change: contents;
}

.e3d-scroll-story.is-scroll-video-ready .e3d-scroll-video {
  opacity: 1;
}

.e3d-scroll-story.uses-scroll-video .e3d-scene {
  opacity: 0;
  visibility: hidden;
}

.e3d-scene {
  margin: 0;
  overflow: hidden;
  will-change: opacity, transform;
}

.e3d-scene img {
  display: block;
  object-fit: cover;
  will-change: transform, filter;
}

.e3d-scene-real {
  opacity: var(--e3d-real-opacity);
  transform: scale(var(--e3d-real-scale));
  transform-origin: 57% 56%;
}

.e3d-scene-real img {
  transform: translate3d(var(--e3d-real-image-x), 0, 0) scale(var(--e3d-real-image-scale));
}

.e3d-scene-concept {
  opacity: var(--e3d-concept-opacity);
  transform: scale(var(--e3d-concept-scale));
  transform-origin: 44% 52%;
}

.e3d-scene-concept img {
  filter: saturate(var(--e3d-concept-saturation)) contrast(var(--e3d-concept-contrast));
  transform: translate3d(var(--e3d-concept-x), 0, 0) scale(var(--e3d-concept-image-scale));
}

.e3d-scene-digital {
  opacity: var(--e3d-digital);
  transform: scale(var(--e3d-digital-scale));
}

.e3d-scene-digital img {
  filter: saturate(var(--e3d-digital-saturation)) contrast(1.08);
  transform: scale(var(--e3d-digital-image-scale));
}

.e3d-vignette {
  z-index: 4;
  background:
    linear-gradient(90deg, rgba(3, 7, 9, .88) 0%, rgba(3, 7, 9, .37) 38%, transparent 70%),
    linear-gradient(180deg, rgba(3, 7, 9, .25), transparent 34%, rgba(3, 7, 9, .65));
  pointer-events: none;
}

.e3d-depth-frame {
  z-index: 2;
  inset: 7vh 6vw;
  width: auto;
  height: auto;
  border: 1px solid rgba(240, 188, 94, .72);
  box-shadow: inset 0 0 70px rgba(217, 162, 70, .16);
  opacity: var(--e3d-depth-opacity);
  transform: perspective(900px) translateZ(var(--e3d-depth-z)) scale(var(--e3d-depth-scale));
}

.e3d-scan-grid {
  z-index: 3;
  opacity: var(--e3d-scan-overlay);
  background-image:
    linear-gradient(rgba(224, 170, 76, .2) 1px, transparent 1px),
    linear-gradient(90deg, rgba(224, 170, 76, .2) 1px, transparent 1px);
  background-size: 52px 52px;
  transform: perspective(650px) rotateX(68deg) scale(1.8) translateY(24%);
  transform-origin: center bottom;
}

.e3d-scan-beam {
  position: absolute;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: -12%;
  width: 8%;
  opacity: var(--e3d-scan-beam-opacity);
  background: linear-gradient(90deg, transparent, rgba(240, 188, 94, .82), transparent);
  filter: blur(8px);
  transform: translateX(var(--e3d-scan-beam-x));
}

.e3d-point-cloud {
  z-index: 4;
  opacity: var(--e3d-points-opacity);
  background-image:
    radial-gradient(circle at 18% 23%, #f0bc5e 0 1px, transparent 1.5px),
    radial-gradient(circle at 62% 38%, rgba(255,255,255,.9) 0 1px, transparent 1.5px),
    radial-gradient(circle at 78% 71%, #d9a246 0 1px, transparent 1.5px),
    radial-gradient(circle at 38% 82%, rgba(255,255,255,.75) 0 1px, transparent 1.5px);
  background-size: 47px 43px, 61px 59px, 39px 53px, 71px 67px;
  mix-blend-mode: screen;
}

.e3d-story-copy {
  position: relative;
  z-index: 6;
  width: min(760px, 78vw);
  height: 100%;
  margin-left: clamp(24px, 8vw, 140px);
  pointer-events: none;
}

.e3d-story-chapter {
  position: absolute;
  top: 50%;
  left: 0;
  width: 100%;
  opacity: 0;
  transform: translate3d(0, 44px, 0);
  transition: opacity .55s ease, transform .7s cubic-bezier(.2,.75,.2,1);
  translate: 0 -50%;
  visibility: hidden;
}

.e3d-story-chapter.is-active {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  visibility: visible;
}

.e3d-story-chapter h1,
.e3d-story-chapter h2 {
  max-width: 720px;
  margin: 20px 0 26px;
  color: #fff;
  font-family: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  font-size: clamp(40px, 5.6vw, 88px);
  font-weight: 100;
  line-height: 1.04;
  letter-spacing: .025em;
  text-wrap: balance;
}

.e3d-story-chapter h2 {
  font-size: clamp(34px, 4.5vw, 68px);
}

.e3d-story-chapter > p:not(.eyebrow) {
  max-width: 610px;
  margin: 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(16px, 1.35vw, 21px);
  line-height: 1.75;
}

.e3d-story-chapter .landing-actions {
  margin-top: 34px;
  pointer-events: auto;
}

.e3d-scroll-status {
  position: absolute;
  z-index: 7;
  right: clamp(24px, 4vw, 70px);
  bottom: clamp(22px, 4vh, 50px);
  display: grid;
  grid-template-columns: auto minmax(80px, 13vw) auto auto;
  gap: 12px;
  align-items: center;
  color: rgba(255,255,255,.74);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.e3d-scroll-status > div {
  height: 1px;
  overflow: hidden;
  background: rgba(255,255,255,.3);
}

.e3d-scroll-status i {
  display: block;
  width: 100%;
  height: 100%;
  background: var(--gold-soft);
  transform: scaleX(0);
  transform-origin: left center;
}

.e3d-scroll-status b { color: var(--gold-soft); font-size: 13px; }
.e3d-scroll-status em { font-style: normal; }

.e3d-scroll-cue {
  position: absolute;
  z-index: 12;
  left: clamp(24px, 8vw, 140px);
  right: auto;
  top: clamp(210px, 22vh, 255px);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 14px;
  padding: 11px 12px 11px 20px;
  border: 2px solid rgba(255, 255, 255, .96);
  border-radius: 999px;
  background: rgba(3, 7, 9, .88);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .38), 0 0 0 5px rgba(255, 255, 255, .08);
  color: #fff;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  animation: e3d-scroll-cue-in .7s ease .45s forwards;
  transition: opacity .35s ease, transform .35s ease;
}

.e3d-scroll-cue span {
  padding: 0;
  background: transparent;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.e3d-scroll-cue i {
  display: grid;
  width: 58px;
  height: 58px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #05090b;
  font-size: 28px;
  font-style: normal;
  animation: e3d-scroll-cue-arrow 1.35s ease-in-out infinite;
}

.e3d-scroll-story.has-started .e3d-scroll-cue {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  animation: none;
}

@keyframes e3d-scroll-cue-in {
  to { opacity: 1; transform: translate3d(0, 0, 0); }
}

@keyframes e3d-scroll-cue-arrow {
  0%, 100% { transform: translateY(-2px); }
  50% { transform: translateY(5px); }
}

.e3d-home-intro {
  display: grid;
  grid-template-columns: minmax(180px, .45fr) minmax(320px, 1.2fr) minmax(260px, .75fr);
  gap: clamp(28px, 5vw, 90px);
  align-items: start;
  padding-top: clamp(90px, 11vw, 170px);
  padding-bottom: clamp(90px, 11vw, 170px);
}

.onepage-section-note {
  display: grid;
  grid-template-columns: minmax(180px, .35fr) minmax(280px, .65fr);
  gap: 30px;
  max-width: 780px;
  margin: clamp(36px, 5vw, 70px) 0 0 auto;
  border-top: 1px solid rgba(16, 18, 20, .22);
  padding-top: 22px;
}

.onepage-section-note span {
  color: #826122;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.onepage-section-note p {
  margin: 0;
  color: rgba(16, 18, 20, .7);
  line-height: 1.7;
}

/* Interaktive Referenzstrecke */
.projects-page-section {
  overflow: hidden;
  padding: clamp(90px, 10vw, 160px) 0 clamp(80px, 9vw, 140px) 5vw;
}

.reference-heading {
  display: grid;
  grid-template-columns: minmax(320px, 1.2fr) minmax(260px, .55fr);
  gap: clamp(32px, 7vw, 110px);
  align-items: end;
  padding-right: 5vw;
}

.reference-heading .section-title { margin: 0; }
.reference-intro {
  max-width: 500px;
  margin: 0 0 8px;
  color: rgba(16, 18, 20, .66);
  font-size: 15px;
  line-height: 1.75;
}

.reference-toolbar {
  display: flex;
  gap: 8px;
  margin: clamp(38px, 5vw, 70px) 5vw 26px 0;
  overflow-x: auto;
  padding-bottom: 8px;
  scrollbar-width: thin;
}

.reference-toolbar button {
  flex: 0 0 auto;
  border: 1px solid rgba(16, 18, 20, .2);
  border-radius: 999px;
  padding: 11px 17px;
  background: transparent;
  color: #101214;
  font: inherit;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color .2s ease, background .2s ease, border-color .2s ease;
}

.reference-toolbar button:hover,
.reference-toolbar button:focus-visible,
.reference-toolbar button.is-active {
  border-color: #101214;
  background: #101214;
  color: #f0bc5e;
}

.reference-stage { position: relative; }
.reference-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 32px);
  overflow: visible;
  padding: 0 5vw 20px 0;
  scroll-snap-type: none;
  cursor: default;
  outline: none;
}
.reference-rail::-webkit-scrollbar { display: none; }
.reference-rail.is-dragging { cursor: grabbing; scroll-behavior: auto; user-select: none; }

.reference-card {
  min-width: 0;
  background: #fff;
  transition: opacity .35s ease, transform .45s cubic-bezier(.2,.75,.2,1);
}
.reference-card[hidden] { display: none; }
.reference-card:not(.is-near) { opacity: 1; transform: none; }

.reference-media {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  border: 0;
  padding: 0;
  overflow: hidden;
  background: #111517;
  color: #fff;
  cursor: default;
}
a.reference-media,
.reference-media-button { cursor: pointer; }
.reference-media img {
  display: block;
  width: 100%;
  height: clamp(230px, 28vw, 420px);
  aspect-ratio: auto;
  object-fit: cover;
  transform: scale(var(--e3d-media-scale, 1.02));
  transform-origin: center center;
  transition: transform .16s linear, filter .4s ease;
}
.reference-card:hover .reference-media img,
.reference-media:focus-visible img { transform: scale(calc(var(--e3d-media-scale, 1.02) + .025)); }

.reference-index,
.reference-play,
.reference-open {
  position: absolute;
  z-index: 2;
}
.reference-index {
  top: 18px;
  left: 18px;
  padding: 6px 9px;
  background: rgba(5,10,13,.72);
  color: #fff;
  font-size: 10px;
  letter-spacing: .14em;
}
.reference-play,
.reference-open {
  right: 20px;
  bottom: 20px;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #e5ab48;
  color: #080b0d;
  font-size: 15px;
  box-shadow: 0 12px 34px rgba(0,0,0,.28);
}
.reference-open { font-size: 22px; }

.reference-card-copy { min-height: 220px; padding: clamp(20px, 2.2vw, 30px); }
.reference-card-copy small {
  color: #886521;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.reference-card-copy h3 {
  margin: 12px 0 14px;
  font-size: clamp(23px, 2vw, 32px);
  font-weight: 300;
  line-height: 1.15;
}
.reference-card-copy p {
  max-width: 640px;
  margin: 0;
  color: rgba(16,18,20,.66);
  font-size: 14px;
  line-height: 1.7;
}

.reference-controls {
  display: none;
  justify-content: space-between;
  align-items: center;
  margin: 20px 5vw 0 0;
  border-top: 1px solid rgba(16,18,20,.18);
  padding-top: 18px;
}
.reference-controls p { margin: 0; font-size: 11px; letter-spacing: .14em; }
.reference-controls > div { display: flex; gap: 8px; }
.reference-controls button {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(16,18,20,.25);
  background: transparent;
  color: #101214;
  font-size: 20px;
  cursor: pointer;
  transition: color .2s ease, background .2s ease;
}
.reference-controls button:hover,
.reference-controls button:focus-visible { background: #101214; color: #f0bc5e; }

.reference-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: clamp(18px, 4vw, 70px);
  background: rgba(2,6,8,.94);
  opacity: 1;
  transition: opacity .25s ease;
}
.reference-modal[aria-hidden="true"] { pointer-events: none; opacity: 0; visibility: hidden; }
.reference-modal-inner { width: min(1180px, 100%); }
.reference-modal h2 { margin: 0 0 18px; color: #fff; font-size: clamp(22px, 3vw, 42px); font-weight: 300; }
.reference-modal video { display: block; width: 100%; max-height: 75vh; background: #000; }
.reference-modal-close {
  position: absolute;
  top: 22px;
  right: 24px;
  width: 46px;
  height: 46px;
  border: 1px solid rgba(255,255,255,.35);
  border-radius: 50%;
  background: transparent;
  color: #fff;
  font-size: 30px;
  cursor: pointer;
}
body.reference-modal-open { overflow: hidden; }

.onepage-about {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, .55fr);
  gap: clamp(42px, 7vw, 110px);
  align-items: center;
  min-height: 0;
  padding: clamp(90px, 11vw, 170px) 7vw;
  overflow: hidden;
  isolation: isolate;
}

.onepage-about-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.onepage-about h2,
.onepage-contact h2 {
  margin: 18px 0 30px;
  color: #fff;
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 100;
  line-height: 1.08;
  letter-spacing: .015em;
  text-wrap: balance;
}

.onepage-about-copy > p:not(.eyebrow),
.onepage-contact-copy > p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, .72);
  font-size: clamp(16px, 1.25vw, 20px);
  line-height: 1.8;
}

.onepage-about blockquote {
  max-width: 620px;
  margin: 42px 0 0;
  border-left: 2px solid var(--gold);
  padding: 4px 0 4px 28px;
  color: var(--gold-soft);
  font-size: clamp(20px, 2vw, 30px);
  font-weight: 300;
  line-height: 1.45;
}

.onepage-about-portrait {
  position: relative;
  z-index: 1;
  right: auto;
  bottom: auto;
  width: 100%;
  max-width: 420px;
  margin: 0;
  justify-self: end;
  overflow: hidden;
  border: 1px solid rgba(240, 188, 94, .26);
  opacity: 1;
  pointer-events: none;
  -webkit-mask-image: none;
  mask-image: none;
}

.onepage-about-portrait::before {
  content: none;
}

.onepage-about-portrait img {
  display: block;
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 543 / 669;
  object-fit: cover;
  object-position: center top;
  filter: none;
}

/* Paketvergleich – dieselbe zentrale Preisquelle wie der Festpreisrechner. */
.home-package-section {
  padding: clamp(90px, 10vw, 160px) 5vw clamp(80px, 9vw, 140px);
  background:
    radial-gradient(circle at 52% 15%, rgba(217, 162, 70, .08), transparent 32%),
    #050a0d;
  color: #f7f7f5;
}

.home-package-heading {
  max-width: 820px;
  margin-bottom: clamp(44px, 6vw, 80px);
}

.home-package-heading h2 {
  margin: 0 0 22px;
  color: #f7f7f5;
  font-size: clamp(40px, 5.7vw, 82px);
  font-weight: 100;
  line-height: 1.04;
  letter-spacing: -.02em;
  text-wrap: balance;
}

.home-package-heading > p:last-child {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, .72);
  font-size: 16px;
  line-height: 1.75;
}

.home-package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 1.8vw, 28px);
  max-width: 1500px;
  margin: 0 auto;
}

.home-package-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 650px;
  flex-direction: column;
  padding: clamp(28px, 3.2vw, 46px);
  border: 1px solid rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .025);
  transition: border-color .25s ease, background .25s ease, transform .25s ease;
}

.home-package-card:hover {
  border-color: rgba(240, 188, 94, .72);
  transform: translateY(-4px);
}

.home-package-card.is-recommended {
  border-color: var(--gold);
  background: linear-gradient(180deg, rgba(217, 162, 70, .14), rgba(255, 255, 255, .025));
}

.home-package-badge {
  position: absolute;
  top: 0;
  right: 24px;
  padding: 9px 15px;
  background: var(--gold);
  color: #090b0d;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.home-package-card .eyebrow { margin-bottom: 20px; }

.home-package-card h3 {
  margin: 0;
  color: #f7f7f5;
  font-size: clamp(42px, 4vw, 62px);
  font-weight: 200;
  line-height: 1;
  letter-spacing: .01em;
}

.home-package-subtitle {
  min-height: 58px;
  margin: 24px 0 18px;
  color: rgba(255, 255, 255, .82);
  font-size: 16px;
  line-height: 1.55;
}

.home-package-price {
  display: block;
  margin: 18px 0 22px;
  color: var(--gold-soft);
  font-size: 16px;
}

.home-package-card ul {
  flex: 1;
  margin: 0 0 30px;
  padding: 26px 0 0;
  border-top: 1px solid rgba(255, 255, 255, .16);
  list-style: none;
}

.home-package-card li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 20px;
  color: rgba(255, 255, 255, .9);
  font-size: 15px;
  line-height: 1.45;
}

.home-package-card li::before {
  position: absolute;
  left: 0;
  color: var(--gold-soft);
  content: "✓";
}

.home-package-button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--gold);
  border-radius: 999px;
  padding: 12px 18px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  transition: background .2s ease, color .2s ease, transform .2s ease;
}

.home-package-button:hover,
.home-package-button:focus-visible {
  background: var(--gold);
  color: #050a0d;
  transform: translateY(-2px);
}

.e3d-back-to-top {
  display: flex;
  min-height: 86px;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-top: 1px solid rgba(240, 188, 94, .32);
  background: #030709;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .15em;
  text-transform: uppercase;
  transition: color .2s ease, background .2s ease;
}

.e3d-back-to-top i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: var(--gold-soft);
  color: #05090b;
  font-size: 22px;
  font-style: normal;
  transition: transform .2s ease;
}

.e3d-back-to-top:hover,
.e3d-back-to-top:focus-visible { background: #111719; color: var(--gold-soft); }
.e3d-back-to-top:hover i,
.e3d-back-to-top:focus-visible i { transform: translateY(-3px); }

/* Einheitliche, ruhige Einblendung ohne konkurrierende Scroll-Bewegungen. */
[data-e3d-motion] {
  opacity: 0;
  transition:
    opacity .95s ease,
    transform 1.05s cubic-bezier(.16,.74,.16,1);
  transition-delay: var(--e3d-motion-delay, 0ms);
  will-change: opacity, transform;
}
[data-e3d-motion] { transform: translate3d(0, 22px, 0) scale(.97); }
[data-e3d-motion].is-in-view { opacity: 1; transform: translate3d(0, 0, 0) scale(1); }

/* Ruhiger, klar gegliederter Abschluss der Onepage. */
.home-page .landing-footer {
  grid-template-columns: minmax(250px, .7fr) minmax(540px, 1.3fr);
  grid-template-areas:
    "brand nav"
    "brand legal";
  gap: 28px clamp(50px, 8vw, 130px);
  align-items: center;
  padding: clamp(52px, 6vw, 88px) 6vw clamp(34px, 4vw, 56px);
}
.home-page .landing-footer > * {
  opacity: 1 !important;
  transform: none !important;
}
.home-page .landing-footer .brand {
  grid-area: brand;
  justify-self: start;
}
.home-page .landing-footer .brand-logo { width: min(320px, 25vw); }
.home-page .footer-nav {
  grid-area: nav;
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 16px 36px;
  justify-content: stretch;
  border-bottom: 1px solid rgba(255,255,255,.14);
  padding-bottom: 28px;
}
.home-page .footer-nav a { width: max-content; }
.home-page .footer-nav a::after { bottom: -7px; }
.home-page .footer-legal {
  grid-area: legal;
  justify-content: flex-start;
  gap: 8px 14px;
}
.home-page .footer-legal p {
  flex: 1 0 100%;
  margin-top: 10px;
}

/* Mitlaufende Schnellaktionen für allgemeine Projekte und Scan-Festpreis */
.e3d-floating-actions {
  position: fixed;
  z-index: 80;
  right: clamp(16px, 2.4vw, 38px);
  top: clamp(82px, 9vh, 108px);
  bottom: auto;
  display: flex;
  gap: 8px;
  transition: opacity .3s ease, transform .35s ease;
}
.e3d-floating-action {
  position: relative;
  display: grid;
  width: 192px;
  min-width: 192px;
  border: 1px solid rgba(240,188,94,.76);
  border-radius: 999px;
  padding: 12px 20px;
  background: rgba(6,10,12,.92);
  color: #fff;
  box-shadow: 0 18px 48px rgba(0,0,0,.3);
  backdrop-filter: blur(12px);
  transition: transform .25s ease, background .2s ease;
}
.e3d-floating-scan,
.e3d-floating-contact { padding-right: 62px; }
.e3d-floating-action span { color: #e8b356; font-size: 9px; letter-spacing: .13em; text-transform: uppercase; }
.e3d-floating-action strong { font-size: 13px; font-weight: 500; white-space: nowrap; }
.e3d-floating-action i {
  position: absolute;
  top: 50%;
  right: 17px;
  display: grid;
  width: 27px;
  height: 27px;
  place-items: center;
  border-radius: 50%;
  background: #e5ab48;
  color: #05090b;
  font-style: normal;
  transform: translateY(-50%);
  animation: e3d-action-pulse 2.15s ease-in-out infinite;
}

@keyframes e3d-action-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(240,188,94,.48);
    transform: translateY(-50%) scale(1);
  }
  50% {
    box-shadow: 0 0 0 6px rgba(240,188,94,0);
    transform: translateY(-50%) scale(1.04);
  }
}
.e3d-floating-action:hover,
.e3d-floating-action:focus-visible { background: #151a1d; transform: translateY(-3px); }
.e3d-floating-actions.is-hidden { pointer-events: none; opacity: 0; transform: translateY(20px); }

.onepage-process {
  min-height: 100vh;
  padding: clamp(90px, 10vw, 160px) 5vw;
}

.onepage-process .section-title {
  max-width: 850px;
}

.onepage-process-track {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  max-width: 1500px;
  margin-top: clamp(50px, 7vw, 100px);
  background: rgba(16, 18, 20, .15);
}

.onepage-process-track article {
  min-height: 280px;
  padding: clamp(26px, 3.5vw, 54px);
  background: #f7f3ee;
  transition: color .3s ease, background .3s ease, transform .3s ease;
}

.onepage-process-track article:hover {
  z-index: 1;
  background: #111517;
  color: #fff;
  transform: translateY(-8px);
}

.onepage-process-track strong {
  display: block;
  margin-bottom: 58px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .18em;
}

.onepage-process-track span {
  display: block;
  margin-bottom: 18px;
  font-size: clamp(24px, 2.2vw, 36px);
  font-weight: 300;
}

.onepage-process-track p {
  margin: 0;
  color: inherit;
  font-size: 14px;
  line-height: 1.7;
  opacity: .68;
}

.onepage-contact {
  display: grid;
  grid-template-columns: minmax(320px, .8fr) minmax(380px, 1fr);
  gap: clamp(50px, 9vw, 150px);
  align-items: start;
  min-height: 0;
  padding: clamp(72px, 8vw, 120px) 6vw clamp(56px, 6vw, 86px);
}

.onepage-contact-data {
  display: grid;
  gap: 1px;
  max-width: 580px;
  margin-top: 34px;
  background: rgba(255,255,255,.15);
}

.onepage-contact-data > * {
  display: grid;
  gap: 8px;
  padding: 16px 0;
  background: #050a0d;
  color: #fff;
}

.onepage-contact-data small {
  color: var(--gold-soft);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.onepage-contact-data strong {
  font-size: clamp(16px, 1.4vw, 21px);
  font-weight: 400;
  line-height: 1.5;
}

.onepage-contact-form {
  border-top: 2px solid var(--gold);
  padding: clamp(28px, 4vw, 58px);
  background: #f3eee8;
  color: #101214;
}

.onepage-contact-form .contact-card-form {
  position: static;
  display: grid;
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  box-shadow: none;
}

.onepage-contact-form .contact-card-form h3,
.onepage-contact-form .contact-card-form .wide,
.onepage-contact-form .contact-card-form button {
  grid-column: 1 / -1;
}

.onepage-contact-form h3 {
  margin: 0 0 30px;
  font-size: clamp(28px, 3vw, 46px);
  font-weight: 300;
}

.e3d-home-intro h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(31px, 3.6vw, 56px);
  font-weight: 200;
  line-height: 1.17;
}

.e3d-home-intro > p:not(.eyebrow) {
  margin: 0 0 30px;
  color: rgba(255,255,255,.72);
  font-size: 16px;
  line-height: 1.8;
}

[data-e3d-reveal] {
  opacity: 0;
  transform: translate3d(0, 42px, 0);
  transition: opacity .8s ease, transform .9s cubic-bezier(.2,.75,.2,1);
}

[data-e3d-reveal].is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

@media (max-width: 900px) {
  .e3d-scroll-story { height: 460vh; min-height: 2600px; }
  .e3d-scroll-stage { min-height: 560px; }
  .e3d-story-copy { width: calc(100% - 48px); margin-left: 24px; }
  .e3d-scroll-cue { left: 24px; }
  .e3d-story-chapter { top: 46%; }
  .e3d-story-chapter h1,
  .e3d-story-chapter h2 { max-width: 630px; }
  .e3d-vignette {
    background: linear-gradient(180deg, rgba(3,7,9,.28), rgba(3,7,9,.48) 40%, rgba(3,7,9,.9));
  }
  .e3d-scroll-status { left: 24px; right: 24px; grid-template-columns: auto 1fr auto auto; }
  .e3d-home-intro { grid-template-columns: 1fr; }
  .e3d-home-intro .eyebrow { margin-bottom: 0; }
  .reference-heading,
  .onepage-contact { grid-template-columns: 1fr; min-height: 0; }
  .onepage-about { grid-template-columns: minmax(0, 1fr) minmax(240px, 320px); min-height: 0; }
  .reference-rail { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .onepage-about-portrait { position: relative; right: auto; bottom: auto; width: 100%; max-width: 320px; opacity: 1; }
  .onepage-process-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-package-grid { grid-template-columns: 1fr; max-width: 680px; }
  .home-package-card { min-height: 0; }
  .home-package-subtitle { min-height: 0; }
  .home-page .landing-footer {
    grid-template-columns: 1fr;
    grid-template-areas: "brand" "nav" "legal";
    gap: 32px;
  }
  .home-page .landing-footer .brand-logo { width: min(300px, 64vw); }
  .home-page .footer-nav { grid-template-columns: repeat(3, minmax(100px, 1fr)); }
  .home-page [data-e3d-reveal],
  .home-page [data-e3d-motion] {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

@media (max-width: 560px) {
  .home-page > .onepage-home-header { padding: 14px 16px; }
  .onepage-home-header .compact-brand { width: min(350px, calc(100vw - 32px)); }
  .onepage-home-header .compact-brand .brand-logo { width: 100%; }
  .onepage-home-header .brand-claim { font-size: clamp(6px, 1.65vw, 7px); letter-spacing: .08em; }
  .onepage-header-contact { min-height: 38px; padding: 0 12px; font-size: 9px; }
  .e3d-scroll-story { height: 420vh; min-height: 2300px; }
  .e3d-scroll-stage { min-height: 520px; }
  .e3d-story-copy { width: calc(100% - 36px); margin-left: 18px; }
  .e3d-scroll-cue { left: 18px; top: 150px; max-width: calc(100vw - 36px); gap: 10px; padding: 8px 9px 8px 15px; }
  .e3d-scroll-cue span { font-size: 11px; letter-spacing: .12em; }
  .e3d-scroll-cue i { width: 46px; height: 46px; font-size: 22px; }
  .e3d-story-chapter { top: 43%; }
  .e3d-story-chapter h1 { max-width: 100%; font-size: clamp(34px, 11vw, 48px); line-height: 1.06; }
  .e3d-story-chapter h2 { font-size: clamp(31px, 9.5vw, 46px); }
  .e3d-story-chapter > p:not(.eyebrow) { max-width: calc(100vw - 42px); line-height: 1.6; }
  .e3d-story-final .landing-actions { align-items: flex-start; flex-direction: column; }
  .e3d-scroll-status > span { display: none; }
  .e3d-scroll-status { grid-template-columns: 1fr auto auto; }
  .e3d-depth-frame { inset: 5vh 18px; }
  .onepage-section-note { grid-template-columns: 1fr; gap: 10px; }
  .projects-page-section { padding-left: 22px; }
  .reference-heading { padding-right: 22px; }
  .reference-toolbar { margin-right: 22px; }
  .reference-card-copy { min-height: 185px; padding: 20px; }
  .reference-controls { margin-right: 22px; }
  .onepage-about,
  .onepage-process,
  .home-package-section,
  .onepage-contact { padding-right: 22px; padding-left: 22px; }
  .onepage-process-track { grid-template-columns: 1fr; }
  .onepage-process-track article { min-height: 220px; }
  .onepage-contact-form { padding: 24px 18px; }
  .onepage-contact-form .contact-card-form { grid-template-columns: 1fr; }
  .onepage-contact-form .contact-card-form > * { grid-column: 1 / -1; }
  .e3d-home-intro,
  .strategic-services,
  .home-focus-section,
  .projects-page-section,
  .onepage-about,
  .onepage-process,
  .onepage-contact { padding-top: 72px; padding-bottom: 72px; }
  .home-page .section-title h2,
  .home-package-heading h2,
  .onepage-about h2,
  .onepage-contact h2 {
    max-width: 100%;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    font-size: clamp(30px, 9vw, 40px);
    line-height: 1.12;
    letter-spacing: 0;
    text-wrap: pretty;
  }
  .e3d-story-chapter h1,
  .e3d-story-chapter h2,
  .reference-card-copy h3,
  .onepage-process-track h3 {
    overflow-wrap: normal;
    word-break: normal;
    hyphens: auto;
    text-wrap: pretty;
  }
  .home-focus-grid { grid-template-columns: 1fr; gap: 26px; }
  .home-focus-grid figure { min-height: 0; }
  .home-focus-grid figure img { width: 100%; height: auto; max-height: none; object-fit: cover; }
  .onepage-about { grid-template-columns: 1fr; min-height: 0; overflow: visible; }
  .onepage-about-copy { max-width: none; }
  .onepage-about blockquote { margin-top: 30px; padding-left: 18px; font-size: 20px; }
  .reference-rail { grid-template-columns: 1fr; padding-right: 22px; }
  .reference-media img { height: min(92vw, 430px); }
  .onepage-about-portrait { position: relative; right: auto; bottom: auto; width: min(78vw, 300px); margin: 8px auto 0; overflow: hidden; opacity: 1; }
  .onepage-about-portrait img { width: 100%; max-height: none; aspect-ratio: 543 / 669; object-fit: cover; object-position: center top; filter: none; }
  .home-package-heading { margin-bottom: 36px; }
  .home-package-card { padding: 26px 22px; }
  .home-package-card h3 { font-size: 42px; }
  .home-package-card li { font-size: 14px; }
  .e3d-floating-actions {
    right: 12px;
    bottom: 12px;
    left: 12px;
    top: auto;
    flex-direction: row;
    gap: 6px;
  }
  .e3d-floating-action { width: auto; min-width: 0; flex: 1 1 0; min-height: 48px; padding: 10px 36px 10px 12px; }
  .e3d-floating-scan,
  .e3d-floating-contact { padding-right: 36px; }
  .e3d-floating-action span { display: none; }
  .e3d-floating-action strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
  .e3d-floating-action i { right: 8px; width: 24px; height: 24px; }
  .home-page .landing-footer { padding: 44px 22px 96px; }
  .e3d-back-to-top { min-height: 0; padding: 20px 18px 86px; font-size: 10px; }
  .e3d-back-to-top i { width: 38px; height: 38px; font-size: 20px; }
  .home-page .footer-nav { grid-template-columns: repeat(2, minmax(110px, 1fr)); gap: 16px 24px; }
  .home-page .footer-legal { align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  .e3d-scroll-story { height: auto; min-height: 0; }
  .e3d-scroll-stage { position: relative; height: auto; min-height: 780px; }
  .e3d-scene:not(.e3d-scene-real),
  .e3d-scroll-video,
  .e3d-scan-grid,
  .e3d-scan-beam,
  .e3d-point-cloud,
  .e3d-depth-frame,
  .e3d-scroll-status,
  .e3d-scroll-cue { display: none; }
  .e3d-scene-real { opacity: 1; transform: none; }
  .e3d-scene-real img { transform: none; }
  .e3d-story-copy { min-height: 780px; }
  .e3d-story-chapter { display: none; transition: none; }
  .e3d-story-chapter:first-child { display: block; opacity: 1; transform: none; visibility: visible; }
  [data-e3d-reveal] { opacity: 1; transform: none; transition: none; }
  .reference-rail { scroll-behavior: auto; }
  .reference-card,
  .reference-media img,
  .e3d-floating-actions,
  .e3d-floating-action { transition: none; }
  .e3d-floating-action i { animation: none; }
  .home-page::before { transition: none; }
  [data-e3d-motion] { opacity: 1; transform: none; transition: none; }
  [data-e3d-parallax] img { transform: none; transition: none; }
  .home-page .detail-card,
  .home-page .reference-card,
  .home-page .onepage-process-track article,
  .home-page .dt-price-head > *,
  .home-page .onepage-contact > * { animation: none; opacity: 1; transform: none; filter: none; }
}
