/* ==========================================================================
   Splint & Kern – Zimmerei & Holzbau in München (Konzeptprojekt)
   Bildsprache: Baustelle & Abbund. Gefaste Kanten (wie Balken), Schlagschnur-Blau,
   Abbundzeichen (I, II, III, IIII, V) als Nummerierung, Fichte & Kluft-Schwarz.
   ========================================================================== */

:root {
  --bg: #F1F2EE;
  --bg-2: #E4E7E1;
  --card: #FBFBF9;
  --ink: #15181B;
  --ink-2: #3D434A;
  --ink-3: #5C636B;
  --dark: #15181B;
  --dark-2: #20262B;
  --on-dark: #EEF0EC;
  --on-dark-2: rgba(238, 240, 236, .72);
  --spruce: #E8C88E;
  --spruce-2: #D6AE68;
  --spruce-ink: #8C6630;
  --kern: #9E5B33;
  --chalk: #2F57D9;
  --chalk-dark: #2142AE;
  --chalk-light: #A9BCFF;
  --line: rgba(21, 24, 27, .14);
  --line-strong: rgba(21, 24, 27, .32);
  --line-light: rgba(238, 240, 236, .18);
  --error: #B42318;

  --f-display: "Big Shoulders Display", "Arial Narrow", Impact, sans-serif;
  --f-stencil: "Big Shoulders Stencil Display", "Big Shoulders Display", Impact, sans-serif;
  --f-body: "Barlow", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-label: "Barlow Condensed", "Barlow", "Arial Narrow", sans-serif;

  --container: 1280px;
  --gutter: clamp(18px, 5vw, 56px);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.7, 0, .3, 1);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
html.menu-open { overflow: hidden; }

img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3 { margin: 0; font-weight: 800; }

::selection { background: var(--chalk); color: #fff; }
:focus-visible { outline: 3px solid var(--chalk); outline-offset: 3px; }
.hero :focus-visible,
.site-header :focus-visible,
.mobile-menu :focus-visible,
.core :focus-visible,
.footer :focus-visible,
.action-bar :focus-visible { outline-color: var(--spruce); }

.container { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed; left: 16px; top: 12px; z-index: 100;
  padding: .7em 1.1em;
  background: var(--spruce); color: var(--ink);
  font-weight: 700; text-decoration: none;
  transform: translateY(-160%);
  transition: transform .3s var(--ease);
}
.skip-link:focus { transform: none; }

/* ---------- Bausteine ---------- */
.section { padding-block: clamp(48px, 6vw, 88px); }
.section-head { max-width: 860px; }

.label {
  display: flex; align-items: center; gap: 14px;
  margin: 0 0 20px;
  font-family: var(--f-label);
  font-size: .86rem; font-weight: 700;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--ink-2);
}
.label--light { color: var(--on-dark-2); }
.mark {
  display: inline-grid; place-items: center;
  min-width: 2.3em; height: 2.1em;
  padding: 0 .45em;
  border: 2px solid currentColor;
  font-family: var(--f-stencil);
  font-size: 1.05rem; font-weight: 800;
  letter-spacing: .08em;
  color: var(--chalk);
}
.label--light .mark { color: var(--spruce); }

.title {
  font-family: var(--f-display);
  font-size: clamp(2.6rem, 1.3rem + 4.6vw, 5.6rem);
  font-weight: 900;
  line-height: .92;
  letter-spacing: .005em;
  text-transform: uppercase;
  text-wrap: balance;
}
.title--light { color: var(--on-dark); }

.lead {
  max-width: 58ch;
  margin: 26px 0 0;
  font-size: clamp(1.06rem, 1rem + .3vw, 1.22rem);
  color: var(--ink-2);
  text-wrap: pretty;
}

