/* quote_box: M.Mueller 2020-04-09 */
.mdl-quote_with_image_edge_to_edge {
	background-color: #e6002e;
}
/* info_box: M.Mueller 2020-04-06 */
.hint-box.noborderbottom {
	border-bottom: none !important;
	margin-bottom: 0 !important;
}

/* lang_switch: M.Mueller 2021-03-24 */
.mdl-language_link-list {
	position: fixed;
	color: #666!important;
	z-index: 1200;
	bottom: 112px;
	right: 40px;
	padding: 0;
}
.mdl-language_link-list a {
	color: #666!important;
	background: #fff!important;
	font-size: 1.4rem;
	font-weight: 900;
	text-transform: uppercase;
	display: block;
	border: solid 1px #666!important;
	border-radius: 30.5px!important;
	margin-top: 15px; padding: 8px 12px;
}
.mdl-language_link-list .active {
	display:none;
}
.mdl-language_link-list a:hover {
	color: #d6002b!important;
}
.mdl-language_link-list--tocOpened {
	right: 72px;
}

/* ZMSTable: Let caption look like h2 */
.table-responsive table.table caption {
	box-sizing: border-box;
	color: rgb(18, 18, 18);
	font-size: 2em;
	height: 1.2em;
	line-height: 1.2em;
	font-weight: bold;
	text-align: left;
	margin-block-end: 24px;
	margin-block-start: 30px;
	margin-bottom: 24px;
	margin-inline-end: 0px;
	margin-inline-start: 0px;
	margin-top: 30px;
}
/*
.table-responsive table.table tr:first-child th,
.table-responsive table.table tr:first-child td {
	border-top:none;
	border-bottom:2px solid #dddddd;
}
*/

body.meta_id_person .mdl-header_content_title {
	visibility: hidden !important;
}

div.ZMSLinkElement {
	display:block;
	padding:1em 0 2em;
}
div.ZMSLinkElement a:after {
	font-family: "unibe-iconset";
	content: '\e600';
	margin: 0 0 0 0.5em;
	vertical-align:bottom;
	display:inline-block;
}

/* Prevent footer from overlapping content => #annual_report_outer_content */
/*
.web .container-fluid:first-child {
	margin-bottom:7em;
}
*/

@media (max-width: 768px) {
	.web.annual-report-chapterintro .container-fluid:first-child {
		margin-top: 0;
	}
}

/* Video */
#annual_report_outer_content .row.skin-gutter-wide .col-lg-12 .mdl-minified_videoplayer {
	margin:2em 0;
}

/* Enforce youtube video sizing to object-fit = cover */

body.web .youtube_True.video {
	position: relative;
	overflow: hidden;
	width: 100%;
	height: 56.25vw;
	max-height:675px
}
body.web.annual-report-grid .youtube_True.video,
body.web.annual-report-detailstory .youtube_True.video {
	width: 100%;
}
body.web.annual-report-resource.meta_id_toc button.mdl-minified_videoplayer_playbutton,
#toc-menu.open button.mdl-minified_videoplayer_playbutton {
	display: none;
}
body.web .youtube_True.video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100vw;
	height: 100vh;
	transform: translate(-50%, -50%);
}
@media (min-aspect-ratio: 16/9) {
	body.web .youtube_True.video iframe {
		/* height = 100 * (9 / 16) = 56.25 */
		height: 56.25vw;
	}
}
@media (max-aspect-ratio: 16/9) {
	body.web .youtube_True.video iframe {
		/* width = 100 / (9 / 16) = 177.777777 */
		width: 177.78vh;
	}
}
body.web .youtube_True.video .mdl-multimedia__arrowlink{
	padding-right: 1em;
}
@media (max-width: 768px) {
	body.web.annual-report-chapterintro .youtube_True.video {
		width: 100%;
		height: auto;
	}
	body.web.annual-report-chapterintro .youtube_True.video iframe {
		height: 100%;
	}
	body.web .youtube_True.video .mdl-multimedia__arrowlink {
		padding-right: 0;
	}
}

body.web .mdl-minified_videoplayer img.img-responsive {
	object-fit: cover;
	min-width: 100%;
}
body.web .video.youtube_True .mdl-minified_videoplayer_overlay {
	z-index: 100;
}
body.web .video.youtube_True .mdl-minified_videoplayer_playbutton {
	z-index: 101;
}
body.web .mdl-videoheader.overlay_0 .mdl-videoheader_overlay,
body.web .mdl-minified_videoplayer.overlay_0 .mdl-minified_videoplayer_overlay {
	display:none;
}

