/* ==========================================================================
   Nageldinger GbR, shared stylesheet for every page.
   Source of truth: design-loop/nageldinger/design-system.md
   No page defines its own colours, fonts or spacing.
   ========================================================================== */

/* ---------- Fonts ----------
   Self-hosted only (no request to Google, see Datenschutz). Latin subsets of
   Archivo 300/400/500 and Hanken Grotesk 400/500, every weight in use. */
@font-face {
  font-family: "Archivo Local"; font-style: normal; font-weight: 300; font-display: swap;
  src: url("../fonts/archivo-300.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Local"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/archivo-400.woff2") format("woff2");
}
@font-face {
  font-family: "Archivo Local"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/archivo-500.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk Local"; font-style: normal; font-weight: 400; font-display: swap;
  src: url("../fonts/hanken-grotesk-400.woff2") format("woff2");
}
@font-face {
  font-family: "Hanken Grotesk Local"; font-style: normal; font-weight: 500; font-display: swap;
  src: url("../fonts/hanken-grotesk-500.woff2") format("woff2");
}

/* ---------- Tokens ---------- */
:root {
  --dur-hover: 1400ms; --ease-hover: cubic-bezier(.16,1,.3,1);
  --paper: #FFFFFF;
  --stone: #F3F0EC;
  --ink: #161514;
  --ink-soft: #5E5853;
  --granite: #776B6A;
  --line: #CFC8C1;
  --red: #9C1B19;
  --red-dark: #7E1514;
  --on-photo: #FFFFFF;
  --scrim: rgba(12, 11, 10, 0.45);

  --font-display: "Archivo Local", "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-body: "Hanken Grotesk Local", "Hanken Grotesk", "Helvetica Neue", Arial, sans-serif;

  --fs-display: clamp(2.5rem, 9vw, 9rem);
  --fs-wordmark: clamp(4rem, 11vw, 12rem);
  --fs-item: clamp(1.25rem, 1.8vw, 1.75rem);
  --fs-body: 1rem;
  --fs-eyebrow: 0.8125rem;
  --fs-numeral: 4rem;

  --s-1: 0.5rem; --s-2: 1rem; --s-3: 1.5rem; --s-4: 2rem;
  --s-5: 3rem; --s-6: 5rem; --s-7: 8rem; --s-8: 12rem;

  --maxw: 1440px;
  --gutter: clamp(16px, 5vw, 88px);
  --col-gap: 24px;
  --section-pad: 8rem;
  --header-h: 80px;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur-line: 900ms;
  --dur-img: 1000ms;
  --stagger: 120ms;
  --chamfer: 14px;
}

@media (max-width: 767px) {
  :root { --section-pad: 5rem; --header-h: 64px; --fs-numeral: 3rem; }
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  overflow-x: hidden; overflow-x: clip;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 1024px) { body { font-size: 1.0625rem; } }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, address { margin: 0; padding: 0; }
ul, ol { list-style: none; }
address { font-style: normal; }
::selection { background: var(--granite); color: var(--paper); }

:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
.on-photo :focus-visible, .site-header:not(.is-solid) :focus-visible { outline-color: var(--on-photo); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.skip-link {
  position: absolute; left: var(--gutter); top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper); padding: .75rem 1rem;
  font-weight: 500; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); }
.section { padding-block: var(--section-pad); }
.section + .section { padding-top: calc(var(--section-pad) * .5); }

/* ---------- Type primitives ---------- */
.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--fs-eyebrow);
  line-height: 1.35;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.display {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-display);
  line-height: .92;
  letter-spacing: -.02em;
  text-transform: uppercase;
}
.item-title {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: var(--fs-item);
  line-height: 1.15;
  letter-spacing: -.005em;
  text-transform: uppercase;
}
.body { max-width: 46ch; color: var(--ink); }
.body--soft { color: var(--ink-soft); }
.body + .body { margin-top: 1em; }

/* Outline numeral */
.numeral {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: var(--fs-numeral);
  line-height: 1;
  letter-spacing: -.01em;
  color: transparent;
  -webkit-text-stroke: 1px var(--granite);
}

/* ---------- Logo (draft until refresh is approved) ---------- */
.logo { display: inline-flex; flex-direction: column; gap: 5px; text-decoration: none; color: currentColor; line-height: 1; }
.logo__word { font-family: var(--font-display); font-weight: 500; font-size: 1.3rem; letter-spacing: .06em; }
.logo__row { display: flex; align-items: center; gap: 8px; }
.logo__rule { width: 22px; height: 2px; background: currentColor; flex: none; }
.logo__claim { font-size: .625rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; opacity: .9; white-space: nowrap; }

/* ---------- CTA button (chamfered, one per viewport) ---------- */
.btn {
  position: relative; isolation: isolate;
  display: inline-flex; align-items: center; gap: .75rem;
  padding: 1.35rem 2.1rem 1.35rem 1.75rem;
  color: var(--on-photo);
  font-family: var(--font-body); font-weight: 500; font-size: .875rem;
  letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  text-decoration: none;
  transition: transform 400ms var(--ease);
}
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - var(--chamfer)), calc(100% - var(--chamfer)) 100%, 0 100%);
  transition: background-color 300ms var(--ease);
}
/* Arrows are drawn as SVG masks in the text colour: text arrows (↗) turn into
   colour emoji on iOS. Same size and baseline as the former glyph. */
.ico {
  display: inline-block; width: .78em; height: .78em; vertical-align: -.02em;
  background-color: currentColor;
  -webkit-mask: var(--ico) center / contain no-repeat; mask: var(--ico) center / contain no-repeat;
}
.ico--ne { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M3.5 12.5 12 4M5.5 3.5H12.5V10.5'/%3E%3C/svg%3E"); }
.ico--up { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M8 14V2.5M3 7.5 8 2.5l5 5'/%3E%3C/svg%3E"); }
.ico--down { --ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M8 2v11.5M3 8.5l5 5 5-5'/%3E%3C/svg%3E"); }
.to-top .ico { width: 16px; height: 16px; }
.btn__arrow { display: inline-block; font-size: 1.05em; transition: transform 400ms var(--ease); }
.btn:hover::before { background: var(--red-dark); }
.btn:hover .btn__arrow { transform: translate(3px, -3px); }
.btn:active { transform: translateY(1px); }

/* Secondary link: underlined eyebrow text */
.link {
  display: inline-flex; align-items: center; gap: .5rem;
  font-weight: 500; font-size: var(--fs-eyebrow); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .4em;
  transition: color 250ms var(--ease), text-underline-offset 250ms var(--ease);
}
.link:hover { color: var(--red); text-underline-offset: .55em; }
.on-photo .link:hover { color: var(--on-photo); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--header-h);
  color: var(--on-photo);
  transition: background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease);
  border-bottom: 1px solid transparent;
}
.site-header.is-solid { background: var(--paper); color: var(--ink); border-bottom-color: var(--line); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); }
.site-nav ul { display: flex; gap: clamp(1.25rem, 3vw, 3.25rem); }
.site-nav a, .site-header__phone {
  font-weight: 500; font-size: var(--fs-eyebrow); letter-spacing: .04em; text-transform: uppercase;
  text-decoration: none; padding-block: .5rem; position: relative;
}
.site-nav a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 400ms var(--ease);
}
.site-nav a:hover::after { transform: scaleX(1); transform-origin: left; }
.site-header__phone { font-size: .9375rem; letter-spacing: .02em; text-transform: none; white-space: nowrap; }
.menu-toggle {
  display: none; background: none; border: 1px solid currentColor; color: inherit; cursor: pointer;
  font: 500 var(--fs-eyebrow)/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  padding: .8rem 1rem; min-height: 44px;
}

