:root {
	--colorbox-padding-ratio:0;
	--colorbox-padding-top-ratio:var(--colorbox-padding-ratio);
	--colorbox-padding-bottom-ratio:var(--colorbox-padding-ratio);
	--colorbox-padding-left-ratio:var(--colorbox-padding-ratio);
	--colorbox-padding-right-ratio:var(--colorbox-padding-ratio);
	
	--colorbox-margin:20px;
	--colorbox-margin-mobile:10px;
	--colorbox-margin-top:var(--colorbox-margin);
	--colorbox-margin-bottom:var(--colorbox-margin);
	--colorbox-margin-left:var(--colorbox-margin);
	--colorbox-margin-right:var(--colorbox-margin);	
	
	--colorbox-margin-ratio:0;
	--colorbox-margin-top-ratio:var(--colorbox-margin-ratio);
	--colorbox-margin-bottom-ratio:var(--colorbox-margin-ratio);
	--colorbox-margin-left-ratio:var(--colorbox-margin-ratio);
	--colorbox-margin-right-ratio:var(--colorbox-margin-ratio);	
	
	--colorbox-border-radius:1.5rem;
	--colorbox-border-width:1px;
	--colorbox-border-double-width: 5px;
	--colorbox-border-color:#000;	
	
	--colorbox-box-shadow:2px 2px 10px rgba(0,0,0,0.4);
}

.colorbox-wrap {
    position: relative;
}

.colorbox-wrap header.main-column.outside { /* Headline outside */
    width: calc(100% - 80px) !important;
    max-width: inherit;
}

.colorbox .content {
	width:100%;
}

.colorbox > .content { display: flow-root; }

.col-wrap.content-same-height > .col > .colorbox-wrap {
	display: flex;
	/* width: 100%; */
	width: 100%;	
}

.col-wrap.content-same-height > .col > .colorbox,
.col-wrap.content-same-height > .col > .colorbox-wrap > .colorbox {
	/* width: 100%; */
	width: 100%;	
}


.col-wrap.content-same-height.v-center > .col > div,
.col-wrap.content-same-height.v-center > .col > div.frame > .colorbox,
.col-wrap.content-same-height.v-center > .col > .colorbox {
	display: flex;
	height:100%;
	box-sizing:border-box;
	align-items: center;	
}

main .colorbox {
	padding-top:calc(var(--colorbox-padding-top) + (var(--colorbox-padding-top) * var(--colorbox-padding-top-ratio)));
	padding-bottom:calc(var(--colorbox-padding-bottom) + (var(--colorbox-padding-bottom) * var(--colorbox-padding-bottom-ratio)));
	padding-left:calc(var(--colorbox-padding-left) + (var(--colorbox-padding-left) * var(--colorbox-padding-left-ratio)));
	padding-right:calc(var(--colorbox-padding-right) + (var(--colorbox-padding-right) * var(--colorbox-padding-right-ratio)));	
	
	/*width: 100%;*/
	box-sizing: border-box;
}

main .colorbox:after {
	content:'';
}

main .colorbox:not(.colorbox-fullwidth-content) {
	margin-top:calc(var(--colorbox-margin-top) * var(--colorbox-margin-top-ratio));
	margin-bottom:calc(var(--colorbox-margin-bottom) * var(--colorbox-margin-bottom-ratio));
	margin-left:calc(var(--colorbox-margin-left) * var(--colorbox-margin-left-ratio));
	margin-right:calc(var(--colorbox-margin-right) * var(--colorbox-margin-right-ratio));	
	
	/* width: 100%; */
	width: auto;	
	box-sizing: border-box;
}

main .colorbox.colorbox-no-fullwidth-content {	
	padding-left:0;
	padding-right:0;
}

main .main-column .colorbox-wrap header { /* Standard-Template */
    margin: 0;
	padding: 0;
}

main .content-page + div .content-page > .colorbox-wrap header { /* One-Page-Template */
    padding: 0 20px;
}

@media (max-width: 800px) {
	:root {
		--colorbox-padding: var(--colorbox-padding-mobile);
		--colorbox-margin: var(--colorbox-margin-mobile);
	}
}

