/**** GLOBAL VARIABLE DEFINITIONS START ****/
:root{
	color-scheme:light dark;

	--rm-container-width:1140px;
	--rm-container-side-padding:20px;

	--rm-color-primary:#dc2211;
	--rm-color-secondary:#7f7f7f;

	--rm-color-white:#FAFAFA;
/*	--rm-color-black:#030303;*/
/* lighter black color for better accesibility */
	--rm-color-black:#171717;
	--rm-color-light-black:#202020;
	--rm-color-light:#f2f2f2;

	--rm-color-white-defused:#ffffff36;
	--rm-color-black-defused:#0003;


	--background-color:light-dark(var(--rm-color-white), var(--rm-color-black));
	--background-color-light:light-dark(var(--rm-color-light), var(--rm-color-light-black));
	--box-shadow-color:light-dark(var(--rm-color-black-defused), var(--rm-color-white-defused));
	--text-color:light-dark(var(--rm-color-black), var(--rm-color-white));
	--link-color:var(--text-color);
	--link-hover-color:var(--text-color);

	--button-background-color:var(--background-color);
	--button-background-hover-color:var(--rm-color-primary);
	--button-text-color:var(--rm-color-white);
	--button-text-hover-color:var(--rm-color-primary);


	--rm-default-fontfamily:"Open Sans", system-ui, sans-serif;
	--rm-alternative-fontfamily:Share, system-ui, sans-serif;

	--text-fontsize:18px;
	--text-fontweight:300;
	--text-lineheight:1.5;
	--text-fontfamily:var(--rm-default-fontfamily);

	--subtext-fontsize:18px;
	--subtext-fontweight:300;
	--subtext-lineheight:1.5;
	--subtext-fontfamily:var(--rm-default-fontfamily);

	--heading-primary-fontsize:36px;
	--heading-primary-fontweight:300;
	--heading-primary-fontfamily:var(--rm-default-fontfamily);
	--heading-primary-lineheight:1.4;

	--heading-secondary-fontsize:30px;
	--heading-secondary-fontweight:300;
	--heading-secondary-fontfamily:var(--rm-default-fontfamily);
	--heading-secondary-lineheight:1.4;

	--heading-tertary-fontsize:26px;
	--heading-tertary-fontweight:300;
	--heading-tertary-fontfamily:var(--rm-default-fontfamily);
	--heading-tertary-lineheight:1.4;

}

/****	 GLOBAL VARIABLE DEFINITIONS END	****/

/**** GLOBAL STYLING DEFINITIONS START ****/

*, *::before, *::after{
	box-sizing:border-box;
}

html{
	overflow-x:hidden;
	font-size:var(--text-fontsize);
}

body{
	overflow-x:clip;
	overscroll-behaviour-x:none;
	font-family:var(--text-fontfamily);
	line-height:var(--text-lineheight);
	font-size:var(--text-fontsize);
	font-weight:var(--text-fontweight);
	color:var(--text-color);
	background:var(--background-color);
	margin:0;
	min-height:100dvh;
	display:flex;
	flex-direction:column;
	transition:background .2s ease;
}
body.light-mode{
	color-scheme:light;
}
body.dark-mode{
	color-scheme:dark;
}

ul,ol{
	list-style:none;
	padding-left:0;
}

a{
	text-decoration:none;
	color:var(--link-color);
	transition:color .2s ease;
	position:relative;
}
a:hover{
	color:var(--link-hover-color);
}

#main-content a::after,
#main-footer a::after{
	position:absolute;
	left:0;
	display:block;
	content:'';
	background-color:var(--rm-color-primary);
	width:0;
	height:2px;
	transition:width .2s ease;
}
#main-content a:hover::after,
#main-footer a:hover::after{
	width:100%;
}

button,
a.link-button{
	font-family:var(--rm-default-fontfamily);
	font-size:var(--text-fontsize);
	font-weight: var(--text-fontweight);
	color:var(--button-textcolor);
	background:var(--button-background-color);
	border:1px solid var(--rm-color-primary);
	border-radius:0;
	padding:10px 12px;
	transition: background .2s ease, color .2s ease;
}
button:hover,
a.link-button:hover{
	cursor:pointer;
	color:var(--button-text-hover-color);
	background:var(--button-background-hover-color);
}

