/***Styleanpassungen neues Cookie Popup***/
@media all and (max-width: 1250px){
	#popup .content-inner-text{
		flex-wrap: wrap;
	}
	#popup button{
		top: 0;
		margin-bottom:15px; 
	}
	#close-popup{
		margin-left: 0%;
	}
	#text-popup{
		width: 100%;
	}
}
/***Ende Styleanpassungen neues Cookie Popup***/
@media all and (max-width: 900px) {
    .left,
    .right,
	.right2 {
        width: 100%;
    }
	.right2 .right-inner{
		padding: 20px 35px 20px 0;
	}
    .one,
    .three,
	.four,
    .two {
        width: 100%;
        flex: inherit;
        padding: 0 15px 30px;
    }

    .content-inner {
        padding: 50px 0 30px;
    }

    .content-inner li {
        font-size: 16px;
        line-height: 26px;
    }

    .content-inner li:before {
        margin: 0 8px 0 -22px;
        font-size: 16px;
    }

    .teaser-inner .teaser-inner-left {
        padding: 20px 0 0 20px;
    }
	.extra-padding{
		padding-left: 0;
	}
	.top-footer .three .footerbox{
	float: left;
	}
	.top-footer #logo{
		padding: 0!important;
	}
}
@media all and (max-width: 1900px) {
	#fourth{
		margin-right: 80px;
	  }
}
@media all and (max-width: 1870px) {
	#fourth{
		margin-right: 90px;
	  }
}
@media all and (max-width: 1800px) {
	#fourth{
		margin-right: 120px;
	  }
}
@media all and (max-width: 1500px) {
	#headerbild{
		height: 280px!important;
	  }
	.subnavbox,
	.head-center{
		max-width: 960px;
	}
}
@media all and (max-width: 1200px) {
	#headerbild{
		height: 230px!important;
	  }
	.subnavbox,
	#footernavi,
	.content-inner,
	.head-center{
		max-width: 860px;
	}
	#footernavi{
		padding: 2rem 15px;
	}
}
@media all and (max-width: 800px) {
	#fourth{
		margin-right: 80px;
	  }
}
@media all and (max-width: 992px) {
	#content-contact .content-inner .left p{
		font-size: 18px;
		padding-bottom: 50px;
	}
	#footernavi,
	.content-inner{
		max-width: 768px;
	}
	.head-center{
		max-width: none;
	}
	.footer-one{
		display: flex;
		flex-wrap: wrap;
	}
	.footerbox h4 a{
		font-size: 16px;
	}
	#footer a, 
	.footerbox a{
		font-size: 12.8px;
	}
	.top-footer .one,
	.top-footer .two,
	.top-footer .three,
	.top-footer .four{
		display: none;
	}
	#footernavi{
		flex-direction: column;
    	align-items: flex-start;
	}
    .teaser-inner .teaser-inner-left {
        width: 25%;
    }

    .teaser-inner .teaser-inner-middle {
        width: 75%;
        padding: 20px 20px 0 0;
    }

    .teaser-inner .teaser-inner-right {
        width: 100%;
        padding: 0 65px;
        text-align: center;
    }
	#header{
		position: absolute;
		top: 0;
	}
    .teaser-inner .teaser-inner-right button[type=submit] {
        width: 100%;
    }
	#header nav{
		display: block;
	}
	#header nav li{
		display: none;
	}
	.top-nav{
		transition: all .5s;
		transition-timing-function: ease;
	}
	.icon-nav{
		position: absolute;
		right: 10px;
		top: 30px;
		display: block;
		float: right;
		font-size: 40px!important;
	}
	.dd-burger {
		margin-top: .2em;
		width: 30px;
		height: 20px;
		position: relative;
		-webkit-transform: rotate(0);
		transform: rotate(0);
		-webkit-transition: .5s ease-in-out;
		transition: .5s ease-in-out;
		cursor: pointer;
	}
	.dd-burger span {
		display: block;
		position: absolute;
		height: 2px;
		width: 100%;
		background: #E20000;
		border-radius: 9px;
		opacity: 1;
		-webkit-transform: rotate(0);
		transform: rotate(0);
		-webkit-transition: .25s ease-in-out;
		transition: .25s ease-in-out;
	}
	.dd-burger span:nth-child(1) {
		top: 0;
	}
	.dd-burger span:nth-child(2), .dd-burger span:nth-child(3) {
		top: 10px;
	}
	.dd-burger span:nth-child(4) {
		top: 20px;
	}
	.head-center{
		display: block;
	}
	#toprow{
		display:inline-block;
	}
	.responsive li {
		display: block!important;
	}
	.responsive li a{
		display: block;
		text-align: center;
	}
	#header .dropdown:hover > .subnav-vertical,
	#header .horizontal:hover > .subnav-horizontal{
		visibility: visible;
		position: relative;
		padding: 0;
		background-color: inherit;
		box-shadow: none;
		border: none;
		margin: 0;
	}
	.horizontal:hover ~ .background-horizontal,
	.subnav-horizontal:hover ~ .background-horizontal{
		display: none;;
	}
	.subnav-horizontal{
		flex-wrap: wrap;
	}
	.subnav-horizontal li{
		width: 100%
	}
	#main-nav .subnav-vertical a,
	#main-nav .subnav-horizontal a{
		color: #fff;
	}
	#header nav li a{
		padding:10px 20px;
	}
	.mainmenu a{
		color: #E20000;
	}
	#header .subnav-vertical li,
	#header .subnav-horizontal li{
		padding: 2px 15px;
	}
	#header .subnav-horizontal li:first-child{
			padding-left: 0;
	}
	#popup .content-inner-text{
		flex-wrap: wrap;
	}
	#popup button{
		top: 0;
		margin-bottom:15px; 
	}
	#headerbild{
		height: 300px!important;
	}
	button#decline{
		margin-left: 0;
	}
	#content-popup{
		margin: 0 15px;
	}
	#header li.mainmenu {
		line-height: 22px;
	}
	.subnavbox{
		flex-direction: column;
		max-width: none;
	}
	.subrow{
		width: 100%;
		padding: 0;
		background-color: #444444;
	}
	.top-nav li a{
		text-align: left;
	}
	.responsive{
		background-color: #444444;
	}
	.top-nav > li{
		margin-top: 0;
		background-color: #bababa;
		border-bottom: 1px solid #000;
	}
	.top-nav > li:not(:last-of-type){
		margin-right: 0;
	}
	.mainmenu:after{
		position: absolute;
		right: 10px;
		top: 20px;
		-webkit-transform: translate(0,-50%);
		transform: translate(0,-50%);
		display: inline-block;
		font: normal normal normal 14px/1 FontAwesome;
		font-size: inherit;
		text-rendering: auto;
		-webkit-font-smoothing: antialiased;
		-moz-osx-font-smoothing: grayscale;
		content: "\f078";
		color: #E20000;
	}
	.subtitle:hover,
	.mainmenu:hover{
		text-decoration: none;
	}
	.subnav-vertical li{
		border: none;
	}
	#logo{
		margin-left: 10px;
	}
}

