/* TYPO3 12 : CHANGE DEFAULT SETTINGS */

/* Frame Padding */
.frame-padding-1 { padding: 1em 0; }
.frame-padding-2 { padding: 2em 0; }
.frame-padding-3 { padding: clamp(2rem, 1.0909rem + 3.0303vi, 4.5rem) 0; }
.frame-padding-4 { padding: clamp(3rem, 1.9091rem + 3.6364vi, 6rem) 0; }
.frame-padding-5 { padding: clamp(4.5rem, 2.5rem + 6.6667vi, 10rem) 0; }


/* Frame Space */
.frame-space-before-extra-small { margin-top: 1em; }
.frame-space-before-small { margin-top: 2em; }
.frame-space-before-medium { margin-top: clamp(2rem, 1.2727rem + 2.4242vi, 4rem) !important; }
.frame-space-before-large { margin-top: clamp(3rem, 1.9091rem + 3.6364vi, 6rem) !important; }
.frame-space-before-extra-large { margin-top: clamp(4.5rem, 2.5rem + 6.6667vi, 10rem) !important; }

.frame-space-after-extra-small { margin-bottom: 1em; }
.frame-space-after-small { margin-bottom: 2em; }
.frame-space-after-medium { margin-bottom: clamp(2rem, 1.2727rem + 2.4242vi, 4rem) !important; }
.frame-space-after-large { margin-bottom: clamp(3rem, 1.9091rem + 3.6364vi, 6rem) !important; }
.frame-space-after-extra-large { margin-bottom: clamp(4.5rem, 2.5rem + 6.6667vi, 10rem) !important; }



/* Image Rows */
.ce-gallery img { max-width:100%; height: auto; }
.ce-gallery { margin-right:-20px !important; }
.ce-row { display:inline !important; height:100%; overflow:hidden;   margin-bottom:0px !important; }
.ce-gallery .ce-column { margin-right:20px !important; margin-bottom:20px !important;  }
/* #inhalt > div:not(.imgbox) .ce-gallery .ce-column img { max-width:100% !important; height:auto; } */

.ce-gallery[data-ce-columns="2"] .ce-column { width:48%;  width: calc(50% - 20px);  }
.ce-gallery[data-ce-columns="3"] .ce-column { width:31%;  width: calc(33.333% - 20px); }
.ce-gallery[data-ce-columns="4"] .ce-column { width:22%;  width: calc(25% - 20px); }
.ce-gallery[data-ce-columns="5"] .ce-column { width:18%;  width: calc(20% - 20px); }
.ce-gallery[data-ce-columns="6"] .ce-column { width:15%;  width: calc(16.666% - 20px); }
.ce-gallery[data-ce-columns="7"] .ce-column { width:13%;  width: calc(14.285% - 20px); }
.ce-gallery[data-ce-columns="8"] .ce-column { width:12%;  width: calc(12.5% - 20px);  }
.ce-gallery[data-ce-columns="9"] .ce-column { width:11%;  width: calc(11.1111% - 20px); }
.ce-gallery[data-ce-columns="10"] .ce-column { width:10%;  width: calc(10% - 20px); }

/* Case CE-Image */
.ce-image .ce-gallery[data-ce-columns="1"] { 
	margin-right:0px !important; 
	margin-bottom:0px !important;
}

.ce-image .ce-gallery[data-ce-columns="1"] .ce-column {
	margin-right: 0px !important;
	margin-bottom: 0px !important;
}


/* Case CE-Textpic*/
.ce-textpic .ce-gallery[data-ce-columns="1"] { 
	margin-right:0px !important; 
	margin-bottom:0px !important;
}

.ce-textpic .ce-gallery[data-ce-columns="1"] .ce-column  { 
	margin-right:0px !important; 
} 


/* Exeption Imgbox */
.imgbox .ce-gallery[data-ce-columns="1"],
.imgbox .ce-gallery[data-ce-columns="1"] .ce-gallery .ce-column {
	margin-right: 0px !important;
}

.imgbox-in-container .ce-gallery[data-ce-columns="1"],
.imgbox-in-container .ce-gallery[data-ce-columns="1"]  .ce-column {
	margin-right: 0px !important;
}

.imgbox-in-container .ce-image .ce-gallery[data-ce-columns="1"]  .ce-column{
	margin-bottom: 25px !important;
}


/* Bildergalerie Gallery - Bildreihe */
.frame-gallery .ce-gallery .ce-column {
	display:none;
}

.frame-gallery .ce-gallery .ce-column:first-child {
	display:block;
}


/* Responsive Video / Iframe */
.ce-textpic:has(.video-embed) div,
.ce-textpic:has(.video-embed) figure  {
	width:100%;
	height:100%; 
}

.video-embed {
	position: relative;
	padding-bottom: 56.25%; /*default 16:9 */
	width:100%; 
	height: 0;
	overflow: hidden;
}

.video-embed.ratio16x9 {
	padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
}

.video-embed.ratio4x3 {
	padding-bottom: 75%; /* 4:3 Aspect Ratio */
}

.video-embed.ratio3x2 {
	padding-bottom: 66.66%;    /* 3:2 Aspect Ratio */
}

.video-embed.ratio1x1 {
	padding-bottom: 100%;  /* 1:1 Aspect Ratio */
}

video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	border: 0;
}


/* Video mit fester Grössenangabe */
.video-embed:not([width="0"])  {
	padding-bottom: 0%; 
}

