/* === FARBEN === */

/*  blau          #36648B
    dunkelgrau    #3d3f45
    hellgraublau  #C1CDCD
    weißgrau      #E5E5E5
    rot           #A62C21 */

/* === GLOBAL === */

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: 'Calibri', 'Tahoma', 'Helvetica', 'Arial', 'Verdana', sans-serif;
}

* {
  box-sizing: border-box;
}

/* === GENERELLES === */

h1 {
  text-align: center;
}

/* === HEADER-NAV === */

#header-nav {
  width: 93%;
  margin-left: 2%;
  height: 85px;
  background-color: #FFF;
  font-size: 1.5rem;
}

#header-nav a > img {
  height: 79px;
  width: auto;
  float: left;
}

#header-nav ul {
  padding: 0;
  margin: 0;
  float: right;
  height: 100%;
}

#header-nav ul > li {
 display: inline-block;
 height: 100%;
 padding: 0 .4rem 0 .4rem;
}

#header-nav ul > li > a {
  display: inline-block;
  margin-top: 2.5rem;
  margin-bottom: 1rem;
}

#header-nav ul > li > a:hover {
  color: #C1CDCD;
  text-decoration: none;
}

.active {
  background-color: #A62C21;
  color:  #FFF;
  text-decoration: none;
}

.inactive {
  color: #36648B;
  text-decoration: none;
}

/* === MOBILE-NAVIGATION === */

#mobile-nav-button {
  float: right;
  color: #36648B;
  font-size: 3rem;
  border: 2px solid #FFF;
  width: 35px;
  height:35px;
  position: relative;
  margin-top: 1.5rem;
}

#mobile-nav-button > span {
  position: absolute;
  bottom: -11px;
  left: 4px;
}

#mobile-nav-content > ul > li {
  display: block;
  padding: 0 .5rem .5rem .5rem;
  text-align: center;
}

#mobile-nav-content > ul > li > a {
  font-size: 15px;
  color: #FFF;
}

#mobile-nav-dropdown {
  position: relative;
  display: inline-block;
  float: right;
}

#mobile-nav-content {
  position: absolute;
  right: 0;
  top: 58px;
  background-color: #36648B;
  display: none;
}

#mobile-nav-dropdown:hover > #mobile-nav-content {
  display: block;
}

#mobile-nav {
  display: none;
}

@media (max-width: 768px) {
  #desktop-nav {
    display: none;
  }
  #mobile-nav {
    display: block;
  }
  #header-nav ul > li > a {
    margin: 1rem 0 .5rem 0;
  }
}

/* === HEADER-BANNER === */

#header-banner-index {
  width: 100%;
  height: 0;
  padding-top: 31.25%;
  background: url("../img/header-banner-index.JPG") no-repeat;
  background-size: contain;
}

#header-banner-leistungen {
  width: 100%;
  height: 0;
  padding-top: 31.25%;
  background: url("../img/header-banner4.jpg") no-repeat;
  background-size: contain;
}

#header-banner-datenschutz {
  width: 100%;
  height: 0;
  padding-top: 31.25%;
  background: url("../img/header-banner-datenschutz.jpg") no-repeat;
  background-size: contain;
}

#header-banner-impressum {
  width: 100%;
  height: 0;
  padding-top: 31.25%;
  background: url("../img/header-banner-impressum.jpg") no-repeat;
  background-size: contain;
}

/* === CONTENT STARTSEITE === */

.separator {
    width: 100%;
    border-bottom: 3px solid #A62C21;
    text-align: center;
    height: 18px;
    margin-top: 2%;
    margin-bottom: 5%;
}

.separator span {
    line-height: 15px;
    padding: 0 10px;
    background: #FFF;
    display: inline-block;
    margin-top: 6px;
    color: #A62C21;
    font-size: 36px;
}

#servicestext {
  height: 650px;
  background-color: #36648B;
}

#flex-container-index {
  display: flex;
  width: 98%;
  margin-left: auto;
  margin-right: auto;
  background-color: #36648B;
  justify-content: space-around;
}

.servicesbox {
  text-align: center;
  color: #FFF;
}

.servicesbox h1 {
  font-size: 32px;
}

.servicesbox img {
  width: 80%;
  height:auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.servicesbox p {
  font-size: 22px;
  margin-left: 12%;
  margin-right: 12%;
  min-height: 15%;
}

.anker-container {
  min-height: 50px;
}

.services-button {
  text-decoration: none;
  color: #FFF;
  height: 40px;
  border: 2px solid #FFF;
  display: inline-block;
  padding-top: .5rem;
  width: 40%;
}

.services-button:hover {
  color: #C1CDCD;
  font-weight: bold;
  border: 2px solid #C1CDCD;
}

#indexbild {
  width: 100%;
  height: 0;
  padding-top: 41.8%;
  background: url("../img/indexbild-welle.JPG") no-repeat;
  background-size: contain;
}

