* {
  margin: 0;
  padding: 0;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  text-decoration: none;
  list-style-type: none;
}

html {
  font-family: "Nimbus Sans", "Arial", sans-serif;
  font-size: 12px;
  color: #666768;
  text-align: left;
  text-transform: uppercase;
  letter-spacing: 0px;
}

main, nav {
  margin: 0 11vw;
}

main {
  position: relative;
}

h1, h2 {
  margin-top: 8vw;
}

h1, h2, .phone-number, aside div p:first-of-type {
  font-size: 26px;
  font-weight: bold;
}

h1, h2, h4, .phone-number, article li::before, aside div p:first-of-type, h5, a, a:visited {
  color: #4278BC;
}

h3, h4 {
  font-size: 14px;
  line-height: 20px;
}

h5 {
  font-size: 12px;
}

a {
  word-break: break-word;
}

nav {
  height: 130px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  position: relative;
}

.logo {
  height: auto;
  width: 57vw;
  max-width: 296px;
}

.burger-menu {
  height: 30px;
  width: 40px;
}

.close-menu {
  height: 27.75px;
  display: none;
}

.menu-container {
  visibility: hidden;
  width: 100vw;
  height: 440px;
  margin-left: -11vw;
  padding: 0 11vw;
  position: absolute;
  top: 130px;
  z-index: 1;
  background-color: #4278BC;
  opacity: 0;
  -webkit-transition: all ease-in-out 0.5s;
  -o-transition: all ease-in-out 0.5s;
  transition: all ease-in-out 0.5s;
}

.menu-container ul li {
  text-align: center;
  text-transform: uppercase;
  font-size: 16px;
  line-height: 22px;
  padding-top: 35px;
}

.menu-container ul li, .menu-container ul li a {
  color: white;
}

.menu-container ul li:first-of-type {
  font-size: 26px;
  font-weight: bold;
}

.menu-container ul li:nth-of-type(2) {
  border-top: 1px solid white;
}

.menu-container ul li:last-of-type {
  padding-bottom: 60px;
  border-bottom: 1px solid white;
}

.open-menu {
  visibility: visible;
  opacity: 0.95;
  -webkit-transition: all ease-in-out 0.5s;
  -o-transition: all ease-in-out 0.5s;
  transition: all ease-in-out 0.5s;
}

.header-img {
  height: 47vw;
  max-height: 300px;
  width: 100%;
  background: url("../../media/images/Header-bild.png") no-repeat top;
  background-size: cover;
}

.article-img {
  width: 100%;
  height: 47vw;
  max-height: 300px;
  margin: 25px 0 45px;
  border-radius: 5px;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
}

#homepage .article-img {
  background-image: url("../../media/images/Home-bild.png");
}

#services-page .article-img {
  background-image: url("../../media/images/Dienstleistungen-bild-1.png");
}

#story-page .article-img {
  background-image: url("../../media/images/Firmengeschichte-bild.png");
}

#offer-request-page .article-img {
  background-image: url("../../media/images/Angebot-bild.png");
}

p, h5, article li, aside div p a {
  text-transform: none;
  line-height: 16px;
}

article p {
  margin-bottom: 20px;
}

article li {
  margin-left: 14px;
}

article ul {
  margin-bottom: 20px;
}

article li::before {
  content: "•";
  display: inline-block;
  width: 1em;
  margin-left: -1em;
}

aside {
  border: 1px solid #4278BC;
  border-radius: 5px;
  padding: 24px 20px;
  max-width: 300px;
}

aside p {
  text-transform: inherit;
  font-size: 14px;
  line-height: 36px;
}

button {
  width: 100%;
  max-width: 260px;
}

.button {
  height: 40px;
  margin-bottom: 2px;
  border: unset;
  border-radius: 5px;
  background-color: #4278BC;
  text-transform: uppercase;
  font-size: 14px;
  font-weight: bold;
  color: white;
  cursor: pointer;
}

.phone-number {
  line-height: 70px;
}

aside div {
  margin-top: 40px;
}

aside div p:first-of-type {
  line-height: 20px;
}

aside div p {
  line-height: 20px;
}

aside div p:nth-of-type(2), aside div p:nth-of-type(4) {
  margin-top: 10px;
}

aside div p a {
  text-decoration: underline;
}

#map {
  width: 100%;
  height: 200px;
  background-color: grey;
}

.card-container {
  margin: 15px 0;
}

.card-container:first-of-type {
  margin-top: 0;
}

