/* LAYOUT */
body {
	margin:0 auto;
	font-family: Roboto, Arial,sans-serif;
	line-height: 1.5;
	background-color: #f8f8f8;
	font-size: larger;
}
header {
	background-color: white;
	border-bottom: 1px solid white;
}
.grid {
	display: grid;
	max-width:1200px;
	margin:0 auto;
	padding:0;
}
header .grid {
	grid-template-areas:"logo nav";
	grid-template-columns: 260px 1fr;
	grid-template-rows: 100px;
	z-index:100;
}
header .logo {
	grid-area: logo;
	align-self:center;
	text-align:left;
}
header .logo a img {
	margin-left: .7em;
	width: 160px;
}
header nav {
	grid-area: nav;
	width:100%;
	align-self: center;
	text-align:right;
}
.navtoggle {
	display:none;
}
#shadowbox {
	height: 1.25em;
	position:absolute;
	z-index:101;
	background: linear-gradient( rgba(0,0,0,.10),rgba(128,128,128,0));
	width:100%
}
main.grid {
	grid-template-areas:
	"leftnavigation content"
	"footer footer";
	grid-template-columns: 260px 1fr;;
	grid-template-rows: 1fr;
	display: grid;
	z-index:-10;
}
body.has_teasers main.grid {
	grid-template-columns: 260px 1fr;
}
body.no_teasers main.grid	{
	grid-template-columns: 260px 1fr;
	border-right: 1px solid #eee;
}
body#zmsroot main.grid	{
	grid-template-columns: 0px 1fr;
}
body#zmsroot aside	{
	display: none;
}
article, aside, footer {
	margin:0;
	padding: 4.85em 1em 3em 1em;
}
article {
	hyphens: auto;
	z-index:10;
	grid-area: content;
	background: white;
	min-height:600px;
}
aside.left {
	z-index:20;
	grid-area: leftnavigation;
	background-color: #ffffff;
}
/*
aside.right {
	z-index:30;
	grid-area: rightnavigation;
	background-color: rgb(207, 207, 207);
	padding-top: 3em;
}
*/
footer {
	grid-area: footer;
	background-color: rgb(207, 207, 207);
	padding-top: 1.5em;
}

/* LINKS */
a {
	text-decoration:none !important;
}
header a {
	color:black;
}
aside.left a {
	color: black;
}

/* CONTENT TYPOGRAPHY*/

.titleimage img {
	object-fit: cover;
	height: max(24vh, 260px);
	width: 100%;
	object-position: center;
	margin: 0;
	display: block;
}
article {
	padding: 1em 3rem 1em 2em !important;
	overflow-x: auto;
}
article section {
	padding-top:0;
}
article section.titles h1 {
	font-weight:normal;
	font-size: 225%;
	margin: 0.6em 0 0.7em;
	line-height:1.2;
}
#zmsroot article section.titles {
	padding-top: 2em;
}
article section.titles .description {
	font-weight:bold;
	letter-spacing:.5px;
	color:#666;
	line-height: 1.65;
	margin: 0 0 2em 0;
}
article a {
	color: #07aee9;
}

/* FUNCTION BREADCRUMB */
.breadcrumb {
	z-index:1;
	display:block;
	list-style-type:none;
	margin: -1em 0 0 -2em;
	padding: 1em 2em;
	width: 100%;
	font-size:100%;
	/* background:#eee; */
	white-space: nowrap;
	overflow:hidden;
	/* text-align: end; */
}
body.has_teasers .breadcrumb {
	margin: -1em -1.1em 0 -1.1em;
	width: 110%;
}
.breadcrumb li {
	display:inline-block;
	line-height:1em;
	font-size:80%;
}
.breadcrumb li:after {
	content:">";
	color:silver;
	margin: 0 .25em 0 .35em;
}
.breadcrumb li:last-child::after {
	content:none;
}
.breadcrumb li a {
	display:inline;
	max-width:120px;
	white-space: nowrap;
	overflow:hidden;
	text-overflow:ellipsis;
	text-decoration:none;
	border-bottom:1px solid transparent;
	color: silver;
}
.breadcrumb li a:hover {
	text-decoration:none;
	color:#000;
	border-bottom:1px solid silver;
}

/* NAVIGATION */
nav ul {
	display:block;
	list-style-type:none;
	margin:0;
	padding:0;
}
nav ul li {
	display:inline-block;
	padding:0;
}
nav ul li a {
	display:inline-block;
	text-decoration:none;
	padding: 0.15em 1em;
}
nav ul#navigationtree li a { 
	padding: 0.5em 1em;
}
nav#menu {
	white-space: nowrap;
	overflow:hidden;
}

@keyframes darken {
	from {
	background-color:rgba(0,0,0,.1);
	}
	to {
	background-color:rgba(0,0,0,.3);
	}
}

header nav > ul > li {
	/* line-height:2em; */
	background-color:rgba(0,0,0,.0);
	margin: 0;
	padding: 0;
}
header nav ul li.active,
header nav ul li:hover {
	background-color: rgb(7 174 233);
}
header nav ul li.active a,
header nav ul li:hover a {
	color: white;
}
header nav ul li:hover {
	animation-name: darken;
	animation-duration: 2s;
}
header nav ul li.active:hover {
	animation-name: none;
}
aside nav ul li {
	display:block;
}
aside nav ul li a:hover {
	color:#82d8ff
}
aside nav ul > li.active > a {
	color: #07aee9 !important;
	font-weight: bold;
}
aside nav ul li.active.current:before {
	content: '\0025BA';
	color: #07aee9;
	display: inline-block;
	margin: .62rem 0 0 -.15rem;
	position: absolute;
	opacity: .75;
}
aside nav ul li ul {
	padding-left:1.5em;
}

