/***************************/
/* Styles */
/***************************/
html,
body {
  width: 100%;
  height: 100%;
}
/***************************/
/* General */
/***************************/
body {
  font-size: 16px;
  font-family: "Open Sans", sans-serif;
  color: #515151;
  line-height: 1.5;
}
a {
  text-decoration: none;
  color: #ff9307;
  outline: none;
}
a:hover {
  text-decoration: none;
  color: #d37700;
}
.hl {
  color: #ff9307;
}

h2.with-line {
  text-transform: uppercase;
  /**width: 600px;**/
  max-width: 100%;
  position: relative;
  font-size: 32px;
}

.home h2.with-line {
  width: 600px;
}

h2.with-line span {
  background-color: white;
  padding-left: 10px;
  padding-right: 10px;
  margin-left: 15px;
  display: inline-block;
  z-index: 6;
  position: relative;
}

h2.with-line:after {
  content: "";
  display: block;
  height: 4px;
  background-color: #515151;
  position: absolute;
  bottom: 15px;
  left: 0px;
  width: 100%;
  z-index: 4;
}

/************************************/
/*Styling the standard image classes*/
/************************************/
.alignleft {
    float: left;
    margin:0 15px 30px 0;
}
.aligncenter {
    display: block;
    margin: 0 auto 30px auto;
}
.alignright {
    float: right;
    margin:0 0 30px 15px;
}
.alignnone {
    float: none;
    display:block;
    margin:0 0 30px 0;
}
p .alignleft {
    float: left;
    margin:5px 15px 30px 0;
}
p .aligncenter {
    display: block;
    margin: 5px auto 30px auto;
}
p .alignright {
    float: right;
    margin:5px 0 30px 15px;
}
p .alignnone {
    float: none;
    display:block;
    margin:5px 0 30px 0;
}
/***************************/
/* Header */
/***************************/
.header {
  background-image: url('../img/bg.jpg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  position: relative;
  height: auto;
  min-height: 250px;
}
.header .container {
  position: relative;
  height: 100%;
}
.header .header-highlight-top {
  position: absolute;
  left: 0;
  width: 100%;
  top: 0;
  height: 189px;
  background-image: url('../img/menu_bg.png');
  background-repeat: repeat-x;
  z-index: 10;
}

.header .header-highlight-bottom {
  position: absolute;
  left: 0;
  width: 100%;
  bottom: 0px;
  height: 78px;
  background-image: url('../img/header-hl.png');
  background-size: 100% 100%;
  z-index: 10;
}
.header .logo {
  position: relative;
  z-index: 12;
  margin-top: 30px;
  width: 300px;
}
.header .jakob {
  position: absolute;
  z-index: 11;
  bottom: 5px;
  right: -10px;
}
.header .main-navigation {
  position: absolute;
  right: 15px;
  top: 60px;
  z-index: 100;
}
.header .main-navigation ul,
.header .main-navigation li {
  list-style-type: none;
  padding: 0px;
  margin: 0px;
}
.header .main-navigation li {
  float: left;
  padding-left: 30px;
  display: block;
}
.header .main-navigation li a {
  display: block;
  text-transform: uppercase;
  color: white;
  font-weight: 700;
  cursor: pointer;
}
.header .main-navigation li a:hover {
  color: #ff9307;
}



/**********************************************
*****************  Sub-menu *******************
**********************************************/



.header .main-navigation .sub-menu li a:hover {
  color: #ff9307;
} 

.sub-menu {
    z-index: 100;
    display: none;
    top:100%;
    position: absolute;
    width: auto;
    background-color: #f8edd7;
}

.main-navigation div > ul > li:hover > .sub-menu {
    display: block;
}

.header .main-navigation .sub-menu li{
  padding-left: 0px;
  float: none;
}

.sub-menu li{
  position: relative;
  border-bottom: 1px solid rgb(200,200,200);
}

.sub-menu li a {
    padding: 10px 10px;
    display: block;
    text-transform: uppercase;
    text-decoration: none;
}

.header .main-navigation .sub-menu li a{
      color: #515151; 
      font-weight:500;
      font-size:14px;
}

#gform_submit_button_1{
  background-color: white;
}



.header .registration {
  color: white;
  text-transform: uppercase;
  max-width: 100%;
  width: 600px;
  position: relative;
  top: 150px;
  font-weight: 700;
}
.header .registration form {
  background-color: #f8edd7;
  border-radius: 16px;
  height: 64px;
  padding: 16px;
  line-height: 32px;
  position: relative;
  max-width: 100%;
  width: 450px;
}
.header .registration form input {
  -webkit-appearance: none;
  border: none;
  box-shadow: none;
  border-radius: 0px;
  background: transparent;
  width: 100%;
  padding-right: 60px;
  font-weight: 400;
  outline: none;
}
.header .registration form button {
  -webkit-appearance: none;
  border: none;
  box-shadow: none;
  border-radius: 0px;
  background: transparent;
  height: 48px;
  width: 48px;
  border-radius: 8px;
  background-color: #ff9307;
  position: absolute;
  right: 8px;
  top: 8px;
  box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.2), 1px 1px 0px #ffffff;
}

.distanz{


  height: 300px;
}


#projekte {
  margin-bottom: 60px;
}
#projekte h3 {
  margin-bottom: 0px;
  font-weight: 700;
  text-transform: uppercase;
}
#projekte h4 {
  margin-top: 0px;
  margin-bottom: 5px;
  color: #515151;
  font-weight: 400;
}
#projekte img {
  width: 100%;
  height: auto;
}
#partner {
  margin-bottom: 60px;
}
#footer {
  margin-top: 60px;
}
#kontakt {
  background-color: #f8edd7;
  padding-top: 30px;
}
#kontakt h2 span {
  background-color: #f8edd7;
}
.copy {
  margin-top: 60px;
  font-size: 12px;
}
.teaser-line a {
  display: block;
}

/**********************************
*********Category-page*************
**********************************/

.post_content h2{
  margin-top: 0;
}
.post_excerpt_image img{
  margin-top: 15px;
}
/**********************
** Styles für Mobile
**********************/

@media (max-width: 1199px) {

}

@media (max-width: 991px) {

	h2.with-line {
	  font-size: 24px;
	}

	h2.with-line span {
	  padding-left: 0px;
	  padding-right: 0px;
	  margin-left: 0px;
	}

	h2.with-line:after {
	  display: none;
	}

    .header .registration {
    top: 0px; 

    }

    img {
      max-width: 100%;
      height: auto;
    } 

    .toggle-mobile-navigation {
        background-color:#ff9307; 
        position: absolute;
        right: 15px;
        top: 30px;
        line-height: 24px;
        text-align: center;
        cursor: pointer;
        z-index: 100;
        padding: 10px;
    }

    .mobile-navigation ul, menu {
        list-style-type: none;
        -webkit-padding-start: 0px;
    }

    .mobile-navigation {
        display: none;
        position: relative;
        z-index: 150;
        left: 0;
        width: 100%;
    }

    .mobile-navigation li {
        background-color: #f8edd7;
        text-transform: uppercase;
        border-bottom: 1px solid rgb(200,200,200);
    }

    .mobile-navigation li a {
        color: #5f5f5f;
        text-decoration: none;
        display: block;
        padding: 10px 15px;
    }

    .mobile-navigation li a:hover {
        color: white;
        background-color: #ff9307;
    }
    .mobile-navigation .sub-menu {
        display: block;
        position: relative;
    }


    .mobile-navigation .sub-menu li {
        background-color: #f8f3e9;
        border-bottom: none;
    }

    .mobile-navigation .sub-menu li a {
       padding-left: 45px;
    }
}