:root {
  --color1: #10069F;
  --color2: #ffffff;
  --color3: #e52320;
  --background: #EBEBEB;
}

* {
  font-family: 'Noto Sans', sans-serif;
}

body {
  margin: 0;
}

a {
  text-decoration-line: none;
}
i:hover, a:hover{
  color: var(--color3);
}

#background {
  background: var(--background);
  height: 100vh;
  width: 100vw;
  margin: 0;
  overflow: hidden;
  opacity: 100%;
  position: absolute;
}

.flex-container {
  display: flex;
  justify-content: center;
}

#info {
  position: absolute;
  color: var(--color1);
}

#name {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 0;
}

#enterprise {
  margin-top: 0;
}

#addContact,
#profilPic {
  justify-content: center;
  display: flex;
  position: absolute;
}

#profilPic > img {
  border-radius: 50%;
}

#addContact {
  margin: 20px auto 0;
  height: auto;
  width: auto;
  max-width: 50%;
  padding: 22px 25px;
  background-color: var(--color3);
  color: white;
  align-items: center;
  border-radius: 8px;
  cursor: pointer;
  border: 4px solid var(--color3);
}
#addContact:hover{
  background-color: white;
  color: var(--color3);
}
#addContact:active{
  background-color: var(--background);
}

#contact div {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color1)
}

#contact {
  display: flex;
  justify-content: center;
  margin-top: 1em;
}

#contact > a {
  padding: 20px;
}

/* Logo */
#organisation {
  position: absolute;
  width: 50%;
  height: auto;
  padding: 20px;
  transform: translate(0%, 99%);
}

#person {
  height: auto;
  width: 50%;
  position: absolute;
  right: 0;
  top: 33%;
  display: flex;
  align-items: center;
}

.personal-data {
  margin-left: 8vw;
}

/* Handy hochkant */
@media (orientation: portrait) {
  body {
    overflow: hidden;
    font-size: 4vw;
  }
  #background {
    background-size: auto 100%;
  }
  #person {
    justify-content: center;
    margin: 15% auto 0 auto;
    position: relative;
  }
  #info {
    position: absolute;
    margin: 50vh 5vh 0 5vh;
  }
  #organisation {
    position: relative;
    transform: none;
    margin: 0 auto;
  }
  #organisation > img {
    height: auto;
    width: 50vw;
  }

  #profilPic > img {
    height: auto;
    width: 30vw;
  }
  .personal-data {
    justify-content: center;
    margin-left: 0;
  }
  #name,
  #position,
  #enterprise {
    text-align: center;
  }
  #contact {
    position: absolute;
    bottom: 0;
    width: 100%;
  }
  #contact div {
    margin: 20px 0;
    font-size: 2em;
  }
  #addContact {
    position: absolute;
    bottom: 15vh;
  }
}
@media (orientation: landscape) {
  body {
    overflow: hidden;
    font-size: 1.5vw;
  }
  #info {
    height: auto;
    width: 100%;
    background-color: white;
    padding: 20px;
  }
  #info > div {
    display: flex;
  }
  #organisation,
  #logo {
    width: 50%;
    justify-content: center;
    display: flex;
    margin-left: -8vw;
  }
  #organisation > img,
  #logo > img {
    width: 50%;
  }
  #profilPic {
    margin-left: -8vw;
  }
  #profilPic > img {
    height: 16vw;
    width: auto;
  }
  #addContact {
    position: relative;
    top: 50vh;
  }
  #contact {
    position: relative;
    top: 50vh;
  }
  #contact div {
    font-size: 2em;
  }
}