.mobile-menu {
  position: fixed; inset: 0; z-index: 60; background: var(--paper); color: var(--ink);
  display: flex; flex-direction: column; padding: 0 var(--gutter) var(--s-5);
  visibility: hidden; opacity: 0; transition: opacity 400ms var(--ease), visibility 0s linear 400ms;
}
.mobile-menu.is-open { visibility: visible; opacity: 1; transition: opacity 400ms var(--ease); }
.mobile-menu__top { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.mobile-menu__top .menu-toggle { display: inline-flex; }
.mobile-menu nav { margin-top: var(--s-5); }
.mobile-menu nav li { overflow: hidden; }
.mobile-menu nav a {
  display: block; padding-block: .35rem; text-decoration: none;
  font-family: var(--font-display); font-size: clamp(1.875rem, 9vw, 3.25rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.02em;
  transform: translateY(100%); transition: transform 700ms var(--ease);
}
.mobile-menu.is-open nav a { transform: none; }
.mobile-menu.is-open nav li:nth-child(2) a { transition-delay: 60ms, 0s, 0s; }
.mobile-menu.is-open nav li:nth-child(3) a { transition-delay: 120ms, 0s, 0s; }
.mobile-menu.is-open nav li:nth-child(4) a { transition-delay: 180ms, 0s, 0s; }
.mobile-menu.is-open nav li:nth-child(5) a { transition-delay: 240ms, 0s, 0s; }
.mobile-menu.is-open nav li:nth-child(6) a { transition-delay: 300ms, 0s, 0s; }
.mobile-menu__foot { margin-top: auto; display: grid; gap: var(--s-2); }
.mobile-menu__foot .body { color: var(--ink-soft); }

@media (max-width: 1023px) {
  .site-nav, .site-header__phone { display: none; }
  .menu-toggle { display: inline-flex; }
}

/* ==========================================================================
   Hero (photo bookend, opens the page)
   ========================================================================== */
.hero {
  position: relative; min-height: 100vh; min-height: 100dvh;
  color: var(--on-photo); overflow: hidden; isolation: isolate;
  display: flex;
}
.hero__media, .hero__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__media { z-index: -2; }
.hero__media img { object-fit: cover; object-position: 60% 50%; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(12,11,10,.42) 0%, rgba(12,11,10,.18) 38%, rgba(12,11,10,.30) 68%, rgba(12,11,10,.45) 100%);
}
.hero__inner {
  position: relative; width: 100%;
  display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto 1fr auto;
  padding-top: calc(var(--header-h) + clamp(2.5rem, 6vh, 4.5rem));
  padding-bottom: clamp(2.5rem, 7vh, 5rem);
  row-gap: var(--s-4);
}
.hero__title { grid-column: 1 / -1; grid-row: 1 / 3; display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: var(--s-5); }
.hero__word {
  display: block;
  font-family: var(--font-display); font-weight: 300;
  font-size: min(var(--fs-wordmark), 14cqi); line-height: .82; letter-spacing: -.035em;
  text-transform: uppercase; margin-left: -.06em;
}
.hero__sub {
  display: block; max-width: 18ch;
  font-family: var(--font-display); font-weight: 400;
  font-size: clamp(1.5rem, 2.6vw, 2.5rem); line-height: 1.05; letter-spacing: -.01em; text-transform: uppercase;
}
.hero__list {
  position: absolute; right: 0; top: calc(var(--header-h) + clamp(2.5rem, 6vh, 4.5rem));
  padding-right: var(--gutter);
  text-align: right;
}
.hero__list li + li { margin-top: .15rem; }
.hero__list a { text-decoration: none; }
.hero__list a:hover { text-decoration: underline; text-underline-offset: .3em; }
.hero__cta { grid-column: 1 / -1; grid-row: 3; display: flex; align-items: center; gap: var(--s-4); flex-wrap: wrap; }
.hero__note { max-width: 30ch; }

@media (min-width: 1024px) {
  .hero__list { font-size: .9375rem; }
}
@media (max-width: 767px) {
  .hero__inner { padding-top: calc(var(--header-h) + 2rem); }
  .hero__list { position: static; padding: 0; text-align: left; grid-column: 1 / -1; grid-row: auto; }
  .hero__inner { grid-template-rows: auto 1fr auto auto; }
  .hero__title { grid-row: 1 / 3; }
  .hero__list { grid-row: 3; display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
  .hero__list li + li { margin-top: 0; }
  .hero__cta { grid-row: 4; }
  .hero__word { font-size: clamp(2.4rem, 12.6vw, 4rem); }
  .btn { padding: 1.15rem 1.6rem 1.15rem 1.35rem; font-size: .8125rem; }
}

/* ==========================================================================
   Section header: eyebrow (cols 1-2) + two-line offset display title (col 3+)
   ========================================================================== */
.section-head { align-items: start; margin-bottom: clamp(4rem, 8vw, 7rem); }
.section-head .eyebrow { grid-column: 1 / 3; padding-top: .55em; }
.section-head .display { grid-column: 3 / -1; }
.display .line { display: block; overflow: hidden; padding-bottom: .04em; }
.display .line > span { display: inline-block; }
.display .line--2 { color: var(--granite); padding-left: calc(var(--indent, .33) * 100%); }
.on-photo .display .line--2 { color: var(--on-photo); }

@media (max-width: 1023px) {
  .section-head .eyebrow { grid-column: 1 / -1; margin-bottom: var(--s-4); padding-top: 0; }
  .section-head .display { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
  .display { font-size: min(3.25rem, 11.6vw); }
  .display .line--2 { padding-left: calc(var(--indent-m, .06) * 100%); }
}

/* ==========================================================================
   Feature rows (zig-zag, framed images with outline numerals)
   ========================================================================== */
.features { display: grid; row-gap: clamp(6rem, 11vw, 10rem); }
.feature { align-items: center; }
.feature__text { grid-column: 3 / 7; grid-row: 1; }
.feature__media { grid-column: 7 / -1; grid-row: 1; position: relative; }
.feature--flip .feature__text { grid-column: 9 / -1; }
.feature--flip .feature__media { grid-column: 3 / 9; }

.item-title.has-dash { display: flex; justify-content: space-between; align-items: center; gap: var(--s-3); margin-bottom: var(--s-3); }
.item-title.has-dash::after { content: ""; flex: none; width: 24px; height: 1px; background: currentColor; }
.feature__text .feature__links { margin-top: var(--s-4); }

.frame { position: relative; isolation: isolate; }
.frame::before {
  content: ""; position: absolute; z-index: -1;
  top: -32px; left: -32px; width: 74%; height: 100%;
  border: 1px solid var(--line);
}
.feature--flip .frame::before { left: auto; right: -32px; }
.frame img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.frame .numeral { position: absolute; bottom: calc(100% + 10px); right: 0; }
.feature--flip .frame .numeral { right: auto; left: 0; }

@media (max-width: 1023px) {
  .feature__text, .feature--flip .feature__text { grid-column: 1 / -1; grid-row: 2; margin-top: var(--s-5); }
  .feature__media, .feature--flip .feature__media { grid-column: 2 / -1; grid-row: 1; }
  .feature--flip .feature__media { grid-column: 1 / 12; }
}
@media (max-width: 767px) {
  .feature__media, .feature--flip .feature__media { grid-column: 1 / -1; margin-top: 4.5rem; }
  .frame::before { top: -14px; left: -14px; width: 80%; }
  .feature--flip .frame::before { left: auto; right: -14px; }
  .frame .numeral { bottom: calc(100% + 18px); }
}

/* All services, grouped */
.services-all { margin-top: clamp(6rem, 11vw, 10rem); }
.services-all__head { grid-column: 3 / -1; margin-bottom: var(--s-5); display: flex; flex-wrap: wrap; gap: var(--s-3) var(--s-5); align-items: baseline; justify-content: space-between; }
.services-all__groups { grid-column: 3 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-5) var(--col-gap); border-top: 1px solid var(--ink); padding-top: var(--s-4); }
.services-all__group h4 { color: var(--ink-soft); margin-bottom: var(--s-3); }
.services-all__group li + li { margin-top: .6rem; }
.services-all__group a {
  display: inline-flex; gap: .5rem; align-items: baseline; text-decoration: none;
  font-size: 1.0625rem; line-height: 1.35;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 450ms var(--ease), color 250ms var(--ease);
}
.services-all__group a span { transition: transform 400ms var(--ease); display: inline-block; color: var(--granite); }
.services-all__group a:hover { background-size: 100% 1px; }
.services-all__group a:hover span { transform: translate(2px, -2px); }
@media (max-width: 1023px) {
  .services-all__head, .services-all__groups { grid-column: 1 / -1; }
  .services-all__groups { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 479px) {
  .services-all__groups { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Materials mosaic (gapless, 4 cols desktop / 2 mobile)
   ========================================================================== */
.materials { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.material { position: relative; aspect-ratio: 1 / 1; overflow: hidden; display: flex; align-items: flex-end; padding: var(--s-3); text-decoration: none; isolation: isolate; }
.material img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; transition: transform var(--dur-hover) var(--ease-hover); will-change: transform; backface-visibility: hidden; }
.material--light { color: var(--ink); }
.material--dark { color: var(--on-photo); }
.material { flex-direction: column; justify-content: space-between; align-items: stretch; }
.material--type { background: var(--paper); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.material--type::after { content: ""; position: absolute; inset: var(--s-1); border: 1px solid var(--line); pointer-events: none; transition: inset 700ms var(--ease); }
.material--type:hover::after { inset: .25rem; }
.material__cat { opacity: .85; }
.material .item-title { display: flex; width: 100%; justify-content: space-between; align-items: baseline; gap: 1rem; }
.material__arrow { display: inline-block; transition: transform 500ms var(--ease); }
.materials__note { margin-top: var(--s-2); }
@media (max-width: 767px) {
  .materials { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .material { padding: var(--s-2); }
  .material .item-title { font-size: 1.125rem; }
}

.zubehoer { margin-top: var(--s-6); align-items: start; }
.zubehoer .item-title { grid-column: 3 / 6; }
.zubehoer__body { grid-column: 6 / 11; }
.zubehoer__body .link { margin-top: var(--s-3); }
@media (max-width: 1023px) {
  .zubehoer .item-title, .zubehoer__body { grid-column: 1 / -1; }
  .zubehoer__body { margin-top: var(--s-2); }
}

/* ==========================================================================
   About: framed photo + facts
   ========================================================================== */
.about { align-items: start; }
.about__media { grid-column: 3 / 8; position: relative; }
.about__media .frame::before { top: -32px; left: -32px; width: 80%; }
.about__media img { width: 100%; }
.about__media figcaption { margin-top: var(--s-2); color: var(--ink-soft); font-size: .875rem; max-width: 40ch; }
.about__intro { margin-top: var(--s-5); }
.about__facts { grid-column: 9 / -1; display: grid; grid-template-columns: 1fr; gap: var(--s-6); padding-top: var(--s-2); }
.fact dd { margin: 0; max-width: 46ch; }
.fact__num { display: block; margin-bottom: var(--s-2); }
.fact .item-title { margin-bottom: var(--s-2); }
.fact .body { color: var(--ink-soft); }
@media (max-width: 1023px) {
  .about__media { grid-column: 2 / 12; }
  .about__facts { grid-column: 1 / -1; margin-top: var(--s-6); }
}
@media (max-width: 767px) {
  .about__media { grid-column: 1 / -1; }
  .about__media .frame::before { top: -14px; left: -14px; }
  .about__facts { gap: var(--s-5); }
}

/* ==========================================================================
   Showroom: real photos, asymmetric gapless mosaic
   ========================================================================== */
.showroom__intro { grid-column: 3 / 8; }
.showroom__visit { grid-column: 9 / -1; align-self: end; }
.showroom__visit .item-title { margin-bottom: var(--s-2); }
.showroom__visit .link { margin-top: var(--s-3); }
.mosaic { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: var(--s-6); }

.mosaic img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 3 / 2; }
.mosaic__caption { margin-top: var(--s-2); color: var(--ink-soft); font-size: .875rem; }
@media (max-width: 1023px) {
  .showroom__intro, .showroom__visit { grid-column: 1 / -1; }
  .showroom__visit { margin-top: var(--s-4); }
}
@media (max-width: 767px) {
  .mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mosaic > :first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Closing contact (photo bookend) + footer
   ========================================================================== */
.closing { position: relative; color: var(--on-photo); isolation: isolate; overflow: hidden; }
.closing__media, .closing__media img { position: absolute; inset: 0; width: 100%; height: 100%; }
.closing__media { z-index: -2; }
.closing__media img { object-fit: cover; object-position: 30% 50%; }
.closing::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, rgba(12,11,10,.30) 0%, rgba(12,11,10,.38) 45%, rgba(12,11,10,.45) 100%);
}
.closing__main { padding-top: clamp(7rem, 14vw, 11rem); padding-bottom: var(--s-7); align-items: start; }
.closing__eyebrow { grid-column: 1 / 4; padding-top: .6em; }
.closing__title { grid-column: 4 / -1; text-align: right; }
.closing__title .line--2 { padding-left: 0; }
.closing__phone {
  display: inline-block; margin-top: var(--s-5);
  font-family: var(--font-display); font-weight: 400; font-size: var(--fs-display); line-height: .92; letter-spacing: -.02em;
  text-decoration: none; white-space: nowrap;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 600ms var(--ease);
}
.closing__phone:hover { background-size: 100% 1px; }
.closing__right { grid-column: 4 / -1; display: flex; flex-direction: column; align-items: flex-end; }
.closing__right .btn { margin-top: var(--s-5); }
.closing__details { grid-column: 1 / 4; grid-row: 2; align-self: end; display: grid; gap: var(--s-3); margin-top: var(--s-6); font-size: .9375rem; line-height: 1.55; }
.closing__details a { text-decoration-thickness: 1px; text-underline-offset: .25em; }
.closing__details .eyebrow { opacity: .85; margin-bottom: .25rem; }

.site-footer { border-top: 1px solid rgba(255,255,255,.35); padding-block: var(--s-4) var(--s-4); }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-5); }
.site-footer nav ul { display: flex; flex-wrap: wrap; gap: .5rem 2rem; }
.site-footer a { text-decoration: none; }
.site-footer nav a, .site-footer__legal a { font-weight: 500; font-size: .75rem; letter-spacing: .04em; text-transform: uppercase; }
.site-footer nav a:hover, .site-footer__legal a:hover { text-decoration: underline; text-underline-offset: .3em; }
.site-footer__legal { display: flex; gap: 1.5rem; align-items: center; font-size: .75rem; }

@media (max-width: 1023px) {
  .closing__eyebrow, .closing__title, .closing__right, .closing__details { grid-column: 1 / -1; }
  .closing__eyebrow { margin-bottom: var(--s-4); }
  .closing__title { text-align: left; }
  .closing__right { align-items: flex-start; }
  .closing__details { grid-row: auto; }
}
@media (max-width: 767px) {
  .closing__phone { font-size: min(3.25rem, 11.6vw); }
  .closing__main { padding-bottom: var(--s-6); }
  .site-footer__inner { flex-direction: column; align-items: flex-start; }
}

.material:focus-visible { outline-offset: -6px; }
.about__media figcaption { margin-top: var(--s-2); color: var(--ink-soft); font-size: .875rem; max-width: 40ch; }
.body a[href^="tel:"] { white-space: nowrap; }

/* ---------- Round 2: hero stack, photo notes ---------- */
.hero::after {
  background:
    linear-gradient(0deg, rgba(12,11,10,.45) 0%, rgba(12,11,10,.28) 38%, rgba(12,11,10,0) 62%),
    linear-gradient(180deg, rgba(12,11,10,.32) 0%, rgba(12,11,10,0) 22%);
}
.hero__inner { display: flex; flex-direction: column; justify-content: flex-end; min-height: 100%; }
.hero__stack { display: flex; flex-direction: column; align-items: flex-start; container-type: inline-size; }
.hero__title { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-3); }
.hero__sub { max-width: none; font-size: var(--fs-item); line-height: 1.15; }
.hero__place { margin-top: var(--s-1); opacity: .9; }
.hero__cta { margin-top: var(--s-5); }
.hero__phone { display: none; color: var(--on-photo); }
.photo-note {
  font-family: var(--font-body); font-weight: 500; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-soft);
}
figcaption.photo-note { margin-top: .75rem; text-align: left; }
.hero .photo-note, .closing__note { position: absolute; right: var(--gutter); bottom: 1.25rem; color: var(--on-photo); opacity: .7; }
.closing__note { top: 1.5rem; bottom: auto; }
@media (max-width: 767px) {
  .hero__inner { padding-top: calc(var(--header-h) + 1.5rem); padding-bottom: 3rem; }
  .hero__list { position: absolute; top: calc(var(--header-h) + 1.25rem); left: var(--gutter); right: var(--gutter); display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; }
  .hero__cta { margin-top: var(--s-4); flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .hero__phone { display: inline-flex; }
  .hero .photo-note { bottom: .75rem; }
}

/* ---------- Round 3 ---------- */
.material--type .material__cat { color: var(--ink-soft); opacity: 1; }
.material--type .item-title { font-size: var(--fs-item); }

/* Sub-list: item-title heading + body-size links, no section header */
.sublist { margin-top: clamp(5rem, 9vw, 8rem); align-items: start; }
.sublist__title { grid-column: 3 / 6; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.sublist__body { grid-column: 6 / -1; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.sublist__body .body + .sublist__links { margin-top: var(--s-3); }
.sublist__links li + li { margin-top: .5rem; }
.sublist__links--cols { columns: 2; column-gap: var(--col-gap); }
.sublist__links--cols li { break-inside: avoid; margin: 0 0 .5rem; }
.sublist__links--cols li + li { margin-top: 0; }
.sublist__links a {
  font-size: var(--fs-body); line-height: 1.5; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  transition: background-size 450ms var(--ease);
}
.sublist__links a span { display: inline-block; color: var(--granite); transition: transform 400ms var(--ease); }
.sublist__links a:hover { background-size: 100% 1px; }
.sublist__links a:hover span { transform: translate(2px, -2px); }
.zubehoer.sublist { margin-top: var(--s-6); }
@media (max-width: 1023px) {
  .sublist__title, .sublist__body { grid-column: 1 / -1; }
  .sublist__body { border-top: 0; padding-top: var(--s-3); }
}
@media (max-width: 479px) { .sublist__links--cols { columns: 1; } }

/* Showroom strip: real photos with 24px gutters */
.mosaic { column-gap: var(--col-gap); row-gap: var(--col-gap); }

/* Fact without numeral */
.fact--word .item-title { margin-top: 0; }

/* Mobile call bar (ink, appears after the hero) */
.call-bar { display: none; }
@media (max-width: 767px) {
  .call-bar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    min-height: 52px; padding: .75rem var(--gutter) calc(.75rem + env(safe-area-inset-bottom));
    background: var(--ink); color: var(--on-photo); text-decoration: none;
    font-weight: 500; font-size: var(--fs-eyebrow); letter-spacing: .04em; text-transform: uppercase;
    transform: translateY(100%); transition: transform 500ms var(--ease);
  }
  .call-bar.is-visible { transform: none; }
  body { padding-bottom: 52px; }
  .call-bar:focus-visible { outline-color: var(--on-photo); outline-offset: -4px; }

  /* Hero category list is desktop only */
  .hero__list { display: none !important; }

  /* Keep offset frames >= 16px from the viewport edge */
  .frame { margin-inline: 12px; }
  .frame::before, .about__media .frame::before { top: -12px; left: -12px; }
  .feature--flip .frame::before { left: auto; right: -12px; }
}
.about__media .frame img { aspect-ratio: auto; }
.material--dark::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,11,10,.32) 0%, rgba(12,11,10,0) 30%, rgba(12,11,10,0) 60%, rgba(12,11,10,.4) 100%);
}

