*, *:before, *:after {
  -webkit-box-sizing: border-box; /* Safari/Chrome, andere WebKit-Browser */
  -moz-box-sizing: border-box; /* Firefox, andere Gecko-Browser */
  box-sizing: border-box; /* Opera/IE 8+ */
}

html    {
  font-size: 100%;
}

body {
  color: #000;
  font-family: Helvetica, Arial, sans-serif;
  font-size: 1em; /* 16px */
  line-height: 1.5em; /* 24px */
  background-color: #fff;
}

h1, h2, h3, h4, h5, h6 {
  color: #3a698a;
  margin-top: 0;
  line-height: 1.5em;
}

a {
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.clear {
  clear: both;
}

.small {
  font-size: 0.75em !important;
}

.big {
  font-size: 1.2em !important;
}

.bold {
  font-weight: bold !important;
}

.page-wrapper {
  margin: 0;
}

.hideOnMobile {
  display: none;
}

header {
  height: 4.6em;
  width: 100%;
  max-width: 65.625em;
  margin: 0 auto;
}

.logo {
  margin-top: 0.2em;
  margin-left: 1.25em;
  margin-bottom: 0.3em;
  width: 324px;
  height: 70px;
  background-image: url(../img/dramoedical-logo-klein.png);
  background-repeat: no-repeat;
}

.instagram {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 3.3vh;
  right: 4vw;
}

.facebook {
  width: 50px;
  height: 50px;
  position: absolute;
  top: 3.3vh;
  right: 0vw;
}

.instagram img, .facebook img {
  width: 30px;
}

.instagram a, .facebook a {
  border: 0;
}

nav#nav {
  width: 100%;
  height: 3em;
  background-color: #8aaac1;
  background-position: center;
  border-bottom: 0.4em solid #5286ab;
}

.nav-wrapper {
  width: 100%;
  max-width: 65.625em;
  margin: 0 auto;
}

nav.subnav {
  display: none;
}

.slideshow_bilder {
  position: relative;
  width: 100%;
  height: 28.8vw;
}

.slideshow_bilder div.slideshowschatten {
  position: absolute;
  box-shadow: hsla(36, 4%, 25%, 0.8) 0px 0px 15px inset;
  width: 1500px;
  height: 28.8vw;
}

.slideshow_bilder #BilderWechsel {
  width: 100%;
  height: 28.8vw;
  z-index: 1;
}

.slideshow_bilder img {
  display:block;
  width: 100%;
  height: 28.8vw;
  z-index: 1;
}

#BilderWechsel div{
  position:absolute;
  z-index:1;
}

#BilderWechsel div div{
  position:absolute;
  top: 3em;
  left:10em;
  padding: 1em;
  background-color: #fff;
  background-color: hsla(0, 50%, 100%, 0.7);
  display: none;
}


#BilderWechsel div{
  z-index:1;
}

#BilderWechsel div.aktivesBild{
  z-index:3
}

.main-wrapper {
  width: 100%;
  background: url(../img/main_background.jpg) repeat-y;
  overflow: hidden;
}

.main-background {
  width: 100%;
  max-width: 65.625em;
  margin: 0 auto;
  padding-top: 1em;
}

main, main.textpage {
  padding: 1.25em;
  margin-right: 1%;
  position: relative;
  background-color: #fff;
  background-color: hsla(0, 50%, 100%, 0.9);
  width: 100%;
  margin-bottom: 0px !important;
  padding-bottom: 0px !important;
}

main img {
  width: 100%;
  height: auto;
}

aside.home {
  padding: 1.25em;
  width: 100%;
  background-color: #fff;
  background-color: hsla(0, 50%, 100%, 0.9);
  margin-bottom: -99999px !important;
  padding-bottom: 99999px !important;
}

aside.textpageaside {
  padding: 1.25em;
  width: 100%;
  background-color: #fff;
  background-color: hsla(0, 50%, 100%, 0.9);
}

aside.textpageaside ul, .team ul {
  padding-left: 0;
  list-style-type: none;
}

aside.textpageaside ul li, .team ul li {
  background-image: url(../img/bg-liste-black.png);
  background-repeat: no-repeat;
  background-position: 0 0.55em;
  padding-left: 0.8em;
}

.main-wrapper a {
  color: #3a698a;
  font-weight: bold;
}

.footer-wrapper {
  width: 100%;
  background-color: #8aaac1;
}

footer {
  padding: 1.25em;
  width: 100%;
  color: #fff;
}

footer a {
  color: #fff;
}