/* Schlagschnur: blaue Kreidelinie, die beim Erscheinen „schnalzt“ */
.chalk {
  position: relative;
  display: block;
  width: min(240px, 46%);
  height: 3px;
  margin: 24px 0 0;
  background: var(--chalk);
  -webkit-mask: repeating-linear-gradient(90deg, #000 0 15px, rgba(0, 0, 0, .55) 15px 18px, #000 18px 33px, rgba(0, 0, 0, .7) 33px 35px);
  mask: repeating-linear-gradient(90deg, #000 0 15px, rgba(0, 0, 0, .55) 15px 18px, #000 18px 33px, rgba(0, 0, 0, .7) 33px 35px);
  transform-origin: left center;
}
.chalk::after {
  content: "";
  position: absolute; inset: -5px 0;
  background: var(--chalk);
  filter: blur(6px);
  opacity: 0;
}
.chalk--light, .chalk--beam { background: var(--chalk-light); }
.chalk--light::after, .chalk--beam::after { background: var(--chalk-light); }
.js .chalk { transform: scaleX(0); }
.js .is-in .chalk,
.js .chalk.is-in,
.js .chalk--beam { animation: snap 1s var(--ease) forwards; }
.js .is-in .chalk::after,
.js .chalk.is-in::after,
.js .chalk--beam::after { animation: dust 1.1s ease-out forwards; }
.js .chalk--beam { animation-delay: .9s; }
.js .chalk--beam::after { animation-delay: .9s; }
.js .section-head .chalk { animation-delay: .25s; }
.js .section-head .chalk::after { animation-delay: .25s; }
@keyframes snap {
  0% { transform: scaleX(0); }
  24% { transform: scaleX(1) translateY(0); }
  36% { transform: scaleX(1) translateY(-3px); }
  48% { transform: scaleX(1) translateY(2px); }
  60% { transform: scaleX(1) translateY(-1px); }
  72%, 100% { transform: scaleX(1) translateY(0); }
}
@keyframes dust { 0%, 22% { opacity: 0; } 32% { opacity: .55; } 100% { opacity: 0; } }

/* Buttons mit Fase (Clip liegt auf dem Hintergrund, damit der Fokusrahmen sichtbar bleibt) */
.btn {
  --btn-bg: var(--chalk);
  --btn-bg-hover: var(--chalk-dark);
  --btn-fg: #fff;
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: .6em;
  min-height: 52px;
  padding: .7em 1.55em;
  border: 0;
  background: none;
  color: var(--btn-fg);
  font-family: var(--f-label);
  font-size: 1.08rem; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
  transition: color .25s, transform .4s var(--ease), opacity .25s;
}
.btn::before {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: var(--btn-bg);
  clip-path: polygon(11px 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%, 0 11px);
  transition: background-color .25s;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .45s var(--ease); }
.btn:active { transform: translateY(1px); }
.btn--chalk { --btn-bg: var(--chalk); --btn-bg-hover: var(--chalk-dark); --btn-fg: #fff; }
.btn--ink { --btn-bg: var(--ink); --btn-bg-hover: #000; --btn-fg: var(--on-dark); }
.btn--outline,
.btn--outline-light { --btn-bg: transparent; --btn-bg-hover: transparent; }
.btn--outline { --btn-fg: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--outline-light { --btn-fg: var(--on-dark); box-shadow: inset 0 0 0 2px var(--line-light); }
.btn--small { min-height: 42px; padding: .5em 1.15em; font-size: .98rem; }
.btn--large { min-height: 60px; padding-inline: 2em; font-size: 1.15rem; }
.btn.is-loading { opacity: .85; pointer-events: none; }
.btn.is-loading svg { animation: nudge .9s var(--ease-in-out) infinite; }
@keyframes nudge { 50% { transform: translateX(6px); } }
@media (hover: hover) {
  .btn:hover::before { background: var(--btn-bg-hover); }
  .btn:hover svg { transform: translateX(4px); }
  .btn--outline:hover { box-shadow: inset 0 0 0 2px var(--chalk); color: var(--chalk); }
  .btn--outline-light:hover { box-shadow: inset 0 0 0 2px var(--on-dark); }
}

/* Logo-Klassen */
.lg-line { fill: none; stroke: currentColor; }
.lg-splint { fill: var(--spruce); }
.lg-kern { fill: var(--kern); }
.lg-pith { fill: var(--dark); }

/* ==========================================================================
   HEADER & MENÜ
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto; z-index: 60;
  height: var(--header-h);
  color: var(--on-dark);
  transition: transform .5s var(--ease), background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled { background: var(--dark); box-shadow: 0 1px 0 var(--line-light); }
.site-header.is-hidden { transform: translateY(-105%); }
.menu-open .site-header { background: var(--dark); transform: none; }

.site-header__inner { display: flex; align-items: center; gap: clamp(12px, 2vw, 28px); height: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; margin-right: auto; min-width: 0; text-decoration: none; }
.brand__mark { flex: none; width: 40px; height: 40px; color: var(--spruce); }
.brand__text { display: grid; gap: 2px; }
.brand__name {
  font-family: var(--f-display);
  font-size: 1.5rem; font-weight: 900;
  line-height: 1; letter-spacing: .03em;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand__sub {
  font-family: var(--f-label);
  font-size: .74rem; font-weight: 600;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-2);
  white-space: nowrap;
}

.site-nav ul { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.site-nav a {
  position: relative; display: block;
  padding: .45em .8em;
  font-family: var(--f-label);
  font-size: 1.02rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-2);
  text-decoration: none;
  transition: color .2s;
}
.site-nav a::after {
  content: "";
  position: absolute; left: .8em; right: .8em; bottom: 2px;
  height: 2px;
  background: var(--chalk-light);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.site-nav a:hover, .site-nav a.is-active { color: var(--on-dark); }
.site-nav a:hover::after, .site-nav a.is-active::after { transform: scaleX(1); }
.site-nav a.is-active::after { background: var(--spruce); }

.site-header__actions { display: flex; align-items: center; gap: 10px; flex: none; }

.lang { display: flex; border: 1.5px solid var(--line-light); }
.lang__btn {
  min-width: 40px; min-height: 34px;
  padding: 0 .55em;
  border: 0;
  background: none;
  font-family: var(--f-label);
  font-size: .9rem; font-weight: 700; letter-spacing: .08em;
  color: var(--on-dark-2);
  cursor: pointer;
  transition: background-color .2s, color .2s;
}
.lang__btn[aria-pressed="true"] { background: var(--spruce); color: var(--ink); }

.menu-toggle {
  display: none; align-items: center; gap: 10px;
  height: 44px;
  padding: 0 12px 0 14px;
  border: 1.5px solid var(--line-light);
  background: none;
  font-family: var(--f-label);
  font-size: .98rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  cursor: pointer;
}
.menu-toggle__icon { position: relative; width: 22px; height: 14px; }
.menu-toggle__icon span {
  position: absolute; left: 0; right: 0;
  height: 2px;
  background: currentColor;
  transition: transform .4s var(--ease), opacity .2s;
}
.menu-toggle__icon span:nth-child(1) { top: 0; }
.menu-toggle__icon span:nth-child(2) { top: 6px; right: 6px; }
.menu-toggle__icon span:nth-child(3) { top: 12px; }
.menu-open .menu-toggle__icon span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-toggle__icon span:nth-child(2) { opacity: 0; }
.menu-open .menu-toggle__icon span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 55;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  padding: calc(var(--header-h) + 20px) var(--gutter) calc(26px + env(safe-area-inset-bottom));
  overflow-y: auto;
  background: var(--dark); color: var(--on-dark);
  transform: translateY(-102%);
  visibility: hidden;
  transition: transform .6s var(--ease-in-out), visibility 0s linear .6s;
}
.mobile-menu::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 4px;
  background: var(--chalk-light);
}
.mobile-menu.is-open { transform: none; visibility: visible; transition: transform .6s var(--ease-in-out), visibility 0s; }
.mobile-menu__list { margin: 0; padding: 0; list-style: none; }
.mobile-menu__list li { overflow: hidden; border-bottom: 1px solid var(--line-light); }
.mobile-menu__list a {
  display: flex; align-items: center; gap: 18px;
  padding: 12px 0;
  text-decoration: none;
  transform: translateY(105%);
  transition: transform .7s var(--ease);
  transition-delay: calc(.2s + var(--i) * .05s);
}
.mobile-menu.is-open .mobile-menu__list a { transform: none; }
.mobile-menu__list span {
  min-width: 3.2em;
  font-family: var(--f-stencil);
  font-size: 1rem;
  color: var(--spruce);
}
.mobile-menu__list b {
  font-family: var(--f-display);
  font-size: clamp(2.3rem, 10vw, 3.6rem); font-weight: 900;
  line-height: 1; letter-spacing: .01em;
  text-transform: uppercase;
}
.mobile-menu__foot { display: grid; justify-items: start; gap: 10px; font-weight: 600; }
.mobile-menu__foot a { font-size: 1.1rem; text-decoration: none; }
.mobile-menu__ob { margin: 0 0 6px; font-family: var(--f-label); font-size: .95rem; letter-spacing: .04em; color: var(--spruce); }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { position: relative; background: var(--dark); color: var(--on-dark); }
.hero__photo {
  position: relative;
  height: clamp(440px, 76vh, 860px);
  height: clamp(440px, 76svh, 860px);
  overflow: hidden;
  background: var(--dark-2);
}
.hero__photo img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: 50% 45%;
  transform: scale(1.14);
  animation: heroSettle 2.6s var(--ease) forwards;
}
.hero__photo::before,
.hero__photo::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; }
.hero__photo::before { top: 0; height: 34%; background: linear-gradient(rgba(21, 24, 27, .7), rgba(21, 24, 27, 0)); z-index: 1; }
.hero__photo::after { bottom: 0; height: 46%; background: linear-gradient(rgba(21, 24, 27, 0), var(--dark)); }

.hero__stamp {
  position: absolute; right: var(--gutter); top: calc(var(--header-h) + clamp(20px, 5vh, 56px)); z-index: 2;
  display: grid; justify-items: center; gap: 2px;
  padding: 12px 18px 10px;
  border: 3px solid var(--spruce);
  outline: 1.5px solid var(--spruce); outline-offset: 4px;
  color: var(--spruce);
  background: rgba(21, 24, 27, .35);
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  font-family: var(--f-stencil);
  text-transform: uppercase;
  transform: rotate(-7deg);
  animation: stamp .7s 1.4s var(--ease) both;
}
.hero__stamp span { font-size: .78rem; letter-spacing: .24em; }
.hero__stamp b { font-size: 1.85rem; font-weight: 800; line-height: 1; letter-spacing: .06em; }

.hero__inner { position: relative; z-index: 2; margin-top: clamp(-340px, -26vw, -150px); }
.hero__beam {
  position: relative;
  width: min(100%, 880px);
  padding: clamp(30px, 4vw, 56px) clamp(22px, 4vw, 56px) clamp(30px, 4vw, 52px);
  background: var(--dark);
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%);
}
.hero__beam .chalk--beam { position: absolute; left: 0; top: 0; width: calc(100% - 34px); margin: 0; height: 4px; }
.hero__eyebrow { margin-bottom: 18px; animation: up .9s .2s var(--ease) both; }
.hero__title {
  margin: 0 0 26px;
  font-family: var(--f-display);
  font-size: clamp(3.4rem, 1.4rem + 8vw, 9rem);
  font-weight: 900;
  line-height: .86;
  letter-spacing: .005em;
  text-transform: uppercase;
}
.hero__title .ln { display: block; overflow: hidden; padding-top: .04em; }
.hero__title .ln > span {
  display: inline-block;
  transform: translateY(105%);
  animation: rise 1s var(--ease) forwards;
  animation-delay: calc(.3s + var(--i, 0) * .12s);
}
.hero__title em { font-style: normal; color: var(--spruce); }
.hero__lead { max-width: 50ch; margin-bottom: 30px; font-size: clamp(1.06rem, 1rem + .35vw, 1.25rem); color: var(--on-dark-2); animation: up 1s .6s var(--ease) both; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; animation: up 1s .75s var(--ease) both; }

.ob-chip,
.mobile-menu__ob { display: flex; align-items: center; gap: 10px; }
.ob-chip {
  margin: 28px 0 0;
  font-family: var(--f-label);
  font-size: 1rem; font-weight: 600;
  letter-spacing: .04em;
  color: var(--on-dark-2);
  animation: up 1s .9s var(--ease) both;
}
.ob-chip:empty, .mobile-menu__ob:empty { display: none; }
.ob-chip b, .mobile-menu__ob b { color: var(--spruce); font-weight: 700; }
.ob-dot { flex: none; width: 10px; height: 10px; background: var(--chalk-light); animation: blink 2.4s infinite; }

@keyframes heroSettle { to { transform: scale(1.04); } }
@keyframes rise { to { transform: none; } }
@keyframes up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes stamp { 0% { opacity: 0; transform: rotate(-7deg) scale(1.6); } 60% { opacity: 1; transform: rotate(-7deg) scale(.94); } 100% { opacity: 1; transform: rotate(-7deg) scale(1); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* Kennzahlen */
.facts { background: var(--dark); color: var(--on-dark); padding-bottom: clamp(28px, 3.5vw, 44px); }
.facts__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-block: 0; padding-top: clamp(24px, 3vw, 40px); }
.facts__grid div {
  display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px;
  padding: 4px 18px 4px 20px;
  border-left: 3px solid var(--line-light);
}
.facts dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2.1rem, 1.4rem + 2.2vw, 3.4rem); font-weight: 900;
  line-height: 1; letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--spruce);
}
.facts dt { font-family: var(--f-label); font-size: .86rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--on-dark-2); }

