/* CSS files add styling rules to your content */
@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,400i,700&display=swap");

/*Generelle Einstellungen*/
html {
  box-sizing: border-box;
  height: 100%;
}

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

body {
  height: 100%;
  font-family: Roboto, arial, sans-serif;
  color: #252ecc;
  margin: 2em 0;
  padding-top: 0;
  background-attachment: fixed;
}

/*Navigationsleiste*/
nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.li-nav {
  float: left;
  width: 20%;
  font-size: 1.2vw;
  cursor: pointer;
}

li a {
  display: block;
  color: white;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
}

/* Change the link color on hover */
a:hover {
  color: #5bd8d5;
}

.topnav {
  postion: fixed;
  top: 0;
  width: 100%;
  list-style-type: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #252ecc;
  opacity: 88%;
}

.topnav .icon {
  display: none;
}

.anchor {
  display: block;
  position: relative;
  top: -8vw;
  visibility: hidden;
}

/*Main Section*/
header {
  margin-top: 11em;
  margin-bottom: 10em;
  font-size: 1.3vw;
}

section {
  margin-bottom: 30vw;
  font-size: 1.3vw;
  position: relative;
}

div {
  text-align: center;
}

h1 {
  color: #252ecc;
  font-size: 5vw;
}

h2, h3 {
  color: #252ecc;
  font-size: 3vw;
}

hr {
  text-align: left;
  border-top: 1px solid white;
  opacity: 0%;
}

.text {
  padding-left: 20%;
  padding-right: 20%;
}

#ul-dienstleistung {
  text-align: left;
  padding-left: 35%;
}

/*Tabelle, CV*/
table {
  vertical-align: top;
  text-align: left;
  border-collapse: separate;
  border-spacing: 0 3vw;
  /*border: 1px solid black;*/
  padding-left: 8%;
  padding-right: 10%;
}

.td-left {
  vertical-align: top;
  text-align: right;
  width: 30%;
  padding-left: 12vw;
}

.td-right {
  width: 70%;
  padding-left: 3vw;
}

.color_overlay {
  position: absolute;
  top: 0;
  left: 0;
  background-color: white;
  width: 100%;
  height: 100%;
  opacity: 0.75;
}


/* Impressum */
#logo {
  position: fixed;
  left: 86%;
  bottom: 12%;
  z-index: 0;
}

#impressum {
  text-align: left;
  position: absolute;
  background-color: #39a8f7;
  margin: 0;
  border: 0;
  padding: 1em;
  color: white;
  font-size: 1vw;
  opacity: 1;
}

#impressum_h2,
#impressum_h3 {
  color: white;
  font-size: 1.4vw;
  padding-top: 15px;
}

.video_container {
  position: fixed;
  top: 0;
  left: 0;
  width: auto;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background-size: cover;
  background-position: center center;
  z-index: -1;
  background-attachment: scroll;
  bottom: 0;
}

#set-height {
  display: block;
}

#video {
  position: fixed;
  top: 0;
  left: 0;
  object-fit: cover;
  width: 105%;
  height: 105%;
  z-index: -1;
}

.color_overlay {
  position: fixed;
  top: 0;
  left: 0;
  background-color: white;
  width: 100%;
  height: 100%;
  opacity: 0.75;
  z-index: 0;
}

/*Tablet*/
@media screen and (max-width: 800px) {
  /*Nav-bar*/
  .li-nav {
    font-size: 1.8vw;
  }

  /*Main Section*/
  header {
    margin-top: 40vw;
    margin-bottom: 50vw;
    font-size: 2.2vw;
  }

  section {
    margin-bottom: 50vw;
    font-size: 2.2vw;
  }

  .anchor {
    display: block;
    position: relative;
    top: -20vw;
    visibility: hidden;
  }

  /* Impressum */
  #impressum {
    background-color: #39a8f7;
    margin: 0;
    border: 0;
    padding: 1em;
    color: white;
    font-size: 2.2vw;
    opacity: 1;
  }

  #impressum_h2,
  #impressum_h3 {
    color: white;
    font-size: 2.4vw;
  }
}

/*
Responsitivity
If the screen is smaller than 400px the navbar is not displayed - Smartphone
*/
@media screen and (max-width: 400px) {
  html, body {
    width: auto;
    overflow-x: hidden;
  }

  .topnav {
    display: none;
  }

  #logo {
    display: none;
  }

  header {
    font-size: 18px;
    margin-bottom: 60vw;
  }

  section {
    width: 100%;
    margin-bottom: 60vw;
    font-size: 16px;
  }

  div {
    padding-left: 20px;
    padding-right: 20px;
  }

  h1 {
    font-size: 32px;
  }

  h2, h3 {
    font-size: 24px;
  }

  .text {
    text-align: left;
    padding-left: 5%;
    padding-right: 5%;
  }

  #ul-dienstleistung {
    text-align: left;
    padding-left: 8%;
    border-collapse: separate;
    border-spacing: 0 10px;
  }

  li {
    margin: 0 0 12px 0;
  }

  /*Tabelle, CV*/
  table {
    vertical-align: top;
    text-align: left;
    border-collapse: separate;
    border-spacing: 0 3vw;
    /*border: 1px solid black;*/
    padding-left: 10px;
    padding-right: 10px;
  }

  ul {
    padding-left: 8%;
  }

  .td-left {
    text-align: left;
    font-weight: bold;
    padding-left: 0px;
    padding-right: 15px;
  }

  .td-right {
    padding-right: 50px;
  }

  /* Impressum */
  #impressum {
    background-color: #39a8f7;
    margin: 0;
    border: 0;
    padding: 1em;
    color: white;
    font-size: 16px;
    opacity: 1;
  }

  #impressum_h2,
  #impressum_h3 {
    color: white;
    font-size: 16px;
  }
}