footer p {
	padding:0;
	margin:0;
	line-height:2;
	font-size: 70%;
	color: #666;
}
footer p a {
	text-decoration:none;
	color: inherit;
}

@media screen and (min-width: 1200px) {
	body.no_teasers main {
	border-right: 1px solid #eee;
	}
}
@media screen and (max-width: 1080px) {
	body#zmsroot.has_teasers main {
	/* 
		grid-template-columns: 2.5em 1fr 260px;
		-ms-grid-columns: 2.5em auto 260px;
	*/
	grid-template-columns: unset;
	-ms-grid-columns: unset;
	}
}
@media screen and (max-width: 960px) {
	header nav ul li a {
	padding:0.5em 0.5em;
	font-size:95%;
	}
	main {
	grid-template-columns: 200px 1fr 200px;
	-ms-grid-columns: 200px auto 200px;
	}
}
@media screen and (max-width: 760px) {
	.grid {
		display:block !important;
	}
	header .logo {
		/* text-align:center; */
		padding: 1em 0 0.35em 0.35em;
	}
	header nav {
		text-align:left;
	}
	header nav ul li {
		display:none;
	}
	header nav.expand ul li,
	header nav ul li.active {
		display:block;
		margin: .5em 0;
	}
	header nav ul li.active,
	header nav ul li:hover {
		background-color: #e2ebef;
	}
	header nav ul li.active a {
		color:unset
	}
	header nav ul li a {
		padding: .1em 2em;
	}
	#shadowbox {
		display:none;
	}
	body.has_teasers .breadcrumb {
		margin: -1em -1em 0 -1em;
		width: 100%;
	}
	article {
		min-height:0;
		padding: 1em !important;
		overflow: hidden;
	}
	aside.left.expand {
		visibility:visible;
	}
	aside.left {
		visibility:hidden;
		position: absolute;
		top: 69px;
		right: 0;
		min-height: 204px;
		min-width: 160px;
		background:none !important;
		padding: 0.2em .5em;
		display: inline-block;
		font-size: 90%;
		z-index: 200;
	}
	aside nav ul li.active.current:before {
	content:none;
	}
	aside nav ul li.active.current > a {
		font-weight:bold;
	}
	.navtoggle {
		display:block;
		position: absolute;
		right: 0;
		top: 2.25rem;
		padding: 0 .35em;
		font-size: 32px;
		line-height: .5;
		color:black;
		/* border: 1px solid black; */
		margin: 7px;
	}
	#zmsroot .navtoggle {
		color:black;
		border-color:black;
	}
	#zmsroot .expand .navtoggle {
		color:black;
		border-color:black;
	}
	aside .navtoggle {
		padding: 0px 3px 3px 3px;
		margin: 4px 7px;
	}
}

article .form-filter {
	display:none
}
article .ZMSObjectSet.accordion {
	list-style: square;
	font-weight:normal;
	margin-left:2rem;
}
article .ZMSObjectSet .card {
	display:list-item;
	font-size:normal;
	font-weight:normal;
}
article .ZMSObjectSet .card-header {
	margin:.5em;
}
article .ZMSObjectSet .card a {
	font-weight:normal;
}


/* TEASER */

.ZMSTeaserContainer {
	--font-size: unset;
	--line-height: 1.5;
	--lines-to-show: 6;
}
.ZMSFlexbox,
.ZMSTeaserContainer {
	display: flex;
	justify-content: space-between;
	flex-direction: row;
	flex-wrap: nowrap;
	align-content: flex-start;
	align-items: stretch;
	margin: 2rem 0;
}
.ZMSFlexbox .ZMSFlexboxItem,
.ZMSTeaserContainer > div {
	border: 1px solid silver;
	border-radius: 4px;
	padding: .5rem 1rem;
	flex-grow: 1;
	flex-shrink: 1;
	flex-basis: 0;
	margin: 0 1rem;
}

.ZMSFlexbox > div:first-child,
.ZMSTeaserContainer > div:first-child {
	margin-left:0;
}
.ZMSFlexbox > .ZMSFlexboxItem:last-child,
.ZMSTeaserContainer > div:last-child {
	margin-right:0;
}
@media screen and (max-width: 760px) {
	.ZMSFlexbox,
	.ZMSTeaserContainer {
		flex-direction: column;
		align-items: unset;
	}
	.ZMSFlexbox > .ZMSFlexboxItem,
	.ZMSTeaserContainer > div {
		margin: 1rem 0 !important;
	}
}
.ZMSTeaserContainer .ZMSFile .title,
.ZMSTeaserContainer .ZMSTeaserElement .title {
	font-weight: bold;
	color: unset;
	text-decoration:none;
	background: unset;
	display:block;
	padding: 0.5rem  1rem .75rem;
	margin: 0 -1rem;
	border-bottom: 1px solid silver;
}
.ZMSTeaserContainer .ZMSTeaserElement .title a {
	color: #03A9F4;
	text-decoration:none;
	background: unset;
	display:block;
	padding: unset;
	margin: unset;
	border-bottom: unset;
}
.ZMSTeaserContainer .text {
	padding: 1rem 0;
}
.ZMSTeaserContainer .ZMSTeaserElement .text p {
	margin: 0;
}
.ZMSTeaserContainer .ZMSFile .text,
.ZMSTeaserContainer .ZMSTeaserElement .text p {
	hyphens: auto;
	height: calc(var(--line-height) * var(--lines-to-show) * var(--font-size));
	font-size: var(--font-size);
	line-height: var(--line-height);
	overflow: hidden;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: var(--lines-to-show);
	-webkit-box-orient: vertical;
}

/* PREVIEW */
.contentEditable.zms-pageelement {
	display:inline-block !important;
}