*,
::after,
::before {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
  /* FIX: Prevent horizontal overflow */
  overflow-x: hidden;
}

@media only screen and (max-width: 75em) {
  html {
    font-size: 50%;
  }
}

@media only screen and (max-width: 62.5em) {
  html {
    font-size: 45%;
  }
}

@media only screen and (max-width: 58em) {
  html {
    font-size: 45%;
  }
}

@media only screen and (max-width: 37.5em) {
  html {
    font-size: 35%;
  }
}

body {
  background-color: var(--color-light_gray);
  font-family: var(--main-typography);
  font-weight: 300;
  line-height: 1.6;
  /* FIX: Prevent horizontal overflow */
  overflow-x: hidden;
  max-width: 100vw;
}

/* FIX: Changed grid columns to be viewport-relative instead of fixed rem values */
.container {
  display: grid;
  grid-template-rows: 95vh 80vw minmax(min-content, 50vw) 75vw min-content 50vw repeat(2, min-content);
  /* Changed from fixed 14rem to responsive 1fr with max constraint */
  grid-template-columns: [full-start] minmax(2rem, 1fr) [center-start] repeat(8, [col-start] minmax(min-content, 1fr) [col-end]) [center-end] minmax(2rem, 1fr) [full-end];
  max-width: 100vw;
  overflow-x: hidden;
}

.container__picture {
  position: absolute;
  width: 100%;
  z-index: -20;
  grid-column: full-start / full-end;
  display: grid;
  grid-template-columns: repeat(6, minmax(min-content, 1fr));
  grid-template-rows: auto auto;
}

.container__img-1 {
  width: 105%;
  max-width: 100%;
  grid-column: 3 / 6;
  display: flex;
  justify-content: center;
  align-items: center;
}

@media only screen and (max-width: 78em) {
  .container__img-1 {
    width: 75%;
    grid-row: 1 / 1;
    grid-column: 3 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15rem;
  }
}

@media only screen and (max-width: 62.5em) {
  .container__img-1 {
    width: 65%;
    grid-row: 1 / 1;
    grid-column: 4 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 15rem;
  }
}

@media only screen and (max-width: 58em) {
  .container__img-1 {
    width: 45%;
    grid-row: 1 / 1;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30rem;
  }
}

@media only screen and (max-width: 37.5em) {
  .container__img-1 {
    width: 31%;
    grid-row: 1 / 1;
    grid-column: 1 / -1;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 50rem;
  }
}

@media only screen and (max-width: 58em) {
  .container {
    grid-template-rows: 120vh 10vw min-content max-content 80vw min-content 150vw repeat(2, min-content);
    grid-template-columns: [full-start] minmax(2rem, 1fr) [center-start] repeat(8, [col-start] minmax(min-content, 1fr) [col-end]) [center-end] minmax(2rem, 1fr) [full-end];
  }
}

@media only screen and (max-width: 37.5em) {
  .container {
    grid-template-rows: 95vh 10vw min-content max-content 215vw min-content 150vw repeat(2, min-content);
    grid-template-columns: [full-start] minmax(2rem, 1fr) [center-start] repeat(8, [col-start] minmax(min-content, 1fr) [col-end]) [center-end] minmax(2rem, 1fr) [full-end];
  }
}

.container__contact {
  grid-template-rows: 95vh 80vw minmax(min-content, 30vw) 20vw;
}

@media only screen and (max-width: 75em) {
  .container__contact {
    grid-template-rows: 95vh 80vw minmax(min-content, 30vw) 25vw;
  }
}

@media only screen and (max-width: 62.5em) {
  .container__contact {
    grid-template-rows: 95vh 80vw minmax(min-content, 30vw) 25vw;
  }
}

@media only screen and (max-width: 58em) {
  .container__contact {
    grid-template-rows: 100vh 40vw minmax(min-content, 30vw) 150vw;
  }
}

@media only screen and (max-width: 37.5em) {
  .container__contact {
    grid-template-rows: 95vh 80vw minmax(min-content, 30vw) 150vw;
  }
}