input{
	font-family:var(--rm-default-fontfamily);
	font-size:var(--text-fontsize);
	border: 1px solid var(--rm-color-secondary);
	border-radius: 0px;
	background:var(--background-color);
	color:var(--text-color);
	padding: 10px 12px;
	text-decoration: none;
	transition: .2s linear;
	width: 100%;
	height:100%;
}

h1,h2,h3,h4,h5,h6{
	margin-top:0;
	margin-bottom:0.5em;
}

h1,.h1{
	font-size:var(--heading-primary-fontsize);
	font-weight:var(--heading-primary-fontweight);
	line-height:var(--heading-primary-lineheight);
	font-family:var(--heading-primary-fontfamily);
}
h2,.h2{
	font-size:var(--heading-secondary-fontsize);
	font-weight:var(--heading-secondary-fontweight);
	line-height:var(--heading-secondary-lineheight);
	font-family:var(--heading-secondary-fontfamily);
}
h3,.h3,
h4,.h4,
h5,.h5,
h6,.h6{
	font-size:var(--heading-tertary-fontsize);
	font-weight:var(--heading-tertary-fontweight);
	line-height:var(--heading-tertary-lineheight);
	font-family:var(--heading-tertary-fontfamily);
}

p{
	margin-top:0;
}
p:last-of-type{
	margin-bottom:0;
}

.span{
	line-height:var(--text-lineheight);
	font-size:var(--text-fontsize);
	font-weight:var(--text-fontweight);
}

img{
	max-width:100%;
	height:auto;
	vertical-align: middle;
	font-style: italic;
	background-repeat: no-repeat;
	background-size: cover;
	shape-margin: 1rem;
}

hr{
	border-bottom:0;
}

	/*** FOCUSABLE ELEMENTS START ***/
	*:focus{
		outline:unset!important;
		box-shadow:unset!important;
	}
	*:focus-visible{
		outline:2px solid var(--rm-color-primary)!important;
		outline-offset:1px!important;
		z-index:1;
	}
	/***	FOCUSABLE ELEMENTS END	***/

/*** RTE-Fluid STYLING START ***/
	.lead {
		font-size:1.25rem;
		font-weight:300
	}
	.text-monospace {
		font-family:SFMono-Regular,Menlo,Monaco,Consolas,"Liberation Mono","Courier New",monospace !important
	}
	.text-justify {
		text-align:justify !important
	}
	.text-wrap {
		white-space:normal !important
	}
	.text-nowrap {
		white-space:nowrap !important
	}
	.text-truncate {
		overflow:hidden;
		text-overflow:ellipsis;
		white-space:nowrap
	}
	.text-left {
		text-align:left !important
	}
	.text-right {
		text-align:right !important
	}
	.text-center {
		text-align:center !important
	}
	.text-primary{
		color:var(--rm-color-primary);
	}
	.text-tiny{
		font-size:.5em;
	}
	.text-small{
		font-size:.75em;
	}
	.text-default{
		font-size:1em;
	}
	.text-big{
		font-size:1.5em;
	}
	.text-huge{
		font-size:2em;
	}
	/***  RTE-Fluid STYLING END  ***/


/*** TEXT HIGHLIGHT COLOR START **/
::-moz-selection,
::selection { /* Code for Firefox */
	color:var(--rm-color-white);
	background:var(--rm-color-primary);
}
/***  TEXT HIGHLIGHT COLOR END  **/

/****	 GLOBAL STYLING DEFINITIONS END	 ****/

/**** GLOBAL LAYOUT DEFINITIONS START ****/

header#main-header{
	width:100%;
	position:sticky;
	z-index:10;
	top:0;
	box-shadow: 0px -10px 40px var(--box-shadow-color);
}

main#main-content{
	flex:1 0 auto;
	width:100%;
	/*
	max-width:var(--rm-container-width);
	margin:0 auto;
	padding:0 var(--rm-container-side-padding);
	*/
	display:flex;
	flex-direction:column;
/*	row-gap:2em; */
}
body:not(.is-home) main#main-content{
	padding-top:2em;
}

footer#main-footer{
/*	overflow:auto;*/
	background-color:var(--rm-color-black);
	color:var(--rm-color-white);
	border-top:1px solid;