/*
cg macht es irgendwie komplizierter 20.08.

.colorbox-1 a:not(.button) {
    color: var(--colorbox-font-color-1) !important;
    text-decoration: underline !important;
	background-color: initial !important;
}
.colorbox-2 a:not(.button) {
    color: var(--colorbox-font-color-2) !important;
    text-decoration: underline !important;
	background-color: initial !important;
}
.colorbox-3 a:not(.button) {
    color: var(--colorbox-font-color-3) !important;
    text-decoration: underline !important;
	background-color: initial !important;
}
.colorbox a:not(.button):hover {
    text-decoration: none !important;
}

*/

.colorbox.colorbox-1 {
	--default-link-color:var(--colorbox-font-color-1);
}

.colorbox.colorbox-2 {
	--default-link-color:var(--colorbox-font-color-2);
}

.colorbox.colorbox-3 {
	--default-link-color:var(--colorbox-font-color-3);
}

.colorbox-1 a:not(.button, .tx-pagebrowse a) {
    color: var(--colorbox-font-color-1);
}
.colorbox-2 a:not(.button, .tx-pagebrowse a) {
    color: var(--colorbox-font-color-2);
}
.colorbox-3 a:not(.button, .tx-pagebrowse a) {
    color: var(--colorbox-font-color-3);
}


.colorbox-1 a.button,
.colorbox-2 a.button,
.colorbox-3 a.button {
	border:1px solid var(--highlight-counter-color);
}

main .colorbox.colorbox-1,
main .colorbox.colorbox-1:after,
main .colorbox.colorbox-1:before {
	background-color: var(--colorbox-background-color-1);
	color: var(--colorbox-font-color-1);
}

main .colorbox.colorbox-2,
main .colorbox.colorbox-2:after,
main .colorbox.colorbox-2:before {
	background-color: var(--colorbox-background-color-2);
	color: var(--colorbox-font-color-2);
}

main .colorbox.colorbox-3,
main .colorbox.colorbox-3:after,
main .colorbox.colorbox-3:before {
	background-color: var(--colorbox-background-color-3);
	color: var(--colorbox-font-color-3);
}
main .colorbox.colorbox-fullwidth-content {
	/*
	padding-left:var(--main-column-margin);
	padding-right:var(--main-column-margin);
	*/
	
	padding-left:calc(var(--main-column-margin) + (var(--colorbox-padding-left) * var(--colorbox-padding-left-ratio)));
	padding-right:calc(var(--main-column-margin) + (var(--colorbox-padding-right) * var(--colorbox-padding-right-ratio)));			
}

/* Bild volle Breite */

main .colorbox-fullwidth-content.fullwidth-image {
    padding: 0 !important;
}
main .colorbox-fullwidth-content.fullwidth-image .ce-gallery {
	margin-bottom: 0;
}
main .colorbox-fullwidth-content.fullwidth-image img.image-embed-item {
    width: 100vw;
    height: auto;
}

.colorbox p:last-child,
.colorbox ol:last-child,
.colorbox ul:last-child {
	margin-bottom:0;
}

.colorbox.colorbox-1 hr,
.colorbox.colorbox-1 .ce-div {
	border-width:0px;
	margin-bottom:20px;
	border-top:1px solid var(--divider-colorbox-1);
}

.colorbox.colorbox-1 hr,
.colorbox.colorbox-1 .ce-div {
	border-color:var(--divider-colorbox-1);
}

.colorbox.colorbox-2 hr,
.colorbox.colorbox-2 .ce-div {
	border-color:var(--divider-colorbox-2);
}

.colorbox.colorbox-3 hr,
.colorbox.colorbox-3 .ce-div {
	border-color:var(--divider-colorbox-3);
}

.colorbox.colorbox-image {
    position: relative;
    color: var(--default-font-color);
	height:100%;
}

.colorbox.colorbox-image .colorbox-background-image {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-repeat: no-repeat;
    background-position: center center;
    height: 100%;
    width: 100%;
    z-index: 0;
	/* opacity: .6; */
}

.colorbox.colorbox-image .colorbox-cover {
	background-size:cover;	
	background-repeat: no-repeat;
}

.colorbox.colorbox-image .colorbox-contain {
	background-size:contain;	
	background-repeat: no-repeat;
}

.colorbox.colorbox-image .colorbox-repeat {
	background-repeat: repeat;
}

.colorbox.colorbox-image .colorbox-repeat-x {
	background-repeat: repeat-x;
}

.colorbox.colorbox-image .colorbox-repeat-y {
	background-repeat: repeat-y;
}

.colorbox.colorbox-image .colorbox-image-top-left {
    background-position: left top;	
}