/* ==========================================================================
   I LEISTUNGEN
   ========================================================================== */
.services__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 52px) clamp(20px, 3vw, 40px);
  margin: clamp(28px, 3.5vw, 48px) 0 0;
  padding: 0;
  list-style: none;
}
.svc { display: flex; flex-direction: column; }
.svc__media {
  position: relative;
  margin: 0;
  aspect-ratio: 900 / 640;
  overflow: hidden;
  background: var(--bg-2);
  clip-path: polygon(20px 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%, 0 20px);
}
.svc__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.svc__num {
  position: absolute; left: 0; bottom: 0;
  padding: 8px 18px 6px;
  background: var(--dark);
  font-family: var(--f-stencil);
  font-size: 1.5rem; font-weight: 800;
  letter-spacing: .08em;
  color: var(--spruce);
}
.svc__body { display: grid; justify-items: start; gap: 12px; padding: 22px 2px 0; }
.svc__title {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 1.2rem + 1.5vw, 2.5rem); font-weight: 900;
  line-height: .98; letter-spacing: .01em;
  text-transform: uppercase;
}
.svc__body p { margin: 0; max-width: 54ch; color: var(--ink-2); }
.svc__body .svc__fact {
  padding: 2px 0 2px 12px;
  border-left: 4px solid var(--chalk);
  font-family: var(--f-label);
  font-size: .95rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink);
}
.svc__link {
  display: inline-flex; align-items: center; gap: .5em;
  margin-top: 2px;
  padding: 4px 0;
  border-bottom: 2px solid currentColor;
  font-family: var(--f-label);
  font-size: 1rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--chalk);
  text-decoration: none;
}
.svc__link svg { width: 16px; height: 16px; transition: transform .4s var(--ease); }
@media (hover: hover) {
  .svc:hover .svc__media img { transform: scale(1.05); }
  .svc__link:hover svg { transform: translateX(4px); }
}

