@font-face{font-family:"Montserrat";src:url("../fonts/montserrat-variable.woff2") format("woff2");font-weight:100 900;font-style:normal;font-display:swap;}
@font-face{font-family:"Open Sans";src:url("../fonts/open-sans-400.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap;}
@font-face{font-family:"Open Sans";src:url("../fonts/open-sans-500.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap;}
@font-face{font-family:"Open Sans";src:url("../fonts/open-sans-600.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap;}
@font-face{font-family:"Open Sans";src:url("../fonts/open-sans-700.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap;}
@font-face{font-family:"Open Sans";src:url("../fonts/open-sans-800.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap;}

:root {
  --ink: #242424;
  --muted: #666;
  --accent: #c5a478;
  --cream: #f8f7f5;
  --line: #e9e7e4;
  --white: #fff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 85px;
}

body {
  margin: 0;
  font-family: "Open Sans", Arial, sans-serif;
  color: var(--ink);
  line-height: 1.7;
  background: white;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

h1,
h2,
h3,
h4,
p {
  margin-top: 0;
}

h1,
h2,
h3,
h4,
.nav,
.btn {
  font-family: Montserrat, Arial, sans-serif;
}

h1 {
  font-size: clamp(38px, 5.1vw, 78px);
  line-height: 1.15;
  letter-spacing: -0.035em;
  font-weight: 700;
}

h2 {
  font-size: clamp(30px, 3.1vw, 46px);
  line-height: 1.25;
  letter-spacing: -0.025em;
  font-weight: 700;
  margin-bottom: 32px;
}

h3 {
  font-size: 21px;
  line-height: 1.4;
}

.eyebrow {
  font:
    700 12px Montserrat,
    sans-serif;
  letter-spacing: 0.19em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.wrap {
  max-width: 1200px;
  margin: auto;
  padding: 0 28px;
}

.section {
  padding: 105px 0;
}

.section.alt {
  background: var(--cream);
}

.center {
  text-align: center;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 680px;
}

.center .lead {
  margin-left: auto;
  margin-right: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 26px;
  background: var(--accent);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 11px;
  font-weight: 700;
  border: 0;
  cursor: pointer;
  transition: 0.2s;
}

.btn:hover {
  background: #a98a60;
}

.btn.outline {
  background: transparent;
  color: var(--ink);
  border: 1px solid #bbb;
}

.btn.outline:hover {
  border-color: var(--accent);
  color: var(--accent);
}

header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: white;
  box-shadow: 0 3px 25px #0000000c;
}

.head {
  height: 91px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  height: 42px;
  width: 44px;
  flex-shrink: 0;
}

.brandname {
  display: block;
  font:
    700 26px/1 Montserrat,
    sans-serif;
  letter-spacing: 0.19em;
}

.brandsub {
  display: block;
  font:
    500 10px/1.8 Montserrat,
    sans-serif;
  letter-spacing: 0.35em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 29px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.nav a:hover {
  color: var(--accent);
}

.hamb {
  display: none;
  border: 0;
  background: none;
  font-size: 26px;
  cursor: pointer;
}

.hero {
  min-height: 690px;
  position: relative;
  display: flex;
  align-items: center;
  background: #534b41
    url("../images/hero.jpg")
    center/cover;
}

.hero:before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(18, 20, 19, 0.68),
    rgba(18, 20, 19, 0.12)
  );
}

.hero .wrap {
  position: relative;
  width: 100%;
}

.hero h1 {
  max-width: 770px;
  color: white;
  margin-bottom: 26px;
}

.hero .sub {
  font-size: 16px;
  color: #eee;
  margin-bottom: 35px;
  max-width: 550px;
}

.hero .eyebrow {
  color: #f4d6aa;
}

.servicegrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px 40px;
  margin-top: 54px;
}

.service {
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.service h3 {
  font-size: 20px;
  margin-bottom: 12px;
}

.service .number {
  color: var(--accent);
  font-weight: 700;
  margin-right: 9px;
}

.service p {
  font-size: 14px;
  color: #777;
  margin-bottom: 0;
}

.service-icon {
  width: 40px;
  height: 40px;
  margin-bottom: 18px;
  color: var(--accent);
}

.twocol {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.checkgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 20px;
  margin: 30px 0;
}

.checkgrid div {
  font-size: 14px;
  font-weight: 600;
}

.checkgrid div:before {
  content: "✓";
  color: var(--accent);
  margin-right: 12px;
}

.photo {
  width: 100%;
  height: 520px;
  object-fit: cover;
  background: #e6e0d8;
}

.photo.short {
  height: 410px;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature img {
  height: 280px;
  width: 100%;
  object-fit: cover;
}

.feature .copy {
  padding: 28px 8px 0;
}

.feature h3 {
  font-size: 21px;
  margin-bottom: 10px;
}

.feature p {
  font-size: 14px;
  color: #777;
}

.feature a {
  font:
    700 11px Montserrat,
    sans-serif;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--accent);
  padding-bottom: 6px;
}

.about p {
  color: #686868;
}

.stats {
  display: flex;
  gap: 50px;
  margin-top: 30px;
}

.stat strong {
  font:
    700 45px Montserrat,
    sans-serif;
  display: block;
  line-height: 1.2;
}

.stat span {
  font-size: 13px;
  color: #777;
}

.quote {
  background: white;
  padding: 40px;
  box-shadow: 0 7px 35px #0000000a;
  max-width: 800px;
  margin: 45px auto 0;
  text-align: center;
}

.quote p {
  font-size: 18px;
  font-style: italic;
  color: #555;
}

.quote small {
  font-size: 13px;
  color: #777;
}

.projectgrid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 40px;
}

.project {
  height: 280px;
  overflow: hidden;
  position: relative;
  background: #e9e4dc;
}

.project img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}

.project:hover img {
  transform: scale(1.05);
}

.project .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, #0009);
  padding: 45px 20px 20px;
  color: white;
  font:
    600 17px Montserrat,
    sans-serif;
}

.notice {
  font-size: 12px;
  color: #888;
  margin-top: 20px;
}

.contactgrid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 85px;
}

.field {
  width: 100%;
  padding: 15px;
  border: 1px solid #dedede;
  background: white;
  font:
    14px "Open Sans",
    sans-serif;
  border-radius: 0;
  margin-bottom: 15px;
}

.field:focus {
  outline: 1px solid var(--accent);
}

textarea.field {
  min-height: 150px;
  resize: vertical;
}

.contactinfo a {
  color: var(--ink);
}

.contactinfo a:hover {
  color: var(--accent);
}

.contactinfo .detail {
  border-bottom: 1px solid var(--line);
  padding: 0 0 20px;
  margin-bottom: 20px;
}

.contactinfo strong {
  display: block;
  font:
    700 13px Montserrat,
    sans-serif;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.wa {
  position: fixed;
  right: 25px;
  bottom: 25px;
  background: #25d366;
  color: white;
  width: 59px;
  height: 59px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 24px #0003;
  z-index: 40;
  font:
    700 21px Arial,
    sans-serif;
}

.wa:hover {
  background: #1ebd58;
}

footer {
  background: #252525;
  color: #ddd;
  padding: 64px 0 20px;
}

.footgrid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 45px;
}

.footgrid h3 {
  font-size: 15px;
  color: white;
}

.footgrid a {
  display: block;
  color: #ccc;
  font-size: 13px;
  margin-bottom: 8px;
}

.footgrid a:hover {
  color: var(--accent);
}

footer p {
  font-size: 13px;
  color: #aaa;
}

.copyright {
  border-top: 1px solid #444;
  margin-top: 45px;
  padding-top: 20px;
  font-size: 12px;
  color: #999;
}

.legal {
  padding: 55px 0;
  background: #f6f5f2;
}

.legal details {
  max-width: 1000px;
  margin: 12px auto;
  border: 1px solid #e0dedb;
  background: white;
  padding: 16px 20px;
}

.legal summary {
  font:
    700 14px Montserrat,
    sans-serif;
  cursor: pointer;
}

.legal p {
  font-size: 13px;
  color: #555;
}

.legal a {
  text-decoration: underline;
}

.legal .warning {
  font-size: 13px;
  color: #9b5a3d;
}

@media (max-width: 900px) {
  .hamb {
    display: block;
  }

  .head {
    height: 75px;
  }

  .nav {
    display: none;
    position: absolute;
    top: 75px;
    left: 0;
    right: 0;
    background: white;
    padding: 25px 28px;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
    box-shadow: 0 15px 20px #0001;
  }

  .nav.open {
    display: flex;
  }

  .hero {
    min-height: 600px;
  }

  .twocol {
    gap: 35px;
  }

  .servicegrid {
    grid-template-columns: repeat(2, 1fr);
  }

  .features {
    gap: 18px;
  }

  .feature img {
    height: 210px;
  }

  .contactgrid {
    gap: 35px;
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 20px;
  }

  .section {
    padding: 72px 0;
  }

  .hero {
    min-height: 590px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .brandname {
    font-size: 21px;
  }

  .brandsub {
    font-size: 9px;
  }

  .mark {
    height: 36px;
    width: 38px;
  }

  .servicegrid,
  .twocol,
  .features,
  .projectgrid,
  .contactgrid,
  .footgrid {
    grid-template-columns: 1fr;
  }

  .servicegrid {
    gap: 25px;
  }

  .twocol {
    gap: 32px;
  }

  .photo {
    height: 350px;
  }

  .photo.short {
    height: 310px;
  }

  .feature img {
    height: 260px;
  }

  .stats {
    gap: 25px;
  }

  .stat strong {
    font-size: 35px;
  }

  .quote {
    padding: 26px;
  }

  .project {
    height: 300px;
  }

  .checkgrid {
    gap: 13px;
  }

  .wa {
    right: 15px;
    bottom: 15px;
  }
}

/* Legal pages and developer credit */
.legal details h3 {
  margin: 1.4rem 0 0.5rem;
  font-size: 1.05rem;
}
.legal details p {
  line-height: 1.75;
}
.developer-credit {
  display: inline-block;
  margin-top: 0.55rem;
  font-size: 0.8rem;
  opacity: 0.72;
}

/* Beck Bodenbau logo — fixed width on desktop and mobile */
.brand {
  flex-shrink: 0;
}
.brand-logo {
  display: block;
  width: 145px;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* Mobile logo width */
@media (max-width: 900px) {
  .brand-logo {
    width: 100px;
  }
}

/* Mobile menu: use the dark brand color instead of Safari link blue */
.hamb {
  color: #333333;
  -webkit-text-fill-color: #333333;
}
.hamb svg {
  stroke: currentColor;
}
.hamb span {
  background-color: #333333;
}

/* Separate sliders inside the original three reference cards */
.project-slider {
  position: absolute;
  inset: 0;
  overflow: hidden;
  touch-action: pan-y;
}
.project-slides,
.project-slide {
  position: absolute;
  inset: 0;
}
.project-slide {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.35s ease;
}
.project-slide.is-active {
  opacity: 1;
  visibility: visible;
}
.project-slider .project-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transform: none;
  background: #e9e4dc;
}
/* Cover only for the first (Parkett) slider */
.projectgrid > .project:first-child .project-slider .project-slide img {
  object-fit: cover;
  object-position: center;
}
.project:hover .project-slide img {
  transform: none;
}
.project-arrow {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  z-index: 2;
  border: 0;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  background: #ffffffd9;
  color: #333;
  font-size: 29px;
  line-height: 28px;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}
.project-arrow.prev {
  left: 9px;
}
.project-arrow.next {
  right: 9px;
}
.project-arrow:focus-visible {
  outline: 2px solid #333;
  outline-offset: 2px;
}
.project-count {
  position: absolute;
  right: 12px;
  top: 10px;
  z-index: 2;
  background: #0009;
  color: white;
  padding: 3px 9px;
  border-radius: 20px;
  font-size: 12px;
}
.project .overlay {
  pointer-events: none;
  z-index: 1;
}

/* Designboden slider: same cover treatment as Parkett */
.projectgrid > .project:nth-child(2) .project-slider .project-slide img { object-fit: cover; object-position: center; }

/* Full-screen viewer: click photo to open, pinch/wheel/drag to zoom and pan */
.project-slide.is-active img { cursor: zoom-in; }
.photo-viewer[hidden] { display: none !important; }
.photo-viewer { position: fixed; inset: 0; z-index: 99999; background: rgba(12,12,12,.96); color: #fff; overflow: hidden; }
.photo-viewer-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; cursor: grab; }
.photo-viewer-stage.is-dragging { cursor: grabbing; }
.photo-viewer-stage img { position: absolute; width: 100%; height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; pointer-events: none; transform-origin: center; will-change: transform; }
.photo-viewer-close, .photo-viewer-nav, .photo-viewer-toolbar button { border: 0; background: rgba(40,40,40,.8); color: #fff; cursor: pointer; }
.photo-viewer-close { position: absolute; z-index: 3; top: max(12px,env(safe-area-inset-top)); right: 16px; width: 44px; height: 44px; border-radius: 50%; font-size: 32px; line-height: 1; }
.photo-viewer-nav { position: absolute; z-index: 2; top: 50%; transform: translateY(-50%); width: 44px; height: 56px; font-size: 40px; border-radius: 8px; }
.photo-viewer-prev { left: 10px; } .photo-viewer-next { right: 10px; }
.photo-viewer-toolbar { position: absolute; z-index: 3; left: 50%; bottom: max(14px,env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; align-items: center; gap: 9px; background: rgba(25,25,25,.85); padding: 7px 10px; border-radius: 30px; white-space: nowrap; font-size: 14px; }
.photo-viewer-toolbar button { width: 35px; height: 35px; border-radius: 50%; font-size: 22px; }
.photo-viewer-toolbar span { min-width: 48px; text-align: center; }
.photo-viewer button:focus-visible { outline: 2px solid white; outline-offset: 2px; }
body.photo-viewer-open { overflow: hidden; }
@media (max-width: 550px) { .photo-viewer-nav { width: 34px; height: 44px; font-size: 30px; } .photo-viewer-toolbar { gap: 5px; } }

.footer-social{display:flex;align-items:center;gap:16px;margin-top:20px}.footer-social a{display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;margin:0}.footer-social img{display:block;width:28px;height:28px;transition:filter .2s,opacity .2s}.footer-social a:hover img,.footer-social a:focus-visible img{filter:brightness(0) saturate(100%) invert(72%) sepia(19%) saturate(1042%) hue-rotate(351deg) brightness(93%);opacity:1}.hp-field{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}

/* Terrassen reference slider: fill card without letterboxing */
.projectgrid > .project:nth-child(3) .project-slider .project-slide img {
  object-fit: cover;
  object-position: center;
}

/* Mobile layout: prevent min-content widths from expanding the page. */
.contactgrid, .footgrid, .twocol, .servicegrid, .projectgrid, .features { min-width: 0; }
.contactgrid > *, .footgrid > *, .twocol > *, .servicegrid > *, .projectgrid > *, .features > * { min-width: 0; }
.contactinfo, .legal, .contactgrid, .footgrid { overflow-wrap: anywhere; }
@media (max-width: 900px) {
  .contactgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .contactgrid, .footgrid, .twocol, .servicegrid, .projectgrid, .features { grid-template-columns: minmax(0, 1fr); }
  .contactgrid h2, .contactgrid p { max-width: 100%; }
}
/* Footer email is a mailto link, styled like the existing contact text. */
.footgrid .footer-email { display: inline; font-size: inherit; color: inherit; margin: 0; overflow-wrap: anywhere; }
.footgrid .footer-email:hover, .footgrid .footer-email:focus-visible { color: var(--accent); }