/* ---------- Round 4 ---------- */
/* Feature rows: one empty column between text and image so frames never reach the text */
@media (min-width: 1024px) {
  .feature__media { grid-column: 8 / -1; }
  .feature--flip .feature__media { grid-column: 3 / 8; }
  .feature--flip .feature__text { grid-column: 9 / -1; }
}
/* One indent rule for every section title: line 2 starts one third of the way into line 1 ("UNSERE") */
:root { --fs-display: clamp(2.5rem, 9vw, 9rem); }
.display .line--2 { padding-left: 1.3em; }
.closing__title .line--2 { padding-left: 0; }
@media (max-width: 767px) {
  .display { font-size: min(3.25rem, 10.4vw); }
  .display .line--2 { padding-left: 1.3em; }
  .closing__title .line--2 { padding-left: 0; }
  .closing__title { text-align: right; }
  .closing__right { align-items: flex-end; }
  .closing__phone { font-size: min(3.25rem, 10.4vw); }
}
/* Hero: location in body size, click-to-call next to the CTA on all widths */
.hero__place { font-size: var(--fs-body); line-height: 1.5; letter-spacing: .01em; margin-top: var(--s-2); opacity: 1; }
.hero__phone { display: inline-flex; }

/* ---------- Round 5 ---------- */
/* Feature rows: image 7 columns, text 4, one empty column between */
@media (min-width: 1024px) {
  .feature__text { grid-column: 1 / 5; }
  .feature__media { grid-column: 6 / -1; }
  .feature--flip .feature__media { grid-column: 1 / 8; }
  .feature--flip .feature__text { grid-column: 9 / -1; }
}

/* About: building photo larger, framed, 1967 as outline numeral; facts as smaller items */
@media (min-width: 1024px) {
  .about__media { grid-column: 2 / 8; }
  .about__facts { grid-column: 9 / -1; padding-top: 5rem; }
}
.about__media .frame .numeral { position: absolute; bottom: calc(100% + 10px); right: 0; }
.about__media .frame { margin-top: 5rem; }
.about__facts { gap: var(--s-5); }
.fact .item-title { margin-bottom: var(--s-2); }

@media (max-width: 767px) {
  .about__media .frame { margin-top: 4rem; }
}

/* ---------- Round 6 ---------- */
/* Showroom: strict grid inside the content width, one frame around the group.
   Lead capped at ~1.4x its 570px source. */
.showroom { margin-top: var(--s-6); }
.showroom__group {
  position: relative; isolation: isolate;
  max-width: calc(798px * 1.5 + var(--col-gap) + 32px);
  padding: 32px 0 0 32px;
  display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); grid-template-rows: 1fr 1fr;
  gap: var(--col-gap);
}
.showroom__group::before {
  content: ""; position: absolute; z-index: -1; top: 0; left: 0;
  width: 62%; height: calc(100% - 32px); border: 1px solid var(--line);
}
.showroom__group > div { overflow: hidden; min-height: 0; }
.showroom__group img { width: 100%; height: 100%; object-fit: cover; display: block; }
.showroom__lead { grid-row: 1 / 3; }
.showroom__lead img { aspect-ratio: 570 / 423; }
.showroom__caption { margin-top: var(--s-3); color: var(--ink-soft); font-size: .875rem; padding-left: 32px; }
@media (max-width: 767px) {
  .showroom__group { padding: 16px 0 0 16px; grid-template-columns: 1fr 1fr; grid-template-rows: auto auto; }
  .showroom__group::before { height: calc(100% - 16px); width: 70%; }
  .showroom__lead { grid-column: 1 / -1; grid-row: auto; }
  .showroom__a img, .showroom__b img { aspect-ratio: 570 / 423; }
  .showroom__caption { padding-left: 16px; }
  .display { font-size: min(3.25rem, 9.4vw); }
  .display .line--2 { padding-left: 25%; }
  .closing__title .line--2 { padding-left: 0; }
}
@media (min-width: 768px) {
  .showroom__a, .showroom__b { position: relative; }
  .showroom__a img, .showroom__b img { position: absolute; inset: 0; }
}

/* ---------- Round 7 ---------- */
.showroom__group { max-width: none; }
@media (max-width: 767px) {
  .display { font-size: min(3.25rem, 10.6vw); }
  .display .line--2 { padding-left: 1.3em; }
  .closing__title .line--2 { padding-left: 0; }
}

/* ---------- Round 8 ---------- */
/* Showroom photos start on the content edge; only the frame sits outside, in the margin */
.showroom__group { padding: 0; }
.showroom__group::before { top: -32px; left: -32px; height: 100%; }
.showroom__caption { padding-left: 0; }
@media (max-width: 767px) {
  .showroom__group { padding: 0; }
  .showroom__group::before { top: -12px; left: -3px; height: 100%; }
}

/* ==========================================================================
   Round 9
   ========================================================================== */

/* Section titles are sized from their own column so the longest line plus the
   line-2 indent (1.3em) always fits: "AUSSTELLUNG"/"MATERIALIEN" = ~7em + 1.3em. */
.section-head { container-type: inline-size; }
.section-head .display { font-size: clamp(2.125rem, 9.4cqi, 9rem); }
@media (max-width: 1023px) {
  .section-head .display { font-size: clamp(2.125rem, 11.3cqi, 9rem); }
}
.closing__main { container-type: inline-size; }
.closing__title, .closing__phone { font-size: clamp(2.125rem, 9.6cqi, 9rem); }
@media (max-width: 1023px) {
  .closing__title, .closing__phone { font-size: clamp(2.125rem, 11.3cqi, 9rem); }
}

/* Einblicke: gapless mood mosaic, 3 columns desktop / 2 mobile */
.insights {
  container-type: inline-size;
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 25cqi;
}
.insight a {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden; isolation: isolate;
  color: var(--on-photo); text-decoration: none;
}
.insight picture, .insight img { position: absolute; inset: 0; width: 100%; height: 100%; }
.insight img { object-fit: cover; z-index: -2; transition: transform var(--dur-hover) var(--ease-hover); will-change: transform; backface-visibility: hidden; }
.insight a::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(12,11,10,0) 55%, rgba(12,11,10,.42) 100%);
}
.insight__label { position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); display: flex; justify-content: space-between; gap: 1rem; }
.insight__label span { display: inline-block; transition: transform 500ms var(--ease); }
.insight__note {
  position: absolute; top: var(--s-2); right: var(--s-3);
  font-weight: 500; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; opacity: .85;
}
.insight a:focus-visible { outline-offset: -6px; outline-color: var(--on-photo); }
.insight--fensterbank { grid-column: 1; grid-row: 1 / 3; }
.insight--fensterbank img { object-position: 50% 70%; }
.insight--naturverblender { grid-column: 2 / 4; grid-row: 1; }
.insight--kamin { grid-column: 2; grid-row: 2; }
.insight--kamin img { object-position: 50% 62%; }
.insight--boden { grid-column: 3; grid-row: 2; }
@media (max-width: 767px) {
  .insights { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 40cqi; }
  .insight--fensterbank { grid-column: 1; grid-row: 1 / 3; }
  .insight--kamin { grid-column: 2; grid-row: 1; }
  .insight--boden { grid-column: 2; grid-row: 2; }
  .insight--naturverblender { grid-column: 1 / -1; grid-row: 3; }
  .insight__label { left: var(--s-2); right: var(--s-2); bottom: var(--s-2); font-size: 1rem; }
  .insight__note { right: var(--s-2); }
}

/* Reveal wrappers keep their full box (curtain overlay, never a zero-area clip),
   so lazy images inside them always load. */
.frame picture { display: block; overflow: hidden; }

/* ==========================================================================
   Motion (design-system.md). Expo-out, no bounce. Hidden states only exist
   under html.motion; JS sets each element's start delay in --d and adds .is-in.
   ========================================================================== */

/* Section titles: line 1 from the left, line 2 from the right 250 ms later */
.motion [data-reveal^="lines"] .line > span { transition: transform 1000ms var(--ease); transition-delay: var(--d, 0ms); }
.motion [data-reveal="lines"] .line:not(.line--2) > span { transform: translateX(-105%); }
.motion [data-reveal="lines"] .line--2 > span { transform: translateX(105%); transition-delay: calc(var(--d, 0ms) + 250ms); }
.motion [data-reveal="lines-right"] .line > span { transform: translateX(105%); }
.motion [data-reveal="lines-right"] .line--2 > span { transition-delay: calc(var(--d, 0ms) + 250ms); }
.motion [data-reveal^="lines"].is-in .line > span { transform: none; }

/* Images and tiles: a paper curtain wipes off one side, the image settles 1.12 -> 1.
   The wrapper keeps its full box, so lazy images inside always load. */
[data-reveal="img"] { position: relative; overflow: hidden; background-color: var(--stone); }
picture[data-reveal="img"] { display: block; }
.motion [data-reveal="img"]::after {
  content: ""; position: absolute; inset: -1px; z-index: 3; pointer-events: none;
  background: var(--paper); transform-origin: right center;
  transition: transform 1000ms var(--ease); transition-delay: var(--d, 0ms);
}
.motion [data-reveal="img"].from-left::after { transform-origin: left center; }
.motion [data-reveal="img"].is-in::after { transform: scaleX(0); }
.motion [data-reveal="img"] img { scale: 1.12; transition: scale 1000ms var(--ease) var(--d, 0ms), transform var(--dur-hover) var(--ease-hover) 0ms, filter 900ms var(--ease-hover) 0ms; }
.motion [data-reveal="img"].is-in img { scale: 1; }
/* Labels inside a tile follow their tile */
.motion [data-reveal="img"] > :not(img):not(picture) {
  opacity: 0; translate: 0 12px;
  transition: opacity 700ms var(--ease) calc(var(--d, 0ms) + 600ms), translate 700ms var(--ease) calc(var(--d, 0ms) + 600ms), transform 900ms var(--ease-hover) 0ms;
}
.motion [data-reveal="img"].is-in > :not(img):not(picture) { opacity: 1; translate: 0 0; }
.motion .insight [data-reveal="img"].is-in > .insight__note { opacity: .9; }

/* Text: fade-up 24px, 700 ms */
.motion [data-reveal="fade"] {
  opacity: 0; transform: translateY(24px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease); transition-delay: var(--d, 0ms);
}
.motion [data-reveal="fade"].is-in { opacity: 1; transform: none; }

/* Outline numerals after their image */
.motion [data-reveal="num"] {
  opacity: 0; translate: 0 16px;
  transition: opacity 800ms var(--ease), translate 800ms var(--ease); transition-delay: var(--d, 0ms);
}
.motion [data-reveal="num"].is-in { opacity: 1; translate: 0 0; }

/* Closing photo first */
.motion [data-reveal="photo"] img { opacity: 0; scale: 1.08; transition: opacity 1200ms var(--ease), scale 1800ms var(--ease); transition-delay: var(--d, 0ms); }
.motion [data-reveal="photo"].is-in img { opacity: 1; scale: 1; }

/* Hero on-load sequence, steps >= 250 ms apart:
   0 photo settle + curtain | 400 wordmark | 1000/1250 claim lines | 1550 location
   | 1800 CTA + tel | 2050 category list | 2350 header (fade down) */
