/* =============================================================================
 * ce_headervideo
 * ========================================================================== */

.ce_headervideo {
	padding: 0;
	position: relative;
	background-repeat: no-repeat;
	background-size: cover;
	background-position: center center;
}
.ce_headervideo video{
	object-fit: cover;
	height: 100%;
	width: 100%;
}
.ce_headervideo .video{
	height: 100%;
	width: 100%;
	position: relative;
}
.ce_headervideo  .play-pause-btn {
    position: absolute;
    bottom: 10px; /* Ecke oben rechts */
    right: 10px;
    background: rgba(0,0,0,0.5);
    border: none;
    color: white;
    font-size: 20px;
	width: 40px;
	height: 40px;
    cursor: pointer;
    border-radius: 20px;
    z-index: 9991;
}

.ce_headervideo .video-overlay{
	position: absolute;
	top: 0;
	left: 0;
	bottom: 0;
	right: 0;
	background: #000;
	opacity: 0.5;
	z-index: 99;
}
.ce_headervideo .ce_headervideo_inside {
	position: absolute;
  	top: 50%;
  	left: 50%;
	-webkit-transform: translate(-50%);
  	-ms-transform: translate(-50%);
  	transform: translate(-50%);
  	z-index: 999;
}

.ce_headervideo.valign_top .ce_headervideo_inside {
	top: 10%;
}

.ce_headervideo.valign_middle .ce_headervideo_inside {
	top: 50%;
}

.ce_headervideo.valign_bottom .ce_headervideo_inside {
	top: 70%;
}

.ce_headervideo h1,
.ce_headervideo h2,
.ce_headervideo h3,
.ce_headervideo h4,
.ce_headervideo h5,
.ce_headervideo h6,
.ce_headervideo .h1,
.ce_headervideo .h2,
.ce_headervideo .h3,
.ce_headervideo .h4,
.ce_headervideo .h5,
.ce_headervideo .h6 {
	margin-bottom: 0;
}

.ce_headervideo.default .content {
	border-top: 1px solid rgba(0,0,0,0.2);
	border-bottom: 1px solid rgba(0,0,0,0.2);
	padding: 30px;
}

.ce_headervideo.version1 .content {
	background: rgba(255,255,255,0.3);
	border: 1px solid rgba(255,255,255,0.9);
	padding: 30px;
}

.ce_headervideo.version2 .content {
	border: 0;
}

.ce_headervideo.version3 .ce_headline .headline {
	padding: 10px 20px;
	background: var(--accentColor);
	color: rgb(255,255,255);
	opacity: 0.95;
	display: inline-block;
}

.ce_headervideo.version3 .subline {
	padding: 5px 10px;
	background: var(--accentColor);
	color: rgb(255,255,255);
	margin-top: 5px;
	display: inline-block;
	opacity: 0.95;
}

.ce_headervideo.version3 .content {
	border: 0;
}

.ce_headervideo.color-white .content {
	border-color: rgba(255,255,255,0.9);
}

.ce_headervideo .content {
	display: inline-block;
	padding: 20px 0;
	border-top: 1px solid rgba(255,255,255,0.8);
	border-bottom: 1px solid rgba(255,255,255,0.8);
}

.ce_headervideo .subline {
	font-weight: bold;
}

.ce_headervideo.align_center .ce_headervideo_inside {
	text-align: center;
}

.ce_headervideo.align_right .ce_headervideo_inside {
	text-align: right;
}

.ce_headervideo.height_small {
	height: 250px;
}

.ce_headervideo.height_medium {
	height: 350px;
}

.ce_headervideo.height_large {
	height: 450px;
}

.ce_headervideo.height_xlarge {
	height: 600px;
}

.ce_headervideo.height_xxlarge {
	height: 750px;
}

.ce_headervideo.bg_left_top {
	background-position: left top;
}

.ce_headervideo.bg_left_center {
	background-position: left center;
}


.ce_headervideo.bg_left_bottom {
	background-position: left bottom;
}


.ce_headervideo.bg_right_top {
	background-position: right top;
}


.ce_headervideo.bg_right_center {
	background-position: right center;
}


.ce_headervideo.bg_right_bottom {
	background-position: right bottom;
}


.ce_headervideo.bg_center_top {
	background-position: center top;
}

.ce_headervideo.bg_center_center {
	background-position: center center;
}

.ce_headervideo.bg_center_bottom {
	background-position: center bottom;
}

/* =============================================================================
* smart phones  (s / small screens)
* ========================================================================== */
@media only screen and (max-width: 767px) {
	.ce_headervideo {
		padding-top: 70px;
		padding-bottom: 70px;
	}
	
	.ce_headervideo .content {
		width: 100%;
	}
	
	.ce_headervideo.valign_bottom .ce_headervideo_inside {
		top: 50%;
	}

	.ce_headervideo.height_small {
		height: 180px;
	}

	.ce_headervideo.height_medium {
		height: 200px;
	}

	.ce_headervideo.height_large {
		height: 250px;
	}

	.ce_headervideo.height_xlarge {
		height: 350px;
	}

	.ce_headervideo.height_xxlarge {
		height: 400px;
	}
}


