/* Common style */
.main-grid {
	position: relative;
	left: -3px;
	margin-bottom: 150px;

}

@media all and (max-width: 767px) {
	.main-grid {
		margin-bottom: 0px;
	}
}

.main-grid section.grid a {
	float: left;
	/*max-width: 250px;*/
	width: 33.333%;
	color: #333;
}
/*
.main-grid section.grid a:nth-child(odd) {
	margin: 30px 0 -30px 0;
}*/

.main-grid section.grid figure {
	position: relative;
	overflow: hidden;
	margin: 5px 20px 15px 0 ;
	background: #333;
}

.main-grid section.grid figure img {
	position: relative;
	display: block;
	width: 100%;
	opacity: 1;
	-webkit-transition: opacity 0.3s;
	transition: opacity 0.3s;
}

.main-grid section.grid figcaption {
	position: absolute;
	top: 0;
	z-index: 11;
	padding: 10px;
	width: 100%;
	height: 100%;
	text-align: left;
}

.main-grid section.grid figcaption h2 {
	margin: 0 0 20px 20px;
/*	color: #0C4391;*/
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: 300;
	font-size: 22px;
	-webkit-transition: -webkit-transform 0.3s;
	transition: transform 0.3s;
}

.main-grid .m-screen-headline p.grid_ueberschrift {
	color: #fff;

	letter-spacing: 1px;
font-size: 24px;
    font-weight: bold;
	-webkit-transition: -webkit-transform 0.3s;
	transition: transform 0.3s;
	margin-top: 10px;
    margin-left: 20px;
    margin-right: 10px;
    color: #fff!important;
}

.main-grid section.grid figcaption p {
	padding: 0 20px;
	color: #fff;
	font-weight: 300;
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
}

.main-grid section.grid figcaption p {
	-webkit-transform: translateY(30px);
	transform: translateY(30px);
}

.main-grid section.grid figcaption h2,
.main-grid section.grid figcaption p.grid_ueberschrift {
	-webkit-transform: translateY(5px);
	transform: translateY(5px);
}

.main-grid section.grid figure button {
/*	position: absolute;
	padding: 4px 20px;
	border: none;
	text-transform: uppercase;
	letter-spacing: 1px;
	font-weight: bold;*/
	opacity: 0.5;
	-webkit-transition: opacity 0.3s, -webkit-transform 0.3s;
	transition: opacity 0.3s, transform 0.3s;
}

.main-grid section.grid figcaption,
.main-grid section.grid figcaption h2,
.main-grid section.grid figcaption p.grid_ueberschrift,
.main-grid section.grid figcaption p,
.main-grid section.grid figure button {
	-webkit-backface-visibility: hidden;
	backface-visibility: hidden;
}

/* Style for SVG */
.main-grid section.grid svg {
	position: absolute;
	top: -1px; /* fixes rendering issue in FF */
	z-index: 10;
	width: 100%;
	height: 100%;
}

.main-grid section.grid svg path {
	fill: #64b8e9;
}

/* Hover effects */
.main-grid section.grid a:hover figure button {
	opacity: 1;
}

.main-grid section.grid a:hover figure img {
	opacity: 0.7;
}

.main-grid section.grid a:hover figcaption h2,
.main-grid section.grid a:hover figcaption p {
	-webkit-transform: translateY(0);
	transform: translateY(0);
}

.main-grid section.grid a figcaption p {
	opacity: 0;
}

.main-grid section.grid a:hover figcaption p {
	opacity: 1;
}


/* Media Queries */
/* Let's redefine the width of each anchor and the margins */

@media screen and (max-width: 58em) {
	.main-grid section.grid a {
		width: 50%;
	}
/*
	.main-grid section.grid a:nth-child(odd) {
		margin: 0;
	}
*/
/*	.main-grid section.grid a:nth-child(3n-1) {
		margin: 30px 0 -30px 0;
	}*/
}

@media screen and (max-width: 45em) {
	.main-grid section.grid {
	/*	max-width: 500px;*/
	}

	.main-grid section.grid a {
		width: 50%;
	}
/*
	.main-grid section.grid a:nth-child(3n-1) {
		margin: 0;
	}

	.main-grid section.grid a:nth-child(even) {
		margin: 30px 0 -30px 0;
	}
*/

	.main-grid section.grid figcaption h2,
	.main-grid section.grid figcaption p.grid_ueberschrift {
		margin-bottom: 0px;
		-webkit-transform: translateY(30px);
		transform: translateY(30px);
	}

	.main-grid section.grid figcaption p {
		margin: 0;
		padding: 0 10px;
	}
}

@media screen and (max-width: 27em) {
	/*.main-grid section.grid {
		max-width: 250px;
	}*/

	.main-grid section.grid a {
		width: 100%;
	}
/*
	.main-grid section.grid a:nth-child(even) {
		margin: 0;
	}*/
}