.card-container:last-of-type {
  margin-bottom: 20px;
}

.card-container h4 {
  font-weight: normal;
  color: #666768;
  width: 100%;
  background-color: #C2C3C3;
  border-radius: 5px;
}

.card-container h4, .card {
  padding: 10px 16px 5px;
}

.card {
  display: none;
}

.card p, .card ul {
  margin-bottom: 0;
}

form {
  margin-bottom: 50px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
}

label {
  font-weight: bold;
  text-transform: none;
}

.input-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  margin-top: 20px;
}

.input-container label {
  margin-bottom: 5px;
}

form input, form textarea, form select {
  border-radius: 6px;
  border: 2px solid #EBEDED;
  background-color: white;
  color: inherit;
}

form input, form select {
  height: 30px;
  text-indent: 10px;
}

form select {
  color: #A6ADB4;
}

form textarea {
  height: 100px;
  padding: 10px;
}

option {
  color: #666768;
}

option[value=""][disabled] {
  display: none;
}

input[type="submit"] {
  width: 200px;
  text-indent: 0;
  margin-top: 20px;
  -ms-flex-item-align: end;
      align-self: flex-end;
}

.isValid {
	border: 2px solid #EBEDED;
}

.isInvalid {
	border: 1px solid red;
}

.error {
  font-size: 12px;
  color: red;
  margin-bottom: 0;
}

footer {
  margin: 13vw 11vw 0;
  height: 160px;
  border-top: 1px solid #4278BC;
}

footer ul {
  height: inherit;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: space-evenly;
      -ms-flex-pack: space-evenly;
          justify-content: space-evenly;
  font-size: 16px;
  line-height: 22px;
}

footer a, footer a:visited {
  color: #666768;
}

footer ul li {
  text-align: center;
  margin-top: 10px;
}

footer ul li:first-of-type {
  margin-top: 20px;
}

footer div:first-of-type {
  margin-bottom: 10px;
}

footer ul li:last-of-type {
  margin: 30px 0;
}

@media only screen and (min-width: 768px) {
  .menu-container {
    height: 300px;
  }

  .menu-container ul li {
    padding-top: 20px;
  }

  .menu-container ul li:first-of-type {
    padding: 24px 0 15px;
  }

  .menu-container ul li:last-of-type {
    padding-bottom: 20px;
  }

  h1, h2 {
    font-size: 34px;
    margin-bottom: 10px;
    margin-top: 62px;
  }

  h3{
    font-size: 20px;
    line-height: 28px;
  }

  h4 {
    font-size: 18px;
    line-height: 22px;
  }

  .card h4 {
    font-size: 16px;
  }

  p, main li, h5 {
    font-size: 16px;
    line-height: 22px;
  }

  .article-img {
    margin-top: 45px;
  }

  article {
    width: 58%;
    margin-right: 4%;
    vertical-align: top;
  }

  aside {
    width: 37%;
    right: 0;
    max-width: unset;
  }

  article, aside {
    display: inline-block;
  }

  #map {
    height: 22vw;
    max-height: 240px;
  }

  #homepage .article-img {
    background-position: top;
  }

  .header-img {
    background-position: center;
  }

  .phone-number {
    font-size: 24px;
  }

  footer {
    margin-top: 100px;
    height: 7vw;
    max-height: 85px;
  }

  footer ul {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    max-height: inherit;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }

  footer ul li, footer ul li:first-of-type, footer ul li:last-of-type {
    margin: 0;
    text-align: left;
  }

  footer li:first-of-type {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
  }

  footer div:first-of-type {
    margin-bottom: 0;
    margin-right: 50px;
  }

}

