/* Nägeli Holzbau AG — Phase A visual system: Vom Raster zum Raum */
:root {
  --ink: #211a16;
  --walnut: #543019;
  --ember: #f78f1e;
  --ember-dark: #b84a05;
  --bone: #f4f0e8;
  --paper: #fbf9f4;
  --timber: #c9a77a;
  --white: #fff;
  --muted: #73685d;
  --line: rgba(33, 26, 22, .18);
  --line-light: rgba(255, 255, 255, .3);
  --gutter: clamp(1rem, 4vw, 4.5rem);
  --max-width: 1680px;
  --enter: cubic-bezier(.22, 1, .36, 1);
  --move: cubic-bezier(.16, 1, .3, 1);
  --micro: 180ms;
  --component: 420ms;
  --section: clamp(5rem, 11vw, 10rem);
}

* { box-sizing: border-box; }
html { background: var(--ink); }
body {
  margin: 0;
  min-width: 320px;
  background: var(--paper);
  color: var(--ink);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}
body:has(.mobile-menu.is-open) { overflow: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .24em; }
button, a { -webkit-tap-highlight-color: transparent; }
button { font: inherit; }
::selection { color: var(--ink); background: var(--ember); }
:focus-visible { outline: 3px solid var(--ember); outline-offset: 4px; }

.page-gutter { width: min(100%, var(--max-width)); margin-inline: auto; padding-inline: var(--gutter); }
.services-layout > *, .service-item > *, .project-film > *, .project-item > *, .history-grid > *, .contact-section > *, .footer-top > * { min-width: 0; }
.section-space { padding-block: var(--section); }