.container__construction {
  grid-template-rows: 95vh 20vw;
  grid-template-columns: [full-start] minmax(2rem, 1fr) [center-start] repeat(8, [col-start] minmax(min-content, 1fr) [col-end]) [center-end] minmax(2rem, 1fr) [full-end];
}

@media only screen and (max-width: 75em) {
  .container__construction {
    grid-template-rows: 95vh 50vw;
  }
}

@media only screen and (max-width: 62.5em) {
  .container__construction {
    grid-template-rows: 145vh 25vw;
  }
}

@media only screen and (max-width: 58em) {
  .container__construction {
    grid-template-rows: 145vh 50vw;
  }
}

@media only screen and (max-width: 37.5em) {
  .container__construction {
    grid-template-rows: 125vh 155vw;
  }
}

.container__career {
  grid-template-rows: 95vh 20vw;
  grid-template-columns: [full-start] minmax(2rem, 1fr) [center-start] repeat(8, [col-start] minmax(min-content, 1fr) [col-end]) [center-end] minmax(2rem, 1fr) [full-end];
}

@media only screen and (max-width: 75em) {
  .container__career {
    grid-template-rows: 95vh 50vw;
  }
}

@media only screen and (max-width: 62.5em) {
  .container__career {
    grid-template-rows: 145vh 25vw;
  }
}

@media only screen and (max-width: 58em) {
  .container__career {
    grid-template-rows: 145vh 50vw;
  }
}

@media only screen and (max-width: 37.5em) {
  .container__career {
    grid-template-rows: 125vh 155vw;
  }
}

.container__about {
  display: grid;
  grid-template-rows: 95vh 75vw minmax(min-content, 50vw) 90vw min-content 65vw repeat(2, min-content);
  grid-template-columns: [full-start] minmax(2rem, 1fr) [center-start] repeat(8, [col-start] minmax(min-content, 1fr) [col-end]) [center-end] minmax(2rem, 1fr) [full-end];
}

@media only screen and (max-width: 62.5em) {
  .container__about {
    grid-template-rows: 95vh 80vw minmax(min-content, 50vw) 90vw min-content 65vw repeat(2, min-content);
  }
}

@media only screen and (max-width: 58em) {
  .container__about {
    grid-template-rows: 150vh 10vw min-content max-content 80vw min-content 180vw repeat(2, min-content);
    grid-template-columns: [full-start] minmax(2rem, 1fr) [center-start] repeat(8, [col-start] minmax(min-content, 1fr) [col-end]) [center-end] minmax(2rem, 1fr) [full-end];
  }
}

@media only screen and (max-width: 37.5em) {
  .container__about {
    grid-template-rows: 100vh 70vw min-content max-content 155vw min-content 190vw repeat(2, min-content);
  }
}

:root {
  --main-typography: "Roboto", sans-serif;
  --color-green: hsl(139, 26%, 39%);
  --color-green-interm: hsl(138, 15%, 54%);
  --color-green_light: hsl(83, 26%, 84%);
  --color-orange: hsl(34, 91%, 59%);
  --color-orange_light: hsl(34, 100%, 71%);
  --color-dark_gray: hsl(0, 0%, 30%);
  --color-light_gray: hsl(200, 33%, 98%);
  --color-white: hsl(0, 0%, 100%);
  --color-black: hsl(0, 0%, 0%);
}

.heading-1,
.heading-2,
.heading-3,
.heading-4 {
  font-family: var(--main-typography);
  font-weight: 700;
  font-size: large;
}

.heading-1 {
  font-size: clamp(3rem, 5vw, 4.5rem);
  color: var(--color-orange);
  line-height: 1;
  /* FIX: Add spacing below IMMOBILIEN */
  margin-bottom: 2rem;
}

@media only screen and (max-width: 37.5em) {
  .heading-1 {
    font-size: clamp(4rem, 8vw, 5.9rem);
    line-height: 120%;
  }
}

.heading-2 {
  font-size: clamp(2.5rem, 4vw, 4rem);
  font-weight: 100;
  line-height: 1;
}

.heading-2--light {
  color: var(--color-dark_gray);
}

.heading-2--dark {
  color: var(--color-dark_gray);
}