/* Header over Video: White Header-Logotype */

/* OBSOLETE CLASS '.overlay'?
	body.web:not(#root) .mdl-header.overlay {
		position: absolute;
		z-index: 100;
		width: 100%;
		background: #ffffff85;
	}
	body.web:not(#root) .mdl-header.overlay h1,
	body.web:not(#root) .mdl-header.overlay .mdl-header_content_image #logo-text,
	body.web:not(#root) .mdl-header.overlay .mdl-header_content_image #logo-text-quer,
	body.web:not(#root) .mdl-header.overlay .mdl-header_content_image #logo-icon-line,
	body.web:not(#root) .mdl-header.overlay .mdl-header_content_image #logo-icon-quer {
		fill:white;
		color:white
	}
*/

.mdl-header.mdl-header_overlay .mdl-header_content_image {
	top:0;
}
.mdl-header.mdl-header_overlay .mdl-header_content_image svg > * {
	/* INVERT SVG COLORS TO WHITE */
	fill: white !important;
}

/* FOOTER-NAVIGATION */
.mdl-footer .mdl-footer_linkPrevious, 
.mdl-footer .mdl-footer_linkNext {
	overflow: hidden;
}
@media screen and (max-width: 767px) {
	.mdl-sticky_toc_button {
		right:7%;
	}
}
@media screen and (max-width: 1023px) {
	.mdl-footer_linkPrevious_wrapper,
	.mdl-footer_linkNext_wrapper {
		display: none;
	}
	.mdl-footer_linkPrevious_labelIcon,
	.mdl-footer_linkNext_labelIcon {
		margin-left: 16px;
	}
}

/* Galery / PhotoSwipe */
.mdl-lightbox figcaption {
	display: flex;
	flex-direction:column-reverse;
}
.mdl-lightbox figcaption span.caption-addon {
	display:block;
	margin-top:-3.5em;
	margin-bottom:2em;
	color:white;
	opacity:0.8;
	font-size:0.8em;
	text-align:right;
	padding:0 .35em;
	text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
}
.mdl-lightbox__figure figcaption .caption-addon,
.pswp__caption__center  .caption-addon {
	display: block;
}
.pswp__caption__center,
.pswp__caption__center  .caption-addon {
	text-align: center;
}

/* Video: text on mobiles */
@media screen and (max-width: 767px) {
	.mdl-videoheader_content_header_quote {
		margin-bottom: 0;
		display: none;
		/* truncate
			overflow: hidden;
			display: -webkit-box;
			-webkit-line-clamp: 3;
			-webkit-box-orient: vertical;
		*/
	}
}

/* Highchart */
.mdl-chart figcaption.container {
	padding-right: 0;
	padding-left: 0;
}
.mdl-chart figure.highcharts-figure {
	margin: 2em 0 3em;
}
.mdl-chart figcaption p {
	margin-bottom:0;
}
.mdl-chart p.highcharts-description {
	font-size: small;
	text-align: right;
	margin-right:2em;
}
/* PhotoSwipe-FIX: Top-Bar on Hires Screens */
/* [1] /assets/css/vendor/photoswipe/default-skin/default-skin.css */
@media (-webkit-min-device-pixel-ratio: 1.1), (-webkit-min-device-pixel-ratio: 1.09375), (min-resolution: 105dpi), (min-resolution: 1.1dppx) {
	.pswp--svg .pswp__button,
	.pswp--svg .pswp__button--arrow--left:before,
	.pswp--svg .pswp__button--arrow--right:before {
		background-image: url(/assets/css/vendor/photoswipe/default-skin/default-skin.png); 

	}
}

/* Galery Fix */
.mdl-lightbox__anchor:after {
	display: none;
	content:unset;
}
.my-gallery {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
}
.mdl-lightbox__anchor {
	display: flex;
	overflow: hidden;
	flex-direction: column;
	justify-content: space-around;
	align-items: stretch;
	align-content: stretch;
	flex-wrap: nowrap;
}
.gallery-hover-icon {
	z-index: 10;
	position: absolute;
	width: 100%;
	height: 100%;
	display: inline-flex;
}
.gallery-hover-icon:before {
	content: "\e60c";
	background: #212121e6;
	color: #fff;
	display: flex;
	font-family: unibe-iconset;
	font-size: 36px;
	font-style: normal;
	font-variant: normal;
	font-weight: 400;
	width: 36px;
	height: 36px;
	opacity: 0;
	text-transform: none;
	position: relative;
	line-height: 1;
	margin: auto;
	transform: translateX(-12px);
}
.mdl-lightbox__anchor:hover .gallery-hover-icon:before {
	opacity: 1;
}