/*	margin-top:5rem; */
}

/****	 GLOBAL LAYOUT DEFINITIONS END	****/


/**** HEADER SPECIFIC DEFINITIONS START ****/
#main-header::before{
	content:'';
	display:block;
	position:absolute;
	width:100%;
	height:100%;
	background:var(--background-color);
	z-index:-1;
	border-bottom:8px solid var(--rm-color-primary);
	transition:background .2s ease;
}
#main-header .header-wrapper{
	max-width:var(--rm-container-width);
	margin:0 auto;
	padding:0 var(--rm-container-side-padding) 13px;
	display:flex;
	justify-content:space-between;
	column-gap:0;
	row-gap:20px;
}
#main-header .logo-container{
	padding-top:20px;
}
#main-header .logo-container a{
	display:flex;
	align-items:end;
	gap:10px;
}
#main-header .logo-container img{
	max-width:85px;
	width:100%;
	margin-bottom:7px;
}
#main-header .logo-container .website-title{
	font-family:var(--rm-alternative-fontfamily);
	font-size:22px;
	text-transform:uppercase;
	color:var(--text-color);
}
#main-header .mobile-menu-overlay{
	position:absolute;
	width:100vw;
	height:100vh;
	top:0;
	left:0;
	background-color:#00000060;
	opacity:0;
	visibility:hidden;
	transition:opacity .2s ease, visibility .2s ease;
}
#main-header .mobile-menu-toggle{
	z-index:25;
	display:none;
	border:none!important;
	background:none!important;
}
#main-header .mobile-menu-toggle span,
#main-header .mobile-menu-toggle span::before,
#main-header .mobile-menu-toggle span::after,
#main-header .mobile-menu-toggle::before,
#main-header .mobile-menu-toggle::after{
	display:block;
	content:'';
	width:30px;
	height:2px;
	background-color:var(--rm-color-primary);
	transition:.2s ease;
	position:relative;
	top:0;
}
#main-header .mobile-menu-toggle span::before,
#main-header .mobile-menu-toggle span::after{
	position:absolute;
}
#main-header .navigation-container{
	display:flex;
	align-items:end;
	flex:0 0 auto;
}
#main-header .navigation-container .main-menu{
	display:flex;
	flex:1 0 auto;
	align-items:stretch;
	height:100%;
	padding:0;
	margin:0;
}
#main-header .navigation-container .main-menu-item{
	display:flex;
	align-items:end;
	position:relative;
}
#main-header .navigation-container .main-menu-item .menu-text{
	color:var(--text-color);
	padding:8px 15px 0;
	font-size:20px;
	text-transform:uppercase;
	user-select:none;
	display:block;
}
#main-header .navigation-container .main-menu-item span:hover{
	cursor:default;
}
#main-header .navigation-container .main-menu-item::before{
	content:'';
	display:block;
	position:absolute;
	top:0;
	width:100%;
	height:3px;
	background-color:var(--rm-color-primary);
	opacity:0;
	transition:opacity .2s ease;
}
#main-header .navigation-container .main-menu-item:hover::before{
	opacity:.6;
}
#main-header .navigation-container .main-menu-item:hover > .submenu-wrapper,
#main-header .navigation-container .main-menu-item > .menu-text:focus + .submenu-wrapper,
#main-header .navigation-container .main-menu-item .submenu-wrapper:has(*:focus){
	opacity:1;
	visibility:visible;
}
#main-header .navigation-container .main-menu-item.active-page::before{
	opacity:1;
}

#main-header .navigation-container .submenu-wrapper{
	opacity:0;
	visibility:hidden;
	position:absolute;
	top:100%;
	right:0;
	transition:opacity .2s ease, visibility .2s ease;
	background-color:var(--background-color);
	border:1px solid var(--background-color-light);
	padding:8px 0;
	box-shadow:0 0 2px var(--box-shadow-color);
	min-width:9rem;
}
#main-header .navigation-container .submenu .menu-item{
	transition:background-color .2s ease;
}
#main-header .navigation-container .submenu .menu-item:hover,
#main-header .navigation-container .submenu .active-page{
	background-color:var(--rm-color-primary);
}
#main-header .navigation-container .submenu .menu-text:hover,
#main-header .navigation-container .submenu .active-page .menu-text{
	color:var(--button-text-color);
}
#main-header .navigation-container .submenu .menu-item .menu-text{
	text-transform:initial;
}