.heading-3 {
  font-size: 1.6rem;
  color: var(--color-green);
  text-transform: uppercase;
}

.heading-4--light {
  color: var(--color-dark_gray);
}

.heading-4--dark {
  color: var(--color-dark_gray);
}

.mb-sm {
  margin-bottom: 2rem;
}

.mb-md {
  margin-bottom: 3rem;
}

.mb-lg {
  margin-bottom: 4rem;
}

.mb-hg {
  margin-bottom: 8rem;
}

.mt-sm {
  margin-top: 2rem;
}

.mt-md {
  margin-top: 3rem;
}

.mt-lg {
  margin-top: 4rem;
}

@media only screen and (max-width: 37.5em) {
  .mt-lg {
    margin-top: 15rem;
  }
}

.mt-hg {
  margin-top: 8rem;
}

@media only screen and (max-width: 58em) {
  .mt-hg {
    margin-top: 15rem;
  }
}

@media only screen and (max-width: 37.5em) {
  .mt-hg {
    margin-top: 10rem;
  }
}

.fs-sm {
  font-size: clamp(2rem, 3vw, 3rem);
}

@media only screen and (max-width: 37.5em) {
  .fs-sm {
    font-size: clamp(3rem, 5vw, 4.5rem);
  }
}

.fs-ext-sm {
  font-size: 1.5rem;
  color: var(--color-green_light);
}

.lh-sm {
  line-height: 1;
}

.lh-md {
  line-height: 1.3;
}

.lh-lg {
  line-height: 1.6;
}

.lh-hg {
  line-height: 1.9;
}

.pd-rt-sm {
  padding-right: 10rem;
}

.pd-rt-md {
  padding-right: 15rem;
}

@media only screen and (max-width: 37.5em) {
  .pd-rt-md {
    padding-right: 0;
  }
}

.pd-rt-lg {
  padding-right: 20rem;
}

.al-tx {
  text-align: center;
}

.pd-global {
  padding: 2rem;
}

.footer {
  background-color: var(--color-green_light);
  grid-column: full-start / full-end;
  padding: 6rem 6rem 0 6rem;
  grid-row: auto;
  margin-top: 0;
  z-index: 10;
}

.footer__logo-box {
  text-align: center;
  padding-bottom: 5rem;
}

.footer__logo {
  width: 20rem;
  height: auto;
}

.nav {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 3rem;
  align-items: center;
}

@media only screen and (max-width: 58em) {
  .nav {
    grid-template-columns: repeat(3, minmax(15rem, 1fr));
  }
}

@media only screen and (max-width: 37.5em) {
  .nav {
    grid-template-columns: repeat(1, minmax(15rem, 1fr));
  }
}

.nav__link:link,
.nav__link:visited {
  font-size: 1.4rem;
  color: var(--color-green);
  text-decoration: none;
  font-family: var(--main-typography);
  text-transform: uppercase;
  text-align: center;
  padding: 1.5rem;
  display: block;
  transition: all 0.2s;
}

@media only screen and (max-width: 37.5em) {
  .nav__link:link,
  .nav__link:visited {
    font-size: 2.5rem;
  }
}

.nav__link:active,
.nav__link:hover {
  background-color: rgba(0, 0, 0, 0.05);
  transform: translateY(-3px);
}

.copyright {
  font-size: 1.4rem;
  color: var(--color-green);
  margin-top: 1rem;
  margin-right: auto;
  margin-left: auto;
  text-align: center;
  width: 100%;
  border-top: 1px solid var(--color-green);
  padding: 3rem;
}

@media only screen and (max-width: 37.5em) {
  .copyright {
    width: 70%;
  }
}

.copyright a {
  color: var(--color-green);
  text-decoration: none;
  margin-left: 0.8rem;
  margin-right: 0.8rem;
}

.copyright a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

.features {
  grid-column: center-start / center-end;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
  grid-template-rows: auto auto;
  padding: 6rem;
}

@media only screen and (max-width: 58em) {
  .features {
    grid-template-columns: repeat(2, minmax(20rem, 1fr));
    padding: 0;
  }
}