/* ==========================================================================
   II ABLAUF – Dachstuhl entsteht beim Scrollen
   ========================================================================== */
.build { position: relative; background: var(--bg-2); }
.build__intro { padding-top: clamp(48px, 6vw, 88px); }

/* Grundlayout = statisch (ohne JS, reduzierte Bewegung, sehr niedrige Fenster – und nach dem Richtfest) */
.build__sticky { padding-block: clamp(24px, 3vw, 40px) clamp(48px, 6vw, 88px); }
.build__stage {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr);
  align-items: center;
  gap: clamp(28px, 5vw, 80px);
}
.build__drawing {
  position: relative;
  padding: clamp(10px, 2vw, 26px);
  background-color: var(--card);
  background-image:
    linear-gradient(rgba(47, 87, 217, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 87, 217, .07) 1px, transparent 1px);
  background-size: 24px 24px;
  clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}
.frame { width: 100%; height: auto; overflow: visible; }
.build__mark {
  margin: 0;
  font-family: var(--f-stencil);
  font-size: clamp(3.6rem, 2rem + 5vw, 7rem); font-weight: 800;
  line-height: .85;
  letter-spacing: .06em;
  color: var(--chalk);
}
.steps { margin: 18px 0 0; padding: 0; list-style: none; }
.steps li { padding: 12px 0 12px 20px; border-left: 4px solid var(--line); transition: opacity .4s, border-color .4s; }
.steps__time { font-family: var(--f-label); font-size: .82rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--chalk); }
.steps h3 {
  margin-top: 2px;
  font-family: var(--f-display);
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.95rem); font-weight: 900;
  line-height: 1; letter-spacing: .01em;
  text-transform: uppercase;
}
.steps p { margin: 6px 0 0; font-size: .98rem; color: var(--ink-2); }
.build__progress { display: none; }

/* Scroll-Modus: Abschnitt bleibt stehen, das Haus wächst. Nach dem Richtfest wechselt JS auf .is-built:
   gleiche Optik, aber ohne Scroll-Strecke – man scrollt dann einfach normal drüber. */
.build.is-scrolly .build__scroller { height: 300vh; height: 300svh; }
.build.is-scrolly .build__sticky {
  position: sticky; top: 0;
  display: flex; align-items: center;
  height: 100vh; height: 100svh;
  padding-block: calc(var(--header-h) * .4) 16px;
  overflow: hidden;
}
.build:is(.is-scrolly, .is-built) .build__drawing { max-height: 82svh; }
.build:is(.is-scrolly, .is-built) .frame { max-height: calc(82svh - 52px); margin-inline: auto; }
.build:is(.is-scrolly, .is-built) .steps li { opacity: .32; }
.build:is(.is-scrolly, .is-built) .steps li.is-past { opacity: .58; }
.build:is(.is-scrolly, .is-built) .steps li.is-active { opacity: 1; border-left-color: var(--chalk); }
.build:is(.is-scrolly, .is-built) .steps p { max-height: 0; margin-top: 0; overflow: hidden; opacity: 0; transition: max-height .5s var(--ease), opacity .35s, margin .35s; }
.build:is(.is-scrolly, .is-built) .steps li.is-active p { max-height: 7em; margin-top: 6px; opacity: 1; }
.build:is(.is-scrolly, .is-built) .build__progress { position: relative; display: block; height: 4px; margin-top: 26px; overflow: hidden; background: var(--line); }
.build:is(.is-scrolly, .is-built) .build__progress span { position: absolute; inset: 0; background: var(--chalk); transform: scaleX(0); transform-origin: left; }