/****	 HEADER SPECIFIC DEFINITIONS END	****/

/*** MAIN CONTENT SPECIFIC DEFINITIONS START ***/
	/** PAGE LAYOUT SPECIFIC DEFINTIONS START **/
		/* SLIM CONTENT LAYOUT */
		#main-content.page-layout-1{
			--rm-container-width:800px;
		}

		/* MEDIUM CONTENT LAYOUT */
		#main-content.page-layout-2{
			--rm-container-width:1024px;
		}
	/**	 PAGE LAYOUT SPECIFIC DEFINTIONS END	 **/

	/** CONTENT ELEMENT LAYOUT SPECIFIC DEFINITIONS START **/
		#main-content .frame:last-child{
			padding-bottom:4em!important;
		}
		/* LIMITED WIDTH CONTENT ELEMENT */
		#main-content .frame.frame-layout-0{
			max-width:var(--rm-container-width);
			width:100%;
			margin-left:auto;
			margin-right:auto;
			padding:1em var(--rm-container-side-padding);
		}
		/* FULL WIDTH CONTENT ELEMENT */
		#main-content .frame.frame-layout-1{
			width:100%;
		}
		/* FULL WIDTH WITH PADDING CONTENT ELEMENT */
		#main-content .frame.frame-layout-2{
			width:100%;
			padding:1em var(--rm-container-side-padding);
		}
	/**  CONTENT ELEMENT LAYOUT SPECIFIC DEFINITIONS END  **/

	/** CONTENT ELEMENT SECTION SPECIFIC DEFINITIONS START **/
		#main-content .frame.section-light{
			background-color:var(--background-color-light);
			transition:background-color .2s ease;
		}
	/**  CONTENT ELEMENT SECTION SPECIFIC DEFINITIONS END  **/


	/** GLOBAL CONTENT SPECIFIC DEFINITIONS START **/
	#main-content ul,ol{
		padding-left:15px;
	}
	#main-content ol{
		list-style:decimal;
	}
	#main-content ul li{
		list-style-type:"\2013 \00A0";
	}
	
	/** CONTENT ELEMENTS SPECIFIC DEFINTIONS START **/
		/* TEXTPIC CE, TEXTMEDIA CE */
		.ce-textpic .ce-gallery .ce-row{
			display:flex;
			justify-content:center;
		}
		.ce-textpic:not(.ce-above,.ce-below).text-gallery--ratio-50-50 .ce-bodytext,
		.ce-textpic:not(.ce-above,.ce-below).text-gallery--ratio-50-50 .ce-gallery{
			width: calc(50% - (20px / 2));
		}

		.ce-textpic:not(.ce-above,.ce-below).text-gallery--ratio-70-30 .ce-bodytext{
			width: calc(70% - (20px / 2));
		}
		.ce-textpic:not(.ce-above,.ce-below).text-gallery--ratio-70-30 .ce-gallery{
			width: calc(30% - (20px / 2));
		}

		.ce-textpic:not(.ce-above,.ce-below).text-gallery--ratio-60-40 .ce-bodytext{
			width: calc(60% - (20px / 2));
		}
		.ce-textpic:not(.ce-above,.ce-below).text-gallery--ratio-60-40 .ce-gallery{
			width: calc(40% - (20px / 2));
		}

		/* UPLOADS CE */
		#main-content .ce-uploads{
			padding-left:0;
		}
		#main-content .ce-uploads li{
			list-style:none;
		}
		
		/* HEADER ONLY CE */
		#main-content header:not(:has(+ *)) *{
			margin-bottom:0;
		}

		
	/**  CONTENT ELEMENTS SPECIFIC DEFINTIONS END  **/

	
/**** MAIN CONTENT SPECIFIC DEFINITIONS END ****/


