/* Start Cascading Style Sheet **************************************************************/

.card, .card:before, .card .info, .overlay{
	transition: all 300ms ease-in-out;
	-webkit-transition: all 300ms ease-in-out;
	-moz-transition: all 300ms ease-in-out;
	-o-transition: all 300ms ease-in-out;
}

/* HEADER **************************************************/
#main-nav ul li:nth-child(1) a{
	color: #f8c311;
}


/* HALLO **************************************************/
#hallo{
		/*min-height: 500px;*/
}

#willkommentext{
	height: 324px;
	float: left;
	width: 50%;
	margin-left: 10%;
}

#willkommentext p{
	float: left;
	margin-left: 8%;
	margin-top: 5%;
	width: 50%;
	text-align: center;
}

#willkommentext p span{
	font-size: 22px;
	line-height: 1.5rem;
	padding-bottom: 1rem;
}

#winken{
	float: right;
	margin-right: 10%;
	width: 30%;
}

#winken img{
	height: 320px;
	border-radius: 15px;
	box-shadow: 3px 3px 4px rgba(0, 0, 0, 0.5);
}

@media (max-width: 550px){
	#winken img{
		height: 250px;
	}
}

/* NEWS-EVENTS **************************************************/
#newsevents{
	justify-content: center;
	margin-bottom: 5%;
}

.cards{
	width: 90%;
	margin: 0 auto;
	font-size: 0;
	display: -ms-flexbox;
	-ms-flexbox-wrap: wrap;
	-ms-flexbox-direction: column;
	-webkit-flex-flow: row wrap;
	flex-flow: row wrap;
	display: -webkit-box;
	display: flex;
	justify-content: center;
}

div.sizediv{
	-webkit-box-flex: auto;
	-ms-flex: auto;
	flex: none;
	height: 250px;
	width: 400px;
	margin: 15px;
}

#newsevents div .card{
	width: 400px;
	height: 250px;
}

.card, .info{
	box-sizing: border-box;
}

.card{
	width: 400px;
	height: 250px;
	margin: 20px;
	padding: 2rem 1rem;
	background: #fff;
	position: relative;
	display: flex;
	align-items: flex-end;
	border-radius: 20px;
}

.card img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 20px;
}

.card .info{
	position: relative;
	z-index: 3;
	color: #fff;
	opacity: 1;
	transform: translateY(30px);
	background-color: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
	border-radius: 20px;
}

.card .info h4{
	color: #fff;
	margin-block-start: 10px;
	margin-block-end: 10px;
	font-size: 20px;
}

.card .info p{
	color: #fff;
	margin-block-start: 10px;
	margin-block-end: 10px;
	font-size: 15px;
}

.overlay{
	position: absolute;
	width: 100%;
	height: 100%;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: linear-gradient( to top, black, transparent);
	z-index: 2;
	cursor: pointer; /* Add a pointer on hover */
	display: flex;
	opacity: 0.3;
	border-radius: 20px;
}

.card:hover .overlay{
	opacity: 0.7;
}

.card:hover{
	transform: translate(0, -8px);
}

.tablebutton{
	width: 70%;
	margin: 100px auto;
}

/* NEWS-EVENTS **************************************************/
body{
	margin:0;
	font-family: sans-serif;
	overflow-x: hidden;
}

*{
	box-sizing: border-box;
}

.home{
	height: 100vh;
	overflow:hidden;
	position: relative;
	min-height:
}

.home .slide{
	position: absolute;
	left:0;
	top:0;
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	z-index:1;
	display:none;
	padding:0 15px;
	animation: slide 2s ease;
}
.home .slide.active{
	display: flex;
}
@keyframes slide{
	0%{
		transform:scale(1.1);
	}
	100%{
		transform: scale(1);
	}
}
.container{
	max-width: 1170px;
	margin:auto;

}

.home .container{
	 flex-grow: 1;
}
.home .caption{
	width:50%;
}
.home .caption h1{
	font-size:42px;
	color:#000000;
	margin:0;

}
.home .slide.active .caption h1{
	opacity:0;
	animation: captionText .5s ease forwards;
	animation-delay:1s;
}
.home .caption p{
	font-size: 18px;
	margin:15px 0 30px;
	color:#222222;
}
.home .slide.active .caption p{
	opacity:0;
	animation: captionText .5s ease forwards;
	animation-delay:1.2s;
}
.home .caption a{
 display: inline-block;
 padding:10px 30px;
 background-color: #000000;
 text-decoration: none;
 color:#ffffff;
}

.home .slide.active .caption a{
	opacity:0;
	animation: captionText .5s ease forwards;
	animation-delay:1.4s;
}

@keyframes captionText{
	0%{
		opacity:0; transform: translateX(-100px);
	}
	100%{
	 opacity:1; transform: translateX(0px);
	}
}

.home .controls .prev,
.home .controls .next{
 position: absolute;
 z-index:2;
 top:50%;
 height:42px;
 width: 42px;
 margin-top: -21px;
 color:#ffffff;
 background-color: #f8c311;
 border: 2px solid;
 border-color: #f8c311;
 text-align: center;
 line-height: 40px;
 font-size:20px;
 cursor:pointer;
 transition: all .5s ease;
}
.home .controls .prev:hover{
	background-color: #ffffff;
	color: #f8c311;
	border-left-color: #ffffff;
}

.home .controls .next:hover{
	background-color: #ffffff;
	color: #f8c311;
	border-right-color: #ffffff;
}
.home .controls .prev{
 left:0;
}
.home .controls .next{
 right:0;
}

.home .indicator{
	position: absolute;
	left:50%;
	bottom:30px;
	z-index: 8;
	transform: translateX(-50%);
}

.home .indicator div{
	display: inline-block;
	width:30px;
	height: 30px;
	color: #fff;
	background-color: #f8c311;
	border: 2px solid;
	border-color: #f8c311;
	border-radius:50%;
	text-align: center;
	line-height: 25px;
	margin:0 3px;
}

.home .indicator div.active{
 background-color: #ffffff;
 color: #f8c311;
}

.home .indicator div:hover{
 background-color: #eeeeee;
 color: #f8c311;
 cursor:pointer;
 transition: all .5s ease;
}

/* UEBER-MICH **************************************************/
#ich img{
	margin-top: 8%;
	width: 350px;
}

@media (max-width: 600px){
	#ich img{
		margin-top: 18%;
		width: 250px;
	}
}

#ich img:hover{
	transform: scale(1.1);
	-webkit-transform: scale(1.1);
	-moz-transform: scale(1.1);
	-o-transform: scale(1.1);
}