.hero__word { overflow: hidden; }
.hero__word-in { display: inline-block; }
.hero__line { display: inline-block; overflow: hidden; vertical-align: top; }
.hero__line > span { display: inline-block; }
.hero__media { overflow: hidden; }
.hero__media::after { content: ""; position: absolute; inset: 0; background: var(--ink); transform-origin: right center; pointer-events: none; }
.hero__media::after { transform: scaleX(0); }
.motion .hero__media::after { transform: scaleX(1); transition: transform 1400ms var(--ease); }
.motion .hero__media img { scale: 1.08; transition: scale 1800ms var(--ease); }
.motion .hero__word-in { transform: translateX(-102%); transition: transform 1200ms var(--ease) 400ms; }
.motion .hero__line > span { transform: translateY(105%); transition: transform 900ms var(--ease); }
.motion .hero__line:nth-child(1) > span { transition-delay: 1000ms; }
.motion .hero__line:nth-child(2) > span { transition-delay: 1250ms; }
.motion .hero__seq { opacity: 0; transform: translateY(20px); transition: opacity 800ms var(--ease), transform 800ms var(--ease); }
.motion .hero__place { transition-delay: 1550ms; }
.motion .hero__cta { transition-delay: 1800ms; }
.motion .hero__list { transition-delay: 2050ms; }
.motion .hero .photo-note { opacity: 0; transition: opacity 800ms var(--ease) 2050ms; }
.motion .site-header { opacity: 0; translate: 0 -16px; transition: opacity 800ms var(--ease) 2350ms, translate 800ms var(--ease) 2350ms, background-color 400ms var(--ease), color 400ms var(--ease), border-color 400ms var(--ease); }
.motion .hero.is-loaded .hero__media::after { transform: scaleX(0); }
.motion .hero.is-loaded .hero__media img { scale: 1; }
.motion .hero.is-loaded .hero__word-in,
.motion .hero.is-loaded .hero__line > span,
.motion .hero.is-loaded .hero__seq { transform: none; opacity: 1; }
.motion .hero.is-loaded .photo-note { opacity: .7; }
.motion.hero-done .site-header { opacity: 1; translate: 0 0; }

/* Mosaic tags: top-right with a small scrim for contrast */
.insight a::after { }
.insight__note { top: var(--s-2); right: var(--s-2); left: auto; z-index: 1; padding: .2rem .45rem; background: rgba(12,11,10,.42); }


/* Feature row links: detail page + cost check */
.feature__links { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-4); }

/* Back to top: quiet square, appears after the page has been scrolled a while */
.to-top {
  position: fixed; right: var(--gutter); bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); z-index: 35;
  width: 48px; height: 48px; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); text-decoration: none; font-size: 1.1rem;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 400ms var(--ease), transform 400ms var(--ease), visibility 0s linear 400ms, border-color 250ms var(--ease);
}
.to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition: opacity 400ms var(--ease), transform 400ms var(--ease), border-color 250ms var(--ease); }
.to-top:hover { border-color: var(--ink); }
.to-top:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 767px) { .to-top { bottom: calc(52px + 12px + env(safe-area-inset-bottom, 0px)); width: 44px; height: 44px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0ms !important; transition-delay: 0ms !important; animation: none !important; }
}

.display .line { width: fit-content; max-width: 100%; }
.closing__title .line { margin-left: auto; }

/* ==========================================================================
   Tile hover: noticeable zoom, light dims, hairline frame draws inward,
   label lifts. Pointer devices only; touch keeps the static tile.
   ========================================================================== */
.material img, .insight img { transition: transform var(--dur-hover) var(--ease-hover), filter 900ms var(--ease-hover); }
.material, .insight a { outline: 1px solid rgba(255,255,255,0); outline-offset: 0; transition: outline-color 700ms var(--ease-hover), outline-offset 900ms var(--ease-hover); }
.material--light { outline-color: rgba(22,21,20,0); }
.material .item-title, .insight__label { transition: transform 900ms var(--ease-hover); }
.material__arrow, .insight__label span { transition: transform 900ms var(--ease-hover); }
.insight a::before { transition: opacity 900ms var(--ease-hover); }
.feature__media img { transition: transform var(--dur-hover) var(--ease-hover); }

@media (hover: hover) and (pointer: fine) {
  .material:hover img, .insight a:hover img { transform: scale(1.12); }
  .material--dark:hover img, .insight a:hover img { filter: brightness(.8); }
  .material--light:hover img { filter: brightness(.94); }
  .material:hover, .insight a:hover { outline-color: rgba(255,255,255,.85); outline-offset: -14px; }
  .material--light:hover { outline-color: rgba(22,21,20,.55); }
  .material:hover .item-title, .insight a:hover .insight__label { transform: translateY(-8px); }
  .material:hover .material__arrow, .insight a:hover .insight__label span { transform: translate(6px, -6px); }
  .feature__media:hover img { transform: scale(1.06); }
}
@media (prefers-reduced-motion: reduce) {
  .material img, .insight img, .feature__media img, .material .item-title, .insight__label { transition: none; }
}

/* ==========================================================================
   Subpages (site-grid.md). Subpages are composed from the homepage blocks
   above, 1:1. Only two new blocks exist: H′ page hero and K form. Small
   modifiers let a homepage block take different content; no look-alikes.
   ========================================================================== */

/* Display line masks reach above the cap height so umlauts (Ü, Ä) are not clipped; net layout unchanged */
.display .line { padding-top: .14em; margin-top: -.14em; }

/* ---------- Navigation: current page ---------- */
.site-nav a[aria-current]::after { transform: scaleX(1); }
.mobile-menu nav a[aria-current] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.site-footer nav a[aria-current] { text-decoration: underline; text-underline-offset: .3em; }

/* ---------- Modifiers of homepage blocks ---------- */
/* A fact list placed inside V (left column or infoblock) instead of its own column */
.about__facts.about__facts--inline { grid-column: auto; margin-top: var(--s-5); padding-top: 0; }
/* F directly after a V row: same distance as between two feature rows */
.features--after { margin-top: clamp(6rem, 11vw, 10rem); }
/* P directly under a section head (no V in between) */
.section-head + .showroom { margin-top: 0; }
/* Several secondary links in the V infoblock */
.showroom__visit .feature__links .link { margin-top: var(--s-3); }

/* ==========================================================================
   H′ Page hero: the homepage hero stage (.hero, same scrim, photo note and
   load sequence) at ~72 % height. A two-line H1 in the section-head pattern
   (line 2 indented) takes the wordmark's place; breadcrumb above, claim and
   CTA below as on the homepage. The H1 is sized from the hero column:
   min(11rem, 100cqi / --h1-em), --h1-em = widest line in em (line 2 + 1.3em
   indent) + 0.1, so it stays larger than the page's section titles.
   ========================================================================== */
.page-hero { min-height: 72vh; min-height: 72svh; }
.page-hero::after {
  background:
    linear-gradient(0deg, rgba(12,11,10,.45) 0%, rgba(12,11,10,.28) 45%, rgba(12,11,10,0) 75%),
    linear-gradient(180deg, rgba(12,11,10,.45) 0%, rgba(12,11,10,.3) var(--header-h), rgba(12,11,10,0) calc(var(--header-h) * 2.6));
}
.page-hero .hero__media img { object-position: 50% 55%; }
.page-hero__crumbs { margin-bottom: var(--s-3); }
.page-hero__crumbs ol { display: flex; flex-wrap: wrap; gap: 0 .5rem; }
.page-hero__crumbs li + li::before { content: "/"; margin-right: .5rem; opacity: .75; }
.page-hero__crumbs a { text-decoration: none; }
.page-hero__crumbs a:hover { text-decoration: underline; text-underline-offset: .3em; }
.page-hero__crumbs [aria-current] { opacity: .75; }
.display.page-hero__title { font-size: min(11rem, calc(100cqi / var(--h1-em, 7))); align-self: stretch; }
.page-hero__title .line--2 { color: var(--on-photo); }
.page-hero .hero__sub { margin-top: var(--s-3); }
@media (max-width: 767px) {
  .page-hero { min-height: 60vh; min-height: 60svh; }
}
/* Load sequence (homepage moves): photo settles | 400 line 1 from the left |
   650 line 2 from the right | 1000 claim | 1550 breadcrumb | 1800 CTA | 2350 header */
.motion .page-hero__title .line > span { transform: translateX(-105%); transition: transform 1200ms var(--ease) 400ms; }
.motion .page-hero__title .line--2 > span { transform: translateX(105%); transition-delay: 650ms; }
.motion .hero.is-loaded .page-hero__title .line > span { transform: none; }
.motion .page-hero__crumbs { transition-delay: 1550ms; }

/* ==========================================================================
   K Contact form: sits in V in place of the infoblock (cols 9-12).
   Body type, eyebrow labels, underline hairlines only, red CTA submits (mailto).
   ========================================================================== */
.form { grid-column: 9 / -1; align-self: start; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s-4); }
.form__field { display: grid; gap: .25rem; align-content: start; }
.form__label { font-weight: 500; font-size: var(--fs-eyebrow); letter-spacing: .04em; text-transform: uppercase; color: var(--ink); }
.form__label small { font-size: inherit; font-weight: 400; color: var(--ink-soft); text-transform: none; letter-spacing: 0; }
.form__input {
  width: 100%; min-height: 44px; padding: .5rem 0;
  font: inherit; color: var(--ink); background: transparent;
  border: 0; border-bottom: 1px solid var(--line); border-radius: 0; appearance: none; -webkit-appearance: none;
  transition: border-color 250ms var(--ease);
}
.form__input:hover { border-color: var(--granite); }
.form__input:focus { border-bottom-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
.form__input:focus-visible { outline: 2px solid var(--red); outline-offset: 4px; }
textarea.form__input { min-height: 8rem; resize: none; line-height: 1.6; }
select.form__input {
  padding-right: 2rem; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='8' viewBox='0 0 14 8'%3E%3Cpath d='M1 1l6 6 6-6' fill='none' stroke='%23161514' stroke-width='1.25'/%3E%3C/svg%3E");
  background-position: right 2px center; background-size: 14px 8px; background-repeat: no-repeat;
}
.form__input[aria-invalid="true"] { border-bottom-color: var(--red); }
.form__error { color: var(--red); font-size: .875rem; }
.form__error:empty { display: none; }
.form__consent { display: grid; grid-template-columns: auto 1fr; gap: .25rem var(--s-2); align-items: start; }
.form__consent input {
  width: 22px; height: 22px; margin: .15rem 0 0; border: 1px solid var(--granite); border-radius: 0;
  appearance: none; -webkit-appearance: none; background: var(--paper); cursor: pointer; display: grid; place-content: center;
}
.form__consent input::before { content: ""; width: 12px; height: 12px; background: var(--ink); transform: scale(0); transition: transform 200ms var(--ease); }
.form__consent input:checked::before { transform: scale(1); }
.form__consent input:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
.form__consent input[aria-invalid="true"] { border-color: var(--red); }
.form__consent label { color: var(--ink-soft); font-size: .9375rem; }
.form__consent label a { color: var(--ink); text-underline-offset: .2em; }
.form__consent .form__error { grid-column: 2; }
.form__actions { margin-top: var(--s-2); }
.form__hint { margin-top: var(--s-2); color: var(--ink-soft); font-size: .875rem; }
.form__status { padding-left: var(--s-2); border-left: 1px solid var(--ink); }
.form__status[hidden] { display: none; }
.btn[type="submit"] { border: 0; background: none; cursor: pointer; }
@media (max-width: 1023px) { .form { grid-column: 1 / -1; margin-top: var(--s-6); } }

/* ---------- Kontakt page: no mobile call bar (the page itself is the contact path) ---------- */
@media (max-width: 767px) { body.no-call-bar { padding-bottom: 0; } body.no-call-bar .to-top { bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); } }
/* Mobile call bar never covers content: reserve its full height incl. the safe area */
@media (max-width: 767px) { body:not(.no-call-bar) { padding-bottom: calc(52px + env(safe-area-inset-bottom, 0px)); } }

/* P with four photos: lead plus three stacked tiles (homepage strip, one more row) */
.showroom__group--four { grid-template-rows: 1fr 1fr 1fr; }
.showroom__group--four .showroom__lead { grid-row: 1 / 4; }
@media (min-width: 768px) {
  .showroom__c { position: relative; }
  .showroom__c img { position: absolute; inset: 0; }
}
@media (max-width: 767px) {
  .showroom__group--four { grid-template-rows: auto; }
  .showroom__group--four .showroom__lead { grid-row: auto; }
  .showroom__c img { aspect-ratio: 570 / 423; }
}

/* ==========================================================================
   Kontakt (compact): shorter page hero, tighter fact list, compact form
   ========================================================================== */
.page-hero--short { min-height: 55vh; min-height: 55svh; }
.page-hero--short .hero__inner { padding-top: calc(var(--header-h) + var(--s-4)); padding-bottom: var(--s-5); }
.page-hero--short .display.page-hero__title { font-size: min(9.5rem, calc(100cqi / var(--h1-em, 7))); }
.page-hero--short .hero__cta { margin-top: var(--s-4); }
@media (max-width: 767px) { .page-hero--short { min-height: 50svh; } }

/* ==========================================================================
   Line button: the menu-toggle style (1px border, uppercase eyebrow), never red
   ========================================================================== */
.btn-line {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  background: none; border: 1px solid currentColor; color: inherit; cursor: pointer;
  font: 500 var(--fs-eyebrow)/1 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
  padding: .8rem 1rem; min-height: 44px; white-space: nowrap;
  transition: background-color 250ms var(--ease), color 250ms var(--ease);
}
.btn-line:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
button.link { background: none; border: 0; padding: 0; color: inherit; font-family: inherit; cursor: pointer; }
/* Square checkbox shared by the consent panel and the map block (same as the form checkbox) */
.check {
  width: 22px; height: 22px; margin: .1rem 0 0; flex: none; border: 1px solid var(--granite); border-radius: 0;
  appearance: none; -webkit-appearance: none; background: var(--paper); cursor: pointer; display: grid; place-content: center;
}
.check::before { content: ""; width: 12px; height: 12px; background: var(--ink); transform: scale(0); transition: transform 200ms var(--ease); }
.check:checked::before { transform: scale(1); }
.check:disabled { cursor: default; border-color: var(--line); }
.check:disabled::before { background: var(--ink-soft); }
.check:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }

/* ==========================================================================
   Map block (Kontakt): 4:3 image frame; OSM placeholder + consent overlay,
   Google Maps iframe only after consent
   ========================================================================== */
.map { grid-column: 9 / -1; align-self: start; }
.map__slot { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--stone); }
.map__slot img, .map__slot iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; aspect-ratio: auto; object-fit: cover; }
.map__overlay {
  position: absolute; left: var(--s-2); right: var(--s-2); top: var(--s-2); z-index: 1;
  background: var(--paper); border-top: 1px solid var(--line); padding: var(--s-3);
  display: grid; gap: var(--s-2); justify-items: start;
}
.map__overlay .body { font-size: .9375rem; line-height: 1.5; }
.map.is-loaded .map__overlay, .map.is-loaded .map__ph { display: none; }
.map figcaption { margin-top: .75rem; }
@media (max-width: 1023px) { .map { grid-column: 1 / -1; margin-top: var(--s-6); max-width: 640px; } }
@media (max-width: 767px) {
  .map { margin-top: var(--s-5); }
  .map__overlay { position: static; padding: var(--s-3) 0 0; border-top: 0; }
}

/* ==========================================================================
   Consent banner + settings panel (all pages)
   ========================================================================== */
.consent { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--paper); color: var(--ink); border-top: 1px solid var(--line); }
.consent[hidden] { display: none; }
.consent__inner { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: var(--s-3); padding-block: var(--s-3); align-items: center; }
.consent__text { grid-column: 1 / 8; }
.consent__title { margin-bottom: .25rem; }
.consent__text .body { max-width: 62ch; font-size: .9375rem; line-height: 1.5; }
.consent__text a { text-underline-offset: .2em; }
.consent__actions { grid-column: 8 / -1; display: flex; flex-wrap: wrap; gap: var(--s-2); justify-content: flex-end; align-items: center; }
.consent__actions [hidden] { display: none; }
.consent__more { margin-left: var(--s-1); }
.consent__panel { grid-column: 1 / -1; grid-row: 2; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--col-gap); padding-top: var(--s-3); border-top: 1px solid var(--line); }
.consent__panel[hidden] { display: none; }
.consent__row { display: flex; gap: var(--s-2); align-items: flex-start; font-size: .9375rem; line-height: 1.5; color: var(--ink-soft); }
.consent__name { display: block; color: var(--ink); font-weight: 500; font-size: var(--fs-eyebrow); letter-spacing: .04em; text-transform: uppercase; margin-bottom: .2rem; }
.consent__panel:not([hidden]) ~ .consent__actions { grid-row: 3; grid-column: 1 / -1; justify-content: flex-start; }
body.consent-open .call-bar, body.consent-open .to-top { display: none; }
@media (max-width: 1023px) {
  .consent__text, .consent__actions { grid-column: 1 / -1; }
  .consent__actions { justify-content: flex-start; }
}
@media (max-width: 767px) {
  .consent__inner { padding-block: var(--s-2) calc(var(--s-2) + env(safe-area-inset-bottom, 0px)); row-gap: var(--s-2); }
  .consent__panel { grid-template-columns: 1fr; }
  .consent__actions .btn-line { flex: 1 1 auto; }
}

/* Footer: consent link styled like the legal links */
.site-footer__consent { background: none; border: 0; padding: 0; color: inherit; cursor: pointer; font: 500 .75rem/1.4 var(--font-body); letter-spacing: .04em; text-transform: uppercase; }
.site-footer__consent:hover { text-decoration: underline; text-underline-offset: .3em; }
.site-footer__legal { flex-wrap: wrap; }

/* ==========================================================================
   Legal text pages (Impressum, Datenschutz): no photo hero, solid header,
   S + text blocks in the sub-list pattern (title cols 3-5, text cols 6-10),
   footer on paper.
   ========================================================================== */
.sublist--text { margin-top: var(--s-5); }
.section-head + .sublist--text, .legal__note + .sublist--text { margin-top: 0; }
.sublist--text .sublist__body { grid-column: 6 / 11; }
.sublist--text .body + .body, .sublist--text .body + ul, .sublist--text ul + .body { margin-top: 1em; }
.sublist--text ul.body { list-style: disc; padding-left: 1.2em; }
.sublist--text ul.body li + li { margin-top: .35em; }
.sublist--text a { text-underline-offset: .2em; overflow-wrap: anywhere; }
.legal__note { grid-column: 3 / 11; margin-bottom: 0; padding-left: var(--s-2); border-left: 1px solid var(--granite); color: var(--ink-soft); }
.placeholder { color: var(--ink-soft); font-style: normal; text-decoration: underline dotted; text-underline-offset: .25em; }
.site-footer--paper { color: var(--ink); border-top-color: var(--line); }
@media (max-width: 1023px) {
  .sublist--text .sublist__body, .legal__note { grid-column: 1 / -1; }
}
.showroom__intro .feature__links { margin-top: var(--s-4); }
/* Short closing (Kontakt): same photo, title and CTA, no display phone line */
.closing--short .closing__main { padding-top: var(--s-6); padding-bottom: var(--s-5); }
.closing--short .closing__right .btn { margin-top: var(--s-4); }

/* ==========================================================================
   Fact row (A fact list as a row, cols 3-12, top hairline, eyebrow label + body value)
   ========================================================================== */
.about__facts.about__facts--row { grid-column: 3 / -1; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s-4) var(--col-gap); padding-top: 0; margin-top: 0; }
.about__facts--row .fact { padding-top: var(--s-3); border-top: 1px solid var(--line); }
.about__facts--row dt { margin-bottom: var(--s-1); color: var(--ink-soft); }
.about__facts--row dd { margin: 0; color: var(--ink); }
.about__facts--row a { text-underline-offset: .2em; }
@media (max-width: 1023px) { .about__facts.about__facts--row { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ==========================================================================
   Kontakt: one block, two top-aligned columns over the full content width.
   Aside cols 1-5 (eyebrow, two-line title, one sentence, 2x2 facts) |
   form panel cols 7-12 (stone band, white fields, two field columns).
   ========================================================================== */
.contact__grid { align-items: start; row-gap: var(--s-6); }
.contact__aside { grid-column: 1 / 6; container-type: inline-size; }
.contact__eyebrow { color: var(--ink-soft); margin-bottom: var(--s-3); }
.display.contact__title { font-size: clamp(2.5rem, 15cqi, 5.5rem); }
.contact__lead { margin-top: var(--s-4); max-width: 38ch; color: var(--ink-soft); }
.contact__facts { margin: var(--s-5) 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--col-gap); }
.contact__facts > div { padding-top: var(--s-2); border-top: 1px solid var(--line); }
.contact__facts dt { color: var(--ink-soft); margin-bottom: .25rem; }
.contact__facts dd { margin: 0; }
.contact__facts a { color: var(--ink); text-underline-offset: .2em; }
.contact__facts a:hover { color: var(--red); }

.form.contact-form {
  grid-column: 7 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-3) var(--s-3);
  background: var(--stone); padding: clamp(1.5rem, 3.2vw, 3rem);
  scroll-margin-top: calc(var(--header-h) + 1.5rem);
}
.contact-form > * { grid-column: 1 / -1; }
.contact-form > .form__field:not(.form__field--wide) { grid-column: span 1; }
.contact-form__title { padding-bottom: var(--s-2); margin-bottom: var(--s-1); border-bottom: 1px solid var(--line); }
.contact-form .form__label { color: var(--ink-soft); }
.contact-form .form__input {
  min-height: 48px; padding: .625rem .875rem; background-color: var(--paper);
  border: 1px solid transparent; transition: border-color 250ms var(--ease);
}
.contact-form .form__input:hover { border-color: var(--line); }
.contact-form .form__input:focus { border-color: var(--ink); box-shadow: none; }
.contact-form select.form__input { padding-right: 2.5rem; background-position: right .875rem center; }
.contact-form textarea.form__input { min-height: 8.5rem; }
.contact-form .form__input[aria-invalid="true"] { border-color: var(--red); }
.contact-form .form__consent input { background: var(--paper); }
.contact-form .form__actions { margin-top: var(--s-1); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-3); }
.contact-form .form__hint { margin: 0; flex: 1 1 14rem; }
@media (max-width: 1279px) { .contact__aside { grid-column: 1 / 6; } .form.contact-form { grid-column: 6 / -1; } }
@media (max-width: 1023px) {
  .contact__aside, .form.contact-form { grid-column: 1 / -1; }
  .contact__aside { max-width: 40rem; }
}
@media (max-width: 767px) {
  .contact-form > .form__field:not(.form__field--wide) { grid-column: 1 / -1; }
  .form.contact-form { margin-inline: calc(var(--gutter) * -1); padding: var(--s-4) var(--gutter); }
  .contact__facts { grid-template-columns: 1fr; gap: var(--s-2); }
  .contact__grid { row-gap: var(--s-5); }
}

/* Kontakt, "Anfahrt": same block; the map takes the form's place (cols 7-12, 4:3) */
.frame--full::before { width: 100%; height: 100%; }
.map.contact-map { grid-column: 7 / -1; max-width: none; margin-top: 0; }
.contact__facts address { font-style: normal; }
.contact__routes { display: grid; justify-items: start; gap: .5rem; padding-top: .25rem; }
.contact__routes .link { margin-top: 0; }
@media (max-width: 1279px) { .map.contact-map { grid-column: 6 / -1; } }
@media (max-width: 1023px) { .map.contact-map { grid-column: 1 / -1; } }

.map.is-preview .map__overlay .feature__links .link { margin-top: 0; }

/* ==========================================================================
   Consent: fold animation + cookie button (bottom-left, mirrors to-top)
   ========================================================================== */
.consent.is-folding { transform-origin: 0 0; border: 1px solid var(--line); pointer-events: none; overflow: hidden; }
.consent-fab {
  position: fixed; left: var(--gutter); bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); z-index: 35;
  width: 48px; height: 48px; display: grid; place-items: center; padding: 0;
  background: var(--paper); color: var(--ink); border: 1px solid var(--line); cursor: pointer;
  transition: border-color 250ms var(--ease);
}
.consent-fab[hidden] { display: none; }
.consent-fab:hover { border-color: var(--ink); }
.consent-fab:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 767px) {
  .consent-fab { width: 44px; height: 44px; bottom: calc(52px + 12px + env(safe-area-inset-bottom, 0px)); }
  body.no-call-bar .consent-fab { bottom: calc(var(--s-4) + env(safe-area-inset-bottom, 0px)); }
}
@media (max-width: 767px) {
  /* Overlay flows under the map image instead of being clipped by the 4:3 slot */
  .map__slot { aspect-ratio: auto; overflow: visible; background: none; }
  .map__ph { display: block; position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
  .map.is-loaded .map__slot { aspect-ratio: 4 / 3; overflow: hidden; }
}

/* ==========================================================================
   Long German words: headings in narrow columns wrap/hyphenate, never overflow
   ========================================================================== */
.item-title, .eyebrow, .sublist__title, .fact dt, .form__label { hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; min-width: 0; }
.body, .fact dd { overflow-wrap: break-word; }

/* ==========================================================================
   Header navigation: two dropdowns (Leistungen, Materialien) + 2 links.
   Paper panel, hairline border, eyebrow-size list, staggered fade-in.
   ========================================================================== */
.site-nav > ul { align-items: center; }
.nav-drop { position: relative; }
.site-nav__trigger {
  display: inline-flex; align-items: center; gap: .45rem; position: relative;
  background: none; border: 0; padding: .5rem 0; color: inherit; cursor: pointer;
  font: 500 var(--fs-eyebrow)/1.35 var(--font-body); letter-spacing: .04em; text-transform: uppercase;
}
.site-nav__trigger::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 400ms var(--ease);
}
.site-nav__trigger:hover::after, .site-nav__trigger.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav-caret { transition: transform 400ms var(--ease); }
[aria-expanded="true"] > .nav-caret { transform: rotate(180deg); }
.nav-drop__panel {
  position: absolute; top: calc(100% + 1.1rem); left: -1.5rem; z-index: 2;
  min-width: 15rem; padding: var(--s-3) var(--s-3) var(--s-3);
  background: var(--paper); color: var(--ink); border: 1px solid var(--line);
  opacity: 0; translate: 0 -8px; transition: opacity 300ms var(--ease), translate 400ms var(--ease);
}
/* Hover-Brücke: reicht über die ganze Panelbreite bis hoch in die Kopfzeile, damit der Weg
   seitlich durch die Menüzeile zur rechten Spalte das Panel nicht schließt. Die Menüpunkte
   liegen darüber (z-index 3) und bleiben anklickbar. */
