/* Daviso Allrounder Bau – Entwurf. Farben aus dem Logo. */
:root {
  --putz: #F3EFE7;
  --putz-2: #E7E1D5;
  --braun: #2A1A12;
  --gruen: #35574F;
  --orange: #F0861C;
  --text: rgba(42, 26, 18, .92);
  --text-2: rgba(42, 26, 18, .68);
  --text-3: rgba(42, 26, 18, .48);
  --hell: rgba(243, 239, 231, .94);
  --hell-2: rgba(243, 239, 231, .7);
  --hell-3: rgba(243, 239, 231, .46);
  --linie: rgba(42, 26, 18, .14);
  --pad: 20px;
  --luft: 72px;
  --kopf: 60px;
  --expo: cubic-bezier(.19, 1, .22, 1);
  --display: "Funnel Display", "Funnel Sans", system-ui, sans-serif;
  --sans: "Funnel Sans", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
}
@media (min-width: 900px) {
  :root { --pad: 40px; --luft: 120px; --kopf: 72px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
html.lenis, html.lenis body { height: auto; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--putz);
  color: var(--text);
  font: 400 17px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, dl, dd, blockquote, fieldset, pre { margin: 0; padding: 0; }
ul { list-style: none; }
fieldset { border: 0; min-width: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 var(--pad); }
.mono { font: 400 12px/1.4 var(--mono); letter-spacing: .02em; text-transform: uppercase; }

h2 {
  font: 500 clamp(34px, 5vw, 64px)/1.02 var(--display);
  letter-spacing: -.03em;
}
h3 {
  font: 500 clamp(26px, 2.6vw, 36px)/1.1 var(--display);
  letter-spacing: -.02em;
}

/* Knöpfe */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  height: 52px; padding: 0 24px;
  border-radius: 999px;
  background: var(--orange); color: var(--braun);
  font: 600 16px/1 var(--sans);
  text-decoration: none;
  transition: background-color .15s ease-out, transform .15s ease-out;
}
.btn:hover { background: #F79A3B; }
.btn:active { transform: scale(.98); }
.btn--small { height: 40px; padding: 0 16px; font-size: 15px; }
.textlink {
  font: 500 16px/1 var(--sans);
  text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1px;
  transition: opacity .15s ease-out;
}
.textlink:hover { opacity: .65; }
.textlink { padding: 12px 0; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 calc(100% - 9px) / 100% 1px no-repeat; }

/* Balken oben */
.bar {
  background: var(--braun); color: var(--hell-2);
  font: 400 12px/36px var(--mono); text-align: center;
  letter-spacing: .01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  padding: 0 16px;
}
.bar a { color: var(--hell); text-decoration: none; display: inline-block; padding: 0 8px; }
@media (max-width: 520px) { .bar__lang { display: none; } }

/* Kopf */
.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--kopf);
  transition: background-color .25s ease-out, border-color .25s ease-out;
  border-bottom: 1px solid transparent;
}
.top.is-stuck {
  background: rgba(243, 239, 231, .86);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border-bottom-color: var(--linie);
}
.top__in { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; margin-right: auto; }
.brand img { width: 34px; height: auto; }
.brand span { font: 600 18px/1 var(--display); letter-spacing: -.02em; }
.brand i { font-style: normal; font-weight: 400; color: var(--text-2); }
.nav { display: none; gap: 24px; }
.nav a { font-size: 15px; text-decoration: none; color: var(--text-2); transition: color .15s ease-out; }
.nav a:hover { color: var(--text); }
@media (min-width: 900px) { .nav { display: flex; } }
@media (max-width: 420px) { .brand i { display: none; } }

/* Einstieg */
.hero { padding: 16px 0 var(--luft); }
.hero__grid { display: grid; gap: 24px; }
.hero__kick { color: var(--text-2); margin-bottom: 16px; }
h1 {
  font: 500 clamp(52px, 9.4vw, 128px)/.96 var(--display);
  letter-spacing: -.04em;
}
.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.line > span { display: block; }
.lead { margin-top: 16px; max-width: 30em; color: var(--text-2); }
.hero__cta { margin-top: 24px; display: flex; align-items: center; gap: 24px; }
.hero__cta .textlink { display: none; }

