/* Duftarchitektur Display Light, Hausschrift aus Duftarchitektur-Display-Font-Kit/02-Web.
   Nur fuer die Unterzeile "Duft Raum Marke" im Hero. Titel bleiben Helvetica Neue. */
@font-face { font-family: "Duftarchitektur Display"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("assets/fonts/DuftarchitekturDisplay-Light.woff2") format("woff2"),
       url("assets/fonts/DuftarchitekturDisplay-Light.woff") format("woff"); }

/* Duftarchitektur, draft. Layout follows the Heart Aerospace reference (bold grotesk headlines,
   grey copy, big white space, full-bleed image break, black footer). Schwarz-weiss-Variante: gleiche Struktur, neutrale Graustufen. */

:root {
  --ink: #2d2b27;
  --deep: #2d2b27;
  --gray: #7a7269;
  --sage: #beb7ae;
  --aqua: #c1bab1;
  --lemon: #e3dfd8;
  --bg: #f4f2ec;
  --e: cubic-bezier(.16, 1, .3, 1);
  --pad: 6.5vw;
  --head: "Helvetica Neue", Helvetica, "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
html, body { margin: 0; overflow-x: clip; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--head);
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; text-decoration: none; }
svg { display: block; }

/* ---------- air canvas ---------- */
#air {
  position: fixed; inset: 0; width: 100vw; height: 100vh;
  z-index: 0; pointer-events: none;
}
#smooth { position: relative; z-index: 1; will-change: transform; }
body::after {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--grain); opacity: .026;
}

/* ---------- header ---------- */
.bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  height: 74px; padding: 0 4.9vw;
  display: flex; align-items: center; justify-content: space-between;
  background: rgba(250, 248, 244, .94);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  transition: box-shadow .6s var(--e);
}
.bar.scrolled { box-shadow: 0 1px 0 rgba(52, 49, 45, .07); }
.brand { display: inline-flex; align-items: center; color: var(--deep); }
.brand .logo { display: block; height: 30px; width: auto; aspect-ratio: 1440 / 158; overflow: visible; }
.brand .logo-s { display: none; aspect-ratio: 90 / 158; }
.nav { display: flex; align-items: center; gap: 2.1vw; font-size: 15px; }
.nav a { position: relative; padding: 6px 0; }
.nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px;
  background: var(--deep); transform: scaleX(0); transform-origin: left;
  transition: transform .8s var(--e);
}
.nav a:hover::after { transform: scaleX(1); }
.lang {
  font: inherit; font-size: 13px; letter-spacing: .06em; background: none; border: 0; cursor: pointer;
  color: var(--gray); padding: 6px 0 6px 6px; margin-left: 4px;
}
.lang [data-l].on { color: var(--ink); }
.lang .sl { margin: 0 .35em; opacity: .5; }