/* Zeichnung */
.frame .f-ground { stroke: var(--ink-3); stroke-width: 1.6; }
.frame .f-hatch { stroke: var(--ink-3); stroke-width: 1; opacity: .4; }
.frame .f-found { fill: #A9AFB4; }
.frame .f-wood { fill: var(--spruce); stroke: var(--spruce-ink); stroke-width: 1.3; }
.frame .f-wood.f-dark { fill: var(--spruce-2); }
.frame .f-roof { fill: var(--dark); }
.frame .f-batten { stroke: var(--spruce-2); stroke-width: 2.4; }
.frame .f-plan { fill: none; stroke: var(--chalk); stroke-width: 2; stroke-dasharray: 9 6; }
.frame .f-dim line, .frame .f-dim path { stroke: var(--chalk); stroke-width: 1.4; fill: none; }
.frame .f-dim text { fill: var(--chalk); font-family: var(--f-label); font-size: 17px; font-weight: 700; letter-spacing: .04em; }
.frame .f-label { opacity: 0; transition: opacity .35s; }
.frame .f-label.is-on { opacity: 1; }
.frame .f-label line { stroke: var(--chalk); stroke-width: 1.3; }
.frame .f-label circle { fill: var(--chalk); }
.frame .f-label text { fill: var(--ink); font-family: var(--f-label); font-size: 15px; font-weight: 700; letter-spacing: .1em; }
.frame .f-tree-needles { fill: #2E6B47; }
.frame .f-tree-trunk { fill: #6B4A2B; }
.frame .f-ribbon { fill: none; stroke-width: 3; stroke-linecap: round; }
.frame .f-ribbon--a { stroke: var(--chalk); }
.frame .f-ribbon--b { stroke: #D9483B; }
.frame .f-ribbon--c { stroke: #F0B93A; }
.frame .f-ribbons { transform-box: fill-box; transform-origin: 50% 0; }
.frame .f-tree.is-up .f-ribbons { animation: sway 2.6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { transform: rotate(-6deg); } 50% { transform: rotate(7deg); } }

/* ==========================================================================
   III REFERENZEN – Holzliste
   ========================================================================== */
.holzliste { margin-top: clamp(28px, 3vw, 44px); border-top: 4px solid var(--ink); }
.holzliste__head,
.row__btn {
  display: grid;
  grid-template-columns: 74px minmax(0, 2.3fr) minmax(0, 1fr) minmax(0, 1.5fr) 96px 90px 26px;
  align-items: center;
  gap: 16px;
}
.holzliste__head {
  padding: 12px 10px;
  border-bottom: 1.5px solid var(--line-strong);
  font-family: var(--f-label);
  font-size: .8rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-3);
}
.holzliste__rows { margin: 0; padding: 0; list-style: none; }
.row { border-bottom: 1.5px solid var(--line-strong); }
.row__btn {
  position: relative;
  width: 100%;
  padding: 20px 10px;
  border: 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition: background-color .25s;
}
.row__btn::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--chalk);
  transform: scaleY(0);
  transition: transform .35s var(--ease);
}
.row.is-open .row__btn::before { transform: scaleY(1); }
.row__pos { font-family: var(--f-stencil); font-size: 1.45rem; font-weight: 800; letter-spacing: .06em; color: var(--chalk); }
.row__name {
  font-family: var(--f-display);
  font-size: clamp(1.3rem, 1rem + 1vw, 1.8rem); font-weight: 900;
  line-height: 1; letter-spacing: .01em;
  text-transform: uppercase;
}
.row__place, .row__wood { color: var(--ink-2); }
.row__vol, .row__time { font-family: var(--f-label); font-size: 1.1rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.row__icon { position: relative; width: 22px; height: 22px; justify-self: end; }
.row__icon::before,
.row__icon::after {
  content: "";
  position: absolute; left: 3px; right: 3px; top: 50%;
  height: 2.5px; margin-top: -1.25px;
  background: var(--ink);
  transition: transform .4s var(--ease);
}
.row__icon::after { transform: rotate(90deg); }
.row.is-open .row__icon::after { transform: rotate(0deg); }
@media (hover: hover) {
  .row__btn:hover { background: rgba(47, 87, 217, .05); }
  .row__btn:hover::before { transform: scaleY(1); }
}

.row__panel { display: grid; grid-template-rows: 1fr; }
.js .row__panel { grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease); }
.js .row.is-open .row__panel { grid-template-rows: 1fr; }
.row__panel-inner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; min-height: 0; overflow: hidden; }
.row__media {
  margin: 4px 0 26px 10px;
  aspect-ratio: 900 / 640;
  overflow: hidden;
  background: var(--bg-2);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.row__media img { width: 100%; height: 100%; object-fit: cover; }
.row__copy { display: grid; align-content: start; justify-items: start; gap: 18px; padding: 4px 10px 26px 0; }
.row__copy p { max-width: 52ch; margin: 0; color: var(--ink-2); font-size: 1.08rem; }

.holzliste__sum {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px;
  margin: 0;
  padding: 18px 10px;
  border-bottom: 4px solid var(--ink);
  font-family: var(--f-label);
  font-size: 1.02rem; font-weight: 600;
  letter-spacing: .06em; text-transform: uppercase;
}
.holzliste__sum-label { color: var(--ink-3); }
.holzliste__sum b { font-family: var(--f-display); font-size: 2.2rem; font-weight: 900; letter-spacing: .01em; text-transform: none; color: var(--chalk); }

.ref-preview {
  position: fixed; left: 0; top: 0; z-index: 30;
  width: 320px;
  aspect-ratio: 900 / 640;
  pointer-events: none;
  opacity: 0;
  filter: drop-shadow(0 18px 34px rgba(21, 24, 27, .35));
  transition: opacity .25s;
  will-change: transform;
}
.ref-preview img {
  width: 100%; height: 100%;
  object-fit: cover;
  clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
  transform: scale(.88) rotate(-3deg);
  transition: transform .45s var(--ease);
}
.ref-preview.is-on { opacity: 1; }
.ref-preview.is-on img { transform: none; }

/* ==========================================================================
   IIII WERKSTATT – Splint & Kern
   ========================================================================== */
.core { background: var(--dark); color: var(--on-dark); }
.core__grid {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(40px, 6vw, 100px);
}
.xsection { width: min(100%, 470px); margin-inline: auto; overflow: visible; }
.xsection .xs-ring { stroke-width: 1.3; transition: opacity .45s, fill .45s; }
.xsection .xs-splint .xs-ring { fill: #E8D2AA; stroke: #BE965F; }
.xsection .xs-splint .xs-ring.alt { fill: #E1C799; }
.xsection .xs-kern .xs-ring { fill: #9E5B33; stroke: #6A3418; }
.xsection .xs-kern .xs-ring.alt { fill: #94522C; }
.xsection .xs-bark { fill: #3B2D22; stroke: #4E3B2C; stroke-width: 1.5; }
.xsection .xs-bark-tex { fill: none; stroke: #5D4735; stroke-width: 1.4; stroke-dasharray: 2 5 7 3; }
.xsection .xs-pith { fill: #3A1D0E; }
.xsection .xs-zone { cursor: pointer; transition: opacity .45s; }
.xsection[data-zone="kern"] .xs-splint,
.xsection[data-zone="splint"] .xs-kern { opacity: .2; }
.xsection .xs-label text { fill: var(--on-dark); font-family: var(--f-label); font-size: 13px; font-weight: 700; letter-spacing: .14em; }
.xsection .xs-label line { stroke: rgba(238, 240, 236, .6); stroke-width: 1.2; }
.xsection .xs-label circle { fill: var(--on-dark); }
.xsection .xs-label { transition: opacity .45s; }
.xsection[data-zone="kern"] .xs-label--splint,
.xsection[data-zone="splint"] .xs-label--kern { opacity: .3; }

.core__toggle { display: flex; justify-content: center; gap: 8px; margin-top: 22px; }
.tgl {
  min-height: 44px;
  padding: 0 1.3em;
  border: 2px solid var(--line-light);
  background: transparent;
  color: var(--on-dark);
  font-family: var(--f-label);
  font-size: 1rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase;
  cursor: pointer;
  transition: background-color .25s, color .25s, border-color .25s;
}
.tgl[aria-pressed="true"] { background: var(--spruce); border-color: var(--spruce); color: var(--ink); }
@media (hover: hover) { .tgl:hover { border-color: var(--spruce); } }
.core__zone {
  min-height: 3em;
  margin: 14px auto 0;
  max-width: 36ch;
  text-align: center;
  font-size: .98rem;
  color: var(--on-dark-2);
}
.core__copy > p { max-width: 58ch; color: var(--on-dark-2); }
.core__copy .title { margin-bottom: 0; }
.core__copy .chalk { margin-bottom: 28px; }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 36px 0 0; border-top: 1px solid var(--line-light); }
.stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 4px; padding: 18px 12px 0 0; }
.stats dd {
  margin: 0;
  font-family: var(--f-display);
  font-size: clamp(2.2rem, 1.6rem + 2vw, 3.3rem); font-weight: 900;
  line-height: 1;
  color: var(--spruce);
  font-variant-numeric: tabular-nums;
}
.stats dt { font-family: var(--f-label); font-size: .84rem; font-weight: 600; line-height: 1.25; letter-spacing: .08em; text-transform: uppercase; color: var(--on-dark-2); }

.core__photo { margin-top: clamp(32px, 4vw, 56px); margin-bottom: 0; }
.core__photo img {
  width: 100%;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  clip-path: polygon(26px 0, 100% 0, 100% calc(100% - 26px), calc(100% - 26px) 100%, 0 100%, 0 26px);
}
.core__photo figcaption {
  margin-top: 14px;
  font-family: var(--f-label);
  font-size: .95rem; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark-2);
}

/* ==========================================================================
   STIMMEN
   ========================================================================== */
.voices { background: var(--bg-2); }
.voices__list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 24px);
  margin: clamp(28px, 3vw, 44px) 0 0;
  padding: 0;
  list-style: none;
}
.quote {
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  height: 100%;
  margin: 0;
  padding: clamp(26px, 3vw, 36px);
  background: var(--card);
  border-top: 5px solid var(--chalk);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
}
.quote blockquote { margin: 0; }
.quote blockquote p { margin: 0; font-size: 1.16rem; font-weight: 500; line-height: 1.5; }
.quote figcaption { display: grid; gap: 2px; }
.quote figcaption strong { font-family: var(--f-display); font-size: 1.3rem; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; }
.quote figcaption span { font-family: var(--f-label); font-size: .9rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }

/* ==========================================================================
   V KONTAKT
   ========================================================================== */
.contact { padding-block: clamp(48px, 6vw, 88px); background: var(--spruce); color: var(--ink); }
.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
  align-items: start;
  gap: clamp(40px, 6vw, 96px);
}
.contact .label { color: #4D3E22; }
.contact .lead { color: #3B3121; }
.chalk--dark { background: var(--chalk); }

.orderbook {
  margin-top: 34px;
  padding: 22px 22px 18px;
  background: var(--dark);
  color: var(--on-dark);
  clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px);
}
.orderbook__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 16px; }
.orderbook h3 { font-family: var(--f-display); font-size: 1.55rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }
.orderbook__next { margin: 0; font-family: var(--f-label); font-size: 1.02rem; font-weight: 600; letter-spacing: .04em; color: var(--spruce); }
.orderbook__weeks {
  display: grid;
  grid-template-columns: repeat(18, minmax(0, 1fr));
  gap: 3px;
  margin: 16px 0 26px;
  padding: 0;
  list-style: none;
}
.orderbook__weeks li {
  position: relative;
  height: 34px;
  background: repeating-linear-gradient(135deg, rgba(238, 240, 236, .42) 0 2px, rgba(238, 240, 236, .08) 2px 7px);
  transform-origin: bottom;
}
.orderbook__weeks li.is-free { background: var(--chalk); }
.orderbook__weeks li.is-next { background: var(--chalk-light); }
.orderbook__weeks li[data-kw]::after {
  content: attr(data-kw);
  position: absolute; left: 0; top: calc(100% + 5px);
  font-family: var(--f-label);
  font-size: .72rem; font-weight: 600;
  color: var(--on-dark-2);
}
.js .orderbook__weeks li { transform: scaleY(0); transition: transform .5s var(--ease); transition-delay: calc(var(--i) * 35ms); }
.js .is-in .orderbook__weeks li { transform: none; }
.orderbook__legend { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 0; font-size: .92rem; color: var(--on-dark-2); }
.key { display: inline-block; width: 14px; height: 14px; }
.key--busy { background: repeating-linear-gradient(135deg, rgba(238, 240, 236, .5) 0 2px, transparent 2px 6px); outline: 1px solid var(--line-light); }
.key--free { margin-left: 8px; background: var(--chalk); }
.orderbook__survey { flex-basis: 100%; color: var(--spruce); font-weight: 600; }

.contact__list { margin: 30px 0 0; padding: 0; list-style: none; border-top: 2px solid rgba(21, 24, 27, .3); }
.contact__list li { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 14px 0; border-bottom: 1.5px solid rgba(21, 24, 27, .2); }
.contact__label { padding-top: .25em; font-family: var(--f-label); font-size: .82rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #4D3E22; }
.contact__list a { justify-self: start; font-size: 1.1rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; transition: border-color .2s; overflow-wrap: anywhere; }
.contact__list a:hover { border-color: var(--chalk); }
.contact address { font-style: normal; font-weight: 600; }

.form-card {
  position: relative;
  padding: clamp(24px, 4vw, 48px);
  background: var(--card);
  clip-path: polygon(0 0, calc(100% - 26px) 0, 100% 26px, 100% 100%, 26px 100%, 0 calc(100% - 26px));
}
.form { display: grid; gap: 22px; }
.form[hidden] { display: none; }
.form__topics { min-width: 0; margin: 0; padding: 0; border: 0; }
.form__topics legend,
.field > label:not(.check):not(.upload) {
  display: block;
  margin-bottom: 9px;
  padding: 0;
  font-family: var(--f-label);
  font-size: .9rem; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
}
.topics { display: flex; flex-wrap: wrap; gap: 8px; }
.topic { position: relative; cursor: pointer; }
.topic input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.topic span {
  display: inline-flex; align-items: center;
  min-height: 42px;
  padding: .4em 1em;
  border: 2px solid var(--line-strong);
  font-weight: 600;
  transition: background-color .2s, color .2s, border-color .2s;
}
.topic input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.topic input:focus-visible + span { outline: 3px solid var(--chalk); outline-offset: 3px; }
@media (hover: hover) { .topic:hover span { border-color: var(--ink); } }

.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; align-content: start; min-width: 0; }
.field input:not([type="checkbox"]):not([type="file"]),
.field textarea,
.field select {
  width: 100%;
  min-height: 52px;
  padding: 12px 15px;
  border: 2px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  font-size: 1.02rem;
  -webkit-appearance: none; appearance: none;
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 140px; resize: vertical; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #8A9097; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--chalk); box-shadow: 0 0 0 4px rgba(47, 87, 217, .16); }
.field.has-error input, .field.has-error textarea { border-color: var(--error); box-shadow: 0 0 0 4px rgba(180, 35, 24, .1); }
.field__error { margin: 6px 0 0; font-size: .86rem; font-weight: 600; color: var(--error); }
.field__error:empty { display: none; }
.req { color: var(--chalk); }

.select { position: relative; }
.select::after {
  content: "";
  position: absolute; right: 18px; top: 50%;
  width: 9px; height: 9px;
  border-right: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}
.select select { padding-right: 46px; cursor: pointer; }

.upload {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  border: 2px dashed var(--line-strong);
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.upload svg { flex: none; width: 26px; height: 26px; color: var(--chalk); }
.upload > span { display: grid; gap: 2px; }
.upload strong { font-size: .98rem; }
.upload small { font-size: .84rem; color: var(--ink-3); }
.upload.has-files { border-style: solid; border-color: var(--chalk); background: rgba(47, 87, 217, .05); }
.field:has(input[type="file"]:focus-visible) .upload { outline: 3px solid var(--chalk); outline-offset: 3px; }
@media (hover: hover) { .upload:hover { border-color: var(--chalk); } }

.check { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; font-size: .92rem; line-height: 1.5; color: var(--ink-2); cursor: pointer; }
.check input { position: absolute; width: 24px; height: 24px; margin: 0; opacity: 0; cursor: pointer; }
.check__box { display: grid; place-items: center; width: 24px; height: 24px; border: 2px solid var(--line-strong); background: #fff; transition: background-color .2s, border-color .2s; }
.check__box::after {
  content: "";
  width: 11px; height: 6px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: translateY(-1px) rotate(-45deg) scale(0);
  transition: transform .25s var(--ease);
}
.check input:checked + .check__box { background: var(--chalk); border-color: var(--chalk); }
.check input:checked + .check__box::after { transform: translateY(-1px) rotate(-45deg) scale(1); }
.check input:focus-visible + .check__box { outline: 3px solid var(--chalk); outline-offset: 3px; }
.field.has-error .check__box { border-color: var(--error); }

.form__submit { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.form__required { margin: 0; font-size: .86rem; color: var(--ink-3); }

.form-success { display: grid; justify-items: center; gap: 12px; padding: clamp(20px, 5vw, 52px) 0; text-align: center; }
.form-success[hidden] { display: none; }
.form-success__tree { width: 120px; height: 120px; margin-bottom: 4px; overflow: visible; }
.fs-roof { fill: none; stroke: var(--ink); stroke-width: 8; stroke-linecap: square; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .7s .1s var(--ease) forwards; }
.fs-trunk { fill: none; stroke: #6B4A2B; stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .3s .7s var(--ease) forwards; }
.fs-tree { fill: #2E6B47; transform-box: fill-box; transform-origin: 50% 100%; transform: scale(0); animation: grow .6s .85s var(--ease) forwards; }
.fs-ribbon { fill: none; stroke-width: 2.5; stroke-linecap: round; opacity: 0; animation: show .4s 1.3s forwards; }
.fs-ribbon--a { stroke: var(--chalk); }
.fs-ribbon--b { stroke: #D9483B; }
.form-success h3 { font-family: var(--f-display); font-size: clamp(2rem, 1.5rem + 1.6vw, 2.8rem); font-weight: 900; letter-spacing: .01em; text-transform: uppercase; outline: none; }
.form-success p { max-width: 42ch; margin: 0; color: var(--ink-2); }
.form-success .form-success__note { padding: 10px 14px; background: var(--bg-2); font-size: .88rem; color: var(--ink-3); }
.form-success .btn { margin-top: 10px; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes grow { to { transform: scale(1); } }
@keyframes show { to { opacity: 1; } }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer { padding: 0 0 calc(26px + env(safe-area-inset-bottom)); background: var(--dark); color: var(--on-dark); }
.footer__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 36px;
  padding-block: 48px 36px;
}
.footer__mark { width: 52px; height: 52px; margin-bottom: 16px; color: var(--spruce); }
.footer__brand p { max-width: 36ch; }
.footer__brand strong { font-family: var(--f-display); font-size: 1.5rem; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; color: var(--on-dark); }
.footer h3 { margin-bottom: 12px; font-family: var(--f-label); font-size: .82rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--spruce); }
.footer p { font-size: .96rem; color: var(--on-dark-2); }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--on-dark); text-decoration: underline; text-underline-offset: 4px; }
.footer__bottom {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 12px 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line-light);
  font-size: .88rem;
  color: var(--on-dark-2);
}
.footer__bottom p { margin: 0; font-size: .88rem; }
.footer__top-link { font-family: var(--f-label); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }

/* ==========================================================================
   MOBILE ACTION BAR
   ========================================================================== */
.action-bar {
  position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 50;
  display: none; grid-template-columns: 1fr 1.4fr; gap: 6px;
  padding: 6px;
  background: var(--dark);
  box-shadow: 0 16px 36px -10px rgba(0, 0, 0, .55);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  transform: translateY(calc(100% + 30px));
  transition: transform .55s var(--ease);
}
.action-bar.is-visible { transform: none; }
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px;
  font-family: var(--f-label);
  font-size: 1.05rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--on-dark); text-decoration: none;
}
.action-bar svg { width: 20px; height: 20px; }
.action-bar__primary { background: var(--chalk); color: #fff !important; }

/* ==========================================================================
   SCROLL-REVEAL
   ========================================================================== */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .8s var(--ease), transform 1s var(--ease);
  transition-delay: var(--d, 0s);
}
.js [data-reveal].is-in { opacity: 1; transform: none; }
.js [data-reveal="fade"] { transform: none; }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .site-header__cta { display: none; }
}
@media (max-width: 1023px) {
  .site-nav { display: none; }
  .menu-toggle { display: inline-flex; }

  .holzliste__head { display: none; }
  .row__btn {
    display: flex; flex-wrap: wrap; align-items: baseline;
    column-gap: 10px; row-gap: 6px;
    padding: 18px 6px 18px 64px;
  }
  .row__pos { position: absolute; left: 14px; top: 16px; }
  .row__name { order: 1; flex: 1 1 calc(100% - 40px); }
  .row__icon { order: 2; flex: none; align-self: center; }
  .row__place { order: 3; }
  .row__wood { order: 4; }
  .row__vol { order: 5; }
  .row__time { order: 6; }
  .row__place, .row__wood, .row__vol, .row__time { font-family: var(--f-body); font-size: .9rem; font-weight: 500; color: var(--ink-3); }
  .row__wood::before, .row__vol::before, .row__time::before { content: "·"; margin-right: 10px; }
  .ref-preview { display: none; }
}
@media (min-width: 1024px) {
  .mobile-menu { display: none; }
}

@media (max-width: 899px) {
  :root { --header-h: 64px; }

  .hero__photo { height: clamp(360px, 60svh, 560px); }
  .hero__inner { margin-top: -110px; }
  .hero__beam { width: 100%; clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%); }
  .hero__beam .chalk--beam { width: calc(100% - 24px); }
  .hero__stamp { top: calc(var(--header-h) + 18px); padding: 8px 12px 7px; }
  .hero__stamp b { font-size: 1.35rem; }
  .hero__stamp span { font-size: .66rem; }
  .facts__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 26px; }

  .services__grid { grid-template-columns: minmax(0, 1fr); }

  .build__stage { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .build.is-scrolly .build__scroller { height: 280svh; }
  .build.is-scrolly .build__sticky { padding-block: calc(var(--header-h) + 8px) 12px; align-items: flex-start; }
  .build:is(.is-scrolly, .is-built) .build__stage { gap: 14px; }
  .build:is(.is-scrolly, .is-built) .build__drawing { max-height: none; padding: 8px; }
  .build:is(.is-scrolly, .is-built) .frame { max-height: 40svh; }
  .build:is(.is-scrolly, .is-built) .build__steps { position: relative; }
  .build:is(.is-scrolly, .is-built) .build__mark { font-size: 3rem; }
  .build:is(.is-scrolly, .is-built) .steps { position: relative; min-height: 10.5em; margin-top: 10px; }
  .build:is(.is-scrolly, .is-built) .steps li {
    position: absolute; inset: 0 0 auto;
    padding: 0 0 0 14px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity .4s, transform .55s var(--ease);
    pointer-events: none;
  }
  .build:is(.is-scrolly, .is-built) .steps li.is-past { opacity: 0; }
  .build:is(.is-scrolly, .is-built) .steps li.is-active { opacity: 1; transform: none; }
  .build:is(.is-scrolly, .is-built) .steps li p { max-height: none; margin-top: 4px; opacity: 1; }
  .build:is(.is-scrolly, .is-built) .build__progress { margin-top: 12px; }

  .core__grid { grid-template-columns: minmax(0, 1fr); }
  .core__visual { order: 2; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 18px; }
  .core__photo img { aspect-ratio: 4 / 3; }

  .voices__list {
    grid-template-columns: none;
    grid-auto-flow: column; grid-auto-columns: min(86%, 420px);
    margin-inline: calc(-1 * var(--gutter));
    padding: 0 var(--gutter) 8px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .voices__list::-webkit-scrollbar { display: none; }
  .voices__list > li { scroll-snap-align: start; }

  .contact__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 699px) {
  .frame .f-label text { font-size: 18px; letter-spacing: .06em; }
  .frame .f-dim text { font-size: 20px; }
  .row__panel-inner { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .row__media { margin: 0 0 16px; }
  .row__copy { padding: 0 0 22px; }
  .orderbook__weeks { grid-template-columns: repeat(12, minmax(0, 1fr)); }
  .orderbook__weeks li:nth-child(-n + 6) { display: none; } /* auf dem Handy die letzten 12 Wochen zeigen, damit die freien sichtbar sind */
  .form__row { grid-template-columns: minmax(0, 1fr); }
  .contact__list li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .form__submit .btn { width: 100%; }
  .action-bar { display: grid; }
  .footer { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
}

@media (max-width: 520px) {
  .brand { gap: 10px; }
  .brand__mark { width: 34px; height: 34px; }
  .brand__name { font-size: 1.3rem; }
  .brand__sub { display: none; }
  .menu-toggle__label { display: none; }
  .menu-toggle { padding: 0 11px; }
  .lang__btn { min-width: 36px; }
  .hero__stamp { display: none; }
  .facts__grid div { padding-left: 14px; }
  .stats dt { font-size: .76rem; }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   REDUZIERTE BEWEGUNG
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
    transition-delay: 0s !important;
  }
  .frame .f-tree.is-up .f-ribbons, .ob-dot { animation: none !important; }
  .js [data-reveal] { opacity: 1; transform: none; }
  .js .chalk { transform: none; }
  .js .orderbook__weeks li { transform: none; }
}
