/* Falax-Construction GmbH – Effekte (zu js/fx.js) */

html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------- Seitenübergang ---------- */
.pt { position: fixed; inset: 0; z-index: 990; pointer-events: none; transform: translateY(100%); transition: transform .65s cubic-bezier(.76, 0, .24, 1); }
.pt-panel { position: absolute; inset: 0; background: var(--navy-0); }
.pt-panel::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 6px; background: var(--gold); }
.pt-mark { position: absolute; left: 50%; top: 50%; width: min(300px, 60vw); transform: translate(-50%, -50%); opacity: 0; transition: opacity .3s .25s; }
html.pt-geht .pt { transform: translateY(0); pointer-events: auto; }
html.pt-geht .pt-mark { opacity: 1; }
html.pt-kommt .pt { transform: translateY(0); transition: none; }
html.pt-kommt .pt-mark { opacity: 1; transition: none; }
html.pt-kommt.pt-weg .pt { transform: translateY(-100%); transition: transform .8s cubic-bezier(.76, 0, .24, 1); }
html.pt-kommt.pt-weg .pt-mark { opacity: 0; transition: opacity .25s; }

/* ---------- Mauszeiger ---------- */
html.fx-cursor body, html.fx-cursor a, html.fx-cursor button, html.fx-cursor summary, html.fx-cursor label, html.fx-cursor .g-item { cursor: none; }
.cur-dot, .cur-ring { position: fixed; left: 0; top: 0; z-index: 1000; pointer-events: none; opacity: 0; transition: opacity .3s; }
html.cur-sichtbar .cur-dot, html.cur-sichtbar .cur-ring { opacity: 1; }
.cur-dot { width: 8px; height: 8px; margin: -4px 0 0 -4px; border-radius: 50%; background: var(--gold); }
.cur-ring { width: 40px; height: 40px; margin: -20px 0 0 -20px; }
.cur-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid rgba(248, 180, 0, .75); transition: transform .45s var(--ease), background .3s, border-color .3s; }
.cur-ring span { position: absolute; inset: 0; display: grid; place-items: center; font: 800 11px/1 var(--body); letter-spacing: 1px; text-transform: uppercase; color: var(--navy); opacity: 0; transition: opacity .25s; }
.cur-ring.link::before { transform: scale(1.6); background: rgba(248, 180, 0, .12); }
.cur-ring.gross::before { transform: scale(2.4); background: var(--gold); border-color: var(--gold); }
.cur-ring.gross span { opacity: 1; }
.cur-ring.druck::before { transform: scale(.8); }
html.fx-cursor .cursor-glow { display: none; }

/* ---------- Rollender Knopftext ---------- */
.roll { display: inline-grid; overflow: hidden; vertical-align: top; line-height: 1.15; }
.roll > span { grid-area: 1 / 1; transition: transform .55s var(--ease); }
.roll > span + span { transform: translateY(105%); }
.btn:hover .roll > span:first-child, .nl:hover .roll > span:first-child { transform: translateY(-105%); }
.btn:hover .roll > span + span, .nl:hover .roll > span + span { transform: translateY(0); }

/* ---------- Überschriften Buchstabe für Buchstabe ---------- */
.w-ch { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; white-space: nowrap; }
.ch { display: inline-block; transform: translateY(110%) rotate(8deg); transform-origin: 0 100%; transition: transform .9s var(--ease); transition-delay: calc(var(--ci, 0) * 22ms); }
.ch-in .ch { transform: none; }
[data-ch] .shimmer { display: inline-block; clip-path: inset(0 100% 0 0); transition: clip-path 1.1s var(--ease); transition-delay: calc(var(--ci, 0) * 22ms); }
[data-ch].ch-in .shimmer { clip-path: inset(0 0 0 0); }

/* ---------- Goldener Vorhang über Bildern ---------- */
.reveal-img { position: relative; }
.reveal-img::after { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--gold); transform: scaleX(0); transform-origin: left; pointer-events: none; }
.reveal-img.in::after { animation: vorhang 1.2s var(--ease) both; animation-delay: var(--d, 0ms); }
@keyframes vorhang { 0% { transform: scaleX(0); transform-origin: left; } 45% { transform: scaleX(1); transform-origin: left; } 55% { transform: scaleX(1); transform-origin: right; } 100% { transform: scaleX(0); transform-origin: right; } }
.reveal-img.in img { transition-delay: calc(var(--d, 0ms) + 350ms); }