@media all and (min-width: 1200px) {
	section.xl-screen {
		display: block;
	}
	.clearfix.m-screen {
		display: none;
	}
	.clearfix.s-screen {
		display: none;
	}
	
}

@media all and (min-width: 767px) and (max-width: 1200px) {
	section.xl-screen {
		display: none;
	}
	.clearfix.m-screen {
		display: block;
	}
	.clearfix.s-screen {
		display: none;
		overflow-x: hidden;
	}
}

@media all and (max-width: 767px) {
	section.xl-screen {
		display: none;
	}
	.clearfix.m-screen {
		display: none;
	}
	.clearfix.s-screen {
		display: block;
		overflow-x: hidden;
	}
}

button.btn-weiter {
    position: absolute;
    bottom: 0px;
    width: 100%;
    left: 0;
    padding: 20px;
    border: none;
    background-color: #0C4391;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 1.5px;
}

/**************/
/* Tablet Grid*/
/**************/
.m-screen-text {
	background-color: #64b8e9;
	    color: #fff!important;
}

.m-screen-text p {
    padding: 10px 10px 10px 20px;
    color: #fff!important;
    font-size: 15.5px!important;
    letter-spacing: 0px!important;
    text-align: left;
}

.m-screen-headline {
	background-color: #64b8e9;
	position: absolute;
	top: 185px;
}

.m-screen-headline h3 {
    margin-top: 10px;
    margin-left: 20px;
    margin-right: 10px;
    font-size: 21px;
    color: #fff!important;
}

.m-screen img {
    width: 100%;
    height: auto;
}

button.m-screen-btn-weiter {

    bottom: 0px;
    width: 100%;
    left: 0;
    padding: 20px;
    border: none;
    background-color: #0C4391;
    color: #fff;
    text-transform: uppercase;
}

/*******************/
/* smartphone Grid */
/*******************/

.clearfix.s-screen a:hover {
	text-decoration: none;
}


.s-screen-headline_img {
	position: relative;
}

.s-screen-headline {
	background-color: #64b8e9;
	position: absolute;
	top: calc(100% - 70px);
}

.s-screen-headline h3,
.s-screen-headline p.grid_ueberschrift {
    margin-top: 10px;
    margin-left: 20px;
    margin-right: 10px;
    font-size: 21px;
    color: #fff!important;
}

.clearfix.s-screen {
	margin-top: 30px;
	margin-bottom: 100px;
}

.swiper-container_2 .swiper-slide img {
	width: 100%;
	height: auto;
}


.swiper-container_2 .swiper-button-prev-zwei {
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%20%3D%270%200%2029%2044%27%3E%3Cpath%20fill%3D%22%23535353%22%20d%3D%22M0%2C22L22%2C0l2.1%2C2.1L4.2%2C22L24.1%2C41.9L22%2C44L0%2C22L0%2C22L0%2C22z%22%2F%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M4.15%2C22l22-22l2.1%2C2.1L8.351%2C22L28.25%2C41.9l-2.1%2C2.1L4.15%2C22L4.15%2C22L4.15%2C22z%22%2F%3E%3C%2Fsvg%3E");
	left: -10px;
    right: auto;
}

.swiper-container_2 .swiper-button-next-zwei, 
.swiper-container_2 .swiper-button-prev-zwei {
    position: absolute;

    width: 29px;
    z-index: 4;
    height: 45px;
}

.swiper-container_2 .swiper-button-next-zwei {
	background: url("data:image/svg+xml;charset=utf-8,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%20%3D%270%200%2029%2044%27%3E%3Cpath%20fill%3D%22%23535353%22%20d%3D%22M27%2C22L27%2C22L5%2C44l-2.1-2.1L22.8%2C22L2.9%2C2.1L5%2C0L27%2C22L27%2C22z%22%2F%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M22.5%2C22L22.5%2C22l-22%2C22l-2.1-2.1L18.3%2C22L-1.6%2C2.1L0.5%2C0L22.5%2C22L22.5%2C22z%22%2F%3E%3C%2Fsvg%3E");
    right: -10px;
    left: auto;
}

.swiper-container_2  .swiper-pagination-bullet-active {
    opacity: 1;
    background: #535353;
}

.swiper-container_2 {
      width: 100%;
      height: 100%;
    }

.swiper-container_2 .swiper-slide {
      text-align: center;
      font-size: 18px;
      background: #fff;
      /* Center slide text vertically */
      display: -webkit-box;
      display: -ms-flexbox;
      display: -webkit-flex;
      display: flex;
      -webkit-box-pack: center;
      -ms-flex-pack: center;
      -webkit-justify-content: center;
      justify-content: center;
      -webkit-box-align: center;
      -ms-flex-align: center;
      -webkit-align-items: center;
      align-items: center;
    }


.swiper2-pagination.swiper-pagination-bullets.swiper-pagination-bullets-dynamic {
    position: relative;
    z-index: 1;

}

.left-right-buttons {
    position: relative;
}

.swiper2-pagination-bullet-active {
    background: #62b8e9;
}