.nav-drop__panel::before { content: ""; position: absolute; left: -1rem; right: -1rem; bottom: 100%; height: 5.5rem; }
.site-nav__trigger, .site-nav > ul > li > a { position: relative; z-index: 3; }
.nav-drop__panel::after { content: ""; position: absolute; left: -1rem; right: -1rem; bottom: -1rem; height: 1rem; } /* Toleranz unter dem Panel */
.nav-drop__panel[hidden] { display: none; }
.nav-drop.is-open .nav-drop__panel { opacity: 1; translate: 0 0; }
.site-nav .nav-drop__list { display: grid; gap: .15rem 2rem; }
.site-nav .nav-drop__list--cols { grid-template-columns: repeat(2, max-content); grid-auto-flow: column; grid-template-rows: repeat(5, auto); }
.nav-drop__list li { opacity: 0; translate: 0 6px; transition: opacity 400ms var(--ease) calc(var(--i, 0) * 35ms + 60ms), translate 500ms var(--ease) calc(var(--i, 0) * 35ms + 60ms); }
.nav-drop.is-open .nav-drop__list li { opacity: 1; translate: 0 0; }
.nav-drop__list a, .nav-soon {
  display: block; padding: .4rem 0; white-space: nowrap;
  font-weight: 500; font-size: var(--fs-eyebrow); letter-spacing: .04em; text-transform: uppercase; line-height: 1.35;
}
.nav-drop__list a { text-decoration: underline; text-decoration-color: transparent; text-underline-offset: .35em; transition: text-decoration-color 250ms var(--ease); }
.nav-drop__list a:hover, .nav-drop__list a[aria-current] { text-decoration-color: currentColor; }
.nav-soon { color: var(--ink-soft); opacity: .7; }
.nav-soon small { font-size: .625rem; letter-spacing: .08em; margin-left: .35rem; opacity: .85; }
.nav-drop__panel a::after { display: none; }
.site-header:not(.is-solid) .nav-drop__panel :focus-visible { outline-color: var(--red); }
@media (prefers-reduced-motion: reduce) { .nav-drop__panel, .nav-drop__list li { transition: none; } }

/* Mobile menu: the two groups as accordions */
.mobile-menu nav { overflow-y: auto; }
.mobile-menu__acc {
  display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .35rem 0; margin: 0; background: none; border: 0; color: inherit; cursor: pointer; text-align: left;
  font-family: var(--font-display); font-weight: 400; font-size: clamp(1.875rem, 9vw, 3.25rem); line-height: 1.05; text-transform: uppercase; letter-spacing: -.02em;
  transform: translateY(100%); transition: transform 700ms var(--ease);
}
.mobile-menu__acc .nav-caret { width: 18px; height: 11px; flex: none; }
.mobile-menu.is-open .mobile-menu__acc { transform: none; }
.mobile-menu.is-open nav li:nth-child(2) .mobile-menu__acc { transition-delay: 60ms, 0s, 0s; }
.mobile-menu__acc.is-current { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .12em; }
.mobile-menu__sub { padding: var(--s-1) 0 var(--s-3); display: grid; gap: .1rem; }
.mobile-menu__sub[hidden] { display: none; }
.mobile-menu nav .mobile-menu__sub a, .mobile-menu__sub .nav-soon {
  display: block; padding-block: .35rem; transform: none;
  font-family: var(--font-body); font-weight: 500; font-size: var(--fs-eyebrow); letter-spacing: .04em; line-height: 1.35; text-transform: uppercase;
}
.mobile-menu nav .mobile-menu__sub a[aria-current] { text-decoration-thickness: 1px; text-underline-offset: .3em; }

/* Tiles and lists that are not (yet) links: no hover, no arrow, default cursor */
a.material:not([href]), .insight a:not([href]) { cursor: default; }
@media (hover: hover) and (pointer: fine) {
  a.material:not([href]):hover img, .insight a:not([href]):hover img { transform: none; filter: none; }
  a.material:not([href]):hover, .insight a:not([href]):hover { outline-color: transparent; }
  a.material:not([href]):hover .item-title, .insight a:not([href]):hover .insight__label { transform: none; }
}
.sublist__links .nav-soon { display: inline; padding: 0; font: inherit; text-transform: none; letter-spacing: 0; white-space: normal; font-size: var(--fs-body); line-height: 1.5; color: var(--ink-soft); opacity: 1; }
.sublist__links .nav-soon small { font-weight: 500; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; margin-left: .35rem; }
/* Current material tile (material page): inset hairline frame + label */
.material--current::after { content: ""; position: absolute; inset: var(--s-1); border: 1px solid currentColor; pointer-events: none; }

/* ==========================================================================
   Homepage (Wegweiser): category mosaic, 3-step row, CTA row
   ========================================================================== */
/* I with five category tiles: Treppen tall on the left, four tiles 2x2 */
.insights--categories { margin-top: var(--s-6); grid-template-rows: repeat(2, 25cqi); grid-auto-rows: 25cqi; }
.insight--treppen { grid-column: 1; grid-row: 1 / 3; }
.insight--kueche { grid-column: 2; grid-row: 1; }
.insight--kamin { grid-column: 3; grid-row: 1; }
.insight--kamin img { object-position: 50% 62%; }
.insight--wand { grid-column: 2; grid-row: 2; }
.insight--garten { grid-column: 3; grid-row: 2; }
.insight__body { position: absolute; left: var(--s-3); right: var(--s-3); bottom: var(--s-3); display: grid; gap: .4rem; }
.insight__body .insight__label { position: static; }
.insight__services { opacity: .9; font-size: .6875rem; letter-spacing: .06em; }
.insights--categories .insight a::before { background: linear-gradient(180deg, rgba(12,11,10,0) 45%, rgba(12,11,10,.5) 100%); }
@media (max-width: 767px) {
  .insights--categories { grid-template-rows: none; grid-auto-rows: 40cqi; }
  .insight--treppen { grid-column: 1 / -1; grid-row: auto; }
  .insight--kueche, .insight--kamin, .insight--wand, .insight--garten { grid-column: auto; grid-row: auto; }
  .insight__body { left: var(--s-2); right: var(--s-2); bottom: var(--s-2); }
}
/* Three steps: the fact row with outline numerals */
.about__facts.about__facts--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.about__facts--three dt { color: var(--ink); margin-bottom: var(--s-2); }
.about__facts--three .fact__num { margin-bottom: var(--s-2); }
.about__facts--three dd { color: var(--ink-soft); max-width: 46ch; }
.about__facts--three dd a { color: var(--ink); text-underline-offset: .2em; }
.section-cta { grid-column: 3 / -1; margin-top: var(--s-5); }
@media (max-width: 1023px) { .section-cta { grid-column: 1 / -1; } }
@media (max-width: 767px) { .about__facts.about__facts--three { grid-template-columns: 1fr; } }
@media (max-width: 767px) { .insights--categories { grid-template-rows: 48cqi; grid-auto-rows: 56cqi; } .insights--categories .insight__label { font-size: 1rem; } }


/* Interactive text turns brand red on hover (links, nav, footer); red stays the one interaction colour */
.link:hover, a.link:focus-visible { color: var(--red); }
.on-photo .link:hover, .hero .link:hover, .page-hero .link:hover { color: var(--on-photo); }
.body a:hover, .form__status a:hover, .legal a:hover { color: var(--red); }
.site-header.is-solid .site-nav a:hover, .site-header.is-solid .site-nav__trigger:hover, .site-header.is-solid .site-nav__trigger[aria-expanded="true"] { color: var(--red); }
.nav-drop__list a:hover { color: var(--red); }
.site-footer a:hover { color: var(--on-photo); }

/* ==========================================================================
   Ken Burns on the top hero photo only: after the load "settle", the photo
   keeps drifting very slowly (max. 6 % zoom, ±2 % pan), then eases back.
   Direction per page via --kb-x / --kb-y on the hero. Paused off-screen and
   off for reduced motion. The closing photo stays still.
   ========================================================================== */
@keyframes ng-kenburns {
  from { transform: scale(1) translate3d(0, 0, 0); }
  to   { transform: scale(var(--kb-scale, 1.06)) translate3d(var(--kb-x, -1.5%), var(--kb-y, -1%), 0); }
}
.hero .hero__media img {
  animation: ng-kenburns var(--kb-dur, 28s) cubic-bezier(.45, 0, .55, 1) 2.2s infinite alternate both;
  will-change: transform;
}
.hero.is-offscreen .hero__media img { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) {
  .hero .hero__media img { animation: none; }
}
/* Directions: follow the motif */
.hero:not(.page-hero) { --kb-x: 2%; --kb-y: 1.5%; }              /* Start: along the stair, up and to the left */
.page-hero--short { --kb-x: -2%; --kb-y: 0%; --kb-scale: 1.05; }  /* Kontakt: along the sandstone layers */

/* Mobile menu tap feedback: the touched item turns red and nudges right (independent
   `translate`, so the menu's own entrance transform is untouched). 120 ms in, 300 ms out. */
.mobile-menu nav a, .mobile-menu__acc, .mobile-menu__foot a {
  -webkit-tap-highlight-color: transparent;
  transition: transform 700ms var(--ease), translate 300ms var(--ease), color 300ms var(--ease);
}
.mobile-menu nav .mobile-menu__sub a { transition: translate 300ms var(--ease), color 300ms var(--ease); }
.mobile-menu nav a:active, .mobile-menu__acc:active, .mobile-menu__foot a:active {
  color: var(--red); translate: 6px 0; transition-duration: 700ms, 120ms, 120ms;
}
.mobile-menu nav .mobile-menu__sub a:active { transition-duration: 120ms, 120ms; }
.mobile-menu__acc .nav-caret { transition: transform 240ms var(--ease); }
.mobile-menu nav a:focus-visible, .mobile-menu__acc:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
@media (prefers-reduced-motion: reduce) {
  .mobile-menu nav a:active, .mobile-menu__acc:active, .mobile-menu__foot a:active { translate: none; }
}
.mobile-menu.is-open nav .mobile-menu__sub li a { transition-delay: 0s; }

/* Photos in <picture> inside the photo grid fill their tile like a bare <img> */
.showroom__group picture { display: block; width: 100%; height: 100%; }
.about__media picture { display: block; }

/* KI-Kennzeichnung (EU AI Act Art. 50 Abs. 4 + 5): on photos the label is a dark chip,
   legible on any image, visible from the first moment (no delayed fade), not aria-hidden. */
.hero .photo-note, .closing__note, .insight__note {
  padding: .3rem .55rem; background: rgba(12, 11, 10, .55); color: var(--on-photo); opacity: 1;
  font-size: .75rem; letter-spacing: .05em; line-height: 1.2;
}
.motion .hero .photo-note, .motion .hero.is-loaded .photo-note { opacity: 1; transition: none; }
.motion .insight [data-reveal="img"].is-in > .insight__note { opacity: 1; }
figcaption.photo-note, .materials__note { font-size: .75rem; color: var(--ink-soft); }

/* Material tiles with real photos (light and dark stones): one treatment for all, white
   labels on a stronger top/bottom scrim so every label stays legible. */
.material--dark::before {
  background: linear-gradient(180deg, rgba(12,11,10,.55) 0%, rgba(12,11,10,0) 30%, rgba(12,11,10,0) 45%, rgba(12,11,10,.7) 100%);
}
.material--dark .item-title, .material--dark .material__cat { text-shadow: 0 1px 10px rgba(12,11,10,.5); }
.material--dark .material__cat { opacity: 1; }
.material img { z-index: -2; }
/* Sub-list directly under a tile grid (Zubehör under the materials) */
.sublist--tight { margin-top: var(--s-6); }
.sublist__body .body { max-width: 46ch; }
@media (max-width: 1023px) { .sublist--tight .sublist__title { padding-bottom: 0; } }

/* Bright photos (white rooms) in the hero: stronger scrim so white type keeps contrast */
.hero--bright::after {
  background:
    linear-gradient(0deg, rgba(12,11,10,.68) 0%, rgba(12,11,10,.48) 34%, rgba(12,11,10,.12) 64%, rgba(12,11,10,0) 78%),
    linear-gradient(180deg, rgba(12,11,10,.45) 0%, rgba(12,11,10,0) 24%);
}

/* Service lines in the category tiles: items separated by a dot, never hyphenated;
   on small tiles each service gets its own line */
.nowrap { white-space: nowrap; }
.insight__services { hyphens: manual; -webkit-hyphens: manual; overflow-wrap: normal; }
.insight__services > span + span::before { content: "·"; margin: 0 .45em; }
@media (max-width: 767px) {
  .insight:not(.insight--treppen) .insight__services > span { display: block; }
  .insight:not(.insight--treppen) .insight__services > span + span::before { content: none; }
}
/* Cookie button stays out of the hero (it would sit on the CTA / phone link); footer link always works */
.consent-fab { transition: border-color 250ms var(--ease), opacity 300ms var(--ease), visibility 0s linear 0s; }
body.hero-in-view .consent-fab { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity 200ms var(--ease), visibility 0s linear 200ms; }
@media (max-width: 400px) { .insight__services { letter-spacing: .03em; } }