@media (max-width: 1700px) {
  .servicesbox-image {
    min-height: 58%;
  }
  #servicestext {
    height: 600px;
  }
}

@media (max-width: 1460px) {
  .separator > span {
    font-size: 34px;
  }
  .servicesbox-image {
    min-height: 50%;
  }
  #servicestext {
    height: 550px;
  }
}

@media (max-width: 1255px) {
  .separator > span {
    font-size: 30px;
  }
  #servicestext {
    height: 450px;
  }
  .servicesbox h1 {
    font-size: 22px;
  }
  .servicesbox-image {
    min-height: 52%;
  }
  .servicesbox p {
    font-size: 18px;
  }
}

@media (max-width: 1024px) {
  .separator span {
   font-size: 26px;
  }
  #servicestext {
    height: 420px;
  }
  .servicesbox-image {
    min-height: 45%;
  }
  .servicesbox h1 {
    font-size: 22px;
  }
  .servicesbox p {
    font-size: 18px;
  }
}

@media (max-width: 921px) {
  .separator > span {
    font-size: 24px;
  }
  .servicesbox-image {
    min-height: 45%;
  }
  #servicestext {
    height: 400px;
  }
  .servicesbox h1 {
    font-size: 20px;
  }
  .servicesbox p {
    font-size: 16px;
    min-height: 5rem;
  }
  .services-button {
    height: 40px;
    width: 50%;
  }
}

@media (max-width: 768px) {
  .separator span {
      font-size: 20px;
  }
  #servicestext {
    height: 360px;
  }
  .servicesbox-image {
    min-height: 40%;
  }
  .servicesbox p {
    font-size: 14px;
    min-height: 4rem;
  }
  .services-button {
    width: 50%;
    font-size: 14px;
  }
}

@media (max-width: 636px) {
  #servicestext {
    height: 340px;
  }
  .servicesbox-image {
    min-height: 40%;
  }
  .servicesbox p {
    font-size: 12px;
    min-height: 4rem;
  }
  .services-button {
    width: 65%;
    font-size: 12px;
    padding-top: .6rem;
  }
}

@media (max-width: 575px) {
  #servicestext {
    height: 300px;
  }
  #servicestext h1 {
    font-size: 16px;
  }
  .servicesbox-image {
    min-height: 40%;
  }
  .servicesbox p {
    font-size: 10px;
    min-height: 4rem;
  }
  .services-button {
    width: 65%;
    font-size: 10px;
    height: 30px;
    padding-top: .3rem;
  }
}

@media (max-width: 480px) {
  .separator {
      margin-bottom: 8%;
  }
  .separator span {
      font-size: 18px;
  }
  #flex-container-index {
    flex-direction: column-reverse;
  }
  .servicesbox {
    border-top: 2px solid #FFF;
  }
  .servicesbox h1 {
    font-size: 18px;
    margin-top: 2rem;
  }
  .servicesbox img {
    width: 70%;
  }
  #servicestext {
    height: auto;
  }
  .servicesbox-image {
    min-height: 0;
  }
  .servicesbox p {
    font-size: 14px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
  .anker-container {
    margin-bottom: 1rem;
  }
  .services-button {
    width: 45%;
    font-size: 14px;
  }
}

@media (max-width: 330px) {
  .separator span {
    font-size: 14px;
  }
  .servicesbox {
    border-top: 2px solid #FFF;
  }
  .servicesbox h1 {
    font-size: 12px;
    margin-top: 2rem;
  }
  .servicesbox img {
    width: 65%;
  }
  .servicesbox p {
    font-size: 10px;
    width: 60%;
    margin-left: auto;
    margin-right: auto;
  }
  .anker-container {
    margin-bottom: 1rem;
  }
  .services-button {
    width: 45%;
    font-size: 12px;
    padding-top:.4rem;
  }
  .flex-container-bild > div > p {
    font-size: 14px;
  }
}

/* === CONTENT LEISTUNGENSEITE === */

.flex-container-bild {
  display: flex;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  background-color: #FFF;
  justify-content: space-around;
}

.flex-container-bild > div {
  color: #A62C21;
  font-size: 36px;
  text-align: center;
  width: 50%;
}

.flex-container-bild > div > img {
  width: 100%;
  height: auto;
  border: 6px solid #FFF;
  margin-top: -45%;
}

.servicebeschreibung {
  background-color: #36648B;
}

.flex-container-services {
  display: flex;
  width: 95%;
  margin-left: auto;
  margin-right: auto;
  background-color: #36648B;
  justify-content: space-between;
}