/* ---------- Körnung ---------- */
body::after { content: ""; position: fixed; inset: 0; z-index: 998; pointer-events: none; opacity: .045; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
@keyframes korn { 0% { transform: translate(0, 0); } 20% { transform: translate(-5%, 3%); } 40% { transform: translate(4%, -6%); } 60% { transform: translate(-3%, 8%); } 80% { transform: translate(7%, -2%); } 100% { transform: translate(0, 0); } }

/* ---------- Hero: Ebenen und Drehsiegel ---------- */
.hero .hero-mark { transform: translate(calc(var(--hx, 0) * -40px), calc(-46% + var(--hy, 0) * -30px)); transition: transform .6s var(--ease); }
.hero .hero-grid { transform: translate(calc(var(--hx, 0) * 18px), calc(var(--hy, 0) * 18px)); transition: transform .6s var(--ease); }
.seal { position: absolute; right: max(24px, calc((100vw - var(--max)) / 2 + 24px)); bottom: 70px; z-index: 4; width: 150px; height: 150px; display: grid; place-items: center; color: #fff; text-decoration: none; }
.seal svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.seal text { font: 700 12.5px/1 var(--body); letter-spacing: 3.2px; fill: #fff; text-transform: uppercase; }
.seal-in { width: 74px; height: 74px; border-radius: 50%; background: var(--gold); color: var(--navy); display: grid; place-items: center; transition: transform .5s var(--ease); box-shadow: 0 12px 40px -10px rgba(248, 180, 0, .8); }
.seal-in .ico { width: 26px; height: 26px; transform: rotate(-45deg); transition: transform .5s var(--ease); }
.seal:hover .seal-in { transform: scale(1.12); }
.seal:hover .seal-in .ico { transform: rotate(0); }

/* ---------- Bauplan-Zeichnung ---------- */
.blueprint { width: 100%; max-width: 460px; margin-top: 34px; overflow: visible; }
.blueprint * { fill: none; stroke: var(--gold); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 1; vector-effect: non-scaling-stroke; }
.blueprint .bp-fein { stroke: var(--muted); stroke-width: 1; opacity: .6; }
.blueprint text { fill: var(--muted); stroke: none; font: 700 11px var(--body); letter-spacing: 1px; stroke-dasharray: none; }

/* ---------- Große Laufschrift ---------- */
.mega { padding: 70px 0; overflow: hidden; background: var(--bg); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mega-row { white-space: nowrap; overflow: hidden; }
.mega-track { display: inline-flex; align-items: center; will-change: transform; }
.mega-track span { font: 800 clamp(64px, 10vw, 170px)/1.02 var(--head); text-transform: uppercase; color: var(--ink); padding-right: .35em; display: inline-flex; align-items: center; gap: .35em; }
.mega-track span::after { content: ""; width: .32em; height: .32em; background: var(--gold); transform: rotate(45deg); flex: none; }
.mega-track span.o { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.mega-row + .mega-row .mega-track span { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.mega-row + .mega-row .mega-track span.o { color: var(--gold); -webkit-text-stroke: 0; }

/* ---------- Leistungsliste mit schwebendem Bild ---------- */
.svc-list { border-top: 1px solid var(--line); }
.svc-row { position: relative; display: grid; grid-template-columns: 70px 1fr minmax(0, 420px) 60px; align-items: center; gap: 24px; padding: 30px 10px; border-bottom: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; isolation: isolate; }
.svc-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--navy-2); transform: scaleY(0); transform-origin: bottom; transition: transform .55s var(--ease); }
.svc-row:hover::before { transform: scaleY(1); transform-origin: top; }
.sr-num { font: 800 16px/1 var(--head); color: var(--gold-dark); transition: color .3s; }
.sr-name { font: 800 clamp(30px, 4vw, 54px)/1 var(--head); text-transform: uppercase; transition: transform .55s var(--ease), color .3s; }
.sr-kurz { font-size: 15px; color: var(--text); transition: color .3s, opacity .3s; }
.sr-arrow { width: 54px; height: 54px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; transition: all .45s var(--ease); }
.sr-arrow .ico { width: 20px; height: 20px; transform: rotate(-45deg); transition: transform .45s var(--ease); }
.sr-thumb { display: none; }
.svc-row:hover .sr-name { transform: translateX(18px); color: #fff; }
.svc-row:hover .sr-num { color: var(--gold); }
.svc-row:hover .sr-kurz { color: #b9c5d8; }
.svc-row:hover .sr-arrow { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.svc-row:hover .sr-arrow .ico { transform: rotate(0); }
.svc-float { position: fixed; left: 0; top: 0; z-index: 60; width: 340px; height: 240px; margin: -120px 0 0 -170px; pointer-events: none; border-radius: 16px; overflow: hidden; opacity: 0; scale: .6; transition: opacity .35s, scale .5s var(--ease); box-shadow: 0 30px 70px -20px rgba(7, 15, 32, .6); }
.svc-float.an { opacity: 1; scale: 1; }
.svc-float img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Ablauf quer ---------- */
.hscroll { padding: 0; background: var(--navy); color: #b9c5d8; position: relative; }
.hs-sticky { padding: 110px 0 90px; overflow: hidden; }
.hscroll.pin .hs-sticky { position: sticky; top: 0; height: 100vh; padding: 0; display: flex; flex-direction: column; justify-content: center; }
.hs-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 46px; }
.hs-head h2 { color: #fff; font-size: clamp(38px, 4.8vw, 62px); text-transform: uppercase; margin-top: 14px; }
.hs-bar { width: 260px; height: 3px; background: rgba(255, 255, 255, .12); border-radius: 3px; overflow: hidden; flex: none; }
.hs-bar i { display: block; height: 100%; background: var(--gold); transform: scaleX(0); transform-origin: left; }
.hs-track { display: flex; gap: 26px; padding: 0 max(24px, calc((100vw - var(--max)) / 2 + 24px)); will-change: transform; }
.hs-card { position: relative; flex: none; width: min(460px, 80vw); height: min(58vh, 520px); border-radius: 20px; overflow: hidden; color: #fff; }
.hs-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease); }
.hs-card:hover img { transform: scale(1.07); }
.hs-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(7, 15, 32, .95) 10%, rgba(7, 15, 32, .35) 60%, rgba(7, 15, 32, .15)); }
.hs-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 30px; }
.hs-n { position: absolute; z-index: 2; top: 18px; left: 26px; font: 800 96px/1 var(--head); color: transparent; -webkit-text-stroke: 2px rgba(255, 255, 255, .7); }
.hs-body .tag { display: inline-block; font: 800 12px/1 var(--body); letter-spacing: 1.6px; text-transform: uppercase; color: var(--navy); background: var(--gold); padding: 7px 10px; border-radius: 6px; }
.hs-body h3 { color: #fff; font-size: 32px; text-transform: uppercase; margin: 14px 0 8px; }
.hs-body p { color: #d0d9e6; font-size: 15.5px; }
.hscroll:not(.pin) .hs-track { overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 14px; }
.hscroll:not(.pin) .hs-card { scroll-snap-align: start; }

/* ---------- Großer Schriftzug in der Fußzeile ---------- */
.foot-giant { overflow: hidden; margin-top: 50px; line-height: .8; user-select: none; }
.foot-giant span { display: block; font: 800 clamp(80px, 21vw, 360px)/.8 var(--head); text-transform: uppercase; text-align: center; letter-spacing: -.01em; background: linear-gradient(180deg, rgba(248, 180, 0, .9), rgba(248, 180, 0, .05)); -webkit-background-clip: text; background-clip: text; color: transparent; transform: translateY(40%); transition: transform 1.4s var(--ease); }
.foot-giant.in span { transform: translateY(8%); }

/* ---------- Handy & Aufnahme ---------- */
@media (max-width: 980px) {
  .seal { display: none; }
  .svc-row { grid-template-columns: 64px minmax(0, 1fr) 44px; gap: 16px; padding: 18px 4px; }
  .sr-num { display: none; }
  .sr-thumb { display: block; width: 64px; height: 64px; border-radius: 12px; object-fit: cover; }
  .sr-kurz { display: none; }
  .sr-name { font-size: clamp(18px, 5.4vw, 24px); hyphens: auto; -webkit-hyphens: auto; }
  .sr-arrow { width: 40px; height: 40px; }
  .hs-head { flex-direction: column; align-items: flex-start; }
  .hs-card { height: 440px; }
  .mega { padding: 44px 0; }
}
html.shot .pt, html.shot .reveal-img::after, html.shot body::after { display: none !important; }
html.shot .foot-giant span { transform: translateY(8%); transition: none; }
html.shot .ch, html.shot [data-ch] .shimmer { transition: none !important; }
@media (prefers-reduced-motion: reduce) {
  body::after, .reveal-img::after, .pt { display: none; }
  .ch { transform: none; }
  [data-ch] .shimmer { clip-path: none; }
  .foot-giant span { transform: none; }
}

.aud img[data-par] { transition: none; will-change: transform; }

.hscroll:not(.pin) .hs-bar { display: none; }
.pt .fx-logo { --lg-a: #ffffff; }