@media only screen and (max-width: 37.5em) {
  .features {
    grid-template-columns: repeat(1, minmax(15rem, 1fr));
    padding: 0;
  }
}

.features__title {
  padding: 4rem;
  display: grid;
  grid-template-columns: 1fr;
  row-gap: 1.5rem;
  grid-column: 1 / -1;
  text-align: center;
}

.feature {
  padding: 4rem;
}

.feature__icon {
  fill: var(--color-orange);
  width: 4.5rem;
  height: 4.5rem;
  padding: 1rem;
}

.feature__text {
  font-size: 1.5rem;
  padding-top: 1rem;
}

@media only screen and (max-width: 37.5em) {
  .feature__text {
    font-size: 2.5rem;
  }
}

.header {
  background-color: var(---color-light_gray);
  position: relative;
  background-size: cover;
  background-position: bottom;
}

.header__logo-box {
  position: absolute;
  top: 2rem;
  left: 5rem;
}

.header__logo {
  height: 13.5rem;
}

.header__text-box {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
}

.heading-primary {
  color: var(--color-orange);
  text-transform: uppercase;
}

.heading-primary--main {
  display: block;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.9rem;
  text-align: center;
}

.heading-primary--sub {
  display: block;
  font-size: 1rem;
  font-weight: 400;
  letter-spacing: 0.3rem;
  color: var(--color-dark_gray);
  text-align: center;
  margin-bottom: 4rem;
}

.btn {
  padding: 1rem 4rem;
  border-radius: 0.5rem;
  border: none;
  box-shadow: 0 0.2rem 0.5rem rgba(0, 0, 0, 0.1);
}

.btn:link,
.btn:visited {
  text-transform: uppercase;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-0.3rem);
  box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.2);
}

.btn:active {
  transform: translateY(-0.1rem);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

.btn-green {
  background-color: var(--color-green);
  color: var(--color-white);
}

@media only screen and (max-width: 58rem) {
  .btn {
    padding: 2rem 6rem;
    border-radius: 1rem;
  }
}

@media only screen and (max-width: 37.5em) {
  .btn {
    padding: 2rem 6rem;
    border-radius: 1rem;
  }
}

/* Navigation - FIX: Changed right positioning from 22rem to 5rem */
.navigation__checkbox {
  display: none;
}

.navigation__button {
  background-color: var(--color-orange);
  height: 5rem;
  width: 5rem;
  border-radius: 50%;
  position: fixed;
  top: 6rem;
  right: 5rem; /* Changed from 22rem */
  z-index: 300;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
  text-align: center;
  cursor: pointer;
}

@media only screen and (max-width: 58em) {
  .navigation__button {
    right: 5rem;
    top: 13rem;
  }
}

@media only screen and (max-width: 37.5em) {
  .navigation__button {
    right: 3rem;
    top: 8rem;
  }
}

.navigation__bg {
  height: 4rem;
  width: 4rem;
  border-radius: 50%;
  position: fixed;
  top: 6.5rem;
  right: 5.5rem; /* Changed from 22.5rem */
  background-color: var(--color-green_light);
  z-index: 21;
  transition: transform 0.8s cubic-bezier(0.86, 0, 0.07, 1);
}

@media only screen and (max-width: 58em) {
  .navigation__bg {
    right: 5.5rem;
    top: 13rem;
  }
}

@media only screen and (max-width: 37.5em) {
  .navigation__bg {
    right: 3.5rem;
    top: 8rem;
  }
}

.navigation__nav {
  height: 100vh;
  width: 100%;
  position: fixed;
  top: 0;
  left: -200px;
  z-index: 100;
  opacity: 0;
  width: 0;
  transition: all 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.navigation__list {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  list-style: none;
  text-align: center;
  z-index: 450;
  width: 100%;
}

.navigation__item {
  margin: 1rem;
}

.navigation__link:link,
.navigation__link:visited {
  font-size: 6rem;
  font-weight: 200;
  padding: 1rem 2rem;
  color: var(--color-orange);
  text-decoration: none;
  text-transform: uppercase;
  position: relative;
}

.navigation__link:active,
.navigation__link:hover {
  font-weight: 400;
  color: var(--color-green);
}

.navigation__link::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 4px;
  border-radius: 4px;
  background-color: var(--color-green);
  bottom: 0;
  left: 0;
  transform-origin: right;
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;
}

.navigation__link:active::before,
.navigation__link:hover::before {
  transform-origin: left;
  transform: scaleX(1);
}

.navigation__checkbox:checked ~ .navigation__bg {
  transform: scale(90);
}

.navigation__checkbox:checked ~ .navigation__nav {
  opacity: 1;
  width: 100%;
  left: 0;
}

.navigation__icon {
  position: relative;
  margin-top: 2.5rem;
}

.navigation__icon,
.navigation__icon::after,
.navigation__icon::before {
  width: 2rem;
  height: 1.5px;
  background-color: var(--color-white);
  display: inline-block;
}

.navigation__icon::after,
.navigation__icon::before {
  content: "";
  position: absolute;
  left: 0;
}

.navigation__icon::before {
  top: -0.7rem;
}

.navigation__icon::after {
  top: 0.7rem;
}

.navigation__checkbox:checked + .navigation__button .navigation__icon {
  background-color: transparent;
}

.navigation__checkbox:checked + .navigation__button .navigation__icon::before {
  top: 0;
  transform: rotate(45deg);
}

.navigation__checkbox:checked + .navigation__button .navigation__icon::after {
  top: 0;
  transform: rotate(-45deg);
}

.services {
  background-color: gray;
}

/* Impressum Section */
.impressum-section {
  grid-column: center-start / center-end;
  grid-row: 2 / 3;
  margin-top: 5rem;
  margin-bottom: 5rem;
  background-color: var(--color-white);
  box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.1);
  border-radius: 0.5rem;
  overflow: hidden;
  z-index: 10;
}