/* Hero video (Startseite, test): fills the stage like the photo, poster first, no Ken Burns */
.hero__media--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.motion .hero__media--video video { scale: 1.04; transition: scale 1800ms var(--ease); }
.motion .hero.is-loaded .hero__media--video video { scale: 1; }
.hero--video::after {
  background:
    linear-gradient(0deg, rgba(12,11,10,.62) 0%, rgba(12,11,10,.4) 34%, rgba(12,11,10,.08) 64%, rgba(12,11,10,0) 78%),
    linear-gradient(180deg, rgba(12,11,10,.42) 0%, rgba(12,11,10,0) 24%);
}

/* Header over the hero belongs to the hero: it scrolls away with it (absolute) and only
   after the hero has passed it returns as a fixed white bar sliding in from the top. */
.site-header:not(.is-solid) { position: absolute; }
.site-header.is-solid { animation: header-in 420ms var(--ease) both; }
@keyframes header-in { from { transform: translateY(-100%); } to { transform: none; } }
@media (prefers-reduced-motion: reduce) { .site-header.is-solid { animation: none; } }
.site-header.is-static { animation: none; }

/* Hero loop: still (last video frame) on top of the video; Ken Burns zoom 15 s, then the
   still fades out (1.2 s) over the first frame of the video and the clip plays again. */
.hero__still, .hero__still img { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__still img { object-fit: cover; transform-origin: 55% 60%; transform: scale(1); }
.hero__still { opacity: 0; pointer-events: none; }
[data-hero-loop].is-still .hero__still { opacity: 1; }
[data-hero-loop].is-zoom .hero__still img { transform: scale(1.14); transition: transform 15s cubic-bezier(.45, 0, .55, 1); }
[data-hero-loop].is-fading .hero__still { opacity: 0; transition: opacity 1200ms var(--ease); }
.hero .hero__still img { animation: none; }

/* Three materials (Granit, Marmor, Sandstein): one row of three, on phones a stack of wide tiles */
.materials.materials--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 767px) {
  .materials.materials--three { grid-template-columns: 1fr; }
  .materials--three .material { aspect-ratio: 2 / 1; }
}
/* Designbeläge tile lists six materials: keep them inline on phones too */
@media (max-width: 767px) {
  .insight .insight__services--inline > span { display: inline; }
  .insight .insight__services--inline > span + span::before { content: "·"; margin: 0 .45em; }
}

/* ==========================================================================
   LAYOUT SYSTEM (gilt für alle Seiten, überschreibt die älteren Einzelregeln)
   Zwei Kanten, sonst keine:
   - Kante A = Container-Anfang (Spalte 1): jeder Titel, jeder Text, jede Kachel.
   - Kante B = Mitte (Spalte 7): die zweite Hälfte jedes Zwei-Spalten-Blocks.
   Volle Breite (1–12) für Kacheln, Mosaike, Fotostreifen. Keine Einzüge,
   keine Randnotizen neben Titeln. Abschnittstitel: zweizeilig, bündig.
   ========================================================================== */
.section-head { margin-bottom: clamp(3rem, 6vw, 5rem); }
.section-head .display { grid-column: 1 / -1; font-size: clamp(2.5rem, 6.4cqi, 6rem); }
.display .line--2, .section-head .display .line--2 { padding-left: 0; }
.page-hero__title .line--2, .hero .display .line--2 { padding-left: 0; }

@media (min-width: 1024px) {
  /* text + side */
  .showroom__intro, .contact-row__lead { grid-column: 1 / 7; }
  .showroom__visit { grid-column: 7 / -1; align-self: start; }
  /* image + facts */
  .about__media { grid-column: 1 / 7; }
  .about__facts { grid-column: 7 / -1; }
  .about__facts.about__facts--row { grid-column: 1 / -1; }
  /* zigzag rows: halves */
  .feature__text { grid-column: 1 / 6; }
  .feature__media { grid-column: 7 / -1; }
  .feature--flip .feature__media { grid-column: 1 / 7; }
  .feature--flip .feature__text { grid-column: 8 / -1; }
  /* sub-lists */
  .sublist__title { grid-column: 1 / 7; }
  .sublist__body { grid-column: 7 / -1; }
  .sublist--text .sublist__title { grid-column: 1 / 7; }
  .sublist--text .sublist__body { grid-column: 7 / -1; }
  /* full-width rows */
  .section-cta { grid-column: 1 / -1; }
  /* Kontakt */
  .contact__aside { grid-column: 1 / 6; }
  .form.contact-form, .map.contact-map { grid-column: 7 / -1; }
}
/* intro paragraph keeps a readable measure inside its half */
.showroom__intro .body, p.showroom__intro, .contact__lead { max-width: 52ch; }
/* Offset frames never cross edge A: images on the left half throw their frame to the right */
.about__media .frame::before { left: auto; right: -32px; }
.showroom__group::before { left: auto; right: -32px; }
@media (max-width: 767px) {
  .about__media .frame::before, .showroom__group::before { right: -12px; left: auto; }
}
@media (min-width: 1024px) {
  .feature--flip .feature__text { grid-column: 7 / 12; padding-left: 0; }
}
/* One size for every section title (also Kontakt), measured from the content width */
:root { --title-size: clamp(2.5rem, calc(min(100vw, 1440px) * .062), 6rem); }
.section-head .display, .display.contact__title { font-size: var(--title-size); }
.insight__services { font-size: .6875rem; }
@media (min-width: 1024px) {
  /* Left-half images end one column early so their offset frame stays in the gap, never on the text */
  .about__media, .feature--flip .feature__media { grid-column: 1 / 6; }
}

/* ==========================================================================
   Haarlinien zeichnen sich beim Hineinscrollen: Linienrahmen wachsen aus ihrer
   Ecke, Trennlinien laufen von links nach rechts. Nur mit .lines-js (Motion erlaubt).
   ========================================================================== */
.lines-js .frame::before, .lines-js .showroom__group::before { clip-path: inset(0 100% 100% 0); transition: clip-path 1600ms var(--ease) 250ms; }
.lines-js .about__media .frame::before, .lines-js .showroom__group::before, .lines-js .feature--flip .frame::before { clip-path: inset(0 0 100% 100%); }
.lines-js .is-drawn.frame::before, .lines-js .is-drawn.showroom__group::before { clip-path: inset(0 0 0 0); }

/* ==========================================================================
   Ablauf (Startseite): Foto links, drei Schritte rechts. Konturziffer in
   Normalgröße neben Titel und Text, keine Kästen, keine Linien. Die Schritte
   erscheinen beim Scrollen nacheinander (Reveal-Staffel).
   ========================================================================== */
.flow__media { grid-column: 1 / -1; margin: 0; }
.flow__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
.flow { grid-column: 1 / -1; margin-top: var(--s-6); }
.flow__steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-6); }
.flow__step { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); column-gap: var(--s-3); align-items: start; }
.flow__num { line-height: .9; }
.flow__title { margin-bottom: var(--s-2); }
.flow__text { color: var(--ink-soft); max-width: 44ch; }
.flow__text a { color: var(--ink); text-underline-offset: .2em; }
.flow__cta { margin-top: var(--s-6); padding-left: calc(5.5rem + var(--s-3)); }
@media (min-width: 1024px) {
  .flow__media { grid-column: 1 / 6; align-self: start; position: sticky; top: calc(var(--header-h) + 2rem); }
  .flow { grid-column: 7 / -1; margin-top: 0; padding-top: var(--s-2); }
}
@media (max-width: 767px) {
  .flow__step { grid-template-columns: 4rem minmax(0, 1fr); }
  .flow__num { font-size: 3rem; }
  .flow__cta { padding-left: 0; }
}

/* ==========================================================================
   Keine horizontalen Trennlinien: Gruppen trennen sich über Abstand, nicht über Striche.
   ========================================================================== */
.sublist__title, .sublist__body, .about__facts--row .fact, .contact__facts > div, .visit-col, .route, .fact { border-top: 0 !important; }
.contact-form__title { border-bottom: 0; padding-bottom: 0; }
.item-title.has-dash::after { content: none; }
.item-title.has-dash { display: block; }
.sublist { margin-top: clamp(4rem, 7vw, 6rem); }
.sublist__title, .sublist__body { padding-top: 0; }
.contact__facts > div { padding-top: 0; }

/* ==========================================================================
   Startseiten-Hero in Ebenen: Wald (hinten) · Schriftzug · Gebäude (vorne).
   Die Bühne (.hl-stage) deckt den Hero wie object-fit: cover ab, ist aber ein
   eigenes Element, damit der Schriftzug in Bildkoordinaten an der Dachkante sitzt.
   Laden: Schrift blendet ein und sinkt, das Gebäude hebt sich leicht.
   ========================================================================== */
.hero--layers { height: 100svh; min-height: 34rem; max-height: 75rem; container-type: size; align-items: flex-end; color: var(--ink); background: var(--paper); }
.hero--layers::after { content: none; }
.hero--layers {
  --ar: 1.885;                                   /* 2000 / 1061 */
  --fx: .5; --fy: .3;                            /* focus: building centre, keep more sky than ground */
  --sw: max(100cqw, calc(100cqh * var(--ar)));
  --sh: calc(var(--sw) / var(--ar));
  --sl: calc((100cqw - var(--sw)) * var(--fx));
  --st: calc((100cqh - var(--sh)) * var(--fy));
}
.hl-stage { position: absolute; left: var(--sl); top: var(--st); width: var(--sw); height: var(--sh); pointer-events: none; }
.hl-stage img, .hl-stage picture { display: block; width: 100%; height: 100%; }
.hl-back { z-index: -3; }
.hl-front { z-index: -1; will-change: transform; }

.hl-word {
  position: absolute; z-index: -2; left: 0; right: 0; margin: 0;
  bottom: calc(100cqh - (var(--st) + var(--sh) * .5));   /* lower edge 7 % below the roof line */
  display: flex; justify-content: center;
  font-family: var(--font-display); font-weight: 500; text-transform: uppercase;
  font-size: 15.2cqw; line-height: .78; letter-spacing: -.035em;
  color: rgba(255, 255, 255, .9);
  will-change: transform, opacity;
}
.hl-word span { display: block; }

.hl-fade {
  position: absolute; inset: auto 0 0 0; height: 46cqh; z-index: 0; pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.72) 42%, var(--paper) 78%);
}
.hl-content { position: relative; z-index: 1; padding-bottom: clamp(2rem, 6cqh, 4.5rem); }
.hl-title {
  margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: clamp(2.25rem, 4.6vw, 4.75rem); line-height: .95; letter-spacing: -.02em; color: var(--ink);
}
.hl-title .hero__line { display: block; }
.hl-sub { margin: var(--s-2) 0 0; color: var(--ink-soft); max-width: 44ch; }
.hero--layers .hero__cta { margin-top: var(--s-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.hl-phone { color: var(--ink); }
.hero--layers .hero__media img { animation: none; }

/* load choreography */
.motion .hero--layers .hl-word { opacity: 0; translate: 0 -7cqh; transition: opacity 1400ms var(--ease) 150ms, translate 2400ms var(--ease) 150ms; }
.motion .hero--layers .hl-front { translate: 0 5cqh; transition: translate 2400ms var(--ease) 150ms; }
.motion .hero--layers.is-loaded .hl-word { opacity: 1; translate: 0 0; }
.motion .hero--layers.is-loaded .hl-front { translate: 0 0; }
.motion .hero--layers .hero__line:nth-child(2) > span { transition-delay: 1100ms; }
.motion .hero--layers .hero__line:nth-child(3) > span { transition-delay: 1250ms; }

/* header over this hero: white text on the forest, as before */
@media (max-width: 767px) {
  .hero--layers { --fx: .3; --fy: .5; }
  .hl-word { flex-direction: column; align-items: center; font-size: 27cqw; line-height: .8; bottom: calc(100cqh - (var(--st) + var(--sh) * .49)); }
  .hl-fade { height: 50cqh; }
}
/* tuning after first render: word fills 92 % of the width (6.98 em wide), forest a touch
   darker so the white word reads, base of the building dissolves into white like mist */
.hl-word { font-size: 13.2cqw; bottom: calc(100cqh - (var(--st) + var(--sh) * .49)); }
.hl-back img { filter: brightness(.8) saturate(.95); }
.hl-fade { height: 100cqh; background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 58%, rgba(255,255,255,.7) 72%, var(--paper) 86%); }
.hl-title { font-size: clamp(2rem, 3.6vw, 3.6rem); }
@media (max-width: 767px) {
  .hl-word { font-size: 23.6cqw; bottom: calc(100cqh - (var(--st) + var(--sh) * .475)); }
  .hl-fade { background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,0) 54%, rgba(255,255,255,.75) 64%, var(--paper) 74%); }
  .hl-title { font-size: clamp(1.9rem, 9vw, 2.6rem); }
}
/* Composition v2: the building spans the full width and dissolves into white; the text
   owns a calm zone underneath (like the reference's cloud bank). */
