@import url('https://fonts.googleapis.com/css2?family=Merriweather:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700&display=swap');

/* reset browser defaults */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* utilities */
.headline {
  font-family: 'Meriweather', serif;
  font-size: 2.4rem;
  font-weight: 400;
}

/* custom body defaults */
body {
  font-family: 'Lato', sans-serif;
  background-color: #f5f5f5;
  color: #333;
  font-size: 1.6rem;
  line-height: 1.6;
  font-weight: 300;
}

.flex-container {
  min-width: 320px;
  display: flex;
}

.flex-column {
  flex-direction: column;
}

/* above the fold */
#hero {
  display: flex;
}

#hero #welcome-text {
  /* display: flex; */
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100vh;
  width: 50vw;
  text-align: center;
  min-height: 438px;
}

#hero #welcome-text .headline {
  font-weight: 700;
  font-size: 3.2rem;
  padding: 0px 50px;
}

#hero #welcome-text .byline {
  font-weight: 400;
  font-size: 1.2rem;
  padding-bottom: 5px;
}

#hero #welcome-text p {
  padding: 10px 50px;
  max-width: 540px;
}

#hero #social-presences {
  display: flex;
  justify-content: space-evenly;
  font-size: 1.6rem;
  flex-wrap: wrap;
}

#hero #social-presences i {
  color: #333;
  padding: 20px 12px;
}

#hero #profile-pic {
  height: 100vh;
  width: 50vw;
  min-height: 220px;
  background: url('../images/profile-picture-photo-april-2019.jpg') no-repeat center center/cover;
}

/* legal */
#legal {
  /* display: flex; */
  font-size: 0.9rem;
  background-color: #333;
  justify-content: space-around;
  align-items: center;
  height: 50px;
}

#legal a, .copyright {
  color: #f5f5f5;
  text-decoration: none;
}

#legal a > i {
  padding-right: 2px;
}

/* impressum */
.text-container {
  font-size: 1.2rem;
  padding: 20px 50px;
}
.mailing-address {
  list-style-type: none;
}

.email-image {
  height: 20px;
  background: url('../images/eml-addr.png') no-repeat;
}

.phone-nr-image {
  height: 20px;
  background: url('../images/p-nr.png') no-repeat;
}

@media(max-width: 1030px) {
  #hero #welcome-text .headline {
    font-size: 2.6rem;
  }
}

/* iPad, iPhone X, iPhone 6 (Plus), 7 (Plus) and 8 (Plus) */
@media(max-width: 768px) {
  #hero {
    flex-direction: column;
  }
  #hero #welcome-text {
    height: 68vh;
    width: 100vw;
    order: 2;
  }

  #hero #welcome-text .headline {
    font-size: 2.2rem;
  }

  #hero #welcome-text .byline {
    width: 250px;
  }

  #hero #welcome-text p {
    width: 380px;
    font-size: 1.1rem;
  }

  #hero #welcome-text #social-presences {
    width: 220px;
  }

  #hero #profile-pic {
    background-position: 0 15%;
    height: 32vh;
    width: 100vw;
    order: 1;
  }
  #legal {
    flex-direction: column;
    height: 120px;
    justify-content: space-evenly;
  }
}

/* tiny screens */
@media(max-width: 358px) {
  #hero #welcome-text .headline {
    font-size: 1.6rem;
  }

  #hero #welcome-text .byline {
    font-size: 1.2rem;
  }
}

/* ultrawide screens */
@media(min-width: 1600px) {
  #hero #profile-pic {
    background-position: 0 5%;
  }
}