:root {
  --primary-color: #142740;
}

/* Font */

/* montserrat-100 - latin */
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100;
  src: url("../fonts/montserrat-v31-latin-100.woff2") format("woff2");
}

/* montserrat-regular - latin */
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400;
  src: url("../fonts/montserrat-v31-latin-regular.woff2") format("woff2");
}
/* montserrat-500 - latin */
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 500;
  src: url("../fonts/montserrat-v31-latin-500.woff2") format("woff2");
}
/* montserrat-600 - latin */
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 600;
  src: url("../fonts/montserrat-v31-latin-600.woff2") format("woff2");
}
/* montserrat-700 - latin */
@font-face {
  font-display: swap;
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 700;
  src: url("../fonts/montserrat-v31-latin-700.woff2") format("woff2");
}

/* Grundlegende Styles */
body {
  font-family: "Montserrat", sans-serif;
  font-size: 16px;
  margin: 0;
  padding: 0;
  line-height: 1.6;
  background: var(--primary-color);
}

p {
  margin-top: 0;
}

h1,
h2 {
  font-weight: normal;
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin: 0;
}

h1 {
  padding: 40px 0 30px 0;
  line-height: 1;
}

h2 {
  text-align: center;
  margin: 0;
  font-weight: 700;
}

h2 strong {
  font-size: 2rem;
  font-weight: normal;
}

#logo {
  display: flex;
  justify-content: center;
  padding-top: 20px;
}

#logo a {
  display: block;
  background: url(../images/logo-aw-invest.svg) no-repeat;
  width: 100px;
  height: 150px;
  background-size: contain;
  background-position: center;
}

.bg-img {
  background: url(../images/bg-img.jpg) no-repeat;
  background-color: var(--primary-color);
  min-height: 300px;
  width: 100%;
  background-position: center;
  background-size: cover;
}

nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul li {
  display: inline;
  margin-right: 1rem;
}

nav ul li a {
  text-decoration: none;
}

.content {
  padding: 50px 25px 0 25px;
}

/* .content p {
  max-width: 600px;
} */

.content,
.bg-img {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

header {
  padding: 20px;
}

footer {
  padding: 34px 20px;
}

header,
footer,
.content,
.bg-img {
  text-align: center;
}

header,
footer,
.bg-primary-color {
  background: var(--primary-color);
}

header,
.bg-primary-color,
.bg-primary-color a,
footer,
footer a,
.bg-img,
.w-slim,
.w-slim a {
  color: #fff;
}

.w-slim {
  width: 80%;
  max-width: 800px;
  margin: 0 auto;
}

.w-slim h2 {
  text-align: left;
}

footer {
  font-size: 14px;
}

footer a:hover {
  text-decoration: underline;
}

footer nav ul li a {
  padding: 5px;
}

footer nav ul li {
  border-right: 1px solid;
  padding-right: 10px;
  margin-right: 10px;
}

footer nav ul li:last-child {
  border-right: 0;
  padding-right: 0;
  margin-right: 0;
}

@media (min-width: 900px) {
  html,
  body {
    height: 100%;
    margin: 0;
  }
  body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
  }

  /* Header fix oben */
  header {
    flex: 0 0 auto;
  }

  /* Footer fix unten */
  footer {
    flex: 0 0 auto;
  }
  /* Main nimmt alles dazwischen */
  main {
    flex: 1 0 auto;
    display: flex;
    flex-direction: column;
  }
  .bg-img {
    flex: 1; /* dehnt sich */
  }
  header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
  }
  #logo {
    padding-top: 0;
  }
  .content {
    padding-top: 50px;
    padding-bottom: 0;
  }
  h1 {
    padding: 0;
  }
  header,
  footer {
    padding: 2% 4%;
  }
  .display-none {
    display: none;
  }
  footer {
    padding: 25px;
  }
}

/* Overlay */
#info #h-h2,
#info .close-btn {
  display: none;
}
@media (min-width: 900px) {
  main {
    position: relative;
  }
  #info #h-h2 {
    display: block;
    margin-bottom: 50px;
  }
  #info .close-btn {
    display: block;
    position: absolute;
    top: 25px;
    right: 25px;
    width: 24px;
    height: 24px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 15px;
    border: 1px solid #fff;
    box-sizing: border-box;
  }

  #info .close-btn::before,
  #info .close-btn::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 24px;
    height: 1px;
    background-color: #fff;
    transform-origin: center;
  }

  #info .close-btn::before {
    transform: translate(-50%, -50%) rotate(45deg);
  }

  #info .close-btn::after {
    transform: translate(-50%, -50%) rotate(-45deg);
  }

  #info {
  visibility: hidden;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.95);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0.4s;
  position: absolute;
  top: 50%;
  left: 50%;
  width: 90%;
  max-width: 450px;
  z-index: 10;
  padding: 40px 70px;
  }

  #info.active {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  transition-delay: 0s; /* Sichtbarkeit sofort aktiv */
  }

  .desktop-only {
    display: inline-block;
    margin: 1rem;
    padding: 0.5rem 1rem;
    color: #fff;
    border: none;
    cursor: pointer;
    border: 1px solid #fff;
    text-transform: uppercase;
    background: none;
    letter-spacing: 1px;
    font-weight: 600;
    font-family: "Montserrat";
  }
}

@media (max-width: 899px) {
  .desktop-only {
    display: none;
  }
}