@media screen and (min-width: 1200px) {
	html[lang='en'] .mdl-toc__h1,
	html[lang='fr'] .mdl-toc__h1 {
		font-size: calc( 0.205 * (100vw - (100vw - 1200px) ) );
	}
}
@media screen and (min-width: 316px) and (max-width: 1199px) {
	html[lang='en'] .mdl-toc__h1,
	html[lang='fr'] .mdl-toc__h1 {
		font-size: calc( 0.205 * 100vw );
	}
}

/* https://github.com/idasm-unibe-ch/unibe-cms-frontend/issues/205 */
@media screen and (max-width: 767px) {
	.mdl-teaser_container {
		padding: 0 1em;
	}
}


/* Rot/Gruen-Variation: modified by attr_dc_type */
.annual-report .container-fluid.mdl-column_square_boxes .tile[class*='mdl-column_square_boxes__wrapper--institute'] {
	background-color: #0f7d28 !important;
}
.annual-report .container-fluid.mdl-column_square_boxes .tile.mdl-column_square_boxes__wrapper--institute-1 {
	background-color: #0f7d28 !important;
}
.annual-report .container-fluid.mdl-column_square_boxes .tile.mdl-column_square_boxes__wrapper--institute-2 {
	background-color: #0c6320 !important;
}
.annual-report .container-fluid.mdl-column_square_boxes .tile.mdl-column_square_boxes__wrapper--institute-3 {
	background-color: #094a18 !important;
}
.annual-report .container-fluid.mdl-column_square_boxes .tile.mdl-column_square_boxes__wrapper--institute-1 .mdl-column_square_boxes__overlay, 
.annual-report .container-fluid.mdl-column_square_boxes .tile.mdl-column_square_boxes__wrapper--institute-2 .mdl-column_square_boxes__overlay, 
.annual-report .container-fluid.mdl-column_square_boxes .tile.mdl-column_square_boxes__wrapper--institute-3 .mdl-column_square_boxes__overlay {
	background: none;
}
.annual-report .container-fluid.mdl-column_square_boxes .tile[class*='mdl-column_square_boxes__wrapper--home'] {
	background-color: #E6002E;
}
.annual-report .container-fluid.mdl-column_square_boxes .tile.mdl-column_square_boxes__wrapper--home-1 {
	background-color: #E6002E;;
  }
.annual-report .container-fluid.mdl-column_square_boxes .tile.mdl-column_square_boxes__wrapper--home-2 {
	background-color:#C9142B
}
.annual-report .container-fluid.mdl-column_square_boxes .tile.mdl-column_square_boxes__wrapper--home-3 {
	background-color:#770716
}

.annual-report.institute .department_teaserbox_wrapper--outer {
	background-color: #0f7d28;
}
.annual-report.institute .mdl-department_teaserbox {
	background-color: #0c6320 !important;
}
.annual-report.institute .mdl-focuspoint_link .mdl-focuspoint_link_circle {
	background-color: #0f7d2866;
}
.annual-report.institute .mdl-focuspoint_link:hover .mdl-focuspoint_link_circle {
	background-color: #0f7d28;
}
.annual-report.institute .annual-report-final--sender > * {
	font-size: inherit;
	color: inherit;
	font-weight:normal;
	font-family:inherit
}

.mdl-department_teaserbox:hover {
	background-color: #912024;
	cursor: pointer;
}
/* ISSUE #478: ----------------- */
/* ZMSLinkElement Text vs Button */
/* ----------------------------- */
.ZMSLinkElement:has( > div > a),
.ZMSLinkElement.center:has( > div > a) {
	text-align:center;
}
.ZMSLinkElement.floatleft:has( > div > a) {
	text-align:left;
	float:left;
}
.ZMSLinkElement.floatright:has(> div > a) {
	text-align:left;
	float:right;
}
.ZMSLinkElement.left:has(> div > a) {
	text-align:left;
	float:none;
}
.ZMSLinkElement.right:has(> div > a) {
	text-align:right;
	float:none;
}
.ZMSLinkElement a.btn.btn-primary {
	color: #fff !important;
	background-color: #d6002b;
	border: 1px solid #d6002b !important;
}
.ZMSLinkElement a.btn.btn-primary:focus,
.ZMSLinkElement a.btn.btn-primary:hover {
	color: #fff !important;
	background-color: #ad0023;
	border: 1px solid #99001f !important;
}
