#slider {
	width: 100%;
	aspect-ratio: 3.5 / 1;
	position: relative;
	overflow: hidden;
	margin: 0 auto;
	opacity: 0;
	z-index: 0;
	transition: all 1s ease-in-out;
}

#slider.show {
	opacity: 1;
}

#slider::after {
	content: '';
	background-image: url("../img/strukturen/slider-bg.png");
	background-position: right;
	background-size: 100% 100%;
	height: 100%;
	width: 20%;
	position: absolute;
	top: 0;
    right: 0;
    margin: 0;
    padding: 0;
}


#slider .slide {
	width: 100%;
	height: 100%;
	position: absolute;
	overflow: hidden;
	z-index: 1;
	display: block;
	/*max-width: 1300px;*/
	margin: 0 auto;
}

#slider.shiftleft .slide {
	transition: margin-left 2s ease-in-out;
	margin-left: 0;
}

#slider .slide img {
	width: 100%;
	height: 100%;
	object-fit: cover;

}

#slider .slide.next {
    z-index: 2;
}

#slider .slide.aktiv {
    z-index: 3 !important;
}

#slider.shiftleft .slide.aktiv {
	margin-left: -100%;
}

#slider .slide.goback {
	z-index: 4 !important;
}

#slider .slide .banner_img {
	width: 50%;
	height: 100%;
	position: absolute;
	background-repeat: no-repeat;
	background-position: center center;	
	background-size: cover;
	z-index: 1;
	right: 10%;
}
/*
#slider .slide .banner_h1 {
	width: 50%;
	max-width: 600px;
	text-align: left;
	z-index: 99;
	display: block;
	position: relative;
	box-sizing: border-box;
	padding: 0;
	margin-top: 7%;
	left: calc(50% - 600px);
}*/

#slider .slide .banner_text h1 {
	color: #FFF;
	margin: 0;
	font-weight: 900;
	text-shadow: 0 3px 5px rgba(0,0,0,0.8);
	transform: rotate(-5deg);
    max-width: 350px;
    margin-bottom: 20px;
	
}

#slider .slide .banner_text h2::after {
	display: none;
}
/*
#slider .slide .banner_h2 {
	width: 50%;
	max-width: 600px;
	z-index: 100;
	box-sizing: border-box;
	position: relative; 
	left: calc(50% - 600px);
	margin-top: 25px;
}
*/
#slider .slide .banner_text h2 {
	font-size: 1.4em;
	color: #fff;
	text-transform: none;
	margin: 0;
	padding: 0;
	text-shadow: 3px 0px 3px rgba(0,0,0,0.5);
	text-shadow: 0 3px 5px rgba(0,0,0,0.8);
}

#slider .slide .banner_text {
	width: 50%;
	min-width: 300px;
	position: absolute;
	z-index: 101;
	box-sizing: border-box;
	padding: 5%;
	top: 0;
	left: 0;
	background-image: url("../img/strukturen/slider-bg-left.png");
	background-repeat: no-repeat;
	background-position: right;
	background-size: 100% 100%;
	height: 100%;
	display: block;
	color: var(--weiss);
}

#slider .slide .banner_text h3{
	font-family: 'Playfair Display';
  	font-style: normal;
  	font-weight: 400;
	color: var(--gruen);
	text-transform: none;
}
#slider .slide .banner_text h2{
	color: var(--weiss);
}
#slider .slide .banner_text h4{
	color: var(--weiss);
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 120%;
}

#slider .slide .banner_text h6 a{
	margin: 0;
	background-color: transparent;
	background-image: url("../img/strukturen/strich_black.png");
	background-repeat: no-repeat;
	background-position: left center;
	background-size: 100% 100%;
	margin-left: 20px;
	text-transform: uppercase;
	box-sizing: border-box;
	border: none;
	transition: all ease-in-out 0.1s;

}
#slider .slide .banner_text h6 a:hover{
	background-color: transparent;
	background-repeat: no-repeat;
	background-position: left center;
	border: none;
	transform: scale(1.08) rotate(-3deg);
    transition: transform cubic-bezier(0.34, 1.66, 0.64, 1) 0.3s;
}

#slider #slideposdisplay {
	width: 140px;
	height: 20px;
	left:30px;
	bottom: 20px;
	position: absolute;
	z-index: 500;
	text-align: center;
	display: none;
}

#slider #slideposdisplay .slidedisplaypos {
	width: 20px;
	height: 20px;
	float: left;
	position: relative;
	background-image: url(slidepos-passiv.png);
	background-repeat: no-repeat;
	background-position: center center;	
	background-size: 100%;
	z-index: 6;
}

#slider #slideposdisplay .active {
	background-image: url(slidepos-aktiv.png);
}

.slideswitch {
	height: 100%;
	width: 100px;
	position: absolute;
	background-repeat: no-repeat;
	background-position: center center;
	display: none;
	opacity: 0.5;
	transition: opacity 0.50s ease-in-out;
	z-index: 101;
	opacity: 0;
}

.slideswitch:hover {
	cursor: pointer;
	opacity: 1.0;
	transition: opacity 0.50s ease-in-out;
	display: none;
	opacity: 0;
}

#slideswitchleft {
	left:0;
	background-image: url(slideshowarrowleft.png);
	display: none;
}
	
#slideswitchright {
	right:0;
	background-image: url(slideshowarrowright.png);
	display: none;
}



@media only screen and (max-width: 900px) {
	#slider {
		aspect-ratio: auto;
		min-height: 350px;
	}
	
	#slider .slide .banner_text{
		min-width: 60%;
		font-size: 0.8em;
	}
	#slider .slide .banner_img {
		width: 50%;
		right: 0;
	}
	#slider::after{
		display: none;
	}
		
}
	
@media only screen and (max-width: 600px) {
	#slider {
		aspect-ratio: auto;
		min-height: 250px;
	}
	
	#slider .slide .banner_text{
		min-width: 60%;
		font-size: 0.8em;
		padding-top: 2%;
	}
	#slider .slide .banner_img {
		width: 50%;
		right: 0;
	}
	#slider::after{
		display: none;
	}
	#slider .slide .banner_text h6 a {
		margin-left: 0;
		font-size: 0.9em;
	}

}

@media only screen and (min-width: 1300px) {
	/*
	#slider {
		box-sizing: border-box;
		padding-left: calc(50% - 650px);
		padding-right: calc(50% - 650px);
	}

	#slider #slideposdisplay {
		left: calc(50% - 620px);
	}
*/
}