@media only screen and (min-width: 1200px) {
  h1, h2 {
    margin-top: 0;
  }

  h1, h2, aside div p:first-of-type {
    font-size: 40px;
  }

  nav {
    height: 21vw;
    max-height: 225px;
  }

  .logo {
    width: 23.1vw;
    max-width: 400px;
  }

  .burger-menu, .close-menu {
    display: none;
  }

  .menu-container {
    visibility: visible;
    width: 50%;
    min-width: 573px;
    height:100%;
    margin-left: auto;
    padding: 0;
    position: relative;
    top: 0;
    background-color: unset;
    opacity: 1;
  }

  .menu-container ul {
    height: 100%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
  }

  .menu-container ul li {
    padding-top: 0;
  }

  .menu-container ul li:first-of-type {
    display: none;
  }

  .menu-container ul li:nth-of-type(2) {
    border-top: unset;
  }

  .menu-container ul li:last-of-type {
    padding-bottom: 0;
    border-bottom: unset;
  }

  .menu-container ul li, .menu-container ul li a {
    color: #666768;
  }

  nav, main, footer {
    margin: 0 14.5vw;
  }

  footer {
    margin-top: 150px;
  }

  .header-img {
    height: 25vw;
    max-height: 400px;
  }

  .button {
    height: 60px;
    font-size: 20px;
  }

  section {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 7vw auto;
    grid-template-columns: 1fr auto;
    -ms-grid-rows: (auto)[5];
    grid-template-rows: repeat(5, auto);
    -webkit-column-gap: 7vw;
       -moz-column-gap: 7vw;
            column-gap: 7vw;
    margin-top: 61px;
  }

  section > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
  }

  section > *:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
  }

  section > *:nth-child(3) {
    -ms-grid-row: 2;
    -ms-grid-column: 1;
  }

  section > *:nth-child(4) {
    -ms-grid-row: 2;
    -ms-grid-column: 3;
  }

  section > *:nth-child(5) {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
  }

  section > *:nth-child(6) {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
  }

  section > *:nth-child(7) {
    -ms-grid-row: 4;
    -ms-grid-column: 1;
  }

  section > *:nth-child(8) {
    -ms-grid-row: 4;
    -ms-grid-column: 3;
  }

  section > *:nth-child(9) {
    -ms-grid-row: 5;
    -ms-grid-column: 1;
  }

  section > *:nth-child(10) {
    -ms-grid-row: 5;
    -ms-grid-column: 3;
  }

  article {
    width: auto;
    margin-right: 0;
  }

  .article-img {
    height: 25vw;
    max-height: 400px;
  }

  article p {
    font-size: 16px;
  }

  .card-container h4 {
    font-size: 14px;
    padding-left: 25px;
    cursor: pointer;
  }

  article .card {
    padding-bottom: 25px;
  }

  aside {
    -ms-grid-column: 2;
    -ms-grid-column-span: 1;
    grid-column: 2/3;
    -ms-grid-row: 1;
    -ms-grid-row-span: 5;
    grid-row: 1/6;
    width: 29.1vw;
    max-width: 398px;
    height: -webkit-fit-content;
    height: -moz-fit-content;
    height: fit-content;
    padding: 30px 40px;
  }

  aside p {
    font-size: 20px;
    line-height: 56px;
  }

  aside div p {
    line-height: 28px;
  }

  .phone-number {
    font-size: 38px;
  }

  aside div p:first-of-type {
    margin-bottom: 25px;
  }

  #map {
    max-height: 285px;
  }

  form {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 15px 1fr;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 15px;
  }

  label {
    font-size: 14px;
  }

  form .left-side {
    -ms-grid-column: 1;
    -ms-grid-column-span: 1;
    grid-column: 1/2;
  }

  form .right-side {
    -ms-grid-column: 2;
    -ms-grid-column-span: 1;
    grid-column: 2/3;
  }

  form div:nth-of-type(5) {
    -ms-grid-row: 5;
    -ms-grid-row-span: 3;
    grid-row: 5/8;
  }

  form textarea {
    height: 100%;
  }

  input[type="submit"] {
    width: 260px;
    -ms-grid-column-align: right;
        justify-self: right;
  }

  form div:nth-of-type(6) {
    -ms-grid-row: 1;
    -ms-grid-row-span: 1;
    grid-row: 1/2;
  }

  form div:nth-of-type(7) {
    -ms-grid-row: 2;
    -ms-grid-row-span: 1;
    grid-row: 2/3;
  }

  form div:nth-of-type(8) {
    -ms-grid-row: 3;
    -ms-grid-row-span: 1;
    grid-row: 3/4;
  }

  form div:nth-of-type(9) {
    -ms-grid-row: 4;
    -ms-grid-row-span: 1;
    grid-row: 4/5;
  }

  form div:nth-of-type(10) {
    -ms-grid-row: 5;
    -ms-grid-row-span: 1;
    grid-row: 5/6;
  }

  form div:nth-of-type(11) {
    -ms-grid-row: 6;
    -ms-grid-row-span: 1;
    grid-row: 6/7;
  }

  form div:nth-of-type(12) {
    -ms-grid-row: 7;
    -ms-grid-row-span: 1;
    grid-row: 7/8;
  }
}