.hero--layers {
  --tz: clamp(14rem, 31cqh, 18rem);                                   /* text zone at the bottom */
  --sw: 100cqw;
  --sh: calc(var(--sw) / var(--ar));
  --sl: 0px;
  --st: min(0px, calc(100cqh - var(--tz) - var(--sh) * .84));         /* facade base sits on the text zone */
}
.hl-word { bottom: calc(100cqh - (var(--st) + var(--sh) * .455)); }
.hl-fade {
  top: calc(var(--st) + var(--sh) * .62); bottom: 0; height: auto;
  background: linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,.75) calc(var(--sh) * .12), var(--paper) calc(var(--sh) * .22));
}
.hl-content { padding-bottom: clamp(2rem, 7cqh, 5rem); }
@media (max-width: 767px) {
  .hero--layers { --sh: 60cqh; --sw: calc(var(--sh) * var(--ar)); --sl: calc((100cqw - var(--sw)) * .28); --st: 0px; }
  .hl-word { bottom: calc(100cqh - (var(--st) + var(--sh) * .47)); }
  .hl-fade { top: calc(var(--st) + var(--sh) * .6); background: linear-gradient(180deg, rgba(255,255,255,0) 0, rgba(255,255,255,.75) calc(var(--sh) * .14), var(--paper) calc(var(--sh) * .26)); }
}
@media (min-width: 768px) {
  .hl-content { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; align-content: end; }
  .hl-title { grid-column: 1 / 7; }
  .hl-side { grid-column: 7 / -1; }
  .hl-sub { margin-top: 0; }
}
@media (min-width: 768px) {
  .hl-content { grid-template-rows: 1fr auto; padding-top: 0; }
  .hl-title, .hl-side { grid-row: 2; }
}

/* ==========================================================================
   Startseiten-Hero: Scroll-Video (Anflug aufs Gebäude, endet in Weiß).
   Ohne JS, bei reduzierter Bewegung oder Datensparmodus: ein Standbild (Fassade),
   Hero 100svh. Mit JS (.is-scrub): Hero wird höher, die Bühne klebt oben und die
   Scrollposition spult das Video vor. Das letzte Bild ist Weiß = Hintergrund der
   nächsten Sektion, der Übergang ist nahtlos.
   ========================================================================== */
.hero--scrub { display: block; min-height: 0; height: 100svh; min-height: 34rem; overflow: visible; background: var(--paper); }
.hero--scrub::after { content: none; }
.hero--scrub.is-scrub { height: 340svh; }
.hs-sticky { position: sticky; top: 0; height: 100svh; min-height: 34rem; overflow: hidden; isolation: isolate; display: flex; align-items: flex-end; }
.hs-media, .hs-media img, .hs-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hs-media { z-index: -2; background: #8f8f8a; }
.hs-media img { object-fit: cover; object-position: 50% 50%; }
.hs-canvas { display: none; }
.is-scrub .hs-canvas { display: block; }
.is-scrub .hs-still { display: none; }
.hs-shade {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    linear-gradient(0deg, rgba(12,11,10,.55) 0%, rgba(12,11,10,.28) 38%, rgba(12,11,10,0) 66%),
    linear-gradient(180deg, rgba(12,11,10,.38) 0%, rgba(12,11,10,0) calc(var(--header-h) * 2.4));
  opacity: calc(1 - var(--p-text, 0));
}
.hs-content {
  position: relative; display: block; padding-top: 0; padding-bottom: clamp(2.5rem, 9vh, 6rem);
  color: var(--on-photo);
  opacity: calc(1 - var(--p-text, 0)); translate: 0 calc(var(--p-text, 0) * -6vh);
}
.hs-content[inert] { visibility: hidden; }
.hs-sticky::after { content: ""; position: absolute; inset: 0; z-index: 1; background: var(--paper); opacity: var(--p-end, 0); pointer-events: none; }
.hs-content { width: 100%; z-index: 2; }
.hs-title {
  margin: 0; font-family: var(--font-display); font-weight: 400; text-transform: uppercase;
  font-size: min(9.8cqi, 5rem); line-height: .94; letter-spacing: -.02em; color: var(--on-photo);
  hyphens: manual;
}
.hs-title .hero__line { display: block; }
.hs-content { container-type: inline-size; }
@media (min-width: 1200px) { .hs-title { font-size: 4.9cqi; } }
.hs-sub { margin: var(--s-3) 0 0; max-width: 34ch; font-size: var(--fs-item, 1.25rem); line-height: 1.35; }
.hero--scrub .hero__cta { margin-top: var(--s-4); display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2) var(--s-4); }
.hs-phone { color: var(--on-photo); }
.hs-phone:hover { color: var(--on-photo); }
/* KI-Kennzeichnung: dunkler Chip, sofort sichtbar, solange das Video zu sehen ist */
.ki-chip {
  margin: 0; padding: .3rem .55rem; background: rgba(12,11,10,.55); color: #fff;
  font-weight: 500; font-size: .6875rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.2;
}
.hs-chip { position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 2; opacity: calc(1 - var(--p-end, 0)); }
@media (min-width: 1200px) {
  .hs-content { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .hs-title { grid-column: 1 / 7; grid-row: 1 / 3; }
  .hs-sub { grid-column: 7 / -1; grid-row: 1; margin: 0; }
  .hero--scrub .hero__cta { grid-column: 7 / -1; grid-row: 2; }
}
@media (max-width: 767px) {
  .hs-sub { font-size: 1.0625rem; }
  .hero--scrub .hero__cta { flex-direction: column; align-items: flex-start; gap: var(--s-3); }
  .hero--scrub .hero__cta .btn { align-self: flex-start; }
  .hs-chip { bottom: .75rem; }
}
.motion .hero--scrub .hero__line > span { transform: translateY(105%); transition: transform 900ms var(--ease); }
.motion .hero--scrub .hero__line:nth-child(2) > span { transition-delay: 120ms; }
.motion .hero--scrub .hero__line:nth-child(3) > span { transition-delay: 240ms; }
.motion .hero--scrub .hero__seq { opacity: 0; transform: translateY(16px); transition: opacity 700ms var(--ease) 450ms, transform 700ms var(--ease) 450ms; }
.motion .hero--scrub .hero__cta.hero__seq { transition-delay: 600ms; }
.motion .hero--scrub.is-loaded .hero__line > span, .motion .hero--scrub.is-loaded .hero__seq { transform: none; opacity: 1; }
.motion:has(.hero--scrub) .site-header { transition-delay: 700ms, 700ms, 0ms, 0ms, 0ms; }
/* Fixierte Buttons nicht über dem Scroll-Video (KI-Chip, CTA) */
body.hero-in-view .to-top { opacity: 0; visibility: hidden; pointer-events: none; }

/* ==========================================================================
   Unterseiten: Platzhalter, KI-Chip im Seiten-Hero, fünf Designbelag-Kacheln
   ========================================================================== */
/* Platzhalter für fehlende Bilder: ruhige Steinfläche, Hinweis "Bild folgt" */
.ph { display: grid; place-items: center; width: 100%; aspect-ratio: 3 / 2; background: var(--stone); color: var(--ink-soft); }
.ph .eyebrow { letter-spacing: .08em; }
.hero__media--ph { background: linear-gradient(160deg, #4a4442 0%, #2c2826 100%); }
/* KI-Kennzeichnung im Seiten-Hero: dunkler Chip, sofort sichtbar (nicht animiert) */
.page-hero__chip { position: absolute; right: var(--gutter); bottom: 1.25rem; z-index: 2; }
@media (max-width: 767px) { .page-hero__chip { bottom: .75rem; } }
/* Designbeläge: fünf Kacheln in einer Reihe, auf kleinen Bildschirmen zwei Spalten, die letzte breit */
.materials.materials--five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
@media (max-width: 1023px) {
  .materials.materials--five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .materials--five > li:last-child { grid-column: 1 / -1; }
  .materials--five > li:last-child .material { aspect-ratio: 2 / 1; }
}
.materials--five .item-title { font-size: clamp(1rem, 1.45vw, 1.375rem); hyphens: manual; }
/* Zwei Materialien (z. B. Küchenarbeitsplatten: Granit und Marmor): zwei breite Kacheln */
.materials.materials--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.materials--two .material { aspect-ratio: 2 / 1; }
@media (max-width: 767px) { .materials.materials--two { grid-template-columns: 1fr; } }

/* iOS Safari schneidet skalierte Bilder trotz overflow: hidden nicht immer ab (eigene
   Compositing-Ebene). clip-path schneidet zuverlässig. Im Fotostreifen kein Zoom beim
   Einblenden: nur der Vorhang wischt weg, das Bild selbst bewegt sich nicht. */
[data-reveal="img"] { clip-path: inset(0); }
.motion .showroom__group [data-reveal="img"] img { scale: 1; }

/* Startseiten-Hero: die nächste Sektion schiebt sich schon über das letzte, weiße Stück
   des Videos, statt dass erst eine ganze weiße Bildschirmhöhe durchscrollt. */
.hero--scrub.is-scrub { height: 280svh; }
.hero--scrub.is-scrub + .section { position: relative; z-index: 1; margin-top: -60svh; padding-top: clamp(2.5rem, 6vw, 4.5rem); background: var(--paper); }

/* Seiten-Hero mit echtem Video (Über uns): füllt die Bühne wie ein Foto */
.hero__media--video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; display: block; }

/* Klickbare Kacheln (Leistungen, Materialien): ein eigener Pfeil-Knopf als direktes Kind
   der Kachel (.tile-go), immer gleich groß, oben rechts. Nicht im Titel verschachtelt: dort
   erzeugen Einblend-Animationen (translate) einen neuen Bezugsrahmen, der Knopf verrutscht.
   KI-Kennzeichnung auf Kacheln mit Knopf oben links. */
.tile-go {
  position: absolute; right: var(--s-3); top: var(--s-3); z-index: 2; pointer-events: none;
  width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.75); background-color: rgba(12,11,10,.28);
  transition: background-color 300ms var(--ease-hover), border-color 300ms var(--ease-hover), opacity 700ms var(--ease), translate 700ms var(--ease);
}
.tile-go::after {
  content: ""; position: absolute; inset: 11px; background-color: #fff;
  -webkit-mask: var(--ico-ne) center / contain no-repeat; mask: var(--ico-ne) center / contain no-repeat;
}
:root { --ico-ne: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23000' stroke-width='1.6' stroke-linecap='square'%3E%3Cpath d='M3.5 12.5 12 4M5.5 3.5H12.5V10.5'/%3E%3C/svg%3E"); }
a:has(> .tile-go) .material__arrow, a:has(> .tile-go) .insight__label .ico { display: none; }
.insight a:has(> .tile-go) .insight__note { right: auto; left: var(--s-3); max-width: calc(100% - 40px - 2.5 * var(--s-3)); line-height: 1.25; }
@media (hover: hover) and (pointer: fine) {
  a:hover > .tile-go { background-color: var(--red); border-color: var(--red); }
}
@media (max-width: 767px) {
  .tile-go { right: var(--s-2); top: var(--s-2); width: 36px; height: 36px; }
  .tile-go::after { inset: 10px; }
  .insight a:has(> .tile-go) .insight__note { left: var(--s-2); max-width: calc(100% - 36px - 2.5 * var(--s-2)); line-height: 1.25; hyphens: manual; font-size: .6875rem; padding: .2rem .4rem; }
}

/* Umlaute und Akzente: Die Zeilen sind für die Einblend-Animation beschnitten (overflow).
   Bei enger Zeilenhöhe ragen Umlautpunkte (Ä, Ö, Ü) über die Zeile hinaus und wurden
   abgeschnitten. Oben Luft schaffen und mit negativem Rand ausgleichen: gleiche Optik. */
.display .line, .hero__line { padding-top: .18em; margin-top: -.18em; }

/* Startseiten-Hero: Nebelwolken über dem Video (nur ab 768 px, per JS eingesetzt).
   Sie treiben langsam (Kind-Bild, CSS-Animation) und fliegen beim Scrollen nach außen,
   werden größer und blenden aus (--pc, 0 bis 1, aus dem Scroll-Fortschritt). Unter dem
   Verlauf hinter der Schrift, damit die Schrift lesbar bleibt. */
.hs-clouds { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hs-cloud {
  position: absolute; left: var(--x); top: var(--y); width: var(--w);
  transform: translate(calc(var(--dx) * var(--pc, 0)), calc(var(--dy) * var(--pc, 0))) scale(calc(1 + var(--pc, 0) * .7));
  opacity: calc(1 - var(--pc, 0)); will-change: transform, opacity;
}
.hs-cloud img { display: block; width: 100%; height: auto; animation: hs-cloud-drift var(--t, 32s) ease-in-out infinite alternate; }
@keyframes hs-cloud-drift { from { transform: translate3d(-3%, 0, 0) scale(1); } to { transform: translate3d(3%, -1.5%, 0) scale(1.05); } }
@media (max-width: 767px) { .hs-clouds { display: none; } }
@media (prefers-reduced-motion: reduce) { .hs-cloud img { animation: none; } }

/* Telefonnummer im Kopf: gleicher Hover wie die Menüpunkte (Linie läuft von links ein),
   in der weißen Kopfleiste zusätzlich rot */
.site-header__phone { position: relative; transition: color 250ms var(--ease); }
.site-header__phone::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 400ms var(--ease);
}
.site-header__phone:hover::after, .site-header__phone:focus-visible::after { transform: scaleX(1); transform-origin: left; }
.site-header.is-solid .site-header__phone:hover { color: var(--red); }
