@font-face {
  font-family: 'Inter';
  font-style: normal;
  src: url('../fonts/inter.ttf') format('truetype');
}

* {
  box-sizing: border-box;
}

body {
  position: relative;
  background-color: #64BC9D;
  width: 100vw;
  height: 100vh;
  padding: 0;
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: #fff;
  overflow: hidden;
  font-size: 14px;
}

a {
  background-color: #64BC9D;
  color: #fff;
  display: inline-block;
  text-decoration: none;
  cursor: pointer;
  padding: 10px 20px 10px 15px;
  border-radius: 5px;
  margin: 5px 0;
  transition: background-color 0.1s ease-in-out;
}

a.phone:before {
  content: '📞';
  margin-right: 10px;
}

a.mail:before {
  content: '📧';
  margin-right: 10px;
}

a:hover {
  background-color: #95c11f;
}

main {
  position: relative;
  max-width: 560px;
  aspect-ratio: 2 / 1;

  margin: 0 auto;
  top: 50%;
  transform: translateY(-50%);
  background-color: #00615c;
  /* border: 3px solid #ffffff; */
  box-shadow: 0px 0px 30px rgba(0, 0, 0, 0.3);
}

main .logo {
  position: relative;
  display: block;
  padding: 40px 30px;
  padding-bottom: 0;
  background-color: #00615c;
}

main .logo img {
  width: 70%;
}

main .content {
  position: relative;
  margin-top: 30px;
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  gap: 20px;
  line-height: 1.5;
  padding: 40px;
  padding-top: 0;
  padding-left: 25%; /* magical number */
  background-color: #00615c;
}

footer {
  position: fixed;
  bottom: 0;
  width: 100%;
  text-align: center;
  background-color: #00615c;
  color: rgba(255, 255, 255, 0.4);
}

footer p {
  margin: 20px;
}

main div.landscape {
  position: absolute;
  width: 100vw;
  height: 60px;
  left: 50%;
  top: 45px;
  transform: translateX(-50%);
  z-index: -1;
  background-image: url('./assets/images/Landschaft.svg');
  background-repeat: repeat-x;
  background-position-x: -9.5%;
  opacity: 0.3;
}

footer svg {
  position: relative;
  width: 720px;
  left: 50%;
  transform: translateX(-50%);
  display: none;
}

footer svg polygon,
main svg polygon {
  fill: rgba(255, 255, 255, 0.3);
}

@media screen and (max-width: 600px) {
  html {
    height: 100%;
  }

  body {
    padding: 0;
    margin: 0;
    height: unset;
    overflow: hidden;
  }

  main {
    margin: 20px;
    top: 0;
    transform: none;
    aspect-ratio: unset;
  }

  main .logo img {
    width: 100%;
  }

  main .content {
    flex-direction: column;
    padding-left: 30px;
  }

  footer {
    overflow: hidden;
    padding: 20px;
  }

  footer p {
    margin: 20px 20px 0px 20px;
  }

  main div.landscape {
    display: none;
  }

  footer svg {
    display: block;
  }
}