/* =============================================================================
 * ce_video_w_teaser
 * ========================================================================== */

.ce_video_w_teaser {
    width: 100%;
    height: 800px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
}

.ce_video_w_teaser .video_teaser {
    width: 50%; 
    margin: 0 auto;
    transition: width 0.01s ease; 
    height: 100%;
    overflow: hidden;
    position: relative;
}

.ce_video_w_teaser[data-animation="off"] .video_teaser {
	width: 100%;
}

.ce_video_w_teaser .video_teaser video,
.ce_video_w_teaser .teaser_image {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover; 
}

.ce_video_w_teaser .teaser_image img {
	max-width: none;
	width: auto;
}

.ce_video_w_teaser .video_content {
    position: absolute;
    bottom: 5%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    color: white; /* Textfarbe, kann angepasst werden */
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ce_video_w_teaser .video_content .title {
    margin: 5px 0;
}

.ce_video_w_teaser .video_content .headline {
	margin: 0;
}

/* style2 */
.ce_video_w_teaser[data-style="style2"] .video_content {
	bottom: auto;
	top: 50%;
}

/* light/dark theme */
.ce_video_w_teaser[data-color="light"] .headline,
.ce_video_w_teaser[data-color="light"] .subheadline,
.ce_video_w_teaser[data-color="light"] .duration  {
	color: #fff;
}

.ce_video_w_teaser[data-color="light"] .play-button-static {
	border:  2px solid #fff;
	color: #fff;
}

.ce_video_w_teaser[data-color="dark"] .headline,
.ce_video_w_teaser[data-color="dark"] .subheadline,
.ce_video_w_teaser[data-color="dark"] .duration {
	color: #000;
}

.ce_video_w_teaser[data-color="dark"] .play-button-static {
	border:  2px solid #000;
	color: #000;
}

/* play button static */

.ce_video_w_teaser .play-button-static {
	display: none;
}

.ce_video_w_teaser[data-play-button="play_button_static"] .play-button-static {
	display: block;
}

.ce_video_w_teaser .play-button-static {
	font-size: 22px;
	line-height: 66px;
	text-align: center;
	border-radius: 100%;
	width: 70px;
	height: 70px;
	margin-bottom: 30px;
	transition: all 1.2s ease;
}

.ce_video_w_teaser[data-color="light"][data-play-button="play_button_static"] .play-button-static {
	border-color: #fff;
}

.ce_video_w_teaser[data-color="light"][data-play-button="play_button_static"]:hover .play-button-static {
	background: rgba(255,255,255,0.2);
}

.ce_video_w_teaser[data-color="dark"][data-play-button="play_button_static"] .play-button-static {
	border-color: #000;
	color: #000;
}

.ce_video_w_teaser[data-color="dark"][data-play-button="play_button_static"]:hover .play-button-static {
	background: rgba(0,0,0,0.2);
}

.ce_video_w_teaser[data-play-button="play_button_static"]:hover .play-button-static {
	transform: scale(1.1);
}

/* play button fyling */
.ce_video_w_teaser .circle {
    position: absolute;
    left: 0;
    top: 0;
    z-index: 100;
    width: 100px;
    height: 100px;
    transition: transform 0.1s ease;
}

.ce_video_w_teaser .circle .circle_inside {
 	font-size: 18px;
	line-height: 96px;
	text-align: center;
	border-radius: 100%;
	width: 100px;
	height: 100px;
	pointer-events: none; /* Makes sure the circle doesn't block any mouse events */
    transition: opacity 0.8s ease, transform 1.3s ease;
    transform: translateX(-50px) translateY(-50px) scale(0.1);
    z-index: 100000000;
    background: var(--accentColor);
    color: #fff;
    border: 2px solid rgba(255,255,255,0.1);
    opacity: 0;
}

.ce_video_w_teaser .circle .circle_inside i {
    font-size: 18px;
    transition: all 0.2s ease;
}

.ce_video_w_teaser.mouseover .circle .circle_inside {
	transform: translateX(-50px) translateY(-50px) scale(1);
	opacity: 1;
} 

/* =============================================================================
* smart phones  (s / small screens)
* ========================================================================== */
@media only screen and (max-width: 767px) {
	
	.ce_video_w_teaser .circle {
		display: none!important;
	}
	
	.ce_video_w_teaser .play-button-static {
		display: block!important;
	}
	
	.ce_video_w_teaser[data-style="style1"] .video_content {
		transform: translate(-50%, 0);
		bottom: 20px;
	}
		
}