.hero__pic { position: relative; }
.hero__figur {
  position: absolute; z-index: 3;
  right: 16px; bottom: calc(100% - 44px);
  width: 92px; height: auto;
  pointer-events: none;
  filter: drop-shadow(0 6px 10px rgba(42, 26, 18, .18));
}
.hero__note { margin-top: 8px; color: var(--text-3); }
.hero__trust { margin-top: 40px; padding-top: 16px; border-top: 1px solid var(--linie); color: var(--text-2); }

@media (min-width: 900px) {
  .hero { padding-top: 40px; }
  .hero__grid { grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 64px; align-items: end; }
  .hero__text { padding-bottom: 40px; }
  .lead { font-size: 20px; margin-top: 24px; }
  .hero__cta { margin-top: 40px; }
  .hero__cta .textlink { display: inline; }
  .hero__pic { max-width: 460px; justify-self: end; width: 100%; margin-top: 104px; }
  .hero__figur { width: 150px; right: 24px; bottom: calc(100% - 22px - 48px); }
  .hero__trust { margin-top: 64px; }
}

/* Vorher / Nachher */
.ba {
  --pos: 50%;
  position: relative; overflow: hidden;
  aspect-ratio: 4 / 5;
  border-radius: 6px;
  background: var(--putz-2);
  user-select: none; -webkit-user-select: none;
}
.ba[data-drag] { touch-action: pan-y; cursor: ew-resize; }
.ba__layer { position: absolute; inset: 0; }
.ba__layer img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.ba__layer--before { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba__tag {
  position: absolute; bottom: 12px;
  padding: 6px 10px; border-radius: 999px;
  background: rgba(42, 26, 18, .8); color: var(--hell);
  font-size: 11px;
}
.ba__tag--v { left: 12px; }
.ba__tag--n { right: 12px; }
.ba__handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos);
  width: 2px; margin-left: -1px;
  background: var(--orange);
}
.ba__handle span {
  position: absolute; top: 50%; left: 50%;
  width: 44px; height: 44px; margin: -22px 0 0 -22px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 2px 10px rgba(42, 26, 18, .25);
}
.ba__handle span::before, .ba__handle span::after {
  content: ""; position: absolute; top: 50%; width: 8px; height: 8px;
  border: solid var(--braun); border-width: 2px 2px 0 0;
}
.ba__handle span::before { left: 11px; transform: translateY(-50%) rotate(-135deg); }
.ba__handle span::after { right: 11px; transform: translateY(-50%) rotate(45deg); }

/* Arbeiten */
.work { background: var(--putz-2); padding: var(--luft) 0; }
.work__head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.work__count { color: var(--text-2); display: none; }
.work__count b { font-weight: 500; color: var(--text); }
.work__hint { display: none; color: var(--text-3); }
.work__stack { margin-top: 40px; display: grid; gap: 64px; }
.work__item { display: flex; flex-direction: column-reverse; gap: 16px; }
.work__text p { margin-top: 8px; color: var(--text-2); max-width: 32em; }
.work__text .work__tags { margin-top: 16px; color: var(--text-3); }
@media (min-width: 900px) {
  .work__item { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 64px; }
  .work__text { max-width: 420px; padding-bottom: 8px; }
  .work__item .ba { width: 44%; flex: none; }
}

