@font-face {
  font-family: "Instrument Sans";
  src: url("instrument-sans.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --white: #fff;
  --surface: #f2f3ed;
  --ink: #20221b;
  --deep: #25291e;
  --olive: #515331;
  --accent: #d4dbac;
  --muted: #52554b;
  --line: #d7d9d0;
  --font: "Instrument Sans", "Segoe UI", sans-serif;
  --ui-transition: 180ms ease-in-out;
  background: var(--white);
  color: var(--ink);
  font: 16px/1.55 var(--font);
}
* { box-sizing: border-box; }
body, figure, blockquote, h1, h2, h3, p { margin: 0; }
img { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: .2em; }
button { font: inherit; }
.arrow-icon { display: inline-block; flex: none; vertical-align: -.15em; }
:where(#hauptnav > a, .nav-services > summary, .nav-group a, .button, .text-link, .row, .menu, .mobile-call, dialog button) {
  transition: background-color var(--ui-transition), border-color var(--ui-transition), color var(--ui-transition);
}
:focus-visible { outline: 2px solid #737849; outline-offset: 5px; }
h1, h2, h3 { line-height: 1.06; font-weight: 600; text-wrap: balance; overflow-wrap: break-word; }
h1, h2 { letter-spacing: -.038em; }
h1 { font-size: clamp(2.75rem, 5.8vw, 5.75rem); }
h2 { font-size: clamp(2.2rem, 4.1vw, 4rem); }
h3 { font-size: clamp(1.13rem, 1.65vw, 1.4rem); }
p { text-wrap: pretty; }
p + p, h1 + p, h2 + p, h3 + p { margin-top: .95rem; }
.wrap { width: min(100% - clamp(2.25rem, 9vw, 9rem), 1320px); margin-inline: auto; }
.skip { position: absolute; top: .5rem; left: .5rem; z-index: 5; padding: .6rem; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }

main { scroll-margin-top: 90px; }
.site-header { position: sticky; top: 0; z-index: 4; background: var(--white); border-bottom: 1px solid var(--line); }
.topbar { position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 80px; gap: 1.4rem; }
.brand { width: 147px; display: block; }
.brand img { width: 147px; height: auto; }
#hauptnav { display: flex; align-items: center; gap: clamp(1.3rem, 3vw, 3rem); }
#hauptnav > a:not(.button), .nav-services > summary { display: flex; align-items: center; min-height: 80px; font-size: .98rem; font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
#hauptnav > a:hover, #hauptnav > a[aria-current], .nav-services[data-active] > summary, .nav-services[open] > summary, .nav-services > summary:hover { border-bottom-color: var(--olive); }
.nav-services > summary { list-style: none; gap: .55rem; cursor: pointer; }
.nav-services > summary::-webkit-details-marker { display: none; }
.chevron { width: .43rem; height: .43rem; margin-top: -.2rem; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }
.nav-services[open] .chevron { margin-top: .2rem; transform: rotate(225deg); }
.nav-panel { position: absolute; top: 100%; left: 50%; transform: translateX(-50%); width: min(620px, 100%); display: grid; grid-template-columns: 1.35fr 1fr; gap: 1.5rem; background: var(--white); padding: 1.4rem 1.6rem 1.5rem; border: 1px solid var(--line); box-shadow: 0 8px 8px #20221b14; }
.nav-services:not([open]) .nav-panel { display: none; }
.nav-group + .nav-group { border-left: 1px solid var(--line); padding-left: 1.5rem; }
.nav-group p { font-weight: 700; }
.nav-group ul { list-style: none; margin: .45rem 0 0; padding: 0; }
.nav-group a { display: block; padding: .38rem .48rem; text-decoration: none; }
.nav-group a:hover, .nav-group a[aria-current] { background: var(--surface); text-decoration: underline; }
.nav-cta { justify-self: end; white-space: nowrap; }
.mobile-controls, #hauptnav .nav-mobile-cta { display: none; }
.menu { align-items: center; gap: .55rem; background: var(--deep); color: var(--white); border: 1px solid var(--deep); padding: .45rem .65rem; min-height: 44px; cursor: pointer; }
.menu-icon { display: block; width: .95rem; height: .65rem; border-block: 1.5px solid currentColor; }
.menu:hover, dialog button:hover { background-color: var(--olive); border-color: var(--olive); }
.mobile-call:hover { color: var(--olive); }

.home-hero { display: grid; position: relative; isolation: isolate; min-height: clamp(550px, 67vw, 690px); color: var(--white); background: var(--deep); }
.hero-image, .hero-image img, .home-hero::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-image { z-index: -2; }
.hero-image img { object-fit: cover; object-position: center 53%; }
.home-hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, #171912ed 0%, #181b14ba 45%, #181b1459 75%, #181b143a 100%); }
.hero-copy { align-self: end; padding-block: clamp(5rem, 12vw, 10rem) clamp(4rem, 8vw, 6.25rem); }
.hero-copy h1 { max-width: 18ch; }
.hero-copy h1 span { color: var(--accent); }
.hero-copy h1 + p { max-width: 49ch; margin-top: 1.5rem; font-size: clamp(1.07rem, 1.6vw, 1.27rem); line-height: 1.5; }
.actions { display: flex; flex-wrap: wrap; gap: .7rem; align-items: center; margin-top: 1.75rem; }
.button, .text-link { display: inline-flex; gap: .8rem; align-items: center; width: fit-content; font-weight: 650; font-size: .94rem; }
.button { text-decoration: none; padding: .72rem 1.06rem; min-height: 46px; background: var(--olive); color: var(--white); border: 1px solid transparent; }
.button:hover { background: var(--deep); }
.home-hero .button, .button-light { background: var(--accent); color: var(--ink); }
.home-hero .button:hover, .button-light:hover { background: #e5ebc9; }
.home-hero .button-outline { color: var(--white); border-color: #ffffffa8; background: #191c15a3; }
.home-hero .button-outline:hover { background: var(--deep); }
.text-link { text-decoration: none; border-bottom: 1px solid currentColor; padding-block: .2rem; }
.text-link:hover, .row:hover { color: var(--olive); }

.section { padding-block: clamp(3.6rem, 7.5vw, 7rem); }
.services-band { background: var(--white); }
.repair-band { background: var(--surface); }
.editorial, .detail-layout, .contact-grid { display: grid; grid-template-columns: minmax(0, 43fr) minmax(0, 57fr); gap: clamp(2rem, 6vw, 6.5rem); align-items: start; }
.editorial p, .contact-grid p { max-width: 44ch; color: var(--muted); }
.row { display: flex; gap: 1.2rem; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); text-decoration: none; padding: 1.03rem 0; min-height: 60px; }
.row:last-child { border-bottom: 1px solid var(--line); }
.row span { flex: 0 0 2rem; display: grid; place-items: center; height: 2rem; border: 1px solid var(--line); transition: background-color var(--ui-transition), color var(--ui-transition); }
.row:hover span { background: var(--olive); color: var(--white); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem 2rem; margin-bottom: 2rem; }

.project-section { background: var(--deep); color: var(--white); }
.project-section .text-link:hover { color: var(--accent); }
.gallery { display: grid; grid-template-columns: 1.18fr 1fr; gap: 1.5rem .95rem; }
.project-photo { display: block; overflow: hidden; background: var(--olive); }
.project-photo img { width: 100%; aspect-ratio: 1.58; object-fit: cover; transition: transform 300ms ease-in-out; }
.project-photo:hover img { transform: scale(1.035); }
.gallery figcaption { padding-top: .65rem; color: #e3e6d9; font-size: .97rem; }

.reviews { background: var(--surface); }
.reviews-intro { margin-bottom: .65rem; color: var(--olive); font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.reviews-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 3fr); gap: 1rem; margin-top: 2rem; }
.reviews-overview { display: flex; flex-direction: column; align-items: start; background: var(--deep); color: var(--white); padding: clamp(1.2rem, 2.5vw, 2rem); }
.reviews-brand { display: flex; align-items: center; gap: .55rem; font-weight: 650; }
.reviews-brand img { box-sizing: content-box; padding: .3rem; background: var(--white); border-radius: 50%; }
.reviews-grade { margin-top: 1.1rem; font-size: clamp(1.35rem, 2.2vw, 1.8rem); font-weight: 650; letter-spacing: -.035em; }
.reviews .stars { color: #896117; letter-spacing: .12em; }
.reviews-overview .stars { color: #f0c770; margin: .05rem 0 0; font-size: 1.25rem; }
.reviews-count { margin: .55rem 0 1.05rem; font-weight: 600; }
.reviews-count small { display: block; color: #daddce; font-weight: 400; }
.reviews-overview .text-link { margin-top: auto; color: var(--accent); }
.reviews-overview .text-link:hover { color: var(--white); }
.reviews-carousel { min-width: 0; }
.review-controls:not([hidden]) { display: flex; justify-content: flex-end; gap: .5rem; margin-bottom: .65rem; }
.review-controls button { width: 44px; min-height: 44px; border: 1px solid var(--olive); background: var(--white); color: var(--olive); cursor: pointer; }
.review-controls button:hover:not(:disabled) { background: var(--olive); color: var(--white); }
.review-controls button:disabled { opacity: .45; cursor: default; }
.review-grid { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 2rem) / 3); gap: 1rem; overflow-x: auto; overscroll-behavior-inline: contain; scroll-snap-type: x mandatory; }
.review-card { scroll-snap-align: start; }
.review-card { min-width: 0; background: var(--white); border: 1px solid var(--line); padding: clamp(1rem, 2vw, 1.5rem); }
.review-card figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; font-size: .88rem; line-height: 1.35; }
.review-avatar { display: grid; place-items: center; width: 2.35rem; aspect-ratio: 1; border-radius: 50%; background: var(--surface); color: var(--olive); font-weight: 700; }
.review-card :is(time, small) { display: block; color: var(--muted); font-size: .8rem; }
.review-card .stars { margin-top: 1rem; }
.review-card :is(blockquote, .review-summary) { margin-top: .55rem; font-size: 1.03rem; line-height: 1.5; }
@media (max-width: 1100px) {
  .reviews-layout { grid-template-columns: 1fr; }
}
.cta { padding-block: clamp(3.5rem, 6.5vw, 5.25rem); background: var(--olive); color: var(--white); }
.cta-grid { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: 1.5rem; }
.image-banner {
  padding-block: clamp(3.5rem, 8vw, 7.5rem);
  background: linear-gradient(90deg, #171912ed, #171912a8), var(--deep) var(--banner-image) center / cover no-repeat;
  color: var(--white);
}
.trade-partners { --banner-image: url("gebaeude.jpg"); }
.consultation-banner { --banner-image: url("boden.jpg"); }
.trade-partners h2 { max-width: 24ch; }
.consultation-banner h2 { max-width: 30ch; }
.image-banner p { max-width: 72ch; }
.image-banner-intro { margin-bottom: .9rem; color: var(--accent); font-size: .82rem; font-weight: 650; letter-spacing: .12em; text-transform: uppercase; }
.image-banner .button { border-color: #ffffffa8; background: transparent; }
.image-banner .button:hover { background: var(--deep); }

.subhero { padding: 1.25rem 0 clamp(2.6rem, 5vw, 4.5rem); background: var(--deep); color: var(--white); }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: .2rem .62rem; padding: 0; margin: 0 0 clamp(1.75rem, 4vw, 3.75rem); font-size: .84rem; }
.breadcrumb li + li::before { content: "/"; color: var(--accent); padding-right: .62rem; }
.breadcrumb a { text-decoration-color: #c2c8a9; }
.sub-grid { min-height: 210px; display: grid; align-items: center; gap: clamp(1.5rem, 4vw, 3rem); }
.sub-grid.with-image { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.sub-grid h1 { max-width: 19ch; font-size: clamp(2.45rem, 5vw, 4.65rem); }
.sub-grid.with-image h1 { font-size: clamp(2.35rem, 4.2vw, 4.05rem); }
.sub-grid p { max-width: 58ch; color: #e4e7da; }
.sub-grid .button { margin-top: 1.4rem; background: var(--accent); color: var(--ink); }
.sub-grid .button:hover { background: #e5ebc9; }
.sub-image img { width: 100%; aspect-ratio: 1.52; object-fit: cover; }
.detail-layout { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); }
.detail-block + .detail-block { border-top: 1px solid var(--line); margin-top: 1.55rem; padding-top: 1.55rem; }
.detail-block h2, .side h2, .legal h2 { font-size: clamp(1.6rem, 2.75vw, 2.4rem); }
.detail-block p { max-width: 66ch; color: var(--muted); }
.side { padding: clamp(1.3rem, 3vw, 2.35rem); background: var(--surface); font-style: normal; overflow-wrap: anywhere; }
.side .text-link { margin-top: .65rem; }
.side .text-link + p { margin-top: .55rem; }
.contact-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.legal h2:not(:first-child) { margin-top: 1.6rem; }

.site-footer { background: var(--deep); color: #f3f4ed; padding: 3.2rem 0 1.15rem; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr .7fr; gap: 2rem; overflow-wrap: anywhere; }
.footer-brand { font-weight: 600; font-size: 1.3rem; display: flex; align-items: center; gap: .7rem; text-decoration: none; margin-bottom: .7rem; }
.footer-brand img { padding: 5px; background: var(--white); }
.site-footer h2 { font-size: 1.03rem; letter-spacing: 0; margin-bottom: .65rem; }
.footer-bottom { border-top: 1px solid #666b58; margin-top: 2rem; padding-top: .8rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .65rem 1rem; font-size: .82rem; }
.footer-bottom a + a { margin-left: 1rem; }

dialog { background: var(--deep); border: 0; padding: 0; color: white; max-width: 92vw; max-height: 90vh; }
dialog::backdrop { background: #161812dc; }
dialog img { max-width: 90vw; max-height: 86vh; object-fit: contain; }
dialog button { position: absolute; right: .45rem; top: .45rem; padding: 0 .65rem; border: 0; background: var(--deep); color: white; cursor: pointer; font-size: 1.8rem; }

@media (max-width: 900px) {
  .topbar { position: static; min-height: 66px; grid-template-columns: minmax(0, 1fr) auto; gap: .5rem; padding-block: .42rem; }
  .brand, .brand img { width: 126px; }
  .mobile-controls { display: flex; align-items: center; gap: .65rem; }
  .mobile-call { padding-block: .5rem; text-decoration: none; font-size: .9rem; font-weight: 600; }
  .menu:not([hidden]) { display: flex; }
  .menu[aria-expanded="true"] .menu-icon { position: relative; border: 0; }
  .menu[aria-expanded="true"] .menu-icon::before, .menu[aria-expanded="true"] .menu-icon::after { content: ""; position: absolute; inset: 50% 0 auto; border-top: 1.5px solid currentColor; transform: rotate(45deg); }
  .menu[aria-expanded="true"] .menu-icon::after { transform: rotate(-45deg); }
  #hauptnav { display: block; grid-column: 1 / -1; }
  .menu-ready #hauptnav { position: absolute; top: 100%; inset-inline: 0; max-height: calc(100dvh - 67px); overflow-y: auto; overscroll-behavior: contain; padding: .6rem max(18px, 4.5vw) 1.3rem; background: var(--white); border-bottom: 1px solid var(--line); }
  #hauptnav[hidden], .topbar .nav-cta { display: none; }
  #hauptnav > a:not(.button), .nav-services > summary { min-height: 49px; justify-content: space-between; border-bottom: 1px solid var(--line); }
  .nav-panel { position: static; transform: none; width: 100%; display: block; padding: .4rem .6rem .55rem; border: 0; box-shadow: none; background: var(--surface); }
  .nav-group + .nav-group { border: 0; border-top: 1px solid var(--line); margin-top: .45rem; padding: .4rem 0 0; }
  .nav-group a { padding: .53rem .42rem; }
  #hauptnav .nav-mobile-cta { display: inline-flex; margin-top: .85rem; }
}
@media (max-width: 760px) {
  .home-hero { min-height: 540px; }
  .hero-copy { padding-block: 5.5rem 2.6rem; }
  .hero-copy h1 { font-size: clamp(2.6rem, 9vw, 4.3rem); }
  .hero-image img { object-position: 54% center; }
  .home-hero::after { background: linear-gradient(0deg, #171912fa 2%, #171912ca 56%, #1719122e 100%); }
  .editorial, .detail-layout, .contact-grid, .sub-grid.with-image { grid-template-columns: minmax(0, 1fr); gap: 1.45rem; }
  .sub-grid { min-height: 0; }
  .section-head { align-items: start; flex-direction: column; }
  .gallery { grid-template-columns: 1fr; }
  .review-grid { grid-auto-columns: min(100%, 22rem); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 430px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.3rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