.impressum-content {
  padding: 4rem;
  max-width: 100%;
}

@media only screen and (max-width: 58em) {
  .impressum-content {
    padding: 3rem;
  }
}

@media only screen and (max-width: 37.5em) {
  .impressum-content {
    padding: 2rem;
  }
}

.impressum-title {
  font-size: 3.5rem;
  color: var(--color-green);
  font-weight: 700;
  margin-bottom: 3rem;
  text-align: center;
}

@media only screen and (max-width: 37.5em) {
  .impressum-title {
    font-size: 2.8rem;
  }
}

.company-info {
  margin-bottom: 4rem;
}

.company-info p {
  font-size: 1.6rem;
  color: var(--color-dark_gray);
  margin-bottom: 0.8rem;
  line-height: 1.6;
}

.company-info a {
  color: var(--color-green);
  text-decoration: none;
}

.company-info a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

.disclaimer-title {
  font-size: 2.8rem;
  color: var(--color-green);
  margin-bottom: 2rem;
  font-weight: 700;
}

.disclaimer-section h4 {
  font-size: 2rem;
  color: var(--color-orange);
  margin-top: 2.5rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.disclaimer-section p {
  font-size: 1.6rem;
  color: var(--color-dark_gray);
  margin-bottom: 2rem;
  line-height: 1.6;
}

@media only screen and (max-width: 37.5em) {
  .disclaimer-title {
    font-size: 2.4rem;
  }

  .disclaimer-section h4 {
    font-size: 1.8rem;
  }

  .disclaimer-section p {
    font-size: 1.4rem;
  }
}

table,
tr,
td,
th {
  border-collapse: collapse;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  width: auto;
  height: auto;
  display: block;
}

.impressum-section a {
  color: var(--color-green);
  text-decoration: none;
}

.impressum-section a:hover {
  color: var(--color-orange);
  text-decoration: underline;
}

/* Hero flex container */
.hero__flex-container {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 2rem;
  box-sizing: border-box;
}

.hero__content {
  flex: 1;
  max-width: 60%;
  padding-right: 2rem;
}

.hero__image-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 40%;
}

.hero__building-img {
  max-width: 100%;
  height: auto;
}

.contact-network-graphic {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 45%;
  opacity: 0.8;
  z-index: 0;
}

/* Global image constraint */
img {
  max-width: 100%;
  height: auto;
}