/* Arbeiten, angeheftet (nur mit JS und Bewegung) */
.work.is-pinned { padding: 0; height: 380vh; }
.is-pinned .work__pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  display: flex; flex-direction: column;
  padding: calc(var(--kopf) + 16px) 0 84px;
}
.is-pinned .work__count { display: block; }
.is-pinned .work__stack { position: relative; flex: 1; min-height: 0; margin-top: 16px; display: block; }
.is-pinned .work__item {
  position: absolute; top: 0; bottom: 0; left: var(--pad); right: var(--pad);
  opacity: 0; visibility: hidden;
  transition: opacity .45s ease-out, visibility 0s .45s;
}
.is-pinned .work__item.is-on { opacity: 1; visibility: visible; transition: opacity .45s ease-out, visibility 0s; }
.is-pinned .work__item .ba { flex: 1; min-height: 0; width: 100%; aspect-ratio: auto; }
.is-pinned .work__text { min-height: 136px; transform: translateY(16px); transition: transform .8s var(--expo); }
.is-pinned .work__item.is-on .work__text { transform: none; }
.is-pinned .work__text p { font-size: 15px; }
.is-pinned .work__text .work__tags { margin-top: 8px; font-size: 11px; }
.is-pinned .work__hint { display: block; margin-top: 8px; font-size: 11px; }
@media (min-width: 900px) {
  .is-pinned .work__pin { padding-bottom: 40px; }
  .is-pinned .work__stack { margin-top: 24px; }
  .is-pinned .work__item .ba { flex: none; width: auto; height: 100%; aspect-ratio: 4 / 5; }
  .is-pinned .work__text { min-height: 0; }
  .is-pinned .work__text h3 { font-size: clamp(40px, 5vw, 72px); letter-spacing: -.035em; line-height: 1; }
  .is-pinned .work__text p { font-size: 18px; margin-top: 16px; }
  .is-pinned .work__hint { margin-top: 16px; }
}

/* Leistungen: Raum in Schichten */
.build { background: var(--gruen); color: var(--hell); padding: var(--luft) 0; }
.build__grid { display: grid; gap: 24px; }
.build__room {
  position: sticky; top: var(--kopf); z-index: 2;
  background: var(--gruen);
  padding: 16px 0 8px;
  order: 2;
}
.build__list { display: contents; }
.build__list > h2, .build__intro { order: 1; }
.build__intro { color: var(--hell-2); max-width: 30em; margin-top: -8px; }
.step { order: 3; min-height: 34vh; padding-top: 24px; border-top: 1px solid rgba(243, 239, 231, .18); }
.step:last-child { min-height: 24vh; }
.step__nr { color: var(--hell-3); margin-bottom: 8px; }
.step p:last-child { margin-top: 8px; color: var(--hell-2); max-width: 28em; }
.js .step { opacity: .38; transition: opacity .4s ease-out; }
.js .step.is-on { opacity: 1; }

.room { width: 100%; height: auto; border-radius: 6px; overflow: hidden; }
.build__meter { display: flex; align-items: center; gap: 8px; margin-top: 16px; color: var(--hell-2); }
.build__meter span { margin-right: auto; }
.build__meter i { width: 32px; height: 3px; border-radius: 2px; background: rgba(243, 239, 231, .22); transition: background-color .3s ease-out; }
.build__room[data-s="1"] i:nth-of-type(-n+1),
.build__room[data-s="2"] i:nth-of-type(-n+2),
.build__room[data-s="3"] i:nth-of-type(-n+3),
.build__room[data-s="4"] i:nth-of-type(-n+4),
.build__room:not([data-s]) i { background: var(--putz); }

@media (min-width: 900px) {
  .build__grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 104px; align-items: start; }
  .build__room { order: 0; top: calc(var(--kopf) + 40px); padding: 0; }
  .build__list { display: block; }
  .build__intro { margin-top: 24px; font-size: 20px; margin-bottom: 64px; }
  .step { min-height: 52vh; }
  .step:last-child { min-height: 36vh; }
}

