/*
*  html5 doctor css reset | http://html5doctor.com/html-5-reset-stylesheet
*/
html,body,div,span,object,iframe,h1,h2,h3,h4,h5,h6,p,blockquote,pre,abbr,address,cite,code,del,dfn,em,img,ins,kbd,q,samp,small,strong,sub,sup,var,b,i,dl,dt,dd,ol,ul,li,fieldset,form,label,legend,table,caption,tbody,tfoot,thead,tr,th,td,article,aside,canvas,details,figcaption,figure,footer,header,hgroup,menu,nav,section,summary,time,mark,audio,video{margin:0;padding:0;border:0;outline:0;font-size:100%;vertical-align:baseline;background:transparent}
body{line-height:1}
article,aside,details,figcaption,figure,footer,header,hgroup,menu,nav,section{display:block}
nav ul{list-style:none}
blockquote,q{quotes:none}
blockquote:before,blockquote:after,q:before,q:after{content:none}
a{margin:0;padding:0;font-size:100%;vertical-align:baseline;background:transparent}
ins{background-color:#ff9;color:#000;text-decoration:none}
mark{background-color:#ff9;color:#000;font-style:italic;font-weight:bold}
del{text-decoration:line-through}
abbr[title],dfn[title]{border-bottom:1px dotted;cursor:help}
table{border-collapse:collapse;border-spacing:0}
hr{display:block;height:1px;border:0;border-top:1px solid #ccc;margin:1em 0;padding:0}
input,select{vertical-align:middle}

html {
  width: 100%;
  height: 100%;
}

body {
  width: 100%;
  height: 100%;
  font-family: 'Nunito', sans-serif;
  font-weight: 400;
  color: #333;
  font-size: 16px;
  line-height: 1.4em;
  background: url("../images/bg.jpg") no-repeat center center fixed;
  -webkit-background-size: cover;
  -moz-background-size: cover;
  -o-background-size: cover;
  background-size: cover;
}

.wrapper {
  width: 1000px;
  height: 100%;
  margin: 0 auto;
}

.left {
  width: 334px;
  height: 100%;
  background: url("../images/tapete_bg.png") repeat-y top left;
  position: fixed;
  overflow-y: auto;
}

.right {
  height: auto;
}

header {
  width: 334px;
  height: 180px;
  background: url("../images/logo_bg.png") no-repeat bottom left;
  padding-top: 50px;
  margin-bottom: 20px;
}

.header__logo {
  display: block;
  width: 334px;
  height: 180px;
  background: url("../images/logo.svg") no-repeat 40% 50%;
  background-size: 80%;
}

.content {
  height: auto;
  background-color: rgba(210, 210, 210, .8);
  border-top: 5px solid #555;
  border-bottom: 5px solid #555;
  line-height: 1.5rem;
  font-size: 1rem;
}

.content:after {
    content: ".";
    clear: both;
    display: block;
    visibility: hidden;
    height: 0;
}

.link {
  color: #3475A7;
  transition: all .2s ease-in;
}

.link:hover {
  color: #463125;
}

.link-plain {
  color: #463125;
  transition: all .2s ease-in;
  text-decoration: none;
}

.link-plain:hover {
  color: #3475A7;
}


.content ul {
  list-style-type: square;
  padding-left: 20px;
  margin-bottom: 0.7rem;
}


.handy_nav {
  width: 100%;
  height: auto;
  background: white;
  position: relative;
}

.handy_link {
  display: block;
  width: 90%;
  padding: 2% 5%;
  background: #930037;
  color: white;
  text-decoration: none;
  border-bottom: 1px solid white;
}

.handy_logo {
  width: 100%;
  height: 80px;
  background: url("../images/logo_handy.svg") no-repeat 0.5em top;
  }

.navigation {
  list-style-type: none;
}

.normal {
  display: block;
  width: 294px;
  height: 43px;
  background: url("../images/link_normal.png") no-repeat top left;
  color: white;
  text-decoration: none;
  padding: 15px 0 0 40px;
  -webkit-transition: color 0.5s; /* Safari */
  transition: color 0.5s;
  font-size: 14px;
}

.normal:hover {
  color: #ccc;
}

.p_home a.home,
.p_leistungen a.leistungen,
.p_bad a.bad,
.p_installationen a.installationen,
.p_heizung a.heizung,
.p_rohrreinigung a.rohrreinigung,
.p_wartung a.wartung,
.p_kontakt a.kontakt,
.p_partner a.partner {
  width: 294px;
  height: 45px;
  background: url("../images/link_active.png") no-repeat top left;
  padding: 13px 0 0 40px;
  font-size: 1.1rem;
}

.p_impressum a.impressum,
.p_datenschutz a.datenschutz {
  text-decoration: underline;
  color: #3475A7;
}

footer {
  padding: 10px 30px 0 40px;
  font-size: 1.1rem;
}

.footer-links {
  font-size: .9rem;
  margin-bottom: 2rem;
}

.trenner {
  height: 1px;
  background: transparent url('../images/trenner.png') top center;
  background-size: 100%;
  margin: 1.75em 0;
}

.leistungen-teaser {
  float: left;
  width: 48%;
  margin-right: 2%;
}

.leistungen-teaser a {
  position: relative;
  display: block;
  max-width: 100%;
  width: 100%;
  height: 200px;
  margin-bottom: 1rem;
  background: -moz-linear-gradient(-45deg, #3475a7 0%, #3e91c4 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(-45deg, #3475a7 0%,#3e91c4 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(135deg, #3475a7 0%,#3e91c4 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3475a7', endColorstr='#3e91c4',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
  transition: all 250ms ease;
}

.leistungen-teaser a:hover {
  background: -moz-linear-gradient(-45deg, #3e91c4 -1%, #3e91c4 0%, #3475a7 100%); /* FF3.6-15 */
  background: -webkit-linear-gradient(-45deg, #3e91c4 -1%,#3e91c4 0%,#3475a7 100%); /* Chrome10-25,Safari5.1-6 */
  background: linear-gradient(135deg, #3e91c4 -1%,#3e91c4 0%,#3475a7 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
  filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#3e91c4', endColorstr='#3475a7',GradientType=1 ); /* IE6-9 fallback on horizontal gradient */
}

.leistungen-teaser h3 {
  position: absolute;
  width: 100%;
  text-align: center;
  bottom: 39%;
  color: #fff;
  font-size: 1.25rem;
}


@media only screen and (max-width: 40em) {
  .leistungen-teaser a {
    height: 100px;
  }

  .leistungen-teaser h3 {
    font-size: .8rem;
    line-height: .8rem;
  }
}

.map {
  width: 100%;
  height: 400px;
}

/* Text-Styling */
h1 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #3475A7;
}

h2 {
  font-size: 1.2rem;
  color: #3475A7;
  margin-bottom: 0.2rem;
}

h3 {
  font-size: 0.9rem;
  color: #3475A7;
  margin-bottom: .33rem;
}

strong {
  font-weight: 700;
}

p {
  margin-bottom: .75rem;
}

/* Mobile Navigation */
nav.mobile {
box-shadow: 0 0 3px 2px rgba(0,0,0,.3);
display: none;
width: 100%;
position: fixed;
z-index:99;
}

nav.mobile .toggle-bar {
line-height: 85px;
height: 85px;
background: #fff url(../images/logo_handy.svg) no-repeat 90% 50%;
background-size: 45%;
}

nav.mobile .navicon {
float: left;
height: 6px;
width: 34px;
margin: 25px;
border-top: 18px double #000;
border-bottom: 6px solid #000;
font-size: 0;
}

nav.mobile ul li {
clear: both;
list-style: none;
}

nav.mobile ul li a {
display: block;
background-color: #e5e5e5;
padding: 12px 0 12px 20px;
border-bottom: 1px solid #4a4a4a;
text-decoration: none;
color: #4a4a4a;
}

nav.mobile ul li a:hover,
nav.mobile ul ul a:hover {
  background: #3475A7;
  color: #fff;
}

nav.mobile ul ul {
font-size: 0.8em
}

nav.mobile ul ul a {
background-color: #d0d2d6;
padding: 10px 0 10px 20px;
color: #696969;
}

nav.mobile ul ul a:before {
content: "▸";
color: red;
padding-right: 10px;
}

.partner-container {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 40px;
}

.partner__item {
  display: block;
  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat;
  height: 100px;
  width: 30%;
  margin-bottom: 40px;
}

.partner__item--buderus {
  background-image: url(../images/partner/buderus.png);
}

.partner__item--concept {
  background-image: url(../images/partner/concept.png);
}

.partner__item--elements {
  background-image: url(../images/partner/elements.jpg);
}

.partner__item--evo {
  background-image: url(../images/partner/evo.png);
}

.partner__item--gc {
  background-image: url(../images/partner/gc.jpg);
}

.partner__item--geberit {
  background-image: url(../images/partner/geberit.jpg);
}

.partner__item--grohe {
  background-image: url(../images/partner/grohe.svg);
}

.partner__item--richter-frenzel {
  background-image: url(../images/partner/richter_frenzel.png);
}

.partner__item--rww {
  background-image: url(../images/partner/rww.jpg);
}

.partner__item--viega {
  background-image: url(../images/partner/viega.png);
}

.partner__item--viessmann {
  background-image: url(../images/partner/viessmann.png);
}

.partner__item--wolf {
  background-image: url(../images/partner/wolf.jpg);
}

.partner__item--zander {
  background-image: url(../images/partner/zander.png);
}

.shk-logo {
  display: block;
  width: 125px;
  height: auto;
  margin: 30px 0 0;
}

/* Media Queries */
/* DESKTOP */
@media only screen and (min-width: 40.063em) {
  .right {
    width: 640px;
    float: right;
  }
  .content {
    width: 600px;
    padding: 20px;
    margin: 48px 0 0 0;
  }
  .handy_nav {
    display: none;
  }
}

/* HANDY */
@media only screen and (max-width: 40em) {
  body {
    background: none;
  }
  .wrapper {
    width: 100%;
  }
  .handy_nav {
    display: block;
  }
  .handy_nav__logo {
    display: block;
  }
  .left {
    display: none;
  }
  .right {
    position: static;
    width: auto;
    padding: 0.5em;
  }
  .content {
    width: auto;
    margin: 90px 0 0 0;
    padding: 1em;
    font-size: 1em;
  }
  nav.mobile {
    display: block;
  }
  .map {
    width: 100%;
    height: 300px;
  }
}