/**** FOOTER SPECIFIC DEFINITIONS START ****/
#main-footer .footer-wrapper{
	max-width:var(--rm-container-width);
	margin:0 auto;
	padding:30px var(--rm-container-side-padding) 40px var(--rm-container-side-padding);
	font-size:clamp(14px, var(--text-fontsize), 18px);
}
#main-footer .footer-wrapper .footer-bottom-row{
	display:flex;
	flex-wrap:wrap;
	justify-content:space-between;
	align-items:end;
	gap:15px;
	margin-top:1rem;
}
#main-footer a{
	color:inherit;
}

#main-footer nav{
	display:flex;
	flex-direction:column;
	row-gap:5px;
	list-style:none;
}
#main-footer nav ul{
	padding:0;
	margin:0;
}

#toggle-light-dark-mode{
	font-size:1.5em;
	line-height:1;
}
body.dark-mode #toggle-light-dark-mode::before{
	display:block;
	content:'\2600\FE0E' / 'Toggle light mode';
}
body.light-mode #toggle-light-dark-mode::before{
	display:block;
	content:'\263E\FE0E' / 'Toggle dark mode';
}
/****	 FOOTER SPECIFIC DEFINITIONS END	****/









/**** RESPONSIVE DEFINITIONS START ****/
@media only screen and (max-width: 1023px){
	:root{
		--text-fontsize:18px;
		--text-fontweight:300;
		--text-lineheight:1.4;
		--text-fontfamily:var(--rm-default-fontfamily);

		--subtext-fontsize:18px;
		--subtext-fontweight:300;
		--subtext-lineheight:1.4;
		--subtext-fontfamily:var(--rm-default-fontfamily);

		--heading-primary-fontsize:30px;
		--heading-primary-fontweight:300;
		--heading-primary-fontfamily:var(--rm-default-fontfamily);
		--heading-primary-lineheight:1.4;

		--heading-secondary-fontsize:26px;
		--heading-secondary-fontweight:300;
		--heading-secondary-fontfamily:var(--rm-default-fontfamily);
		--heading-secondary-lineheight:1.4;

		--heading-tertary-fontsize:24px;
		--heading-tertary-fontweight:300;
		--heading-tertary-fontfamily:var(--rm-default-fontfamily);
		--heading-tertary-lineheight:1.4;
	}
}

@media only screen and (max-width: 830px){
	html:has(.navigation-container.menu-visible){
		overflow-y:hidden;
	}
	#main-header .header-wrapper{
		align-items:end;
		padding:15px var(--rm-container-side-padding);
	}
	#main-header .logo-container{
		padding-top:0;
	}
	#main-header .logo-container img{
		max-width:50px;
	}
	#main-header .mobile-menu-toggle{
		display:flex;
		flex-direction:column;
		row-gap:5px;
	}
	#main-header:has(.navigation-container.menu-visible) .mobile-menu-overlay{
		opacity:1;
		visibility:visible;
	}
	#main-header:has(.navigation-container.menu-visible) .mobile-menu-toggle span{
		background-color:transparent;
	}
	#main-header:has(.navigation-container.menu-visible) .mobile-menu-toggle::before,
	#main-header:has(.navigation-container.menu-visible) .mobile-menu-toggle::after{
		opacity:0;
	}
	#main-header:has(.navigation-container.menu-visible) .mobile-menu-toggle span::before{
		background-color:var(--text-color);
		transform:rotate(45deg);
	}
	#main-header:has(.navigation-container.menu-visible) .mobile-menu-toggle span::after{
		background-color:var(--text-color);
		transform:rotate(-45deg);
	}

	#main-header .navigation-container{
		position:absolute;
		right:0;
		top:0;
		transform:translateX(100%);
		transition:transform .2s linear, box-shadow .2s linear;
		background-color:var(--background-color);
		color:var(--rm-color-white);
		height:100vh;
		width:100%;
		max-width:300px;
		padding:100px 10px 30px 20px;
		box-shadow:0px 0px 0px 0px var(--box-shadow-color);
		z-index:15;
		overflow:scroll;
		align-items:start;
	}
	#main-header .navigation-container.menu-visible{
		transform:translateX(0);
		box-shadow:0px 0px 40px var(--box-shadow-color);
	}
	#main-header .navigation-container ul.main-menu{
		flex-direction:column;
		row-gap:40px;
		overflow:scroll;
	}
	#main-header .navigation-container .main-menu-item{
		flex-direction:column;
		align-items:center;
	}
	#main-header .navigation-container .main-menu-item .menu-text{
		text-align:center;
	}
	#main-header .navigation-container .submenu-wrapper{
		opacity:1;
		visibility:visible;
		position:static;
		display: grid;
		grid-template-rows: 0fr;
		transition: grid-template-rows .2s ease, padding .2s ease;
		overflow: hidden;
		border:none;
		width:100%;
		padding:0;
	}
	#main-header .navigation-container .submenu-wrapper.expanded,
	#main-header .navigation-container .menu-item:has(.submenu-wrapper) .menu-text:focus + .submenu-wrapper,
	#main-header .navigation-container .submenu-wrapper:has(*:focus){
		grid-template-rows: 1fr;
		padding-top:8px;
		padding-bottom:8px;
	}
	#main-header .navigation-container .submenu{
		min-height:0;
	}

	#main-header .navigation-container li a{
		color:inherit;
		display:block;
	}
	#main-header .navigation-container li.active-page > a{
	/*	background-color:var(--rm-color-white); */
	/*	color:var(--rm-color-black); */
	}

}