/* ---------- clouds (textures are generated in main.js) ---------- */
.clouds { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.cl { position: absolute; left: 0; right: 0; top: -20%; height: 140%; }
.cl::before {
  content: ""; position: absolute; top: 0; left: 0; width: 200%; height: 100%;
  background-repeat: repeat-x; background-size: 50% 100%;
  will-change: transform; animation: drift 200s linear infinite;
}
.cl-a::before { background-image: var(--cloud-a); opacity: .85; }
.cl-b::before { background-image: var(--cloud-b); opacity: .7; animation-duration: 130s; }
.cl-c::before { background-image: var(--cloud-c); opacity: .6; animation-duration: 95s; }
@keyframes drift { to { transform: translate3d(-50%, 0, 0); } }

/* ---------- hero ---------- */
.hero {
  position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden;
  display: grid; place-items: center;
}
.hero-bg {
  position: absolute; inset: -320px 0 0 0;
  background:
    radial-gradient(60% 50% at 88% 22%, rgba(193, 186, 177, .55), transparent 70%),
    radial-gradient(50% 45% at 8% 78%, rgba(227, 223, 216, .55), transparent 70%),
    linear-gradient(180deg, #beb7ae 0%, #d6d0c9 30%, #e8e4dd 62%, var(--bg) 100%);
}
.hero-clouds {
  -webkit-mask-image: linear-gradient(180deg, #000000 45%, transparent 100%);
  mask-image: linear-gradient(180deg, #000000 45%, transparent 100%);
}
.lockup { position: relative; width: min(88vw, 1020px); margin-top: 4vh; will-change: transform, opacity, filter; }
.lockup svg { width: 100%; height: auto; overflow: visible; animation: float 14s ease-in-out infinite; }
@keyframes float { 50% { transform: translate3d(0, -12px, 0); } }

.frame path { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 3s cubic-bezier(.65, 0, .35, 1) .35s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.wm { opacity: 0; animation: unblur 2.6s var(--e) 1s forwards; }
@keyframes unblur { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: blur(0); } }

.wisp { stroke-dasharray: 130 250; opacity: 0; animation: rise 11s linear infinite, wfade 2s ease 1.6s forwards; }
.w1 { animation-duration: 12s, 2s; }
.w2 { animation-duration: 9s, 2s; animation-delay: -3s, 1.6s; }
.w3 { animation-duration: 14s, 2s; animation-delay: -6s, 1.6s; }
.w4 { animation-duration: 10s, 2s; animation-delay: -8s, 1.6s; }
.w5 { animation-duration: 13s, 2s; animation-delay: -2s, 1.6s; }
@keyframes rise { from { stroke-dashoffset: 380; } to { stroke-dashoffset: -380; } }
@keyframes wfade { to { opacity: 1; } }


.cue {
  position: absolute; left: 50%; bottom: 5vh; transform: translateX(-50%);
  display: flex; justify-content: center; padding: 10px 22px; opacity: .7;
}
.cue i { width: 1px; height: 64px; background: linear-gradient(var(--deep), transparent); transform-origin: top; animation: cue 4.2s var(--e) infinite; }
@keyframes cue { 0% { transform: scaleY(0); } 50% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }

/* ---------- type ---------- */
.big {
  font: 700 clamp(3.2rem, 9.6vw, 10.2rem)/.93 var(--head);
  letter-spacing: -.055em;
}
.lead { font-size: clamp(1.05rem, 1.4vw, 1.45rem); line-height: 1.5; color: var(--gray); max-width: 31em; margin-top: 3.4rem; }
.eyebrow { font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--gray); }

/* reveal, slow and soft */
.rv { opacity: 0; transform: translate3d(0, 36px, 0); filter: blur(10px);
  transition: opacity 1.8s var(--e), transform 2s var(--e), filter 1.8s var(--e); }
.rv.in { opacity: 1; transform: none; filter: none; }
.w { display: inline-block; }
.w > span {
  display: inline-block; opacity: 0; transform: translate3d(0, .4em, 0); filter: blur(12px);
  transition: opacity 1.6s var(--e), transform 1.9s var(--e), filter 1.6s var(--e);
  transition-delay: calc(var(--i) * 85ms);
}
.split.in .w > span { opacity: 1; transform: none; filter: none; }

/* ---------- statement ---------- */
.statement { padding: 24vh var(--pad) 12vh; }

/* ---------- rows (Cost / Climate pattern) ---------- */
.rows { padding: 4vh var(--pad) 18vh; }
.row {
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 5vw;
  padding: 11vh 0;
}
.fig svg { width: 100%; height: auto; overflow: visible; }
.txt h2 { font: 700 clamp(2rem, 3vw, 3.5rem)/1.05 var(--head); letter-spacing: -.035em; }
.txt p { margin-top: 1.05rem; color: var(--gray); font-size: clamp(1rem, 1.3vw, 1.25rem); max-width: 24em; }

.zone { transform-box: fill-box; transform-origin: center; animation: breathe 10s ease-in-out infinite; }
.z-b { animation-delay: -3.5s; animation-duration: 12s; }
.z-c { animation-delay: -7s; animation-duration: 9s; }
@keyframes breathe { 50% { transform: scale(1.18); opacity: .75; } }

.fw { stroke-dasharray: .55 .45; animation: flowline 10s linear infinite; }
.f2 { animation-duration: 13s; } .f3 { animation-duration: 8s; } .f4 { animation-duration: 16s; } .f5 { animation-duration: 11s; }
@keyframes flowline { from { stroke-dashoffset: 1; } to { stroke-dashoffset: -1; } }

.rp { transform-box: fill-box; transform-origin: center; opacity: 0; animation: ripple 12s cubic-bezier(.2, .6, .3, 1) infinite; }
.r2 { animation-delay: 3s; } .r3 { animation-delay: 6s; } .r4 { animation-delay: 9s; }
@keyframes ripple { 0% { transform: scale(.08); opacity: 0; } 12% { opacity: .9; } 100% { transform: scale(1); opacity: 0; } }

/* ---------- mist: full-bleed image break ---------- */
.mist { position: relative; height: 150vh; min-height: 900px; overflow: hidden; }
.mist-photo {
  position: absolute; inset: -10% 0;
  background: url('assets/img/pool-spa.jpg') center 60% / cover no-repeat;
  filter: saturate(.75) brightness(1.04);
}
.mist-bg {
  position: absolute; inset: -10% 0;
  opacity: .62;
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(136, 126, 117, .75), transparent 70%),
    linear-gradient(200deg, #ada59c 0%, #cdc7bf 30%, #e7e3dc 62%, #f6f4ee 100%);
}
.mist .clouds { -webkit-mask-image: linear-gradient(180deg, #000000 55%, transparent 100%); mask-image: linear-gradient(180deg, #000000 55%, transparent 100%); }
.mist-mark { position: absolute; right: 12vw; top: 14%; width: min(26vw, 340px); overflow: visible; fill: none; stroke: #faf8f4; stroke-width: 1.6; stroke-linecap: square; opacity: .95; }
.mist-mark path { vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.mist-wisps { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.mist-wisps path { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mist-t { position: absolute; left: var(--pad); right: var(--pad); bottom: 11vh; }
.huge { font: 700 clamp(2.6rem, 7vw, 7.6rem)/.98 var(--head); letter-spacing: -.05em; max-width: 11em; color: var(--ink); }

/* ---------- approach (Financial / Strategic investors pattern) ---------- */
.approach { padding: 18vh var(--pad) 8vh; }
.step { padding: 10vh 0; }
.step .no { display: block; font-size: 12px; letter-spacing: .18em; color: var(--gray); margin-bottom: 1.6rem; font-variant-numeric: tabular-nums; }
.step h2 { font: 700 clamp(2.4rem, 3.7vw, 4.4rem)/1 var(--head); letter-spacing: -.04em; }
.step p { margin-top: 2.2rem; color: var(--gray); font-size: clamp(1rem, 1.3vw, 1.25rem); max-width: 30em; }

/* ---------- where ---------- */
.where { padding: 16vh 0 18vh; overflow: hidden; }
.where .eyebrow, .where .lead { padding-left: var(--pad); padding-right: var(--pad); }
.where .eyebrow { margin-bottom: 5vh; }
.drift { padding-left: var(--pad); white-space: nowrap; will-change: transform;
  font: 700 clamp(3rem, 8.6vw, 9.4rem)/1.08 var(--head); letter-spacing: -.055em; }
.drift + .drift { color: #bfb8af; }

/* closing line + photo, side by side so they read as one thought */
.where-close {
  display: grid; gap: clamp(2rem, 5vh, 3.4rem);
  padding: 7vh var(--pad) 0;
}
.where-close .lead { padding: 0; }

/* photo row: a glimpse, not a gallery. Capped width keeps each shot small. */
.where-shots {
  display: grid; gap: clamp(.7rem, 1.4vw, 1.2rem);
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-width: 64rem;
}
.shot { position: relative; margin: 0; overflow: hidden; }
.shot img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  object-position: center;
  filter: grayscale(1) brightness(1.04) contrast(1.02);
}
/* neutraler Schleier, damit die Bilder im gleichen Grauwert sitzen */
.shot::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(200deg, rgba(173, 165, 156, .32), rgba(231, 227, 220, .16) 60%, rgba(246, 244, 238, .28));
}

/* ---------- Referenzen ----------
   Inaktiv. Das Markup liegt in Referenzen-Entwurf.html ausserhalb von website/
   und wird erst eingesetzt, wenn ein Kunde unterschrieben und zugestimmt hat. */
.refs { padding: 16vh var(--pad) 10vh; }
.refs .eyebrow { margin-bottom: 6vh; }
.ref-grid {
  display: grid; gap: clamp(1.6rem, 3.4vw, 3rem);
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}
.ref { margin: 0; }
.ref figure { position: relative; margin: 0 0 1.3rem; overflow: hidden; }
.ref img {
  display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  filter: saturate(.55) brightness(1.05) contrast(.96);
}
.ref figure::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(200deg, rgba(173, 165, 156, .32), rgba(231, 227, 220, .16) 60%, rgba(246, 244, 238, .28));
}
.ref h3 { font: 700 clamp(1.1rem, 1.8vw, 1.5rem)/1.2 var(--head); letter-spacing: -.03em; }
.ref .meta { margin-top: .4rem; font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: #9d948a; }
.ref p { margin-top: .85rem; max-width: 34ch; }

/* ---------- contact ---------- */
.contact { padding: 22vh var(--pad) 22vh; }
.contact .big { max-width: 9.5em; font-size: clamp(3rem, 8vw, 8.4rem); }
.mail { display: inline-block; position: relative; margin-top: 3rem; font: 700 clamp(1.4rem, 3vw, 3rem)/1.2 var(--head); letter-spacing: -.03em; padding-bottom: .35em; }
.mail i { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: linear-gradient(90deg, var(--aqua), var(--sage), var(--lemon)); transform-origin: left; transition: transform 1.4s var(--e); }
.mail:hover i { transform: scaleX(.55); }

/* ---------- Kontaktformular ---------- */
.kform {
  display: grid; gap: clamp(1.4rem, 2.6vw, 2.2rem) clamp(1.6rem, 4vw, 3.4rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 62rem; margin-top: clamp(5rem, 9vh, 8rem);
}
.kf-wide, .kf-foot, .kf-status { grid-column: 1 / -1; }
.kf { display: flex; flex-direction: column; gap: .55rem; }
.kf label {
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase; color: #9d948a;
}
.kf input, .kf textarea {
  font: inherit; font-size: 1.05rem; color: var(--ink);
  background: none; border: 0; border-bottom: 1px solid #d2ccc4;
  padding: .55rem 0; border-radius: 0; resize: vertical;
  transition: border-color .5s var(--e);
}
.kf input:focus, .kf textarea:focus { outline: none; border-bottom-color: var(--deep); }
.kf input:user-invalid, .kf textarea:user-invalid { border-bottom-color: #857c72; }

.kf-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.kf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; }
.kform button {
  font: 700 1rem/1 var(--head); letter-spacing: -.01em; color: var(--bg);
  background: var(--deep); border: 0; cursor: pointer;
  padding: 1.05em 2.6em; border-radius: 999px;
  transition: opacity .4s var(--e), transform .4s var(--e);
}
.kform button:hover { opacity: .86; }
.kform button:active { transform: scale(.985); }
.kform button[disabled] { opacity: .45; cursor: default; transform: none; }
.kf-note { font-size: .82rem; color: #91877d; max-width: 34ch; }
.kf-note a { text-decoration: underline; text-underline-offset: .25em; }

.kf-status { font-size: .95rem; min-height: 1.4em; }
.kf-status.ok { color: var(--deep); }
.kf-status.bad { color: #716961; }

/* ---------- Rechtliches ---------- */
.legal { max-width: 46rem; padding: 22vh var(--pad) 12vh; }
.legal h1 { font: 700 clamp(2.2rem, 5vw, 3.6rem)/1.05 var(--head); letter-spacing: -.045em; }
.legal h2 { margin-top: 4rem; font: 700 clamp(1.3rem, 2.4vw, 1.9rem)/1.15 var(--head); letter-spacing: -.03em; }
.legal h3 { margin-top: 2.2rem; font: 700 1.02rem/1.3 var(--head); }
.legal p, .legal li { margin-top: .9rem; color: #544f48; }
.legal ul { margin-top: .4rem; padding-left: 1.1rem; }
.legal a { text-decoration: underline; text-underline-offset: .25em; }
.legal .todo {
  display: block; margin-top: .9rem; padding: .9rem 1.1rem;
  background: #f4f1ec; border-left: 2px solid #c0b9b0; font-size: .9rem; color: #5c564f;
}

/* ---------- footer ---------- */
.foot { background: #2d2b27; color: #faf8f4; padding: 72px 5.4vw 0; position: relative; }
.foot-grid { display: grid; grid-template-columns: 32% 24% 22% 1fr; gap: 24px 0; padding-bottom: 68px; }
.foot h3 { font-size: 11px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: #c7c0b8; margin-bottom: 18px; }
.foot-grid a, .foot-grid p { display: block; font-size: 17px; line-height: 1.6; color: #faf8f4; }
.foot-grid a { padding: 5px 0; transition: opacity .6s var(--e); }
.foot-grid a:hover { opacity: .6; }
.foot-bar { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid #4a4640; padding: 26px 0 30px; color: #c7c0b8; font-size: 16px; }
.foot .brand { color: #efece5; }
.foot .brand .logo { height: 34px; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .clouds .cl::before { width: 800%; animation-duration: 380s; }
  .bar { height: 64px; }
  .nav a:not(:last-of-type) { display: none; }
  .brand .logo { height: 24px; }
  .row { grid-template-columns: 1fr; gap: 3vh; padding: 7vh 0; }
  .statement { padding-top: 20vh; }
  .mist-mark { right: 8vw; top: 8%; width: 40vw; }
  .where-close { grid-template-columns: 1fr; gap: 4vh; }
  .where-shots { grid-template-columns: repeat(3, 1fr); gap: .5rem; }
  .kform { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr; gap: 44px; }
  .foot-bar { flex-direction: column; align-items: flex-start; gap: 18px; }
}

@media (max-width: 480px) {
  .bar .logo-h { display: none; }
  .bar .logo-s { display: block; height: 32px; }
}

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .rv, .w > span { opacity: 1; transform: none; filter: none; }
  .frame path { stroke-dashoffset: 0; }
  .wm, .wisp { opacity: 1; }
  .mist-mark path, .mist-wisps path { stroke-dashoffset: 0; }
}
