/* Aichner Rieder Architekten · Entwurf
   Farbwelt: warmer Graphit (Schatten), Kalkstein (Licht), ein Ton Abendsonne. */

@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-var.woff2") format("woff2");
  font-weight: 200 900;
  font-stretch: 75% 125%;
  font-display: swap;
}
@font-face {
  font-family: "Geist Mono";
  src: url("../fonts/geist-mono.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  --graphit: #151412;
  --graphit-2: #1d1b18;
  --graphit-3: #272420;
  --stein: #e4ded4;
  --stein-2: #d6cfc3;
  --papier: #efebe4;
  --kalk: #f6f3ee;
  --sonne: #e0ae62;
  --sonne-tief: #8e6224;
  --text-hell: #ece7de;
  --text-hell-2: rgba(236, 231, 222, .64);
  --text-dunkel: #1a1916;
  --text-dunkel-2: #5b554c;
  --linie-hell: rgba(236, 231, 222, .16);
  --linie-dunkel: rgba(26, 25, 22, .16);
  --rand: clamp(20px, 4.4vw, 72px);
  --kopf-h: 72px;
  --leicht: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--graphit);
  color: var(--text-hell);
  font-family: "Mona Sans", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, ol, ul, dl, dd, figure { margin: 0; padding: 0; }
ol, ul { list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.mono {
  font-family: "Geist Mono", ui-monospace, monospace;
  font-size: 12px;
  letter-spacing: .06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.rahmen { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 var(--rand); }
.titel {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
  font-weight: 460;
  font-stretch: 116%;
  line-height: 1;
  letter-spacing: -.03em;
}
.lead { font-size: clamp(1.05rem, 1.35vw, 1.25rem); line-height: 1.5; max-width: 34em; }

.skip {
  position: fixed; left: 12px; top: -60px; z-index: 100;
  background: var(--kalk); color: var(--text-dunkel); padding: 10px 14px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--sonne); outline-offset: 3px; }

/* Knöpfe */
.knopf {
  display: inline-flex; align-items: center; gap: 12px;
  height: 52px; padding: 0 24px;
  font-size: 15px; font-weight: 520; font-stretch: 108%;
  text-decoration: none; border: 1px solid transparent; border-radius: 0;
  cursor: pointer; transition: background .3s, color .3s, border-color .3s;
}
.knopf::after { content: ""; width: 18px; height: 1px; background: currentColor; transition: width .3s var(--leicht); }
.knopf:hover::after { width: 30px; }
.knopf-hell { background: var(--kalk); color: var(--text-dunkel); }
.knopf-hell:hover { background: var(--sonne); }
.knopf-linie { border-color: rgba(236, 231, 222, .45); color: var(--text-hell); }
.knopf-linie:hover { border-color: var(--text-hell); background: rgba(236, 231, 222, .08); }

/* Kopfzeile */
.kopf {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--kopf-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 var(--rand);
  color: var(--text-hell);
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.kopf.fest {
  background: rgba(21, 20, 18, .82);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border-bottom-color: var(--linie-hell);
}
.marke { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.marke-zeichen { position: relative; width: 26px; height: 26px; display: block; }
.marke-zeichen i { position: absolute; background: currentColor; }
.marke-zeichen i:nth-child(1) { left: 0; top: 0; width: 2px; height: 26px; }
.marke-zeichen i:nth-child(2) { left: 0; top: 0; width: 26px; height: 2px; }
.marke-zeichen i:nth-child(3) { left: 10px; top: 10px; width: 16px; height: 16px; background: var(--sonne); }
.marke-text { font-weight: 560; font-stretch: 118%; font-size: 15px; letter-spacing: .02em; line-height: 1.05; text-transform: uppercase; }
.marke-text small { display: block; font-family: "Geist Mono", monospace; font-weight: 400; font-size: 10.5px; letter-spacing: .14em; color: var(--text-hell-2); margin-top: 3px; }
.nav { display: flex; align-items: center; gap: clamp(16px, 2vw, 34px); font-size: 14px; }
.nav a { text-decoration: none; position: relative; padding: 6px 0; }
.nav a:not(.nav-cta)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .35s var(--leicht);
}
.nav a:hover::after, .nav a.aktiv::after { transform: scaleX(1); }
.nav-cta { border: 1px solid rgba(236, 231, 222, .4); padding: 9px 16px !important; }
.nav-cta:hover { background: var(--kalk); color: var(--text-dunkel); }
.menu-knopf { display: none; }

/* 1  Einstieg */
.hero { position: relative; height: 260vh; height: 260svh; }
.hero-buehne {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  background: #0f0e0c;
}
.hero-kamera { position: absolute; inset: 0; overflow: hidden; }
.hero-fern, .hero-mitte {
  position: absolute; inset: 0; width: 100%; height: 100%;
  transform-origin: var(--vpx, 50%) var(--vpy, 50%);
  will-change: transform;
}
.hero-fern { object-fit: cover; object-position: 50% 50%; }
.hero-mitte img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-achsen { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hero-achsen line, .hero-achsen path, .hero-achsen circle {
  fill: none; stroke: rgba(246, 240, 230, .5); stroke-width: 1; vector-effect: non-scaling-stroke;
}
.hero-achsen .stark { stroke: rgba(224, 174, 98, .85); }
.hero-achsen text { fill: rgba(246, 240, 230, .8); font-family: "Geist Mono", monospace; font-size: 22px; letter-spacing: .08em; }
.hero-licht {
  position: absolute; inset: -10% -30%;
  background: linear-gradient(112deg, transparent 38%, rgba(255, 214, 150, .16) 47%, rgba(255, 226, 180, .22) 50%, transparent 58%);
  mix-blend-mode: screen; pointer-events: none; will-change: transform;
}
.hero-schatten {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to top, rgba(12, 11, 9, .9) 0%, rgba(12, 11, 9, .5) 30%, rgba(12, 11, 9, 0) 58%),
    linear-gradient(to right, rgba(12, 11, 9, .55) 0%, rgba(12, 11, 9, 0) 55%),
    linear-gradient(to bottom, rgba(12, 11, 9, .55) 0, rgba(12, 11, 9, 0) 140px);
}
.hero-text {
  position: absolute; left: var(--rand); right: var(--rand); bottom: clamp(88px, 15vh, 160px);
  max-width: 1100px; will-change: transform, opacity;
}
.hero-zeile { color: var(--sonne); margin-bottom: 22px; }
.hero-titel {
  font-size: clamp(2.6rem, 6.6vw, 7rem);
  font-weight: 440; font-stretch: 114%;
  line-height: .98; letter-spacing: -.035em;
}
.hero-titel .z { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero-titel .z > span { display: block; transform: translateY(108%); transition: transform 1.3s var(--leicht); }
.hero-titel .z:nth-child(2) > span { transition-delay: .12s; }
.bereit .hero-titel .z > span { transform: none; }
.hero-lead {
  margin-top: 26px; max-width: 30em; font-size: clamp(1rem, 1.3vw, 1.2rem); color: rgba(236, 231, 222, .82);
  opacity: 0; transform: translateY(14px); transition: opacity 1s .5s, transform 1s .5s var(--leicht);
}
.hero-knoepfe { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; opacity: 0; transition: opacity 1s .75s; }
.bereit .hero-lead { opacity: 1; transform: none; }
.bereit .hero-knoepfe { opacity: 1; }
.hero-fuss {
  position: absolute; left: var(--rand); right: var(--rand); bottom: 26px;
  display: flex; justify-content: space-between; gap: 20px; color: var(--text-hell-2);
}
.hero-weiter { display: flex; align-items: center; gap: 12px; }
.hero-weiter i { display: block; width: 80px; height: 1px; background: var(--linie-hell); position: relative; overflow: hidden; }
.hero-weiter i::after { content: ""; position: absolute; inset: 0; background: var(--sonne); transform: scaleX(var(--p, 0)); transform-origin: left; }
.hero-aus { position: absolute; inset: 0; background: var(--stein-2); opacity: 0; pointer-events: none; }

/* 2  Haltung */
.haltung {
  position: relative; overflow: hidden;
  background: var(--stein-2); color: var(--text-dunkel);
  padding: clamp(110px, 20vh, 220px) 0 clamp(90px, 14vh, 160px);
}
.sonnenfleck {
  position: absolute; top: 4%; left: 0; width: 72vw; height: 82%;
  display: grid; grid-template-columns: repeat(3, 1fr); grid-template-rows: 1.4fr 1fr; gap: clamp(10px, 1.4vw, 22px);
  filter: blur(14px); opacity: .95; pointer-events: none;
  transform-origin: 0 0; will-change: transform;
}
.sonnenfleck i { background: rgba(255, 246, 228, .9); }
.haltung::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(21, 20, 18, .07), transparent 30%, transparent 70%, rgba(21, 20, 18, .08));
}
.haltung .rahmen { position: relative; z-index: 1; }
.marke-klein { color: var(--sonne-tief); margin-bottom: 30px; }
.haltung-satz {
  font-size: clamp(1.9rem, 4.4vw, 4.5rem);
  font-weight: 430; font-stretch: 108%;
  line-height: 1.07; letter-spacing: -.028em;
  max-width: 21em;
}
.haltung-satz .w { opacity: .16; transition: opacity .25s linear; }
.haltung-satz .w.an { opacity: 1; }
.grundsaetze { margin-top: clamp(70px, 12vh, 130px); border-top: 1px solid var(--linie-dunkel); max-width: 980px; margin-left: auto; }
.grundsaetze li {
  display: grid; grid-template-columns: 180px 1fr; gap: 24px; align-items: baseline;
  padding: 26px 0; border-bottom: 1px solid var(--linie-dunkel);
}
.grundsaetze .mono { color: var(--sonne-tief); }
.grundsaetze p { font-size: clamp(1.1rem, 1.6vw, 1.45rem); line-height: 1.4; max-width: 30em; }
.zahlen { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: clamp(60px, 9vh, 100px); border-top: 1px solid var(--linie-dunkel); }
.zahlen div { padding: 20px 20px 0 0; }
.zahlen div + div { padding-left: 20px; border-left: 1px solid var(--linie-dunkel); }
.zahlen dt { font-family: "Geist Mono", monospace; font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-dunkel-2); }
.zahlen dd { font-size: clamp(1.3rem, 2.2vw, 2rem); font-stretch: 112%; font-weight: 460; margin-top: 8px; letter-spacing: -.02em; }

/* 3  Projekte */
.projekte { position: relative; height: 380vh; height: 380svh; background: var(--graphit); }
.projekte-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.projekte-boden {
  position: absolute; left: -100%; width: 300%; bottom: -6%; height: 64%;
  transform-origin: 50% 100%;
  transform: perspective(720px) rotateX(76deg) translateX(var(--bx, 0));
  background-image:
    linear-gradient(90deg, rgba(236, 231, 222, .11) 1px, transparent 1px),
    linear-gradient(0deg, rgba(236, 231, 222, .07) 1px, transparent 1px);
  background-size: 160px 160px;
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  mask-image: linear-gradient(to top, #000 0%, transparent 85%);
  pointer-events: none; will-change: transform;
}
.projekte-kopf {
  position: absolute; top: calc(var(--kopf-h) + 4vh); left: 0; right: 0; z-index: 2;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; max-width: none;
}
.projekte-hinweis { color: var(--text-hell-2); }
.projekte-hinweis span { color: var(--sonne); }
.projekte-raum { position: absolute; inset: 0; perspective: 1500px; perspective-origin: 50% 46%; }
.projekte-spur {
  position: absolute; left: 0; top: 0; bottom: 0;
  display: flex; align-items: center; gap: clamp(28px, 4vw, 72px);
  padding: calc(var(--kopf-h) + 8vh) 30vw 0 var(--rand);
  transform-style: preserve-3d; will-change: transform;
}
.pk {
  --ry: 0deg; --tz: 0px; --hx: 0deg; --hy: 0deg; --ix: 0%;
  position: relative; flex: 0 0 auto;
  width: clamp(270px, 40vw, 600px);
  transform: rotateY(var(--ry)) translateZ(var(--tz)) rotateX(var(--hx)) rotateY(var(--hy));
  transition: --hx .2s; text-decoration: none; color: inherit;
}
.pk-bild {
  position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--graphit-3);
  box-shadow: 0 50px 90px -40px rgba(0, 0, 0, .85), 0 0 0 1px rgba(236, 231, 222, .06);
}
.pk-bild img {
  position: absolute; top: 0; left: -8%; width: 116%; height: 100%; max-width: none; object-fit: cover;
  transform: translateX(var(--ix)) scale(1.02); will-change: transform;
}
.pk-text { padding-top: 20px; display: grid; gap: 6px; }
.pk-text .mono { color: var(--text-hell-2); }
.pk-text h3 { font-size: clamp(1.35rem, 2vw, 1.9rem); font-weight: 470; font-stretch: 114%; letter-spacing: -.02em; line-height: 1.1; }
.pk-daten { color: var(--sonne) !important; }
.pk-glanz {
  position: absolute; inset: 0 0 auto 0; aspect-ratio: 4 / 3; pointer-events: none;
  background: radial-gradient(circle at var(--gx, 50%) var(--gy, 30%), rgba(255, 236, 205, .2), transparent 55%);
  opacity: 0; transition: opacity .4s; mix-blend-mode: screen;
}
.pk:hover .pk-glanz { opacity: 1; }
.modell-feld { background: linear-gradient(160deg, #2c2925, #1a1815); }
.modell { position: absolute; inset: 0; perspective: 1100px; display: grid; place-items: center; }
.modell-hinweis { position: absolute; left: 16px; bottom: 14px; color: var(--text-hell-2); }
.pk-anfrage {
  align-self: center;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 14px;
  aspect-ratio: 4 / 3; width: clamp(240px, 30vw, 440px);
  padding: 30px; border: 1px solid var(--linie-hell);
  background: linear-gradient(160deg, rgba(224, 174, 98, .1), transparent 60%);
}
.pk-anfrage .mono { color: var(--sonne); }
.pk-anfrage strong { font-size: clamp(1.5rem, 2.6vw, 2.4rem); font-weight: 450; font-stretch: 114%; letter-spacing: -.025em; line-height: 1.05; }
.pk-pfeil { display: inline-flex; align-items: center; gap: 12px; font-size: 15px; }
.pk-pfeil::after { content: ""; width: 26px; height: 1px; background: currentColor; transition: width .3s; }
.pk-anfrage:hover .pk-pfeil::after { width: 44px; }

/* Bauteile aus Flächen (Kuben) */
.ebene, .koerper, .k-gruppe { transform-style: preserve-3d; }
.koerper { position: absolute; inset: 0; }
.k-gruppe { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.f { position: absolute; left: 0; top: 0; backface-visibility: visible; }
.f::before, .f::after { content: ""; position: absolute; inset: 0; pointer-events: none; }
.f::before { background-image: var(--tex, none); background-size: var(--tex-gr, cover); background-position: center; opacity: var(--mat, 0); }
.f::after { background: #000; opacity: var(--schatten, 0); }

/* 4  Arbeitsweise */
.arbeit { background: var(--papier); color: var(--text-dunkel); padding: clamp(100px, 16vh, 180px) 0 clamp(60px, 10vh, 120px); }
.arbeit-raster { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(30px, 5vw, 90px); }
.arbeit-kopf { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; column-gap: inherit; align-items: end; margin-bottom: clamp(30px, 6vh, 70px); }
.arbeit-kopf .lead { color: var(--text-dunkel-2); }
.lagen-feld {
  position: sticky; top: calc(var(--kopf-h) + 4vh); height: calc(100vh - var(--kopf-h) - 8vh);
  display: grid; place-items: center; perspective: 1500px; perspective-origin: 50% 30%;
}
.lagen {
  position: relative; width: 360px; height: 240px;
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(-34deg) scale(var(--ls, 1.25));
}
.lage {
  --lift: 0px; --op: 1;
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * 14px + var(--lift)));
  opacity: var(--op);
  transition: transform .9s var(--leicht), opacity .6s;
}
.lage-blatt {
  position: absolute; inset: 0; transform-style: preserve-3d;
  background: rgba(252, 250, 246, .74);
  border: 1px solid rgba(26, 25, 22, .2);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .35) inset;
  transition: background .5s, border-color .5s;
}
.lage.an .lage-blatt { background: rgba(255, 255, 255, .94); border-color: var(--sonne-tief); }
.lage-blatt svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hl path { fill: none; stroke: rgba(26, 25, 22, .26); stroke-width: 1; }
.hl-stark path, .hl-stark circle { fill: none; stroke: rgba(26, 25, 22, .72); stroke-width: 1.3; }
.skizze path { stroke-linecap: round; stroke-width: 1.6; }
.pl-text text { font-family: "Geist Mono", monospace; font-size: 11px; fill: rgba(26, 25, 22, .7); }
.lage-name { position: absolute; left: 12px; bottom: 9px; color: var(--text-dunkel-2); }
.lage.an .lage-name { color: var(--sonne-tief); }
.lage-muster { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; padding: 26px 26px 40px; }
.lage-muster i { background-size: cover; background-position: center; box-shadow: 0 1px 0 rgba(0, 0, 0, .2); }
.lage-foto { background: url(../img/haus.webp) center / cover; }
.lage-foto .lage-name { color: #fff; }
.lage-volumen { position: absolute; inset: 0; transform-style: preserve-3d; }
.schritte li {
  min-height: 52vh; display: flex; flex-direction: column; justify-content: center;
  border-top: 1px solid var(--linie-dunkel);
  opacity: .32; transition: opacity .5s;
}
.schritte li.an { opacity: 1; }
.schritte .mono { color: var(--sonne-tief); }
.schritte h3 { font-size: clamp(1.8rem, 3.2vw, 3rem); font-weight: 450; font-stretch: 114%; letter-spacing: -.03em; margin: 10px 0 14px; line-height: 1; }
.schritte p { font-size: clamp(1.02rem, 1.3vw, 1.2rem); max-width: 28em; color: var(--text-dunkel-2); }

/* 5  Plan wird Raum */
.plan { position: relative; height: 440vh; height: 440svh; background: #121110; }
.plan-buehne {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden;
  display: grid; grid-template-columns: minmax(300px, 32%) 1fr;
}
.plan-links {
  position: relative; z-index: 2;
  padding: calc(var(--kopf-h) + 7vh) clamp(20px, 3vw, 48px) 6vh var(--rand);
  display: flex; flex-direction: column;
  border-right: 1px solid var(--linie-hell);
}
.plan-stufen { margin-top: auto; }
.plan-stufen li {
  display: grid; grid-template-columns: 38px 1fr; column-gap: 8px;
  padding: 14px 0; border-top: 1px solid var(--linie-hell);
  opacity: .38; transition: opacity .4s;
}
.plan-stufen li.an { opacity: 1; }
.plan-stufen .mono { color: var(--sonne); padding-top: 4px; }
.plan-stufen b { font-weight: 480; font-stretch: 112%; font-size: 1.15rem; }
.plan-stufen p {
  grid-column: 2; color: var(--text-hell-2); font-size: .98rem; line-height: 1.45;
  max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--leicht), opacity .4s, margin .4s;
}
.plan-stufen li.an p { max-height: 7em; opacity: 1; margin-top: 6px; }
.plan-fortschritt { height: 1px; background: var(--linie-hell); margin-top: 18px; }
.plan-fortschritt i { display: block; height: 100%; background: var(--sonne); transform-origin: left; transform: scaleX(var(--p, 0)); }
.plan-rechts { position: relative; overflow: hidden; background: radial-gradient(ellipse at 50% 55%, #24211d 0%, #121110 70%); }
.szene { position: absolute; inset: 0; display: grid; place-items: center; perspective: 2000px; }
.szene .ebene { position: absolute; left: 50%; top: 50%; width: 640px; height: 420px; margin: -210px 0 0 -320px; will-change: transform; }
.grundriss { position: absolute; left: -60px; top: -60px; width: 760px; height: 540px; overflow: visible; }
.grundriss .w { fill: #ece7de; }
.grundriss .l { fill: none; stroke: rgba(236, 231, 222, .7); stroke-width: 1.2; }
.grundriss .d { fill: none; stroke: rgba(236, 231, 222, .4); stroke-width: .8; }
.grundriss .gl { fill: none; stroke: #9fc3cf; stroke-width: 1.2; }
.grundriss .ak { fill: none; stroke: var(--sonne); stroke-width: 1; }
.grundriss text { fill: rgba(236, 231, 222, .78); font-family: "Geist Mono", monospace; font-size: 12px; letter-spacing: .05em; }
.grundriss .ak-t { fill: var(--sonne); font-size: 11px; }
.grundriss .zeichnen { stroke-dasharray: 1; stroke-dashoffset: var(--zeichnen, 0); }
.grundriss .boden { fill: #1c1a17; }
.lichtflecken { position: absolute; inset: 0; transform: translateZ(1.5px); pointer-events: none; }
.lichtflecken i { position: absolute; inset: 0; background: rgba(255, 222, 160, .62); }
.plan-foto {
  position: absolute; inset: 0; opacity: 0; will-change: opacity, clip-path;
  clip-path: inset(var(--ci, 30%) round 0);
}
.plan-foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--fs, 1.12)); }
.plan-mass { position: absolute; left: 24px; bottom: 20px; color: var(--text-hell-2); }

/* Texturen der Bauteile: Grundfarbe ist das weiße Arbeitsmodell, Material blendet mit --mat darüber */
.f { background: #f1ede6; }
.f::after { opacity: calc(var(--schatten, 0) + var(--nacht, 0)); }
.t-putz { --tex: linear-gradient(#e6e0d6, #ddd6ca); }
.t-beton { --tex: url(../img/m-beton.webp); --tex-gr: 220px; }
.t-eiche { --tex: url(../img/m-eiche.webp); --tex-gr: 120px; }
.t-trav { --tex: url(../img/m-travertin.webp); --tex-gr: 160px; }
.t-stoff { --tex: linear-gradient(#cfc6b7, #c4baa9); }
.t-dunkel { --tex: linear-gradient(#34312c, #2a2723); }
.t-dach { --tex: linear-gradient(#57524a, #4a463f); }
.t-laerche { --tex: repeating-linear-gradient(90deg, #9c7449 0 2px, #c0956a 2px 9px, #ad855a 9px 10px, #c79f72 10px 16px); --tex-gr: auto; }
.f.t-glas { background: rgba(190, 214, 222, .14); border: 1px solid rgba(225, 238, 242, .55); }
.f.t-glas::before { background: linear-gradient(135deg, rgba(255, 255, 255, .22), rgba(255, 255, 255, 0) 40%, rgba(255, 196, 120, var(--glut, 0)) 100%); opacity: 1; }
.f.t-innen { background: #d9d2c6; }
.f.t-innen::before { background: #ffc477; opacity: var(--glut, 0); }

/* 6  Material */
.material {
  --sx: 18px; --sy: 22px; --gx: 30%; --gy: 20%; --ton: rgba(255, 190, 120, .0); --hell: 1;
  position: relative; background: var(--graphit-2); padding: clamp(100px, 16vh, 180px) 0;
  overflow: hidden;
}
.material::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(ellipse at var(--gx) 0%, rgba(255, 220, 170, .09), transparent 60%);
}
.material-kopf { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(50px, 9vh, 100px); }
.material-kopf .titel { max-width: 14em; font-size: clamp(2rem, 4.2vw, 3.9rem); }
.sonnenregler { max-width: 380px; justify-self: end; width: 100%; }
.sonnenregler label { display: flex; justify-content: space-between; color: var(--text-hell-2); }
.sonnenregler output { color: var(--sonne); }
.sonnenregler input[type=range] { width: 100%; margin: 14px 0 6px; accent-color: var(--sonne); height: 28px; background: transparent; cursor: pointer; }
.sonnen-skala { display: flex; justify-content: space-between; color: rgba(236, 231, 222, .4); font-size: 10.5px; }
.kacheln { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(40px, 6vw, 90px) clamp(26px, 4vw, 64px); }
.kachel { perspective: 1000px; }
.k3d {
  --rx: 0deg; --ry: 0deg;
  position: relative; aspect-ratio: 1; transform-style: preserve-3d;
  transform: rotateX(calc(18deg + var(--rx))) rotateY(var(--ry)) rotateZ(-2deg);
  transition: transform .5s var(--leicht);
}
.k3d.bewegt { transition: transform .12s linear; }
.k-flaeche {
  position: absolute; inset: 0; background: var(--bild) center / cover;
  transform: translateZ(0);
  filter: brightness(var(--hell));
}
.k-flaeche::before { content: ""; position: absolute; inset: 0; background: var(--ton); mix-blend-mode: multiply; }
.k-flaeche::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 244, 225, .38), transparent 55%);
  mix-blend-mode: soft-light;
}
.k-metall::after { background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 238, 200, .7), transparent 45%); mix-blend-mode: screen; opacity: .55; }
.k-glas { opacity: .92; }
.k-kante-r, .k-kante-u { position: absolute; background: var(--bild) center / cover; filter: brightness(calc(var(--hell) * .45)); }
.k-kante-r { left: 100%; top: 0; width: 18px; height: 100%; transform-origin: 0 50%; transform: rotateY(90deg); }
.k-kante-u { top: 100%; left: 0; height: 18px; width: 100%; transform-origin: 50% 0; transform: rotateX(-90deg); }
.k-schatten {
  position: absolute; inset: 6%; background: rgba(0, 0, 0, .7);
  filter: blur(22px); transform: translateZ(-60px) translate(var(--sx), var(--sy));
}
.kachel h3 { margin-top: 30px; font-size: 1.3rem; font-weight: 480; font-stretch: 112%; }
.kachel p { color: var(--text-hell-2); margin-top: 4px; }

/* 7  Projekt im Detail */
.story { position: relative; height: 560vh; height: 560svh; background: var(--stein); color: var(--text-dunkel); }
.story-buehne { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.story-kopf { position: absolute; z-index: 3; top: calc(var(--kopf-h) + 4vh); left: var(--rand); }
.story-kopf .mono { color: var(--sonne-tief); margin-bottom: 10px; }
.story-schritte {
  position: absolute; z-index: 3; top: calc(var(--kopf-h) + 4vh); right: var(--rand);
  display: flex; gap: 2px; counter-reset: s;
}
.story-schritte button {
  display: grid; gap: 4px; text-align: left; cursor: pointer;
  min-width: 96px; padding: 10px 14px 12px; border: 0; border-top: 2px solid var(--linie-dunkel);
  background: transparent; font-size: 14px; font-weight: 500; font-stretch: 108%; color: var(--text-dunkel-2);
  transition: border-color .3s, color .3s;
}
.story-schritte button .mono { font-size: 10.5px; }
.story-schritte button.an { border-top-color: var(--sonne-tief); color: var(--text-dunkel); }
.story-feld { position: absolute; inset: 0; }
.story-feld .szene { perspective: 2200px; }
.story-feld .ebene { width: 720px; height: 480px; margin: -240px 0 0 -360px; }
.gelaende { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.gelaende .wiese { fill: #cfc8ba; }
.gelaende .hoehe { fill: none; stroke: rgba(26, 25, 22, .22); stroke-width: 1; }
.gelaende .fuss { fill: none; stroke: var(--text-dunkel); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: var(--fz, 1); }
.gelaende .sonnenbahn { fill: none; stroke: var(--sonne-tief); stroke-width: 1.2; stroke-dasharray: 4 6; }
.gelaende text { font-family: "Geist Mono", monospace; font-size: 13px; fill: rgba(26, 25, 22, .62); }
.schlagschatten { position: absolute; left: 0; top: 0; transform: translateZ(.8px); pointer-events: none; }
.schlagschatten i { position: absolute; background: rgba(40, 34, 28, .3); filter: blur(4px); }
.story-foto {
  position: absolute; inset: 0; opacity: 0; clip-path: inset(var(--ci, 30%)); will-change: opacity, clip-path;
}
.story-foto::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(14, 13, 11, .62), rgba(14, 13, 11, 0) 34%); }
.story-buehne.foto .story-kopf, .story-buehne.foto .story-schritte button { color: var(--text-hell); }
.story-buehne.foto .story-kopf .mono { color: var(--sonne); }
.story-buehne.foto .story-schritte button { border-top-color: rgba(236, 231, 222, .3); }
.story-buehne.foto .story-schritte button.an { border-top-color: var(--sonne); }
.story-kopf, .story-schritte button { transition: color .4s, border-color .4s; }
.story-foto img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--fs, 1.1)); }
.story-texte { position: absolute; z-index: 3; left: var(--rand); bottom: 7vh; width: min(30em, calc(100% - 2 * var(--rand))); min-height: 6em; }
.story-texte p {
  position: absolute; left: 0; bottom: 0; width: 100%;
  font-size: clamp(1.15rem, 1.7vw, 1.55rem); line-height: 1.35; font-weight: 430;
  padding: 18px 22px; background: rgba(240, 236, 229, .86);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  border-left: 2px solid var(--sonne-tief);
  opacity: 0; transform: translateY(10px); transition: opacity .45s, transform .45s var(--leicht);
}
.story-texte p.an { opacity: 1; transform: none; }

/* 8  Kontakt */
.kontakt { background: var(--graphit); padding: clamp(110px, 18vh, 200px) 0 clamp(80px, 12vh, 140px); border-top: 1px solid var(--linie-hell); }
.kontakt-raster { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 110px); align-items: start; }
.kontakt-kopf .lead { color: var(--text-hell-2); margin-top: 26px; }
.kontakt-daten { margin-top: 50px; border-top: 1px solid var(--linie-hell); }
.kontakt-daten div { display: grid; grid-template-columns: 110px 1fr; padding: 16px 0; border-bottom: 1px solid var(--linie-hell); gap: 16px; align-items: baseline; }
.kontakt-daten dt { color: var(--text-hell-2); }
.kontakt-daten a { text-decoration: none; border-bottom: 1px solid var(--linie-hell); }
.kontakt-daten a:hover { border-color: var(--sonne); }
.arten { border: 0; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.arten legend { color: var(--text-hell-2); margin-bottom: 14px; padding: 0; }
.arten label { position: relative; cursor: pointer; }
.arten input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.arten span { display: inline-block; padding: 10px 16px; border: 1px solid var(--linie-hell); font-size: 14.5px; transition: background .25s, border-color .25s, color .25s; }
.arten label:hover span { border-color: rgba(236, 231, 222, .45); }
.arten input:checked + span { background: var(--kalk); color: var(--text-dunkel); border-color: var(--kalk); }
.arten input:focus-visible + span { outline: 2px solid var(--sonne); outline-offset: 2px; }
.felder { display: grid; grid-template-columns: 1fr 1fr; gap: 26px 24px; margin-top: 36px; }
.feld { display: grid; gap: 8px; }
.feld-breit { grid-column: 1 / -1; }
.feld .mono { color: var(--text-hell-2); }
.feld input, .feld select, .feld textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 1px solid rgba(236, 231, 222, .3);
  padding: 10px 0; font-size: 17px; border-radius: 0; outline: none; transition: border-color .25s;
}
.feld select { appearance: none; background: linear-gradient(45deg, transparent 50%, currentColor 50%) right 6px center / 7px 7px no-repeat; }
.feld select option { background: var(--graphit); }
.feld textarea { resize: vertical; min-height: 110px; }
.feld input:focus, .feld select:focus, .feld textarea:focus { border-bottom-color: var(--sonne); }
.feld input::placeholder { color: rgba(236, 231, 222, .32); }
.feld.fehlt input, .feld.fehlt textarea { border-bottom-color: #d97a5a; }
.anfrage-fuss { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; margin-top: 38px; }
.anfrage-hinweis { color: var(--text-hell-2); }
.anfrage-hinweis.ok { color: var(--sonne); }

.fuss { background: #0f0e0c; padding: 46px 0 40px; color: var(--text-hell-2); font-size: 14px; }
.fuss-raster { display: grid; grid-template-columns: repeat(4, auto); justify-content: space-between; gap: 14px 30px; align-items: baseline; }
.fuss-marke { color: var(--text-hell); font-weight: 520; font-stretch: 112%; }
.fuss a { text-decoration: none; }
.fuss a:hover { color: var(--text-hell); }
.fuss-hinweis { font-size: 10.5px; color: rgba(236, 231, 222, .4); }

/* Breite Bildschirme mit wenig Höhe */
@media (max-height: 760px) and (min-width: 821px) {
  .hero-titel { font-size: clamp(2.4rem, 5.4vw, 5.4rem); }
  .plan-stufen li { padding: 10px 0; }
  .story-texte { bottom: 4vh; }
}

/* Tablet und Handy */
@media (max-width: 1080px) {
  .nav { gap: 18px; font-size: 13px; }
  .nav a:nth-child(3), .nav a:nth-child(5) { display: none; }
}
@media (max-width: 820px) {
  :root { --kopf-h: 62px; }
  body { font-size: 16px; }
  .menu-knopf {
    display: flex; align-items: center; gap: 10px; position: relative; z-index: 2;
    background: transparent; border: 1px solid rgba(236, 231, 222, .35); height: 40px; padding: 0 14px; cursor: pointer;
  }
  .menu-knopf span { display: none; }
  .menu-knopf b { font-weight: 500; font-size: 14px; }
  .nav {
    position: fixed; inset: 0; z-index: 1; flex-direction: column; align-items: flex-start; justify-content: center;
    gap: 6px; padding: 0 var(--rand); background: var(--graphit);
    font-size: 2rem; font-stretch: 112%; letter-spacing: -.02em;
    opacity: 0; visibility: hidden; transition: opacity .35s, visibility .35s;
  }
  .nav a:nth-child(3), .nav a:nth-child(5) { display: block; }
  .nav.offen { opacity: 1; visibility: visible; }
  .nav-cta { margin-top: 20px; font-size: 1.1rem; }
  .marke-text small { display: none; }

  .hero-text { bottom: 92px; }
  .hero-titel { font-size: clamp(2.3rem, 10.4vw, 3.6rem); }
  .hero-lead { margin-top: 18px; }
  .hero-knoepfe { margin-top: 24px; }
  .knopf { height: 48px; padding: 0 18px; }
  .hero-fuss span:first-child, .hero-fuss span:last-child { display: none; }
  .hero-fuss { justify-content: flex-start; bottom: 30px; }

  .sonnenfleck { width: 130vw; height: 60%; }
  .grundsaetze li { grid-template-columns: 1fr; gap: 8px; padding: 20px 0; }
  .zahlen { grid-template-columns: 1fr 1fr; }
  .zahlen div:nth-child(3) { padding-left: 0; border-left: 0; }
  .zahlen div:nth-child(n+3) { margin-top: 18px; border-top: 1px solid var(--linie-dunkel); }

  .projekte-spur { padding-left: var(--rand); padding-right: 20vw; }
  .pk { width: 76vw; }
  .pk-anfrage { width: 70vw; padding: 22px; }

  .arbeit-raster { grid-template-columns: 1fr; }
  .arbeit-kopf { grid-template-columns: 1fr; row-gap: 18px; }
  .lagen-feld { top: var(--kopf-h); height: 40vh; z-index: 2; background: var(--papier); margin: 0 calc(var(--rand) * -1); box-shadow: 0 18px 24px -16px rgba(26, 25, 22, .18); }
  .lagen { --ls: .78; }
  .schritte li { min-height: 46vh; }

  .plan-buehne { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .plan-links { border-right: 0; border-bottom: 1px solid var(--linie-hell); padding: calc(var(--kopf-h) + 14px) var(--rand) 14px; }
  .plan-links .titel { font-size: 1.9rem; }
  .plan-stufen { margin-top: 14px; }
  .plan-stufen li { display: none; padding: 10px 0 0; border-top: 0; }
  .plan-stufen li.an { display: grid; }
  .plan-fortschritt { margin-top: 12px; }

  .material-kopf { grid-template-columns: 1fr; }
  .sonnenregler { justify-self: start; }
  .kacheln { grid-template-columns: 1fr 1fr; gap: 44px 22px; }
  .kachel h3 { margin-top: 22px; font-size: 1.1rem; }
  .k-kante-r { width: 12px; }
  .k-kante-u { height: 12px; }

  .story-kopf .titel { font-size: 1.9rem; }
  .story-schritte { left: var(--rand); right: var(--rand); top: calc(var(--kopf-h) + 4vh + 74px); overflow-x: auto; scrollbar-width: none; }
  .story-schritte button { min-width: 0; padding: 8px 4px 10px; font-size: 12px; flex: 1 1 0; }
  .story-schritte button .mono { display: none; }
  .story-texte { bottom: 4vh; }
  .story-texte p { font-size: 1.05rem; padding: 14px 16px; }

  .kontakt-raster { grid-template-columns: 1fr; }
  .felder { grid-template-columns: 1fr; }
  .fuss-raster { grid-template-columns: 1fr; }
}

/* Weniger Bewegung */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01s !important; animation-duration: .01s !important; }
}