@media only screen and (max-width: 767px){
	:root{
		--text-fontsize:18px;
		--text-fontweight:300;
		--text-lineheight:1.4;
		--text-fontfamily:var(--rm-default-fontfamily);

		--subtext-fontsize:18px;
		--subtext-fontweight:300;
		--subtext-lineheight:1.4;
		--subtext-fontfamily:var(--rm-default-fontfamily);

		--heading-primary-fontsize:30px;
		--heading-primary-fontweight:300;
		--heading-primary-fontfamily:var(--rm-default-fontfamily);
		--heading-primary-lineheight:1.4;

		--heading-secondary-fontsize:26px;
		--heading-secondary-fontweight:300;
		--heading-secondary-fontfamily:var(--rm-default-fontfamily);
		--heading-secondary-lineheight:1.4;

		--heading-tertary-fontsize:24px;
		--heading-tertary-fontweight:300;
		--heading-tertary-fontfamily:var(--rm-default-fontfamily);
		--heading-tertary-lineheight:1.4;
	}
	
	#main-header .logo-container .website-title{
		display:none;
	}
	
	.ce-textpic:not(.ce-above,.ce-below).text-gallery--ratio-50-50 .ce-bodytext,
	.ce-textpic:not(.ce-above,.ce-below).text-gallery--ratio-50-50 .ce-gallery,
	.ce-textpic:not(.ce-above,.ce-below).text-gallery--ratio-70-30 .ce-bodytext,
	.ce-textpic:not(.ce-above,.ce-below).text-gallery--ratio-70-30 .ce-gallery,
	.ce-textpic:not(.ce-above,.ce-below).text-gallery--ratio-60-40 .ce-bodytext,
	.ce-textpic:not(.ce-above,.ce-below).text-gallery--ratio-60-40 .ce-gallery{
		width:100%;
	}


}

@media only screen and (max-width: 660px){
	#main-footer .footer-content .ce-headline-right,
	#main-footer .footer-content .text-right{
		text-align:start!important;
	}
}

@media only screen and (max-width: 500px){
	:root{
		--text-fontsize:18px;
		--text-fontweight:300;
		--text-lineheight:1.4;
		--text-fontfamily:var(--rm-default-fontfamily);

		--subtext-fontsize:18px;
		--subtext-fontweight:300;
		--subtext-lineheight:1.4;
		--subtext-fontfamily:var(--rm-default-fontfamily);

		--heading-primary-fontsize:30px;
		--heading-primary-fontweight:300;
		--heading-primary-fontfamily:var(--rm-default-fontfamily);
		--heading-primary-lineheight:1.4;

		--heading-secondary-fontsize:25px;
		--heading-secondary-fontweight:300;
		--heading-secondary-fontfamily:var(--rm-default-fontfamily);
		--heading-secondary-lineheight:1.4;

		--heading-tertary-fontsize:20px;
		--heading-tertary-fontweight:300;
		--heading-tertary-fontfamily:var(--rm-default-fontfamily);
		--heading-tertary-lineheight:1.4;
	}

}

/****	 RESPONSIVE DEFINITIONS END	 ****/