footer section {
  font-size: 0.75em;
  line-height: 1.2em;
}

footer address {
  font-size: 1em;
  line-height: 1.5em;
  font-style: normal;
  margin-bottom: 1em;
}

footer ul {
  display: none;
}

footer h3 {
  display: none;
}

footer .impressum {
  width: 100%;
  margin-top: 2em;
  text-align: left;
}

#kontaktformular {
  margin-top: 10px;
}

#kontaktformular table {
  padding: 0px;
  margin: 0px;
  border-collapse:collapse;
}

#kontaktformular td {
  padding: 2px;
  margin: 0px;
  border: 0px;
}

#kontaktformular th {
  padding: 2px;
  margin: 0px;
  border: 0px;
}

#kontaktformular form {
  margin:0px;
  padding:0px;
}

#kontaktformular input, textarea {
  border:1px solid #424242;
  background-color:#D7D4D4;
  border-radius: 3px;
}

#kontaktformular .kontakttext {
  border:1px solid #424242;
  background-color:#D7D4D4;
  padding:10px;
  margin-bottom:10px;
}

#kontaktformular .fehlertext {
  border:1px solid #CF0008;
  background-color:#FFB4B7;
  color:#000000;
  padding:10px;
  margin-bottom:10px;
  border-radius: 6px;
}



   
/* ----------------------------------------------------------------------------- *
 *                                Media Queries                                  *
 * ----------------------------------------------------------------------------- */
@media only screen and (max-width: 400px) {
  .instagram {
    display: none;
  }
}

@media only screen and (min-width: 40em) {
  .hideOnMobile {
    display: inline;
  }

  main {
    margin-bottom: -99999px !important;
    padding-bottom: 99999px !important;
    width: 65.666667%;
    float: left;
  }
  
  main.textpage {
    margin-bottom: -99999px !important;
    padding-bottom: 99999px !important;
  }

  aside.home, aside.textpageaside {
    width: 33.33333%;
    float: left;
  }

  footer {
    width: 100%;
    max-width: 65.625em;
    margin: 0 auto;
    padding-top: 2em;
  }
  
  .team {
    width: 49.5%;
    margin-right: 0%;
    float: left;
  }
  
  .team_zwei {
    clear:left;
    margin-right: 1%;
  }
  
  .rundgang div {
    top: -9vw;
  }

  .rundgang div a {
    padding: 1em 2em;
  }
}

@media only screen and (min-width: 56.25em) {
  #BilderWechsel div div{
    display: block;
  }
}

@media only screen and (min-width: 67.188em) {
  header {
    height: 7.8em;
    width: 100%;
  }

  .logo {
    margin-top: 0.4em;
    margin-left: 1.25em;
    width: 556px;
    height: 120px;
    background-image: url(../img/dramoedical-logo.png);
    background-repeat: no-repeat;
  }

  .instagram {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 6vh;
    left: 63.3vw;
  }

  .facebook {
    width: 50px;
    height: 50px;
    position: absolute;
    top: 6vh;
    left: 67.3vw;
  }

  .instagram img, .facebook img {
    width: 50px;
  }
  
  nav#nav {
    background-image: none;
  }

  main.textpageaside {
    width: 74%;
    float: left;
  }

  main.textpage {
    width: 100%;
    margin-right: 0;
  }

  aside.textpageaside {
    width: 25%;
    float: left;
  }

  footer ul {
    display: block;
    padding-left: 0;
    margin-bottom: 2em;
  }

  footer li {
    list-style-type: none;
    margin: 0.2em 0;
  }

  footer section {
    float: left;
    width: 25%;
  }

  footer section h3 {
    display: block;
    font-size: 1.5em;
    margin-top: 0;
  }

  footer .impressum {
    margin-top: 2em;
    text-align: center;
  }

  .team_zwei {
    clear: none;
    margin-right: 0%;
  }

  .team {
    width: 32.5%;
    float: left;
    margin-left: 1.25%;
  }

  .team_drei {
    clear: left;
    margin-left: 0;
  }
  
}

@media only screen and (min-width: 94.8em) {
  .page-wrapper {
    width: 93.75em;
    margin: 0 auto;
  }

  .slideshow_bilder {
    height: 433px;
  }
  
  .slideshow_bilder div.slideshowwelle {
    height: 433px;
  }
  
  .slideshow_bilder div.slideshowschatten {
    height: 433px;
  }
  
  .slideshow_bilder img {
    height: 433px;
  } 
  
  .rundgang, .rundgang img {
    height: 430px;
  } 

  .rundgang div {
    top: -8.6em;
  }
}