/* Raum: Farben */
.r-ceil { fill: #A8A297; } .r-side { fill: #8A8479; } .r-back { fill: #9B958A; } .r-floor { fill: #7C766B; }
.r-marks path { fill: none; stroke: #6A645A; stroke-width: 2; stroke-linecap: round; }
.l1__studs path { fill: none; stroke: #D2DADB; stroke-width: 3; stroke-dasharray: 330; stroke-dashoffset: 0; }
.l1__boards rect { fill: #D5CFC2; } .l1__boards polygon { fill: #C6C0B3; }
.l1__boards .seam { fill: none; stroke: #ACA697; stroke-width: 1; }
.l1__boards .screw circle { fill: #9E988A; }
.l2__back { fill: #E4DFD4; } .l2__side { fill: #D3CEC2; } .l2__ceil { fill: #EDE8DE; }
.l3__back { fill: #E9A15C; } .l3__side { fill: #F6F2EA; }
.r-window rect { fill: #C4DCDD; stroke: #2A1A12; stroke-width: 3; }
.r-window path { fill: none; stroke: #2A1A12; stroke-width: 2; }
.l4 polygon { stroke: #8A5F37; stroke-width: .8; fill: #BC8A58; }
.l4 polygon:nth-child(2n) { fill: #C99A69; }
.l4 polygon:nth-child(3n) { fill: #AD7A4A; }
.l4__base { fill: none; stroke: #F6F2EA; stroke-width: 6; }

/* Raum: Bewegung (nur mit JS; ohne JS ist der Raum fertig) */
.js .room .l2 > *, .js .room .l3__back, .js .room .l4 polygon { transform-box: fill-box; }
.js .room .l1__studs path { stroke-dashoffset: 330; transition: stroke-dashoffset .9s var(--expo); }
.js .room .l1__boards { opacity: 0; transition: opacity .5s ease-out; }
.js .room.s1 .l1__studs path { stroke-dashoffset: 0; }
.js .room.s1 .l1__boards { opacity: 1; transition-delay: .55s; }

.js .room .l2 > * { transform: scaleY(0); transform-origin: 50% 100%; transition: transform .9s var(--expo); }
.js .room .l2__back { transition-delay: .08s; }
.js .room .l2__ceil { transform-origin: 50% 0; transition-delay: .2s; }
.js .room.s2 .l2 > * { transform: none; }

.js .room .l3__back { transform: scaleX(0); transform-origin: 0 50%; transition: transform 1s var(--expo); }
.js .room .l3__side { opacity: 0; transition: opacity .6s ease-out; }
.js .room.s3 .l3__back { transform: none; }
.js .room.s3 .l3__side { opacity: 1; }

.js .room .l4 polygon { opacity: 0; transform: translateY(18px); transition: opacity .4s ease-out, transform .7s var(--expo); }
.js .room .l4__base { opacity: 0; transition: opacity .4s ease-out .5s; }
.js .room.s4 .l4 polygon { opacity: 1; transform: none; }
.js .room.s4 .l4__base { opacity: 1; }
.js .room.s4 .l4 polygon:nth-child(2) { transition-delay: .05s; }
.js .room.s4 .l4 polygon:nth-child(3) { transition-delay: .1s; }
.js .room.s4 .l4 polygon:nth-child(4) { transition-delay: .15s; }
.js .room.s4 .l4 polygon:nth-child(5) { transition-delay: .2s; }
.js .room.s4 .l4 polygon:nth-child(6) { transition-delay: .25s; }
.js .room.s4 .l4 polygon:nth-child(7) { transition-delay: .3s; }
.js .room.s4 .l4 polygon:nth-child(8) { transition-delay: .35s; }

/* Ein Ansprechpartner */
.one { padding: var(--luft) 0; }
.one__grid { display: grid; gap: 64px; }
.one__quote {
  margin-top: 24px;
  font: 400 clamp(30px, 4.2vw, 58px)/1.06 var(--display);
  letter-spacing: -.03em;
  max-width: 14em;
}
.one__left > p { margin-top: 24px; color: var(--text-2); max-width: 34em; }
.one__label { color: var(--text-2); margin-bottom: 16px; }
.rows li {
  display: grid; gap: 0 24px;
  padding: 16px 0;
  border-top: 1px solid var(--linie);
}
.rows li:last-child { border-bottom: 1px solid var(--linie); }
.rows b { font-weight: 500; }
.rows span { color: var(--text-2); font-size: 15px; }
@media (min-width: 900px) {
  .one__grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 104px; align-items: end; }
  .rows li { grid-template-columns: 1fr 1fr; align-items: baseline; }
}

/* Kontakt */
.contact { background: var(--braun); color: var(--hell); padding: var(--luft) 0 64px; }
.contact h2 { font-size: clamp(52px, 9.4vw, 128px); letter-spacing: -.04em; line-height: .96; }
.contact__lead { margin-top: 16px; color: var(--hell-2); max-width: 32em; }
.contact__grid { margin-top: 40px; display: grid; gap: 104px; }
.ask { display: grid; gap: 40px; align-content: start; }
.ask legend { font: 500 20px/1.2 var(--display); letter-spacing: -.01em; margin-bottom: 16px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; height: 44px; padding: 0 16px;
  border: 1px solid rgba(243, 239, 231, .3); border-radius: 999px;
  font-size: 16px;
  transition: background-color .15s ease-out, color .15s ease-out, border-color .15s ease-out;
}
.chips label:hover span { border-color: var(--hell); }
.chips input:checked + span { background: var(--putz); color: var(--braun); border-color: var(--putz); }
.chips input:focus-visible + span { outline: 2px solid var(--orange); outline-offset: 3px; }
.facts { display: grid; gap: 24px; padding-top: 24px; border-top: 1px solid rgba(243, 239, 231, .18); }
.facts dt { color: var(--hell-3); margin-bottom: 8px; }
.facts dd { font: 500 22px/1.25 var(--display); letter-spacing: -.01em; }
.facts a { text-decoration: none; display: inline-block; padding: 4px 0; }
.facts a:hover { text-decoration: underline; text-underline-offset: 5px; }

.note {
  position: relative;
  background: var(--putz); color: var(--text);
  border-radius: 6px;
  padding: 24px;
  transform: rotate(-1.2deg);
  align-self: start;
}
.note__figur { position: absolute; right: 16px; bottom: calc(100% - 26px); width: 96px; height: auto; pointer-events: none; }
.note__to { color: var(--text-3); padding-bottom: 16px; border-bottom: 1px solid var(--linie); }
.note__text { margin-top: 16px; font: 400 16px/1.5 var(--sans); white-space: pre-wrap; min-height: 15em; }
.note__cta { margin-top: 24px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); gap: 104px; margin-top: 64px; }
  .contact__lead { font-size: 20px; margin-top: 24px; }
  .facts { grid-template-columns: 1fr 1fr; }
  .note { padding: 40px; }
  .note__figur { width: 128px; right: 40px; bottom: calc(100% - 34px); }
}

/* Fuss */
.foot { background: var(--braun); color: var(--hell-2); padding: 40px 0 104px; overflow: hidden; }
.foot__name {
  font: 500 31vw/.8 var(--display); letter-spacing: -.05em;
  color: rgba(243, 239, 231, .1);
  margin-left: -.04em; white-space: nowrap;
}
.foot__row { margin-top: 40px; display: grid; gap: 16px; font-size: 15px; }
.foot__draft { color: var(--hell); }
@media (min-width: 900px) {
  .foot { padding-bottom: 40px; }
  .foot__name { font-size: min(31vw, 400px); }
  .foot__row { grid-template-columns: 1fr 1fr auto; align-items: end; }
}

/* Angedockter Knopf */
.dock {
  position: fixed; z-index: 40; left: 16px; right: 16px; bottom: 16px;
  display: flex; align-items: center; justify-content: space-between;
  height: 52px; padding: 0 24px;
  border-radius: 999px;
  background: var(--orange); color: var(--braun);
  font: 600 16px/1 var(--sans); text-decoration: none;
  box-shadow: 0 6px 24px rgba(42, 26, 18, .22);
  transform: translateY(96px);
  transition: transform .6s var(--expo);
}
.dock.is-in { transform: none; }
@media (min-width: 900px) { .dock { left: auto; right: 24px; bottom: 24px; gap: 16px; } }

/* Einstieg: Bewegung beim Laden */
.js .line > span { transform: translateY(108%); transition: transform 1s var(--expo); }
.js .line:nth-child(2) > span { transition-delay: .09s; }
.js .hero__figur { opacity: 0; transform: translateY(-28px) rotate(-8deg); transition: opacity .3s ease-out .5s, transform 1s var(--expo) .5s; }
.js.is-ready .line > span { transform: none; }
.js.is-ready .hero__figur { opacity: 1; transform: none; }
.js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .6s ease-out, transform 1s var(--expo); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .line > span, .js .hero__figur, .js [data-reveal] { transform: none; opacity: 1; }
  .js .step { opacity: 1; }
  .note { transform: none; }
}