@media all and (max-width: 780px) {
#fourth{
	margin-right: 0;
  }
#content-contact .content-inner .left p{
	max-width: none;
  }
}

@media all and (max-width:600px){
	#headerbild{
		height: 220px!important;
	}
}

@media all and (max-width: 420px) {
    .teaser-inner .teaser-inner-left {
        width: 30%;
    }

    .teaser-inner .teaser-inner-middle {
        width: 70%;
        padding: 20px 20px 0 0
    }

    .teaser-inner .teaser-inner-right {
        padding: 0 35px;
    }

    .teaserbox-inner {
        padding: 0;
    }

    .teaserbox-inner button[type=submit] {
        padding: 15px;
    }

    .boxform-inner {
        padding: 0;
    }

    .boxform-inner button[type=submit] {
        padding: 15px;
    }
	#logo{
		max-width: 70%;
	}.icon-nav{
		top: 25px;
	}
}
@media all and (max-width: 500px) {
    .teaser-inner .teaser-inner-left {
        width: 100%;
        padding: 10px 40%;
    }

    .teaser-inner .teaser-inner-middle {
        width: 65%;
    }
	.teaser-inner {
        display: flex;
    flex-direction: column;
    text-align: center;
    }

    .teaser-inner-middle {
        width: 100% !important;
        padding: 10px 10% !important;
    }
	#pagetitle h1{
		font-size: 25px;
	}
}

@media all and (max-width: 400px){
	#headerbild{
		border-top: 110px solid #444444;
	}
}
@media all and (max-width: 400px){
	#headerbild{
		height: 135px!important;
	}
	#popup button{
		font-size: 12px;
		padding: 5px 10px;
		height: 40px;
	}
	#popup p{
		font-size: 13px;
		padding-bottom: 0;
	}
}

@media all and (max-width: 250px){
	#headerbild{
		border-top: 90px solid #444444;
	}
}