:root {
  --ink: #172033;
  --muted: #697386;
  --line: #d9dee8;
  --paper: #f7f5f0;
  --white: #ffffff;
  --gold: #c5a766;
  --gold-dark: #98783c;
  --blue: #1f3f68;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

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

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.nav {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 230px;
}

.brand img {
  width: 205px;
  height: auto;
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  color: #10213b;
}

.menu a {
  padding: 8px 0;
  border-bottom: 2px solid transparent;
}

.menu a:hover,
.menu a.active {
  color: var(--gold-dark);
  border-color: var(--gold);
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--ink);
  width: 42px;
  height: 42px;
  border-radius: 4px;
  font-size: 23px;
}

@media (min-width: 901px) {
  .menu-toggle {
    display: none;
  }
}

.hero {
  min-height: 680px;
  display: grid;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(14, 25, 43, .82), rgba(14, 25, 43, .24)),
    url("images/uploads/2019/09/Grundstueck-fuer-ein-Doppelhaus-oder-ein-5-Familienhaus.jpg") center / cover no-repeat;
  color: var(--white);
}

.wrap {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 82px 24px;
}

.hero .wrap {
  padding-top: 110px;
  padding-bottom: 110px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: .18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 700;
  overflow-wrap: anywhere;
}

h2 {
  font-size: clamp(32px, 4vw, 52px);
  color: #26344c;
  overflow-wrap: anywhere;
}

h3 {
  font-size: 24px;
  color: #25324a;
}

.lead {
  max-width: 720px;
  margin: 24px 0 0;
  font-size: clamp(19px, 2.2vw, 25px);
  color: rgba(255, 255, 255, .9);
  overflow-wrap: anywhere;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 13px 20px;
  border-radius: 4px;
  border: 1px solid var(--gold);
  background: var(--gold);
  color: var(--white);
  font-weight: 700;
}

.btn:hover {
  background: var(--gold-dark);
  border-color: var(--gold-dark);
}

.btn.secondary {
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .55);
}

.section .btn.secondary {
  color: var(--ink);
  background: var(--white);
  border-color: var(--line);
}

.hero .btn.secondary,
.contact-strip .btn.secondary {
  color: var(--white);
  background: rgba(255, 255, 255, .08);
  border-color: rgba(255, 255, 255, .55);
}

.section {
  border-top: 1px solid var(--line);
}

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

.intro {
  max-width: 760px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 19px;
}

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

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

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  overflow: hidden;
}

.card-body {
  padding: 26px;
}

.card p,
.feature p,
.text-page p,
.text-page li {
  color: var(--muted);
}

.card-img {
  height: 240px;
  object-fit: cover;
  width: 100%;
}

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

.feature img {
  width: 100%;
  height: 430px;
  object-fit: cover;
  border-radius: 6px;
}

.service-list {
  display: grid;
  gap: 18px;
  margin-top: 32px;
}

.service {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}

.service strong {
  color: var(--gold-dark);
}

.contact-strip {
  background: var(--blue);
  color: var(--white);
}

.contact-strip h2 {
  color: var(--white);
}

.contact-strip .wrap {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 36px;
  align-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.contact-strip p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, .86);
}

.form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
  max-width: 680px;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid #cbd3df;
  border-radius: 4px;
  font: inherit;
  background: var(--white);
}

.form textarea {
  min-height: 130px;
  resize: vertical;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: #f1f1f1;
}

.text-page {
  max-width: 920px;
}

.text-page h2 {
  margin-top: 34px;
  font-size: 30px;
}

.footer {
  background: #101827;
  color: rgba(255, 255, 255, .82);
}

.footer .wrap {
  padding-top: 54px;
  padding-bottom: 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 34px;
}

.footer h3,
.footer h4 {
  color: var(--white);
}

.footer a:hover {
  color: var(--gold);
}

.copy {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .6);
  font-size: 14px;
}

@media (max-width: 900px) {
  .menu-toggle {
    display: none;
  }

  .menu {
    display: flex;
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px 16px;
    max-width: min(330px, calc(100vw - 40px));
    padding: 0;
    background: transparent;
    border-bottom: 0;
    font-size: 14px;
  }

  .menu a {
    width: auto;
    padding: 4px 0;
  }

  .nav {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
  }

  .grid,
  .grid.two,
  .feature,
  .contact-strip .wrap,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

  .hero {
    min-height: 590px;
  }

  .wrap {
    padding-top: 56px;
    padding-bottom: 56px;
  }
}

@media (max-width: 540px) {
  .nav {
    padding: 12px 18px;
  }

  .brand {
    min-width: auto;
  }

  .brand img {
    width: 172px;
  }

  h1 {
    max-width: calc(100vw - 48px);
    font-size: 24px;
    line-height: 1.08;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 22px;
  }

  h2,
  h3,
  p,
  .intro,
  .lead {
    max-width: min(318px, calc(100vw - 72px));
    overflow-wrap: anywhere;
  }

  .lead {
    font-size: 16px;
  }

  .hero .wrap {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .gallery {
    grid-template-columns: 1fr;
  }
}