/* B1 Leistungsübersicht — ein ruhiger Editorial-Index statt Kartenraster. */
.site-header.site-header--paper { color: var(--ink); border-color: var(--line); background: rgba(251, 249, 244, .94); }
.site-header--paper .desktop-nav a { opacity: .68; }
.site-header--paper .desktop-nav a[aria-current="page"] { opacity: 1; }
.overview-hero { display: grid; gap: clamp(2.5rem, 6vw, 6rem); padding-top: clamp(8.5rem, 14vw, 12.5rem); padding-bottom: clamp(4rem, 8vw, 8rem); }
.overview-hero__copy { max-width: 60rem; }
.overview-hero h1 { max-width: 15ch; font-size: clamp(2.75rem, 6.5vw, 6.2rem); }
.overview-hero__lead { max-width: 48ch; margin: 1.8rem 0 0; color: var(--muted); font-size: clamp(1.08rem, 1.7vw, 1.35rem); line-height: 1.45; text-wrap: pretty; }
.overview-hero__media { margin: 0; }
.overview-hero__image { width: 100%; min-height: clamp(15rem, 33vw, 33rem); background-color: var(--bone); background-image: var(--overview-image); background-position: 50% 54%; background-size: cover; }
.overview-hero__media figcaption { margin-top: .65rem; color: var(--muted); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; }
.overview-index { padding-bottom: clamp(5rem, 10vw, 10rem); }
.overview-index__intro { display: grid; gap: 1.1rem; max-width: 55rem; padding-bottom: clamp(2.5rem, 5vw, 5rem); border-bottom: 1px solid var(--line); }
.overview-index__intro h2 { max-width: 14ch; }
.overview-index__intro > p:last-child { max-width: 45ch; margin: .25rem 0 0; color: var(--muted); font-size: 1.06rem; line-height: 1.45; }
.overview-service-list { display: grid; gap: clamp(3.8rem, 9vw, 9rem); padding-top: clamp(3rem, 6vw, 6rem); }
.overview-service { display: grid; gap: 1.35rem; scroll-margin-top: 7rem; }
.overview-service__content { display: grid; align-content: end; min-width: 0; }
.overview-service__meta { display: flex; gap: 1rem; align-items: baseline; margin: 0 0 1rem; color: var(--ember-dark); font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.overview-service__meta span:first-child { color: var(--ink); font-size: .78rem; }
.overview-service__title { max-width: 16ch; font-size: clamp(2.35rem, 5vw, 5.2rem); }
.overview-service__teaser { max-width: 43ch; margin: 1.35rem 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.5; text-wrap: pretty; }
.overview-service__media { position: relative; min-width: 0; margin: 0; overflow: hidden; background: var(--bone); }
.overview-service__media picture, .overview-service__media img { display: block; width: 100%; height: 100%; }
.overview-service__media img { object-fit: cover; transition: transform 800ms var(--move); }
.overview-service__link { margin-top: .15rem; }
.overview-service:hover .overview-service__media img, .overview-service:focus-within .overview-service__media img { transform: scale(1.035); }
.overview-service:focus-within .overview-service__meta { text-decoration: underline; text-decoration-color: var(--ember); text-decoration-thickness: 2px; text-underline-offset: .35rem; }
.overview-service--wide .overview-service__media { aspect-ratio: 1.45 / 1; }
.overview-service--tall .overview-service__media { aspect-ratio: .88 / 1; }
.overview-service--detail .overview-service__media { aspect-ratio: 1.15 / 1; }
.overview-conclusion { padding-block: clamp(4rem, 9vw, 9rem); border-top: 1px solid var(--line); }
.overview-conclusion__row { display: grid; gap: 1.8rem; }
.overview-conclusion h2 { max-width: 10ch; }
.overview-conclusion__row p { max-width: 36ch; margin: 0; color: var(--muted); font-size: 1.08rem; line-height: 1.5; }
.overview-conclusion .button { margin-top: 1.5rem; }
.overview-footer-wordmark { display: inline-block; color: var(--white); font-size: .95rem; font-weight: 700; letter-spacing: -.02em; text-decoration: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.skip-link {
  position: fixed;
  z-index: 100;
  top: .75rem;
  left: .75rem;
  padding: .65rem .9rem;
  background: var(--ember);
  color: var(--ink);
  font-weight: 700;
  transform: translateY(-160%);
  transition: transform var(--micro) var(--enter);
}
.skip-link:focus { transform: translateY(0); }

/* Header: fixed over the hero, therefore never competing with the service sticky rail. */
.site-header {
  position: fixed;
  z-index: 30;
  inset: 0 0 auto;
  color: var(--white);
  border-bottom: 1px solid transparent;
  transition: color var(--component) var(--move), background-color var(--component) var(--move), border-color var(--component) var(--move);
}
.site-header.is-scrolled {
  color: var(--ink);
  background-color: rgba(251, 249, 244, .96);
  border-color: var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
  gap: 1rem;
  width: min(100%, var(--max-width));
  margin-inline: auto;
  padding: .7rem var(--gutter);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: .7rem;
  color: inherit;
  font-size: .88rem;
  font-weight: 700;
  letter-spacing: -.015em;
  text-decoration: none;
  white-space: nowrap;
}
.wordmark-mark { width: 2.35rem; height: .25rem; background: var(--ember); display: inline-block; }
.desktop-nav { display: none; align-items: center; gap: clamp(1rem, 2.4vw, 2.7rem); margin-inline: auto; }
.desktop-nav a, .header-cta { font-size: .77rem; font-weight: 700; letter-spacing: .02em; text-decoration: none; }
.desktop-nav a { opacity: .78; transition: opacity var(--micro) var(--enter); }
.desktop-nav a:hover, .desktop-nav a[aria-current="page"] { opacity: 1; }
.header-cta { display: none; padding: .65rem .82rem; border: 1px solid currentColor; transition: background-color var(--micro) var(--enter), color var(--micro) var(--enter); }
.header-cta:hover { color: var(--ink); background: var(--ember); border-color: var(--ember); }
.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  border: 0;
  padding: .45rem 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: .77rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.menu-toggle-lines { display: grid; gap: .28rem; width: 1.8rem; }
.menu-toggle-lines i { display: block; height: 1px; background: currentColor; transition: transform var(--micro) var(--enter); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:first-child { transform: translateY(.18rem) rotate(45deg); }
.menu-toggle[aria-expanded="true"] .menu-toggle-lines i:last-child { transform: translateY(-.18rem) rotate(-45deg); }
.mobile-menu { display: block; }
.js .mobile-menu { display: none; }
.js .mobile-menu.is-open { display: block; }
.mobile-menu-inner { padding: 1.25rem var(--gutter) 2rem; background: var(--ink); color: var(--white); }
.mobile-menu-title { margin: 0 0 1.6rem; color: var(--timber); font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.mobile-menu nav { display: grid; gap: .15rem; }
.mobile-menu nav a { display: flex; align-items: baseline; justify-content: space-between; padding-block: .55rem; border-bottom: 1px solid var(--line-light); color: var(--white); font-family: "Arial Narrow", "Helvetica Neue", Arial, sans-serif; font-size: clamp(2rem, 8vw, 3.3rem); line-height: .98; text-decoration: none; letter-spacing: -.05em; }
.mobile-menu nav a span { color: var(--ember); font-family: "Helvetica Neue", Arial, sans-serif; font-size: .72rem; letter-spacing: .04em; }
.mobile-menu-location { display: flex; justify-content: space-between; margin-top: 2rem; color: var(--timber); font-size: .76rem; }

/* No-JS fallback: keep the complete navigation in normal document flow so it
   cannot cover the first heading. The interactive fixed overlay remains a
   progressive enhancement once the inline `.js` marker runs. */
html:not(.js) .site-header { position: relative; inset: auto; }
html:not(.js) .menu-toggle { display: none; }
html:not(.js) .mobile-menu { position: relative; }

/* Hero */
.hero { position: relative; min-height: 92svh; background: var(--ink); color: var(--white); isolation: isolate; }
.hero-media, .hero-media picture, .hero-media img, .hero-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -2; overflow: hidden; background: var(--walnut); }
.hero-media img { object-fit: cover; object-position: 50% 56%; transform: scale(1.04) translate3d(0, var(--parallax, 0%), 0); transition: transform 900ms var(--move); }
.hero-scrim { z-index: 1; background: rgba(22, 18, 15, .46); }
.hero-grid { min-height: 92svh; display: grid; align-content: end; position: relative; padding-top: 8rem; padding-bottom: clamp(2.2rem, 7vw, 5.5rem); }
.hero-copy { max-width: 58rem; transform: translateY(1.1rem); transition: transform 850ms var(--enter); }
.hero.is-ready .hero-copy { transform: translateY(0); }
.hero-eyebrow, .section-label { margin: 0 0 1.25rem; font-size: .72rem; font-weight: 700; letter-spacing: .13em; line-height: 1.2; text-transform: uppercase; }
.hero-eyebrow { color: var(--timber); }
h1, h2, h3 { margin: 0; font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif; font-weight: 700; letter-spacing: -.065em; line-height: .93; text-wrap: balance; hyphens: none; overflow-wrap: normal; }
h1 { max-width: 11ch; font-size: clamp(3.45rem, 13vw, 8.75rem); }
h2 { font-size: clamp(2.55rem, 6vw, 6rem); }
h3 { font-size: clamp(1.45rem, 2.7vw, 2.25rem); }
.hero-subline { max-width: 34ch; margin: 1.55rem 0 0; color: rgba(255, 255, 255, .9); font-size: clamp(1.05rem, 1.7vw, 1.35rem); line-height: 1.35; text-wrap: pretty; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1.1rem 1.5rem; margin-top: 2.1rem; }
.button { display: inline-flex; align-items: center; gap: .9rem; min-height: 3rem; padding: .75rem 1rem; border: 1px solid transparent; font-size: .78rem; font-weight: 700; text-decoration: none; transition: background-color var(--micro) var(--enter), color var(--micro) var(--enter), border-color var(--micro) var(--enter), transform var(--micro) var(--enter); }
.button:hover { transform: translateY(-2px); }
.button-primary { background: var(--ember); color: var(--ink); }
.button-primary:hover { background: var(--white); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: var(--ember); color: var(--ink); }
.text-link { display: inline-flex; align-items: center; gap: .75rem; width: max-content; color: var(--ink); font-size: .8rem; font-weight: 700; text-decoration: none; }
.text-link::after { content: ""; display: block; width: 2.25rem; height: 1px; background: currentColor; transition: width var(--micro) var(--enter); }
.text-link:hover::after { width: 3.5rem; }
.text-link-light { color: var(--white); }
.hero-index { display: none; }
.hero-scroll { display: inline-flex; align-items: center; gap: .75rem; margin-top: 4.5rem; color: var(--white); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-decoration: none; text-transform: uppercase; }
.hero-scroll-line { display: inline-block; width: 2.5rem; height: 1px; background: var(--ember); }
.construction-line { display: block; height: 1px; background: var(--ember); transform-origin: left center; }
.hero-line { position: absolute; right: var(--gutter); bottom: 2.2rem; left: var(--gutter); transform: scaleX(0); transition: transform 800ms 150ms var(--enter); }
.hero.is-ready .hero-line { transform: scaleX(1); }

/* Trust */
.trust-band { display: grid; grid-template-columns: 1fr; border-bottom: 1px solid var(--line); }
.trust-item { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; border-bottom: 1px solid var(--line); }
.trust-item:last-child { border-bottom: 0; }
.trust-value { font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif; font-size: clamp(1.55rem, 3vw, 2.7rem); font-weight: 700; letter-spacing: -.055em; line-height: 1; }
.trust-label { color: var(--muted); font-size: .76rem; text-align: right; }

/* Shared section language */
.section-heading { max-width: 68rem; }
.section-heading h2, .projects-intro h2 { max-width: 13ch; }
.section-intro { max-width: 48ch; margin: 1.65rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.5vw, 1.3rem); line-height: 1.45; text-wrap: pretty; }
.section-label { color: var(--ember-dark); }
.reveal { transform: translateY(0); }
.js .reveal.is-visible { animation: reveal-accent 650ms var(--enter) both; }
@keyframes reveal-accent {
  from { opacity: .78; transform: translateY(1.1rem); }
  to { opacity: 1; transform: translateY(0); }
}

/* Services */
.services-layout { display: grid; gap: 2.5rem; margin-top: clamp(4rem, 8vw, 7rem); }
.service-rail { align-self: start; }
.service-rail-line { display: block; width: 100%; height: 1px; margin-bottom: 1rem; background: var(--ember); }
.service-rail-caption, .service-rail-current { margin: 0; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.service-rail-current { margin-top: .35rem; color: var(--ink); }
.service-rail .text-link { margin-top: 1.5rem; }
.service-list { display: grid; gap: clamp(3.5rem, 7vw, 7rem); }
.service-item { display: grid; gap: 1.35rem; }
.service-item:nth-child(even) .service-visual { order: -1; }
.service-visual { position: relative; aspect-ratio: 1.35 / 1; overflow: hidden; background: var(--bone); }
.service-visual picture, .service-visual img { width: 100%; height: 100%; }
.service-visual img { object-fit: cover; transition: transform 800ms var(--move); }
.service-item:hover .service-visual img { transform: scale(1.035); }
.service-meta { display: flex; align-items: baseline; gap: 1rem; color: var(--ember-dark); font-size: .73rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.service-number { font-size: .74rem; }
.service-title { max-width: 18ch; }
.service-copy { max-width: 49ch; margin: 0; color: var(--muted); text-wrap: pretty; }
.service-link { margin-top: .35rem; }

/* Project film */
.projects-section { background: var(--bone); max-width: none; }
.projects-section > * { width: min(100%, var(--max-width)); margin-inline: auto; }
.projects-intro { display: flex; align-items: end; justify-content: space-between; gap: 2rem; }
.projects-intro .text-link { flex: 0 0 auto; margin-bottom: .45rem; }
.project-film { display: grid; gap: clamp(2.5rem, 6vw, 6rem); margin-top: clamp(3rem, 7vw, 6.5rem); }
.project-item { display: grid; gap: 1.25rem; }
.project-item:nth-child(1) { width: min(100%, 67rem); }
.project-item:nth-child(2) { width: min(87%, 49rem); margin-left: auto; }
.project-item:nth-child(3) { width: min(90%, 59rem); margin-left: 10%; }
.project-visual { position: relative; aspect-ratio: 1.72 / 1; overflow: hidden; background: var(--paper); }
.project-item:nth-child(2) .project-visual { aspect-ratio: 1.18 / 1; }
.project-item:nth-child(3) .project-visual { aspect-ratio: 1.45 / 1; }
.project-visual picture, .project-visual img { width: 100%; height: 100%; }
.project-visual img { object-fit: cover; transition: transform 800ms var(--move); }
.project-item:hover img { transform: scale(1.035); }
.project-caption { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; border-top: 1px solid var(--line); padding-top: .8rem; }
.project-caption h3 { font-size: clamp(1.4rem, 2.5vw, 2.2rem); }
.project-category { color: var(--muted); font-size: .72rem; text-align: right; }

/* History */
.history-section { background: var(--ink); color: var(--white); }
.history-grid { display: grid; gap: 4rem; }
.section-label-light { color: var(--timber); }
.history-copy { max-width: 40rem; }
.history-copy h2 { max-width: 11ch; }
.history-copy > p:not(.section-label) { max-width: 42ch; margin: 1.6rem 0 0; color: rgba(255, 255, 255, .72); font-size: 1.1rem; line-height: 1.5; text-wrap: pretty; }
.history-copy .text-link { margin-top: 2rem; }
.history-line-wrap { position: relative; display: grid; gap: 2rem; padding-left: 1.6rem; }
.history-axis { position: absolute; inset: .25rem auto .25rem 0; width: 1px; background: var(--ember); transform-origin: top; }
.js .history-line-wrap[data-history-line] .history-axis { transform-origin: top; }
.js .history-line-wrap[data-history-line].is-visible .history-axis { animation: history-draw 900ms var(--enter) both; }
@keyframes history-draw {
  from { transform: scaleY(.82); }
  to { transform: scaleY(1); }
}
.history-item { position: relative; display: grid; gap: .45rem; padding-left: 1rem; }
.history-item::before { content: ""; position: absolute; top: .4rem; left: -1.72rem; width: .5rem; height: .5rem; background: var(--ember); }
.history-year { color: var(--ember); font-family: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif; font-size: clamp(2.2rem, 4vw, 4.5rem); font-weight: 700; letter-spacing: -.06em; line-height: .9; }
.history-item p { max-width: 37ch; margin: 0; color: rgba(255, 255, 255, .72); font-size: .95rem; line-height: 1.5; text-wrap: pretty; }

/* Contact conclusion */
.contact-section { display: grid; gap: 4rem; background: var(--paper); }
.contact-lead { max-width: 53rem; }
.contact-lead h2 { max-width: 11ch; }
.contact-lead > p:not(.section-label) { max-width: 42ch; margin: 1.6rem 0 0; color: var(--muted); font-size: 1.15rem; line-height: 1.5; text-wrap: pretty; }
.contact-lead .button { margin-top: 2rem; }
.location-grid { display: grid; gap: 1rem; }
.location-item { display: grid; grid-template-columns: 1fr auto; gap: 1.5rem; align-items: end; padding-top: 1rem; border-top: 1px solid var(--line); }
.location-item h3 { font-size: clamp(1.55rem, 2.5vw, 2.4rem); }
.location-address { margin: .45rem 0 0; color: var(--muted); font-style: normal; font-size: .92rem; line-height: 1.45; }
.location-link { color: var(--ember-dark); font-size: .78rem; font-weight: 700; text-decoration: none; white-space: nowrap; }

/* Footer */
.site-footer { background: var(--walnut); color: var(--white); }
.footer-top { display: grid; gap: 3rem; padding-block: 3.5rem; }
.footer-brand { display: grid; align-content: start; gap: 1.5rem; }
.footer-brand img { width: min(100%, 14rem); height: auto; object-fit: contain; object-position: left center; }
.footer-concept { margin: 0; color: var(--white); font-size: .74rem; line-height: 1.45; }
.footer-concept span { color: rgba(255, 255, 255, .62); }
.footer-nav-group { display: grid; align-content: start; gap: .45rem; }
.footer-heading { margin: 0 0 .35rem; color: var(--timber); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.footer-nav-group a { width: max-content; color: var(--white); font-size: .88rem; text-decoration: none; }
.footer-nav-group a:hover { color: var(--ember); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .8rem 1.5rem; padding-block: 1rem 1.3rem; border-top: 1px solid var(--line-light); color: rgba(255, 255, 255, .65); font-size: .7rem; }
.footer-bottom a { color: inherit; text-decoration: none; }
.footer-bottom a:hover { color: var(--white); }
.footer-bottom-links { display: flex; gap: 1rem; }

/* Phase placeholders deliberately stay quiet and are not part of the homepage gate. */
.placeholder-page { min-height: 100svh; background: var(--paper); }
.placeholder-main { width: min(100%, 62rem); margin-inline: auto; padding: 10rem var(--gutter) 8rem; }
.placeholder-main h1 { max-width: 14ch; font-size: clamp(2.75rem, 8vw, 7rem); }
.placeholder-main p { max-width: 55ch; margin-top: 1.5rem; color: var(--muted); font-size: 1.1rem; }
.placeholder-note { display: inline-block; margin-top: 1.5rem; padding: .65rem .8rem; border: 1px solid var(--ember-dark); color: var(--ember-dark); font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.placeholder-back { display: inline-flex; margin-top: 2rem; }

@media (min-width: 700px) {
  .hero { min-height: 100svh; }
  .hero-grid { min-height: 100svh; align-content: center; padding-top: 8rem; padding-bottom: 6rem; }
  .hero-copy { max-width: 68rem; }
  .hero-subline { margin-top: 1.8rem; }
  .hero-scroll { margin-top: 7rem; }
  .hero-index { position: absolute; right: var(--gutter); bottom: 6rem; display: grid; gap: .35rem; color: rgba(255, 255, 255, .58); font-size: .7rem; font-weight: 700; letter-spacing: .1em; }
  .hero-index span:first-child { color: var(--ember); }
  .trust-band { grid-template-columns: repeat(3, 1fr); gap: 2rem; }
  .trust-item { display: grid; gap: .45rem; justify-content: start; padding-block: 1.6rem; border-bottom: 0; }
  .trust-label { text-align: left; }
  .services-layout { grid-template-columns: minmax(9rem, 1fr) minmax(0, 3fr); gap: clamp(2rem, 6vw, 8rem); }
  .service-list { gap: clamp(3.5rem, 6vw, 6rem); }
  .service-item { grid-template-columns: minmax(0, 1.35fr) minmax(14rem, .65fr); gap: clamp(1.5rem, 3vw, 4rem); align-items: end; }
  .service-item:nth-child(even) .service-visual { order: 0; }
  .service-item:nth-child(even) { grid-template-columns: minmax(14rem, .65fr) minmax(0, 1.35fr); }
  .service-item:nth-child(even) .service-content { order: -1; }
  .service-visual { aspect-ratio: 1.35 / 1; }
  .history-grid { grid-template-columns: minmax(0, 1fr) minmax(20rem, .85fr); align-items: start; gap: clamp(3rem, 10vw, 11rem); }
  .history-line-wrap { padding-top: .45rem; }
  .contact-section { align-items: start; gap: clamp(3rem, 10vw, 11rem); }
  .location-grid { gap: 2rem; }
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr; gap: 2rem; }
}

@media (min-width: 980px) {
  body:has(.mobile-menu.is-open) { overflow: visible; }
  .desktop-nav { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .mobile-menu { display: none !important; }
  .hero-grid { padding-top: 10rem; }
  .hero-copy { padding-left: 8.33%; }
  .hero-scroll { margin-left: 8.33%; }
  .service-rail { position: sticky; top: 7rem; }
  .contact-section { grid-template-columns: minmax(0, 1.1fr) minmax(18rem, .9fr); }
}

@media (min-width: 1280px) {
  .header-inner { min-height: 5.1rem; }
  .hero-copy { padding-left: 8.33%; }
  .hero-scroll { margin-top: 8rem; }
  .service-rail { top: 8rem; }
  .footer-top { padding-block: 5rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .hero-media img { transform: scale(1.01); }
  .hero-copy, .hero-line, .reveal, .history-axis { transform: none; animation: none !important; }
  .service-rail { position: static; }
}

@media (max-width: 699px) {
  .desktop-nav { display: none; }
  .mobile-menu { margin-top: 0; }
  .site-header:not(.is-scrolled) .mobile-menu-inner { border-top: 1px solid var(--line-light); }
  .projects-intro { display: grid; align-items: start; }
  .project-item:nth-child(2), .project-item:nth-child(3) { width: 100%; margin-left: 0; }
  h1 { text-wrap: wrap; }
  .location-item { grid-template-columns: 1fr; gap: .6rem; align-items: start; }
  .location-link { justify-self: start; }
}

@media (max-width: 420px) {
  .header-inner { padding-inline: 1rem; }
  .hero-grid { padding-inline: 1rem; }
  .hero-copy { max-width: calc(100vw - 2rem); }
  h1 { max-width: none; font-size: clamp(3rem, 13vw, 4.25rem); letter-spacing: -.075em; }
  .hero-subline { max-width: 31ch; font-size: 1rem; }
  .hero-actions { gap: .9rem 1.1rem; }
  .hero-scroll { margin-top: 3.2rem; }
  .hero-line { right: 1rem; left: 1rem; }
  .page-gutter { padding-inline: 1rem; }
  .overview-hero h1 { max-width: 100%; font-size: clamp(2.7rem, 11.5vw, 3.05rem); letter-spacing: -.065em; }
}

@media (min-width: 700px) {
  .overview-hero { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); align-items: end; }
  .overview-hero__media { padding-bottom: 1.8rem; }
  .overview-hero__image { min-height: clamp(22rem, 38vw, 36rem); }
  .overview-index__intro { grid-template-columns: minmax(13rem, .72fr) minmax(0, 1.28fr); column-gap: clamp(2rem, 8vw, 8rem); align-items: end; max-width: none; }
  .overview-index__intro .section-label { grid-column: 1; align-self: start; }
  .overview-index__intro h2 { grid-column: 2; grid-row: 1 / span 2; }
  .overview-index__intro > p:last-child { grid-column: 2; }
  .overview-service { grid-template-columns: minmax(0, 1fr) minmax(14rem, .78fr); column-gap: clamp(2rem, 6vw, 7rem); align-items: end; }
  .overview-service__content { grid-column: 1; grid-row: 1; }
  .overview-service__media { grid-column: 2; grid-row: 1 / span 2; }
  .overview-service__link { grid-column: 1; grid-row: 2; }
  .overview-service:nth-child(even) { grid-template-columns: minmax(14rem, .78fr) minmax(0, 1fr); }
  .overview-service:nth-child(even) .overview-service__content { grid-column: 2; }
  .overview-service:nth-child(even) .overview-service__media { grid-column: 1; }
  .overview-service:nth-child(even) .overview-service__link { grid-column: 2; }
  .overview-service--wide .overview-service__media { aspect-ratio: 1.5 / 1; }
  .overview-service--tall .overview-service__media { aspect-ratio: .82 / 1; }
  .overview-service--detail .overview-service__media { aspect-ratio: 1 / 1; }
  .overview-conclusion__row { grid-template-columns: minmax(0, 1fr) minmax(16rem, .9fr); align-items: end; column-gap: clamp(2rem, 8vw, 8rem); }
}

@media (min-width: 1100px) {
  .overview-hero { gap: clamp(3rem, 6vw, 7rem); }
  .overview-service { grid-template-columns: minmax(0, .92fr) minmax(24rem, .8fr); }
  .overview-service:nth-child(even) { grid-template-columns: minmax(24rem, .8fr) minmax(0, .92fr); }
  .overview-service__title { font-size: clamp(3.6rem, 5.4vw, 6.6rem); }
}

@media (prefers-reduced-motion: reduce) {
  .overview-service__media img { transform: none !important; }
}

/* C1 Holzsystembau: konstruktives Detailraster, bewusst eigenständig zur Übersicht. */
.service-detail-page { background: var(--paper); color: var(--ink); }
.service-detail-hero { display: grid; gap: clamp(2rem, 5vw, 5rem); padding-top: clamp(7rem, 12vw, 11rem); padding-bottom: clamp(4rem, 8vw, 8rem); }
.service-detail-hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: end; }
.service-detail-back { margin-bottom: clamp(3rem, 7vw, 6rem); color: var(--muted); }
.service-detail-back::after { display: none; }
.service-detail-hero__copy .section-label { margin-bottom: 1.15rem; }
.service-detail-hero h1 { max-width: none; font-size: clamp(3.15rem, 7.6vw, 7.2rem); line-height: .91; }
.service-detail-hero__lead { max-width: 41ch; margin: 1.8rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.65vw, 1.28rem); line-height: 1.48; text-wrap: pretty; }
.service-detail-hero .button { margin-top: 2rem; }
.service-detail-hero__media { position: relative; min-width: 0; margin: 0; isolation: isolate; }
.service-detail-hero__media::before { content: ""; position: absolute; z-index: -1; top: clamp(1rem, 2vw, 2.25rem); right: clamp(-2rem, -2vw, -.75rem); bottom: clamp(-2rem, -2vw, -.75rem); left: clamp(1rem, 2vw, 2.25rem); background: var(--bone); }
.service-detail-hero__media picture, .service-detail-hero__media img { display: block; width: 100%; height: 100%; }
.service-detail-hero__media img { aspect-ratio: 1.18 / 1; object-fit: cover; object-position: 50% 53%; }
.service-detail-hero__media figcaption, .service-detail-block__media figcaption { margin-top: .75rem; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.service-detail-facts { display: grid; gap: 2rem; padding-top: clamp(2.5rem, 5vw, 4rem); padding-bottom: clamp(3.5rem, 8vw, 7rem); border-top: 1px solid var(--line); }
.service-detail-facts__label { align-self: start; }
.service-detail-facts ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.service-detail-facts li { display: grid; grid-template-columns: 1.2rem minmax(0, 1fr); gap: .8rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--line); font-size: clamp(.95rem, 1.35vw, 1.08rem); line-height: 1.35; }
.service-detail-facts li:last-child { border-bottom: 1px solid var(--line); }
.service-detail-fact-mark { width: .55rem; height: .55rem; margin-top: .32rem; background: var(--ember); }
.service-detail-story { padding-bottom: clamp(4rem, 9vw, 9rem); }
.service-detail-block { position: relative; display: grid; gap: clamp(2rem, 6vw, 7rem); padding-top: clamp(4rem, 9vw, 9rem); border-top: 1px solid var(--line); }
.service-detail-block + .service-detail-block { margin-top: clamp(4rem, 9vw, 9rem); }
.service-detail-block__copy { min-width: 0; align-self: center; }
.service-detail-block__copy h2 { max-width: 12ch; font-size: clamp(2.4rem, 5vw, 5.2rem); }
.service-detail-block__copy p:not(.service-detail-kicker) { max-width: 40ch; margin: 1.4rem 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.55; text-wrap: pretty; }
.service-detail-kicker { margin: 0 0 1rem; color: var(--ember-dark); font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.service-detail-block__media { position: relative; min-width: 0; }
.service-detail-block__media::before { content: ""; position: absolute; z-index: -1; right: 1rem; bottom: -1rem; left: -1rem; height: 35%; background: var(--bone); }
.service-detail-block__media picture, .service-detail-block__media img { display: block; width: 100%; height: 100%; }
.service-detail-block__media img { aspect-ratio: 1.2 / 1; object-fit: cover; }
.service-detail-block__media--system img { object-position: 50% 50%; }
.service-detail-block__media--elements img { object-position: 50% 58%; }
.service-detail-block--sequence { grid-template-columns: 1fr; }
.service-detail-block__sequence-rule { width: min(100%, 28rem); height: 1px; background: var(--ember); }
.service-detail-sequence { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(1rem, 3vw, 3rem); align-items: center; min-height: 3rem; margin: 0; padding: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.service-detail-sequence span { display: block; width: .6rem; height: .6rem; background: var(--ember); }
.service-detail-cta { display: grid; gap: 2rem; padding-top: clamp(3.5rem, 7vw, 7rem); padding-bottom: clamp(4rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.service-detail-cta h2 { max-width: 12ch; font-size: clamp(2.6rem, 5.4vw, 5.5rem); }
.service-detail-cta p:not(.section-label) { max-width: 36ch; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.service-detail-cta .button { margin-top: 1.6rem; }

@media (min-width: 700px) {
  .service-detail-hero { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1rem, 1.7vw, 1.5rem); row-gap: 2rem; align-items: end; }
  .service-detail-hero__copy { grid-column: 1 / span 8; min-width: 0; }
  .service-detail-hero h1 { font-size: clamp(2.75rem, 5.8vw, 4rem); }
  .service-detail-hero__media { grid-column: 9 / -1; margin-right: 0; }
  .service-detail-facts { grid-template-columns: minmax(13rem, .72fr) minmax(0, 1.28fr); column-gap: clamp(2rem, 8vw, 8rem); align-items: start; }
  .service-detail-facts__label { padding-top: .2rem; }
  .service-detail-block--system { grid-template-columns: minmax(0, .82fr) minmax(14rem, .58fr); align-items: center; }
  .service-detail-block--system .service-detail-block__media { grid-column: 2; grid-row: 1; }
  .service-detail-block--system .service-detail-block__copy { grid-column: 1; grid-row: 1; }
  .service-detail-block--elements { grid-template-columns: minmax(14rem, .58fr) minmax(0, .82fr); align-items: center; }
  .service-detail-block--elements .service-detail-block__copy { grid-column: 2; grid-row: 1; }
  .service-detail-block--elements .service-detail-block__media { grid-column: 1; grid-row: 1; }
  .service-detail-block--sequence { grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); column-gap: clamp(2rem, 8vw, 8rem); align-items: start; }
  .service-detail-block--sequence .service-detail-block__sequence-rule { grid-column: 1 / -1; }
  .service-detail-block--sequence .service-detail-sequence { grid-column: 2; grid-row: 2; }
  .service-detail-block--sequence .service-detail-block__copy { grid-column: 1; grid-row: 2; }
  .service-detail-cta { grid-template-columns: minmax(0, .9fr) minmax(16rem, .7fr); column-gap: clamp(2rem, 8vw, 8rem); align-items: end; }
}

@media (min-width: 1100px) {
  .service-detail-hero h1 { font-size: clamp(3.4rem, 5.25vw, 6.2rem); }
  .service-detail-hero__media img { aspect-ratio: 1.35 / 1; }
  .service-detail-block--system { grid-template-columns: minmax(0, .9fr) minmax(22rem, .62fr); }
  .service-detail-block--elements { grid-template-columns: minmax(22rem, .62fr) minmax(0, .9fr); }
}

@media (max-width: 699px) {
  .service-detail-hero { padding-top: 6.5rem; }
  .service-detail-hero h1 { font-size: clamp(2rem, 8.2vw, 2.55rem); line-height: .98; }
  .service-detail-hero__lead { max-width: 36ch; }
  .service-detail-hero__media { margin-top: 1rem; }
  .service-detail-hero__media::before { right: -.35rem; bottom: -.7rem; left: .7rem; }
  .service-detail-block__media::before { right: .65rem; bottom: -.7rem; left: -.65rem; }
  .service-detail-block__media img { aspect-ratio: 1.16 / 1; }
  .service-detail-block--sequence { gap: 2rem; }
  .service-detail-sequence { min-height: 2.75rem; }
  .service-detail-cta { padding-top: 3.5rem; }
}

@media (max-width: 420px) {
  .service-detail-hero, .service-detail-facts, .service-detail-story, .service-detail-cta { padding-inline: 1rem; }
  .service-detail-hero h1 { font-size: clamp(2rem, 8.2vw, 2.55rem); }
  .service-detail-hero__lead { font-size: 1rem; }
  .service-detail-sequence { gap: 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .service-detail-page *, .service-detail-page *::before, .service-detail-page *::after { animation: none !important; transition: none !important; }
}

/* C2 Terrassen & Parkett: warm editorial material study, not a construction grid. */
.material-detail-page { background: #f5efe5; color: var(--ink); }
.material-detail-page .site-header.site-header--paper { background: rgba(245, 239, 229, .95); }
.material-hero { display: grid; gap: clamp(2.5rem, 7vw, 7rem); padding-top: clamp(7.5rem, 13vw, 12rem); padding-bottom: clamp(4rem, 8vw, 8rem); }
.material-hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: end; max-width: 42rem; }
.material-hero__back { margin-bottom: clamp(3rem, 7vw, 6.5rem); color: var(--muted); }
.material-hero__back::after { display: none; }
.material-hero__copy .section-label { margin-bottom: 1.1rem; color: var(--ember-dark); }
.material-hero h1 { max-width: 13ch; font-size: clamp(3rem, 7vw, 7rem); line-height: .9; }
.material-hero__lead { max-width: 42ch; margin: 1.8rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.7vw, 1.3rem); line-height: 1.48; text-wrap: pretty; }
.material-hero .button { margin-top: 2rem; }
.material-hero__media { position: relative; min-width: 0; margin: 0; padding: 0 0 clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem); }
.material-hero__media::before { content: ""; position: absolute; z-index: 0; inset: 0 clamp(1.5rem, 3vw, 3rem) clamp(1.5rem, 3vw, 3rem) 0; background: #dfc8a9; }
.material-hero__media picture, .material-hero__media img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.material-hero__media img { aspect-ratio: 1.33 / 1; object-fit: cover; object-position: 50% 52%; }
.material-hero__media figcaption, .material-panel figcaption { position: relative; z-index: 1; margin-top: .75rem; color: var(--muted); font-size: .68rem; line-height: 1.35; }
.material-diptych { padding-bottom: clamp(5rem, 11vw, 11rem); }
.material-panel { display: grid; gap: clamp(2rem, 6vw, 7rem); padding-top: clamp(3.5rem, 8vw, 8rem); border-top: 1px solid rgba(84, 48, 25, .25); }
.material-panel + .material-panel { margin-top: clamp(3.5rem, 8vw, 8rem); }
.material-panel__copy { align-self: center; min-width: 0; }
.material-panel__copy .section-label { margin-bottom: 1rem; }
.material-panel__copy h2 { max-width: 12ch; font-size: clamp(2.45rem, 5vw, 5.5rem); line-height: .92; }
.material-panel__copy p:not(.section-label) { max-width: 39ch; margin: 1.45rem 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.55; text-wrap: pretty; }
.material-panel__media { position: relative; min-width: 0; margin: 0; }
.material-panel__media::before { content: ""; position: absolute; z-index: 0; right: -1rem; bottom: -1rem; left: 1rem; height: 58%; background: rgba(223, 200, 169, .6); }
.material-panel__media--inside::before { right: 1rem; left: -1rem; background: rgba(255, 255, 255, .58); }
.material-panel__media picture, .material-panel__media img { position: relative; z-index: 1; display: block; width: 100%; height: 100%; }
.material-panel__media img { aspect-ratio: 1.28 / 1; object-fit: cover; }
.material-panel__media--outside img { object-position: 50% 56%; }
.material-panel__media--inside img { object-position: 50% 50%; }
.material-decision { padding-top: clamp(3.5rem, 8vw, 8rem); padding-bottom: clamp(4.5rem, 9vw, 9rem); border-top: 1px solid rgba(84, 48, 25, .25); }
.material-decision__layout { display: grid; gap: clamp(2.5rem, 7vw, 7rem); }
.material-decision__copy { max-width: 47rem; }
.material-decision__copy h2 { max-width: 13ch; font-size: clamp(2.7rem, 5.5vw, 6rem); }
.material-decision__copy > p:not(.section-label) { max-width: 43ch; margin: 1.5rem 0 0; color: var(--muted); font-size: 1.08rem; line-height: 1.55; text-wrap: pretty; }
.material-index { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; border-top: 1px solid rgba(84, 48, 25, .25); }
.material-index li { display: grid; grid-template-columns: 2.3rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem 0; border-bottom: 1px solid rgba(84, 48, 25, .25); font-size: clamp(.95rem, 1.35vw, 1.1rem); line-height: 1.4; }
.material-index__number { color: var(--ember-dark); font-size: .68rem; font-weight: 700; letter-spacing: .1em; }
.material-cta { display: grid; gap: 2rem; padding-top: clamp(3.5rem, 7vw, 7rem); padding-bottom: clamp(4rem, 8vw, 8rem); border-top: 1px solid rgba(84, 48, 25, .25); }
.material-cta > div:first-child { min-width: 0; }
.material-cta h2 { max-width: 12ch; font-size: clamp(2.5rem, 5vw, 5.3rem); }
.material-cta__copy p { max-width: 36ch; margin: 0; color: var(--muted); font-size: 1.05rem; line-height: 1.5; }
.material-cta__copy .button { margin-top: 1.6rem; }

@media (min-width: 700px) {
  .material-hero { grid-template-columns: minmax(0, .92fr) minmax(20rem, .88fr); align-items: end; }
  .material-hero__media { margin-right: clamp(0rem, 3vw, 3rem); }
  .material-panel { grid-template-columns: minmax(0, .86fr) minmax(15rem, .7fr); align-items: center; }
  .material-panel--inside { grid-template-columns: minmax(15rem, .7fr) minmax(0, .86fr); }
  .material-panel--outside .material-panel__copy { grid-column: 1; grid-row: 1; }
  .material-panel--outside .material-panel__media { grid-column: 2; grid-row: 1; }
  .material-panel--inside .material-panel__copy { grid-column: 2; grid-row: 1; }
  .material-panel--inside .material-panel__media { grid-column: 1; grid-row: 1; }
  .material-decision__layout { grid-template-columns: minmax(0, .85fr) minmax(18rem, .75fr); align-items: end; }
  .material-cta { grid-template-columns: minmax(0, .9fr) minmax(16rem, .7fr); align-items: end; gap: clamp(2rem, 8vw, 8rem); }
}

@media (min-width: 700px) and (max-width: 899px) {
  .material-hero { grid-template-columns: 1fr; }
  .material-hero__copy { max-width: 45rem; }
  .material-hero h1 { max-width: 15ch; font-size: clamp(3rem, 7vw, 4.2rem); }
  .material-hero__media { width: min(100%, 35rem); margin-right: 0; margin-left: auto; }
}

@media (min-width: 900px) {
  .material-hero { grid-template-columns: minmax(0, 1.12fr) minmax(18rem, .78fr); gap: clamp(2rem, 4vw, 4rem); }
  .material-hero__copy { max-width: none; }
  .material-hero h1 { max-width: none; font-size: clamp(3rem, 5.4vw, 4.9rem); }
}

@media (min-width: 1100px) {
  .material-panel { grid-template-columns: minmax(0, .84fr) minmax(25rem, .7fr); }
  .material-panel--inside { grid-template-columns: minmax(25rem, .7fr) minmax(0, .84fr); }
}

@media (max-width: 699px) {
  .material-hero { padding-top: 6.5rem; }
  .material-hero h1 { max-width: none; font-size: clamp(2rem, 8.8vw, 2.65rem); line-height: .94; }
  .material-hero__lead { max-width: 36ch; }
  .material-hero__media { margin-top: 1rem; padding-left: .7rem; padding-bottom: .9rem; }
  .material-hero__media::before { right: .7rem; bottom: .9rem; }
  .material-panel__media::before { right: .65rem; bottom: -.7rem; left: .65rem; }
  .material-panel__media--inside::before { right: .65rem; left: .65rem; }
  .material-panel__media img { aspect-ratio: 1.18 / 1; }
  .material-decision__layout { gap: 2.5rem; }
}

@media (max-width: 420px) {
  .material-hero, .material-diptych, .material-decision, .material-cta { padding-inline: 1rem; }
  .material-hero h1 { font-size: clamp(2rem, 8.8vw, 2.65rem); }
  .material-hero__lead { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .material-detail-page *, .material-detail-page *::before, .material-detail-page *::after { animation: none !important; transition: none !important; }
}

/* C3 Renovation & Innenausbau: existing layers, restrained lines, and a vertical stair axis. */
.renovation-detail-page { background: #f2eee6; color: var(--ink); }
.renovation-detail-page .site-header.site-header--paper { background: rgba(242, 238, 230, .95); }
.renovation-hero { display: grid; gap: clamp(2.5rem, 7vw, 7rem); padding-top: clamp(7rem, 13vw, 12rem); padding-bottom: clamp(4rem, 9vw, 9rem); }
.renovation-hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: end; min-width: 0; }
.renovation-hero__back { margin-bottom: clamp(3rem, 7vw, 6.5rem); color: var(--muted); }
.renovation-hero__back::after { display: none; }
.renovation-hero__copy .section-label { margin-bottom: 1.1rem; }
.renovation-hero h1 { max-width: 25ch; font-size: clamp(2rem, 5.2vw, 6.4rem); line-height: .93; }
.renovation-hero__lead { max-width: 55ch; margin: 1.8rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.25rem); line-height: 1.5; text-wrap: pretty; }
.renovation-hero .button { margin-top: 2rem; }
.renovation-hero__media { position: relative; z-index: 0; align-self: end; justify-self: end; width: min(100%, 23rem); margin: 0; padding: 1rem 0 1.4rem 1rem; }
.renovation-hero__media::before { content: ""; position: absolute; z-index: -1; inset: 1.8rem 0 0 0; background: #d8cbb8; }
.renovation-hero__media picture, .renovation-hero__media img { display: block; width: 100%; height: auto; }
.renovation-hero__media img { max-width: 100%; }

.renovation-layer { position: relative; display: grid; gap: clamp(2rem, 7vw, 7rem); padding-top: clamp(4rem, 9vw, 9rem); padding-bottom: clamp(4rem, 9vw, 9rem); border-top: 1px solid var(--line); isolation: isolate; }
.renovation-layer::before { content: ""; position: absolute; z-index: -1; top: 2.2rem; right: 12%; bottom: 1.5rem; left: 0; background: rgba(218, 207, 191, .62); }
.renovation-layer > * { min-width: 0; }
.renovation-layer__media { position: relative; align-self: center; min-width: 0; margin: 0; }
.renovation-layer__media picture, .renovation-layer__media img { display: block; width: 100%; height: auto; }
.renovation-layer__media img { max-width: 37.5rem; }
.renovation-layer__copy { align-self: center; min-width: 0; }
.renovation-layer__copy h2 { max-width: 13ch; font-size: clamp(2.25rem, 5.2vw, 5.6rem); line-height: .93; }
.renovation-layer__copy p { max-width: 43ch; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.45vw, 1.16rem); line-height: 1.55; text-wrap: pretty; }
.renovation-layer--insulation { padding-inline-start: clamp(2rem, 13vw, 13rem); }
.renovation-layer--insulation::before { top: 1.5rem; right: 0; bottom: 2.2rem; left: 10%; background: rgba(235, 229, 219, .9); }
.renovation-layer--insulation .renovation-layer__copy { max-width: 51rem; }
.renovation-layer--craft { padding-inline-end: clamp(1rem, 5vw, 5rem); }
.renovation-layer--craft::before { top: 2.2rem; right: 0; bottom: 1.4rem; left: 19%; background: rgba(225, 214, 198, .62); }
.renovation-layer--craft .renovation-layer__media { justify-self: end; width: min(100%, 42rem); }
.renovation-layer--craft .renovation-layer__copy { padding-inline-start: clamp(0rem, 4vw, 4rem); }

.renovation-index { display: grid; gap: 2rem; padding-top: clamp(3rem, 7vw, 7rem); padding-bottom: clamp(3.5rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.renovation-index__line, .renovation-cta__line { display: block; width: min(100%, 18rem); height: 1px; background: var(--ember); }
.renovation-index ul { display: grid; gap: 0; max-width: 60rem; margin: 0; padding: 0; list-style: none; }
.renovation-index li { display: grid; grid-template-columns: .7rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1rem 0; border-top: 1px solid var(--line); font-size: clamp(.95rem, 1.35vw, 1.08rem); line-height: 1.4; }
.renovation-index li:last-child { border-bottom: 1px solid var(--line); }
.renovation-index__mark { width: .42rem; height: .42rem; margin-top: .38rem; background: var(--ember); }
.renovation-cta { display: grid; gap: 2rem; padding-top: clamp(3.5rem, 7vw, 7rem); padding-bottom: clamp(4rem, 8vw, 8rem); border-top: 1px solid var(--line); }
.renovation-cta .button { justify-self: start; }

@media (min-width: 700px) {
  .renovation-hero { grid-template-columns: minmax(0, 1fr) minmax(13rem, .42fr); align-items: end; }
  .renovation-hero__media { width: min(100%, 23rem); }
  .renovation-layer--existing { grid-template-columns: minmax(0, .72fr) minmax(0, 1fr); align-items: center; }
  .renovation-layer--existing .renovation-layer__media { width: min(100%, 37.5rem); }
  .renovation-layer--insulation .renovation-layer__copy { padding-inline-end: clamp(1rem, 7vw, 7rem); }
  .renovation-layer--craft { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; }
  .renovation-index { grid-template-columns: minmax(11rem, .6fr) minmax(0, 1.4fr); column-gap: clamp(2rem, 8vw, 8rem); align-items: start; }
  .renovation-cta { grid-template-columns: minmax(11rem, .6fr) minmax(0, 1.4fr); column-gap: clamp(2rem, 8vw, 8rem); align-items: center; }
}

@media (min-width: 1100px) {
  .renovation-hero { grid-template-columns: minmax(0, 1fr) minmax(19rem, .42fr); }
  .renovation-hero h1 { font-size: clamp(3.2rem, 4.4vw, 5.4rem); }
  .renovation-layer--existing { grid-template-columns: minmax(24rem, .72fr) minmax(0, 1fr); }
  .renovation-layer--craft { grid-template-columns: minmax(0, .88fr) minmax(27rem, 1.12fr); }
}

@media (min-width: 800px) and (max-width: 1099px) {
  .renovation-hero h1 { font-size: clamp(2.45rem, 4.5vw, 3.25rem); }
}

@media (min-width: 700px) and (max-width: 799px) {
  .renovation-hero h1 { font-size: 2.375rem; }
}

@media (max-width: 699px) {
  .renovation-hero { padding-top: 6.5rem; }
  .renovation-hero h1 { max-width: none; font-size: clamp(1.82rem, 7.3vw, 2.7rem); line-height: .96; }
  .renovation-hero__lead { max-width: 36ch; }
  .renovation-hero__media { width: min(100%, 19rem); margin-top: 1rem; }
  .renovation-layer--insulation { padding-inline-start: var(--gutter); }
  .renovation-layer--craft { padding-inline-end: var(--gutter); }
  .renovation-layer--craft .renovation-layer__copy { padding-inline-start: 0; }
  .renovation-index, .renovation-cta { gap: 1.5rem; }
}

@media (max-width: 420px) {
  .renovation-hero, .renovation-layer, .renovation-index, .renovation-cta { padding-inline: 1rem; }
  .renovation-hero h1 { font-size: clamp(1.82rem, 7.3vw, 2.7rem); }
  .renovation-hero__lead { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .renovation-detail-page *, .renovation-detail-page *::before, .renovation-detail-page *::after { animation: none !important; transition: none !important; }
}

/* C4 Dachaufbauten: Dachlinie, Öffnung und versetzter Leserythmus. */
.roof-detail-page { background: var(--paper); color: var(--ink); }
.roof-detail-page .site-header.site-header--paper { background: rgba(251, 249, 244, .95); }
.roof-hero { display: grid; gap: clamp(2.5rem, 6vw, 7rem); padding-top: clamp(7rem, 13vw, 12rem); padding-bottom: clamp(4.5rem, 9vw, 9rem); }
.roof-hero__copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: end; min-width: 0; }
.roof-hero__back { margin-bottom: clamp(3rem, 7vw, 6rem); color: var(--muted); }
.roof-hero__back::after { display: none; }
.roof-hero__copy .section-label { margin-bottom: 1.1rem; }
.roof-hero h1 { max-width: 20ch; font-size: clamp(2.8rem, 3.8vw, 4.25rem); line-height: .94; letter-spacing: -.06em; }
.roof-hero__lead { max-width: 46ch; margin: 1.8rem 0 0; color: var(--muted); font-size: clamp(1.05rem, 1.55vw, 1.25rem); line-height: 1.5; text-wrap: pretty; }
.roof-hero .button { margin-top: 2rem; }
.roof-hero__media { position: relative; min-width: 0; margin: 0; padding-bottom: clamp(1.1rem, 2.2vw, 2.2rem); }
.roof-hero__media::before { content: ""; position: absolute; z-index: 0; right: 0; bottom: 0; left: clamp(1rem, 2.5vw, 2.75rem); height: 42%; background: var(--bone); }
.roof-hero__media picture, .roof-hero__media img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.roof-hero__media img { aspect-ratio: 1.778 / 1; object-fit: cover; object-position: 50% 54%; }

.roof-feature, .roof-coordination, .roof-scope, .roof-cta { border-top: 1px solid var(--line); }
.roof-feature { display: grid; gap: clamp(2.5rem, 8vw, 9rem); padding-top: clamp(4rem, 9vw, 9rem); padding-bottom: clamp(4.5rem, 10vw, 10rem); }
.roof-feature > *, .roof-coordination > *, .roof-scope > *, .roof-cta > * { min-width: 0; }
.roof-feature__media { position: relative; min-width: 0; margin: 0; padding-bottom: 1rem; }
.roof-feature__media::before { content: ""; position: absolute; z-index: 0; right: clamp(-1rem, -2vw, -.5rem); bottom: 0; left: clamp(1rem, 2vw, 2rem); height: 32%; background: rgba(201, 167, 122, .34); }
.roof-feature__media picture, .roof-feature__media img { position: relative; z-index: 1; display: block; width: 100%; height: auto; }
.roof-feature__media img { aspect-ratio: 1.504 / 1; object-fit: cover; object-position: 50% 54%; }
.roof-feature__copy { align-self: center; min-width: 0; }
.roof-feature__copy h2, .roof-coordination__copy h2 { max-width: 15ch; font-size: clamp(2.25rem, 4.9vw, 5.5rem); line-height: .94; letter-spacing: -.055em; }
.roof-feature__copy p, .roof-coordination__copy p { max-width: 43ch; margin: 1.5rem 0 0; color: var(--muted); font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.55; text-wrap: pretty; }
.roof-coordination { padding-top: clamp(4.5rem, 11vw, 11rem); padding-bottom: clamp(4.5rem, 11vw, 11rem); }
.roof-coordination__copy { max-width: 58rem; padding-left: clamp(0rem, 8vw, 8rem); }
.roof-coordination__copy::before { content: ""; display: block; width: min(100%, 25rem); height: 1px; margin-bottom: clamp(2.5rem, 5vw, 5rem); background: var(--ember); }
.roof-feature--daylight { align-items: center; padding-top: clamp(4rem, 9vw, 9rem); }
.roof-feature--daylight .roof-feature__media { width: min(100%, 18rem); justify-self: end; padding-bottom: 0; }
.roof-feature--daylight .roof-feature__media::before { right: -.7rem; bottom: -.7rem; left: 1.2rem; height: 46%; background: rgba(201, 167, 122, .26); }
.roof-feature--daylight .roof-feature__media img { aspect-ratio: 1.338 / 1; object-fit: cover; object-position: 50% 52%; }
.roof-scope { padding-top: clamp(3.5rem, 7vw, 7rem); padding-bottom: clamp(3.5rem, 8vw, 8rem); }
.roof-scope ul { display: grid; gap: 0; margin: 0; padding: 0; list-style: none; }
.roof-scope li { display: grid; grid-template-columns: .65rem minmax(0, 1fr); gap: 1rem; align-items: start; padding: 1.1rem 0; border-bottom: 1px solid var(--line); font-size: clamp(.95rem, 1.35vw, 1.1rem); line-height: 1.4; }
.roof-scope li:first-child { border-top: 1px solid var(--line); }
.roof-scope__mark { width: .42rem; height: .42rem; margin-top: .38rem; background: var(--ember); }
.roof-cta { display: flex; align-items: center; justify-content: flex-start; padding-top: clamp(3.5rem, 7vw, 7rem); padding-bottom: clamp(4.5rem, 9vw, 9rem); }

@media (min-width: 700px) {
  .roof-feature--wide { grid-template-columns: minmax(0, 1.18fr) minmax(16rem, .72fr); align-items: center; }
  .roof-feature--wide .roof-feature__media { grid-column: 1; grid-row: 1; }
  .roof-feature--wide .roof-feature__copy { grid-column: 2; grid-row: 1; }
  .roof-feature--daylight { grid-template-columns: minmax(0, 1fr) minmax(12rem, 18rem); }
  .roof-feature--daylight .roof-feature__copy { grid-column: 1; grid-row: 1; }
  .roof-feature--daylight .roof-feature__media { grid-column: 2; grid-row: 1; }
  .roof-scope ul { grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: clamp(1.2rem, 3vw, 3rem); }
  .roof-scope li { display: block; min-height: 7rem; padding: 1.2rem 0 0; border-top: 0; border-bottom: 0; }
  .roof-scope li:first-child { border-top: 0; }
  .roof-scope__mark { display: block; margin: 0 0 1.3rem; }
}

@media (min-width: 820px) {
  .roof-hero { grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr); align-items: end; }
  .roof-hero__media { align-self: end; }
}

@media (min-width: 820px) and (max-width: 1099px) {
  .roof-hero h1 { max-width: 20ch; font-size: clamp(2.15rem, 3.4vw, 3.75rem); }
  .roof-hero__lead { max-width: 40ch; }
}

@media (min-width: 1100px) {
  .roof-hero { gap: clamp(3rem, 7vw, 8rem); }
  .roof-hero h1 { max-width: 20ch; }
}

@media (max-width: 699px) {
  .roof-hero { padding-top: 6.5rem; }
  .roof-hero h1 { max-width: none; font-size: clamp(2rem, 8.5vw, 2.75rem); line-height: .97; }
  .roof-hero__lead { max-width: 36ch; }
  .roof-hero__media { margin-top: 1rem; }
  .roof-feature--daylight .roof-feature__media { width: min(100%, 14rem); justify-self: start; }
  .roof-coordination__copy { padding-left: 0; }
  .roof-scope li { padding-block: .95rem; }
}

@media (max-width: 420px) {
  .roof-hero, .roof-feature, .roof-coordination, .roof-scope, .roof-cta { padding-inline: 1rem; }
  .roof-hero h1 { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .roof-hero__lead { font-size: 1rem; }
}

@media (prefers-reduced-motion: reduce) {
  .roof-detail-page *, .roof-detail-page *::before, .roof-detail-page *::after { animation: none !important; transition: none !important; }
}