.video-embed.ratio16x9:not([width="0"])  {
	aspect-ratio:16/9;
	height:auto;
}

.video-embed.ratio4x3:not([width="0"]) {
	aspect-ratio:4/3;
	height:auto;
}

.video-embed.ratio3x2:not([width="0"]) {
	aspect-ratio:3/2;
	height:auto;
}

.video-embed.ratio1x1:not([width="0"]) {
	aspect-ratio:1/1;
	height:auto;
}

.video-embed.ratio16x9:not([width="0"]) video {
	height: initial;
}




/* Video Startseite Fullscreen */
#uid-441 #topbild video {
	position: fixed;
    z-index:0; 
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
}

#uid-1 #topbild .video-embed {
	height:100vh;
}






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

}


@media screen and (max-width: 1060px) { 
	.ce-gallery[data-ce-columns="8"]  .ce-column { width:15%;  width: calc(16.666% - 20px); }
	.ce-gallery[data-ce-columns="9"]  .ce-column { width:15%;  width: calc(16.666% - 20px); }
	.ce-gallery[data-ce-columns="10"] .ce-column { width:15%;  width: calc(16.666% - 20px); }
}


@media screen and (max-width: 991.5px) { 

	.frame-space-before-extra-small { margin-top: 0.7em; }
	.frame-space-before-small { margin-top: 1.4em; }
	.frame-space-after-extra-small { margin-bottom: 0.7em; }
	.frame-space-after-small { margin-bottom: 1.4em; }

}


@media screen and (max-width: 880px) { 
	
	.ce-gallery[data-ce-columns="5"]  .ce-column { width:24%;  width: calc(25% - 20px); }
	.ce-gallery[data-ce-columns="6"]  .ce-column { width:24%;  width: calc(25% - 20px); }
	.ce-gallery[data-ce-columns="7"]  .ce-column { width:24%;  width: calc(25% - 20px); }
	.ce-gallery[data-ce-columns="8"]  .ce-column { width:24%;  width: calc(25% - 20px); }
	.ce-gallery[data-ce-columns="9"]  .ce-column { width:24%;  width: calc(25% - 20px); }
	.ce-gallery[data-ce-columns="10"] .ce-column { width:24%;  width: calc(25% - 20px); }
}



@media screen and (max-width: 767.5px) {
	.about-strength.frame-space-before-extra-large { margin-top: 60px; }
}


@media screen and (max-width: 680px) {


	.frame-space-before-extra-small { margin-top: 0.6em; }
	.frame-space-before-small { margin-top: 1em; }
	.frame-space-after-extra-small { margin-bottom: 0.6em; }
	.frame-space-after-small { margin-bottom: 1em; }

	
 	.ce-gallery[data-ce-columns="4"]  .ce-column { width:24%;  width: calc(33.333% - 20px); }
	.ce-gallery[data-ce-columns="5"]  .ce-column { width:24%;  width: calc(33.333% - 20px); }
	.ce-gallery[data-ce-columns="6"]  .ce-column { width:24%;  width: calc(33.333% - 20px); }
	.ce-gallery[data-ce-columns="7"]  .ce-column { width:24%;  width: calc(33.333% - 20px); }
	.ce-gallery[data-ce-columns="8"]  .ce-column { width:24%;  width: calc(33.333% - 20px); }
	.ce-gallery[data-ce-columns="9"]  .ce-column { width:24%;  width: calc(33.333% - 20px); }
	.ce-gallery[data-ce-columns="10"] .ce-column { width:24%;  width: calc(33.333% - 20px); }
	

	/* Typo3 Bild Text Reset für Mobile */
	div.csc-textpic-imagewrap  {
		float:none;
		clear:both;
		display:block;
		}

    div.csc-textpic-text {
		float:none;
		clear:both;
		margin-left:0px !important;
		margin-right:0px !important;
		padding-bottom:10px !important;
    }

	/* clear flaot on t3 Text & Bild */
	.ce-gallery[data-ce-columns="1"] { float: none !important; }
	.ce-intext.ce-right .ce-gallery[data-ce-columns="1"], .ce-intext.ce-left .ce-gallery[data-ce-columns="1"], .ce-above .ce-gallery[data-ce-columns="1"] {
		margin-bottom: 15px;
	}

}



@media screen and  (max-width: 480px) { 

	.ce-gallery { margin-right:-15px !important; }
	.ce-gallery .ce-column { margin-right:15px !important; margin-bottom:15px !important;  }
	
	.ce-gallery[data-ce-columns="2"] .ce-column { width:100%; }
	.ce-gallery[data-ce-columns="3"] .ce-column { width:100%; }
  	.ce-gallery[data-ce-columns="4"]  .ce-column { width:24%;  width: calc(50% - 15px); }
	.ce-gallery[data-ce-columns="5"]  .ce-column { width:24%;  width: calc(50% - 15px); }
	.ce-gallery[data-ce-columns="6"]  .ce-column { width:24%;  width: calc(50% - 15px); }
	.ce-gallery[data-ce-columns="7"]  .ce-column { width:24%;  width: calc(50% - 15px); }
	.ce-gallery[data-ce-columns="8"]  .ce-column { width:24%;  width: calc(50% - 15px); }
	.ce-gallery[data-ce-columns="9"]  .ce-column { width:24%;  width: calc(50% - 15px); }
	.ce-gallery[data-ce-columns="10"] .ce-column { width:24%;  width: calc(50% - 15px); }
	
}