.flex-container-services h2 {
  color: #A62C21;
}

.gutachten {
  flex-basis: 48%;
  padding: 2rem 4rem;
  text-align: center;
  margin-top:2rem;
  margin-bottom: 2rem;
}

#servicestext {
 background-color: #36648B;
}

article {
  padding: 1rem;
  margin-left: 2rem;
  margin-right: 2rem;
  background-color: #FFF;
  color: #36648B;
  font-size: 18px;
  text-align: justify;
}

@media (max-width: 1024px) {
  .gutachten {
    padding: 1rem 2rem;
  }
  article {
    font-size: 14px;
    margin-left: 0;
    margin-right: 0;
  }
  .flex-container-services h2 {
    font-size: 1.2rem;
  }
}

@media (max-width: 550px) {
  .flex-container-services {
    width: 80%;
    margin-left: auto;
    margin-right: auto;
    background-color: #36648B;
    justify-content: space-around;
    flex-direction: column;
  }
  .flex-container-services h2 {
    font-size: 1rem;
  }
}

@media (max-width: 480px) {
  article {font-size: 11px;
  }
}

/* === CONTENT ÜBER MICH === */

.flex-container-bild > div > p {
  margin-top: 0;
  margin-bottom: .5rem;
}

#metext {
  width: 100%;
  background-color: #36648B;
  color: #FFF;
  padding: 15px 30px 15px 30px;
  font-size: 24px;
  text-align: center;
  margin-top: 2rem;
}

#mebild {
  width: 100%;
  height: 0;
  padding-top: 41.8%;
  background: url("../img/mebild-welle.JPG") no-repeat;
  background-size: contain;
}

@media (max-width: 970px) {
  .bildtext p {
    font-size: 28px;
  }
  #metext {
    font-size: 1.1rem;
    }
  }

  @media (max-width: 780px) {
    .bildtext p {
      font-size: 20px;
    }
    #metext {
      font-size: .9rem;
      }
    }

/* === DATENSCHUTZERKLÄRUNG ===*/

#datenschutztext {
  width: 100%;
  background-color: #FFF;
}

/* === IMPRESSUM === */

#impressumtext {
  width: 100%;
  background-color: #FFF;
}

/* === FOOTER === */

#flex-container-footer {
  display: flex;
  justify-content: space-around;
  margin-left: 1rem;
  margin-right: 1rem;
}

#flex-container-footer ul {
  padding: .5rem;
  list-style: none;
  flex-basis: 33%;
}

#flex-container-footer ul li {
  color: #36648B;
  font-size: 20px;
}

#flex-container-footer ul a {
  color: #A62C21;
  font-size: 20px;
  text-decoration: none;
}

#flex-container-mobilefooter {
  display: none;
  justify-content: space-between;
  margin-left: 1rem;
  margin-right: 1rem;
}

#upperspace {
  display: none;
  color:  #36648B;
  font-size: 10px;
  padding: .5rem;
  margin-left: 1rem;
  margin-bottom: 0;
}

#upperspace a {
  color: #A62C21;
  text-decoration: none;
  font-size: 10px;
}

#upperspace li {
  list-style: none;
}

#flex-container-mobilefooter ul {
  padding-left: .5rem;
  padding-right: .5rem;
  padding-top: 0;
  list-style: none;
  margin-top: 0;
}

#flex-container-mobilefooter ul li {
  color: #36648B;
  font-size: 10px;
}

#flex-container-mobilefooter ul a {
  color: #A62C21;
  font-size: 10px;
  text-decoration: none;
}

#footerleft {
  text-align: left;
}

#footermiddle {
  text-align: center;
}

#footerright {
  text-align: right;
}

#flex-container-copyright {
  display: flex;
  background-color: #36648B;
  color: #FFF;
  justify-content: flex-end;
  text-align: right;
}

#flex-container-copyright div {
  margin: .5rem 1rem.5rem 1rem;
}

@media (max-width: 1120px) {
  #flex-container-footer ul li {
    font-size: 16px;
  }
  #flex-container-footer ul a {
    font-size: 16px;
  }
}

@media (max-width: 910px) {
  #flex-container-footer ul li {
    font-size: 14px;
  }
  #flex-container-footer ul a {
    font-size: 14px;
  }
  #flex-container-copyright div {
    font-size: 12px;
  }
}

@media (max-width: 680px) {
  #flex-container-footer ul li {
    font-size: 12px;
  }
  #flex-container-footer ul a {
    font-size: 12px;
  }
  #flex-container-copyright div {
    font-size: 10px;
  }
}

@media (max-width: 615px) {
  #upperspace {
    display: inline-block;
  }
  #flex-container-footer {
    display: none;
  }
  #flex-container-mobilefooter {
    display: flex;
  }
}
