/* Events Cascading Style Sheet **************************************************************/

.jahre, .jahre .inhalt, .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;
}

.ueberschriftklein{
	font-size: 50px;
}

/* HEADER **************************************************/
#main-nav ul li:nth-child(3) a{
	color: #f8c311;
}


/* JAHRESAUSWAHL *********************************************/
#auswahl{
	width: 90%;
	/*height: 300px;*/
	margin: 0 auto;
}

.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: 120px;
	width: 250px;
	margin: 15px;
}

.jahre, .inhalt{
	box-sizing: border-box;
}

.jahre{
	width: 250px;
	height: 120px;
	margin: 20px;
	padding: 2rem 1rem;
	background: #fff;
	position: relative;
	display: flex;
	align-items: center;
	border-radius: 20px;
	float: left;
}

.jahre img{
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	top: 0;
	left: 0;
	border-radius: 20px;
	background: #fff;
	opacity: 0.85;
}

.jahre .inhalt{
	top: 20%;
	left: 0;
	width: 100%;
	height: 100%;
	position: absolute;
	z-index: 3;
	color: #fff;
	opacity: 1;
    vertical-align: middle;
	background-color: linear-gradient(to top, rgba(0,0,0,1), rgba(0,0,0,0));
	border-radius: 20px;
}

.jahre .inhalt h4{
	color: #fff;
	font-size: 60px;
	display: contents;
	top: 50%;
}

.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.5;
  border-radius: 20px;
}

.jahre:hover .overlay{
	opacity: 0.7;
}

.jahre:hover{
	transform: translate(0, -8px);
	cursor: pointer;
}

/* 2020 *********************************************/
#zweizwanzig p a{
	font-family: 'Dosis', sans-serif;
	font-weight: 800;
	font-size: 18px;
	color: #353535;
}

#zweizwanzig p a:hover{
	color: #f8c311;
	text-decoration: none;
}

iframe{
	margin-bottom: 20px;
}

div.karte:nth-child(1n){
	width: 50%;
	float: left;
}

div.karte:nth-child(2n){
	width: 50%;
	float: right;
}

div.karte::after, div.eventbutton::after{
	content: "";
	clear: both;
	display: table;
}

.karte iframe{
	width: 90%;
	margin: 0 auto;
}

@media (max-width: 800px){
	div.karte:nth-child(1n){
		width: 100%;
		height: 300px;
		float: none;
	}

	div.karte:nth-child(2n){
		width: 100%;
		height: 300px;
		float: none;
	}
	
	div.karte::after, div.eventbutton::after{
		content: "";
		clear: both;
		display: table;
	}
	
	.karte iframe{
		width: 70%;
		margin: 0 auto;
		height: 300px;
	}
}

/* 2019 *********************************************/

.image{
	float: left;
	width: 30%;
	text-align: right;
	margin: 5% 0;
}

.image img{
	height: auto;
	width: 70%;
	margin: 10px 0;
	border-radius: 15px;
}

.text{
	float: right;
	width: 60%;
	text-align: center;
	margin: 5%;
	clear: right;
}

@media (max-width: 800px){
	.image{
		width: 100%;
		text-align: center;
		margin: 0 auto;
	}

	.image img{
		width: 40%;
		margin: 10px 0;
	}

	.text{
		width: 90%;
		text-align: center;
		margin: 0 5% 15% 5%;
		clear: right;
	}
}

.text h3{
	color: #353535;
	margin: 0;
}

.text p{
	text-align: left;
}

.text p span{
	color: green;
	font-style: oblique;
}