.colorbox.colorbox-image .colorbox-image-top-center {
    background-position: center top;	
}

.colorbox.colorbox-image .colorbox-image-top-right {
    background-position: right top;	
}

.colorbox.colorbox-image .colorbox-image-center-left {
    background-position: left center;	
}

.colorbox.colorbox-image .colorbox-image-center-center {
    background-position: center center;	
}

.colorbox.colorbox-image .colorbox-image-center-right {
    background-position: right center;	
}

.colorbox.colorbox-image .colorbox-image-bottom-left {
    background-position: left bottom;	
}

.colorbox.colorbox-image .colorbox-image-bottom-center {
    background-position: center bottom;	
}

.colorbox.colorbox-image .colorbox-image-bottom-right {
    background-position: right bottom;	
}

.colorbox.colorbox-image .colorbox-background-image.colorbox-image-parallax-to-right {
    background-size: 115% auto;
    background-position-x: -50px;
}
.colorbox.colorbox-image .colorbox-background-image.colorbox-image-parallax-to-left {
    background-size: 115% auto;
    background-position-x: -50px;
}

.colorbox.colorbox-image .content {
	position: relative;
	z-index:1;
}

@media (max-width: 550px) {
.colorbox.colorbox-image .colorbox-background-image.colorbox-image-parallax-to-right,
.colorbox.colorbox-image .colorbox-background-image.colorbox-image-parallax-to-left {
    background-size: auto 100%;
}
}


main .colorbox-fullwidth-content.fullwidth-mode-left {
	padding-right: clamp(var(--colorbox-padding), (100% - var(--main-column-width)) / 2, 100%) !important;
}

main .colorbox-fullwidth-content.fullwidth-mode-right {
	padding-left: clamp(var(--colorbox-padding), (100% - var(--main-column-width)) / 2, 100%) !important;
}

main .colorbox-fullwidth-content.fullwidth-image.fullwidth-mode-left {
	padding-right: clamp(0px, (100% - var(--main-column-width)) / 2, 100%) !important;
}

main .colorbox-fullwidth-content.fullwidth-image.fullwidth-mode-right {
	padding-left: clamp(0px, (100% - var(--main-column-width)) / 2, 100%) !important;
}

main .colorbox-fullwidth-content.fullwidth-mode-outside-left {
  	/* padding-right: var(--colorbox-padding-right); */
	padding-right:calc(var(--main-column-margin) + (var(--colorbox-padding-right) * var(--colorbox-padding-right-ratio)));
	
	margin-right: clamp(var(--main-column-margin), (100% - var(--main-column-width)) / 2, 100%) !important;
}

main .colorbox-fullwidth-content.fullwidth-mode-outside-right {
	/*padding-left: var(--colorbox-padding-left);*/
	padding-left:calc(var(--main-column-margin) + (var(--colorbox-padding-left) * var(--colorbox-padding-left-ratio)));	
	
	margin-left: clamp(var(--main-column-margin), (100% - var(--main-column-width)) / 2, 100%) !important;
}

aside .colorbox {
	/*
	padding-top:var(--colorbox-padding-top);
	padding-bottom:var(--colorbox-padding-bottom);		
	padding-left:var(--colorbox-padding-left);
	padding-right:var(--colorbox-padding-right);
	*/
	padding-top:calc(var(--colorbox-padding-top) + (var(--colorbox-padding-top) * var(--colorbox-padding-top-ratio)));
	padding-bottom:calc(var(--colorbox-padding-bottom) + (var(--colorbox-padding-bottom) * var(--colorbox-padding-bottom-ratio)));
	padding-left:calc(var(--colorbox-padding-left) + (var(--colorbox-padding-left) * var(--colorbox-padding-left-ratio)));
	padding-right:calc(var(--colorbox-padding-right) + (var(--colorbox-padding-right) * var(--colorbox-padding-right-ratio)));	
	
	margin-top:calc(var(--colorbox-margin-top) * var(--colorbox-margin-top-ratio));
	margin-bottom:calc(var(--colorbox-margin-bottom) * var(--colorbox-margin-bottom-ratio));
	margin-left:calc(var(--colorbox-margin-left) * var(--colorbox-margin-left-ratio));
	margin-right:calc(var(--colorbox-margin-right) * var(--colorbox-margin-right-ratio));	
	
	box-sizing: border-box;	
}

aside .colorbox:after {
	content:'';
}

