/* Rechtsbereiche */

#rechtsbereiche {
	margin: 0 auto;
}

.grid-wrapper {
	display: flex;
	flex-flow: column wrap;	
	justify-content: space-between;
}

.grid-item {
	display: block;
	height: 300px;
	width: 100%;
	margin: 0 0 2rem 0;
	overflow: hidden;	
	position: relative;	
	cursor: pointer;
}

#rechtsbereiche .grid-item a {
	position: absolute;
	top: 0;
	width: 100%;
	height: 100%;
	display: flex;
	justify-content: center;
	align-items: center;
	color: #fff;	
	transition: all 0.5s ease;	
}

#rechtsbereiche .grid-item a h3 {
	font-size: 1.3rem;
	line-height: 120%;
	text-align: center;
	color: #fff;
	background: var(--background-color);
	padding: 8px 12px;
	text-decoration: none;
	margin: 0;
	transition: all 0.5s ease;		
}

#rechtsbereiche .grid-item a:hover h3 {
	background: var(--partner-color);
}

.aos-box {
	padding: 0;
	margin: 0 0 60px 0;
}

@media only screen and (min-width: 800px) {

	/* Rechtsbereiche */

	#rechtsbereiche {
		margin: -15px auto 0 auto;
	}

	.aos-box {
		display: flex;
		justify-content: space-between;
	}

	.aos-box div {	
		width: calc(50% - 30px);
	}	

	.grid-wrapper {
		flex-flow: row wrap;	
	}

	.grid-item {
		height: 400px;
		width: calc(50% - 1rem);
		margin: 0 0 30px 0;	
	}

	#rechtsbereiche .grid-teaser {
		display: flex;
		flex-direction: column;
		justify-content: center;
		height: 100%;
	}	

	#rechtsbereiche .grid-teaser {
		width: 100%;
	}	

	#rechtsbereiche .flex-reverse {
		flex-direction: row-reverse;
	}

	/* Alignment Header */

	#rechtsbereiche .grid-item2 a {
		align-items: flex-end;
		justify-content: flex-end;
	}

	#rechtsbereiche .grid-item5 a {
		align-items: flex-start;
		justify-content: flex-end;
	}

	#rechtsbereiche .grid-item4 a {
		align-items: flex-start;
		justify-content: flex-start;
	}

	#rechtsbereiche .grid-item3 a {
		align-items: flex-end;
		justify-content: flex-start;
	}

	#rechtsbereiche .grid-item6 a {
		align-items: flex-start;
		justify-content: flex-start;
	}

	#rechtsbereiche .grid-item7 a {
		align-items: flex-start;
		justify-content: flex-start;
	}

}	

@media only screen and (min-width: 1280px) {

	#rechtsbereiche .grid-item h3 {
		font-size: 1.3rem;
	}

}