aside .colorbox-wrap header { /* Standard-Template */
    margin: 0;
	padding: 0;
}

@media (max-width: 800px) {	
	/*
	aside .colorbox {
		padding-top:15px;
		padding-bottom:15px;
	}
	*/	
}

aside .colorbox.colorbox-1,
aside .colorbox.colorbox-1:after,
aside .colorbox.colorbox-1:before {
	background-color: var(--colorbox-background-color-1);
	color: var(--colorbox-font-color-1);
}

aside .colorbox-1 a:not(.button) {
	color: var(--colorbox-font-color-1);
}

aside .colorbox-1 a.button {
	border:1px solid var(--highlight-counter-color);
}

aside .colorbox.colorbox-2,
aside .colorbox.colorbox-2:after,
aside .colorbox.colorbox-2:before {
	background-color: var(--colorbox-background-color-2);
	color: var(--colorbox-font-color-2);
}

aside .colorbox.colorbox-3,
aside .colorbox.colorbox-3:after,
aside .colorbox.colorbox-3:before {
	background-color: var(--colorbox-background-color-3);
	color: var(--colorbox-font-color-3);
}

aside .colorbox p:last-child {
	margin-bottom:0;
}

aside .colorbox.colorbox-1 hr,
aside .colorbox.colorbox-1 .ce-div {
	border-width:0px;
	margin-bottom:20px;
	border-top:1px solid var(--divider-colorbox-1);
}

aside .colorbox.colorbox-1 hr,
aside .colorbox.colorbox-1 .ce-div {
	border-color:var(--divider-colorbox-1);
}

aside .colorbox.colorbox-2 hr,
aside .colorbox.colorbox-2 .ce-div {
	border-color:var(--divider-colorbox-2);
}

aside .colorbox.colorbox-3 hr,
aside .colorbox.colorbox-3 .ce-div {
	border-color:var(--divider-colorbox-3);
}


footer .colorbox.colorbox-1,
footer .colorbox.colorbox-1:after,
footer .colorbox.colorbox-1:before {
	background-color: var(--colorbox-background-color-1);
	color: var(--colorbox-font-color-1);
}

footer .colorbox.colorbox-2,
footer .colorbox.colorbox-2:after,
footer .colorbox.colorbox-2:before {
	background-color: var(--colorbox-background-color-2);
	color: var(--colorbox-font-color-2);
}

footer .colorbox.colorbox-3,
footer .colorbox.colorbox-3:after,
footer .colorbox.colorbox-3:before {
	background-color: var(--colorbox-background-color-3);
	color: var(--colorbox-font-color-3);
}

footer .colorbox {
	padding-top:calc(var(--colorbox-padding-top) + (var(--colorbox-padding-top) * var(--colorbox-padding-top-ratio)));
	padding-bottom:calc(var(--colorbox-padding-bottom) + (var(--colorbox-padding-bottom) * var(--colorbox-padding-bottom-ratio)));
	padding-left:calc(var(--colorbox-padding-left) + (var(--colorbox-padding-left) * var(--colorbox-padding-left-ratio)));
	padding-right:calc(var(--colorbox-padding-right) + (var(--colorbox-padding-right) * var(--colorbox-padding-right-ratio)));	
	
	/*width: 100%;*/
	box-sizing: border-box;
}

footer .colorbox:after {
	content:'';
}

footer .colorbox:not(.colorbox-fullwidth-content) {
	margin-top:calc(var(--colorbox-margin-top) * var(--colorbox-margin-top-ratio));
	margin-bottom:calc(var(--colorbox-margin-bottom) * var(--colorbox-margin-bottom-ratio));
	margin-left:calc(var(--colorbox-margin-left) * var(--colorbox-margin-left-ratio));
	margin-right:calc(var(--colorbox-margin-right) * var(--colorbox-margin-right-ratio));	
	
	/* width: 100%; */
	width: auto;	
	box-sizing: border-box;
}

footer .colorbox.colorbox-no-fullwidth-content {	
	padding-left:0;
	padding-right:0;
}


/*
#cg Haben wir sowas in der Sidebar? 12.09.24

aside .colorbox.colorbox-image {
    position: relative;
    color: var(--default-font-color);
    background-color: var(--background-color);
}
aside .colorbox.colorbox-image .colorbox-background-image {
    position: absolute;
    top: 0px;
    right: 0px;
    bottom: 0px;
    left: 0px;
    background-size: cover;
    background-repeat: repeat-x;
    background-position: center center;
    height: 100%;
    width: 100%;
    z-index: 0;
	opacity: .45;
}
aside .colorbox.colorbox-image .colorbox-background-image.colorbox-image-parallax-to-right {
    background-size: 115% auto;
    background-position-x: -50px;
}
aside .colorbox.colorbox-image .colorbox-background-image.colorbox-image-parallax-to-left {
    background-size: 115% auto;
    background-position-x: -50px;
}

aside .colorbox.colorbox-image .content {
	position: relative;
	z-index:1;
}

@media (max-width: 550px) {
	aside .colorbox.colorbox-image .colorbox-background-image.colorbox-image-parallax-to-right,
	aside .colorbox.colorbox-image .colorbox-background-image.colorbox-image-parallax-to-left {
		background-size: auto 100%;
	}
}
*/

.fslightbox-container .colorbox {
	/*
	padding:var(--colorbox-padding);
	*/
	
	padding-top:calc(var(--colorbox-padding-top) + (var(--colorbox-padding-top) * var(--colorbox-padding-top-ratio)));
	padding-bottom:calc(var(--colorbox-padding-bottom) + (var(--colorbox-padding-bottom) * var(--colorbox-padding-bottom-ratio)));
	padding-left:calc(var(--colorbox-padding-left) + (var(--colorbox-padding-left) * var(--colorbox-padding-left-ratio)));
	padding-right:calc(var(--colorbox-padding-right) + (var(--colorbox-padding-right) * var(--colorbox-padding-right-ratio)));	
	
	margin-top:calc(var(--colorbox-margin-top) * var(--colorbox-margin-top-ratio));
	margin-bottom:calc(var(--colorbox-margin-bottom) * var(--colorbox-margin-bottom-ratio));
	margin-left:calc(var(--colorbox-margin-left) * var(--colorbox-margin-left-ratio));
	margin-right:calc(var(--colorbox-margin-right) * var(--colorbox-margin-right-ratio));

	overflow-y: auto;
	height: 100%;
}

.fslightbox-container .colorbox:after {
	content:'';
}

.fslightbox-container .colorbox.colorbox-1,
.fslightbox-container .colorbox.colorbox-1:after,
.fslightbox-container .colorbox.colorbox-1:before {
	background-color: var(--colorbox-background-color-1);
	color: var(--colorbox-font-color-1);
}

.fslightbox-container .colorbox.colorbox-2,
.fslightbox-container .colorbox.colorbox-2:after,
.fslightbox-container .colorbox.colorbox-2:before {
	background-color: var(--colorbox-background-color-2);
	color: var(--colorbox-font-color-2);
}

.fslightbox-container .colorbox.colorbox-3,
.fslightbox-container .colorbox.colorbox-3:after,
.fslightbox-container .colorbox.colorbox-3:before {
	background-color: var(--colorbox-background-color-3);
	color: var(--colorbox-font-color-3);
}

.colorbox.colorbox--no-padding-top {
	padding-top:0;
}

.colorbox.colorbox--no-padding-bottom {
	padding-bottom:0;
}

.colorbox.colorbox--no-padding-left {
	padding-left:0 !important;
}

.colorbox.colorbox--no-padding-right {
	padding-right:0 !important;
}

.colorbox-1.colorbox--background-opacity {
	--colorbox-background-color-1: var(--colorbox-background-opacity-color-1);
}

.colorbox-2.colorbox--background-opacity {
	--colorbox-background-color-2: var(--colorbox-background-opacity-color-2); 
}

.colorbox-3.colorbox--background-opacity {
	--colorbox-background-color-3: var(--colorbox-background-opacity-color-3); 
}

.colorbox.colorbox--border-radius {
	border-radius:  var(--colorbox-border-radius); 
}

.colorbox.colorbox--border-type-solid {
	border: var(--colorbox-border-width) solid var(--colorbox-border-color);
}

.colorbox.colorbox--border-type-dotted {
	border: var(--colorbox-border-width) dotted var(--colorbox-border-color);
}

.colorbox.colorbox--border-type-dashed {
	border: var(--colorbox-border-width) dashed var(--colorbox-border-color);
}

.colorbox.colorbox--border-type-double {	
	border: var(--colorbox-border-double-width) double var(--colorbox-border-color);
}

.colorbox.colorbox--box-shadow {	
	box-shadow: var(--colorbox-box-shadow);
}



