/*
  20210113 hagemand
*/

@font-face {
  font-family: Saira-Regular;
  font-style: normal;
  src: url('/sites/common4all/fonts/google-fonts/saira/saira-regular.ttf');
}
@font-face {
  font-family: inter-regular;
  font-style: normal;
  src: url('/sites/common4all/fonts/google-fonts/inter/inter-18pt-regular.ttf');
}
@font-face {
  font-family: Robotoslab-Regular;
  font-style: normal;
  src: url('/sites/common4all/fonts/google-fonts/roboto-slab/robotoslab-regular.ttf');
}
@font-face {
  font-family: Robotoslab-bold;
  font-style: normal;
  src: url('/sites/common4all/fonts/google-fonts/roboto-slab/robotoslab-bold.ttf');
}

:root {
  --white: #ffffff;
  --light-grey: #efefef;
  --text-dark-grey: #444444;
  --text-dark: #2D3131;
  --heading-h2: #651F71;
  --heading-h3: #651F71;
  --hyperlink: #7037CD;
  --hyperlink-hover: #000000;
  --infobox-blue: #506EE5;
  --swiper-pagination-color: #ffffff;
  --header-background-color:rgba(45,49,49,.85);
}

:focus {
  outline: 1px dotted black; 
} 

/*
html, body {
  margin: 0;
  //width: 100%;
  font-size: 16px;
  font-family: Robotoslab-Regular, Arial, sans-serif;
  color: var(--text-dark);
}*/

html {
  width: 100%;
  font-size: 16px;
  font-family: Robotoslab-Regular, Arial, sans-serif;
  color: var(--text-dark);
  scroll-behavior: smooth;
}

body {
  width: 100%;
  margin: 0;
  min-height: 100vh;
  background: #333333;
  z-index: 0;
}


/* ------------------------------------------------------------------------------
   TYPOGRAPHY
    and
   CORE HTML-Elements
*/
h1 { 
  font-size: 32px; 
  font-family: saira-regular, Arial, Helvetica, sans-serif; 
  color: var(--text-dark); 
  font-weight: 600; 
  line-height: 100%;
  margin: 0 0 .875em 0; 
  text-transform: uppercase;
  letter-spacing:-1.6px;
}

h2 { 
  font-size: 25px; 
  font-family: saira-regular, Arial, Helvetica, sans-serif; 
  color: var(--heading-h2); 
  font-weight: 600; 
  line-height: 40px;
  text-transform: none;
  margin: 0 0 .875em 0; 
  letter-spacing: -1.25px;
}

h3 { 
  font-size: 1.15rem; 
  font-family: saira-regular, Arial, Helvetica; 
  color: var(--heading-h3); 
  line-height: 1.5rem; 
  font-weight: bold; 
  margin: 0 0 .875em 0; 
}

p,
li,
span { 
  font-size: 19px;
  color: var(--text-dark);
  font-family: inter-regular, Arial, Helvetica; 
  line-height: 29px; 
  font-weight:300px;
}

a { 
  font-size: inherit;
  font-family: inter-regular, Arial, Helvetica; 
  line-height: inherit;
  color: var(--hyperlink); 
  font-weight: normal !important;
  border: 0;
  outline: none;
  transition: color 0.18s ease-in-out;  
}

a:hover { 
  color: var(--hyperlink-hover);
  text-decoration: underline;
}

ul {
  padding-inline-start: 1.5em;
}

ul li {
  margin: 0 0 .5em 0;
  padding-left: .35em
}

.visually-hidden {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  visibility: hidden;
}

/* ------------------------------------------------------------------------------
  BREADCRUMBS
*/
.breadcrumb {
  padding: 0 !important;
  margin: 0 0 2em 0 !important;
  background-color: transparent !important;
}

.breadcrumb span {
  margin-right: .75em;
}

.breadcrumb a,
.breadcrumb span {
  color: var(--text-dark) !important;
  font-family: inter-regular, Arial, sans-serif;
}


/* ------------------------------------------------------------------------------
  CONTENT OBJECT OVERRIDES

  1 - ZMSLinkElement

  */

.ZMSLinkElement {
  display: flex;
  flex-flow: row nowrap;
  align-items: flex-start;
  margin-bottom: .5em;
}

.ZMSLinkElement .title {
  display: inline-block;
  padding-left: .8em;
}

.ZMSLinkElement::before {
  display: inline-block;
  font-family: "Font Awesome 5 Free"; 
  font-weight: 900; 
  /*margin: auto 0;*/
  content: "\f35d";
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
  color: var(--hyperlink);
}

div.infobox_content .ZMSLinkElement.internal .title {    background: #651F71; padding: 10px 50px; border-radius: 0.5em;}
div.infobox_content .ZMSLinkElement .text {display: none;}
div.infobox_content .ZMSLinkElement.internal .title a {font-family: saira-regular, arial, sans-serif; color:#fff; border:none;font-weight:600 !important; font-size:20px; line-height:100%;}
div.infobox_content .ZMSLinkElement.internal::before {content:'';}

div.ZMSFile div.title a:link, div.ZMSFile div.title a:visited, div.ZMSLinkElement div.title a:link, div.ZMSLinkElement div.title a:visited {border-bottom: 1px solid;}

/* --------------------------------------
  2 - ZMSGraphic

    see: https://stackoverflow.com/questions/40062241/set-height-as-a-ratio-of-width-with-only-css
*/

.ZMSGraphic {
  width: 100%;
  margin-top: 0 !important;
  float: none;
  overflow: hidden;
}

.ZMSGraphic div.text {
  padding-top: 0;
  font-style: normal;
  padding-left: 0 !important;
  padding-top: 0 !important;
  margin-top: 1em !important;
}

.ZMSGraphic div.graphic {
  position: relative;
  display: block;
  /*width: calc(100% - 1px) !important;
  width: -webkit-calc(100% - 1x) !important;
  max-width: calc(100% - 1px) !important;
  max-width: -webkit-calc(100% - 1px) !important;
  */
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  max-height: 100%;
  padding: 0;
  margin: 0;
  float: none;
  overflow: hidden;
}

.ZMSGraphic div.graphic::before {
  display: block;
  content: "";
  padding-top: 66.66%; /* i.e. aspect ratio 780px / 520px */
}

.ZMSGraphic div.graphic img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0;
  object-fit: cover;
  z-index: 2;
  padding: 0 !important; /* overrides CO defaults */
  margin: 0 !important; /* overrides CO defaults */
}

.ZMSGraphic p {
  color: rgba(45, 49, 49, 0.6);
  font-size:16px;
  line-height:29px;
  font-weight:300;
}

/* --------------------------------------
  3 - DESYSwiper
*/

.DESYSwiper .slide-image {
  width: 100% !important;
  max-width: 100% !important;
  height: auto;
  max-height: 100%;
  padding: 0;
  margin: 0;
  float: none;
  overflow: hidden;
}

.DESYSwiper .slide-image::before {
  display: block;
  content: "";
  padding-top: 66.66%; /* i.e. aspect ratio 780px / 520px */
}

.DESYSwiper .swiper-button-prev,
.DESYSwiper .swiper-button-next {
  color: #000000;
  color: #ffffff;
}

.DESYSwiper .swiper-scrollbar {
  width: 100%;
  left: 0 !important;
}

/*
.DESYSwiper .slide-image img {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 100% !important;
  //max-width: 780px;
  height: 100% !important;
  //max-height: 520px;
  border: 0;
  object-fit: cover;
  z-index: 2;
  padding: 0 !important; /* overrides CO defaults * /
  margin: 0 !important; /* overrides CO defaults * /
}
*/

.DESYSwiper .slide-caption {
  padding-top: 0;
  font-style: normal;
  padding-left: 0 !important;
  padding-top: 0 !important;
  margin-top: 1em !important;
}
.DESYSwiper .slide-caption p {
  color: var(--heading-h2);
}


/* --------------------------------------
  4 - infobox
*/

.infobox {
  height: auto !important;
}

.infobox.Narrow {
}

.infobox.Blue,
.infobox.Blue * {
  background-color: var(--infobox-blue);
  color: var(--white) !important;
}

.infobox.Blue .ZMSLinkElement::before {  color: var(--white) !important;}

.infobox a:not(.fancybox):hover {
    border-bottom: 1px solid var(--text-dark);
    text-decoration: none;
}

.infobox.Blue a:hover {
    border-bottom: 1px solid var(--white);
    text-decoration: none;
}

.infobox.Grey {background: rgba(45, 49, 49, 0.1);}
.infobox.Grey h2 {color: rgba(101, 31, 113, 1);}
body.home .infobox.Narrow.White h2 {color: rgba(45, 49, 49, 1); text-transform:uppercase; font-size:32px;letter-spacing: -1.6px;}
.infobox.Full.Grey h2.infobox_title {margin: 10px 0 20px 53px;}
.infobox.Full.Grey .infobox_content {padding: 0 20px 20px 0;}
.infobox a {border-bottom: 1px solid;}

/*
.infobox .infobox_content {
 // padding: 0 1.25em 1.875em 1.25em; /* >> 20px bzw. 30px bei 16px-Referenz * /
}
*/


.infobox .infobox_content {
  padding: 0;
}

.infobox.Narrow .infobox_content {
  padding: 0 1.25em 1.875em 1.25em; /* >> 20px bzw. 30px bei 16px-Referenz */
 }

 .infobox.Blue.Wide .infobox_content, .infobox.Grey.Wide .infobox_content {
  padding: 1.875em 1.25em 1.875em 1.25em; /* >> 20px bzw. 30px bei 16px-Referenz */
 }
 
 .infobox.Blue .infobox_content, .infobox.Grey .infobox_content {
  padding-top: 1.25em !important;
}


/* ----
   IMAGE ASPECT RATIOS 
*/

.infobox .image {
  padding-top: calc(100% * 520 / 780 );
}

.infobox.Narrow .image {
  padding-top: calc(100% * 248 / 365 );
}

.infobox .image.Top {
  background-position: top center !important;
}

.infobox .image.Center {
  background-position: center center !important;
}

.infobox_content ul li {
    list-style-type: none !important;
    margin-left: 5% !important;
}

.infobox_content ul li:before {
    content: "\f0c8";
    font-weight: 900;
    font-family: "Font Awesome 5 Free";
    color: rgba(101, 31, 113, 1);
    font-size: 50%;
    margin: 0 2em 0 -3em;
    vertical-align: top;
}

/* ------------------------------------------------------------------------------
   MISC OVERRIDES
*/
.cookie-bar p,
.cookie-bar span {
  color: var(--white);
  font-size: 14px;
  line-height: 18px;
  font-family: Arial, Helvetica, sans-serif;
}



/* ------------------------------------------------------------------------------
   PAGE BACKGROUND
*/

#page-background {
  position: fixed;
  background: url('../img/bg.jpg') no-repeat;
  background-position: top right;
  background-size: cover;
  height: 100vh;  
  width: 100%;
  z-index: 0;
}

/* ------------------------------------------------------------------------------
   HEADER BACKGROUND
*/

#header-background {
  display: none; /* DISABLED - fitting this bg-image was too tricky ... 
                    effective background-color is set in CLASS '.scrolled-up' via JS  */
  position: fixed;
  background: url('../img/bg.jpg') no-repeat;
  background-position: top right;
  height: 160px;
  top: 0; left: 0; right: 0;
  z-index: 3;
  overflow: hidden;

}

/* ------------------------------------------------------------------------------
   CSS GRID SYSTM
*/
#page-core {
  position: relative;
  width: 1300px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto 1fr auto;
  grid-template-areas: 
    'header'
    'main'
    'footer';
}

/* ------------------------------------------------------------------------------
  PAGE HEADER
   sticky & scroll-sesitive
*/
.scrolled-down {
  transform: translateY(-100%); 
  transition: all 0.3s ease-in-out;
}
.scrolled-up {
  transform: translateY(0); 
  transition: all 0.3s ease-in-out;
  background: #080935 !important;
}

header.page-header {
  grid-area: header;
  background: transparent;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  padding: 1em 0 1em 0;
  /* background-attachment: fixed; */
  position: sticky;
  top: 0;
  height: auto;
  width: 100%;
  z-index: 4;
}

header.page-header nav.main-nav {
  z-index: 5;
}

header.page-header nav span {
  color: var(--white);
  font-family: Saira-Regular, Arial, sans-serif;
  font-size: 20px;
  padding: 0;
  line-height: 100%;
  text-transform: uppercase;
  font-weight:600;
}

header.page-header nav span:hover {
  border-bottom: 2px solid var(--white);
  text-decoration: none;
}

header.page-header nav li.active > span,
header.page-header nav ul > li.active > a > span {
  border-bottom: 2px solid var(--white);
}

header.page-header nav ul  {
  position: relative;
  list-style: none;
  padding-left: 0;
}

header.page-header nav ul.language-selector,
header.page-header nav ul.main-menu li {
  margin: 0 0 1em 2em;
}

ul.main-menu a:hover {text-decoration:none;}

header.page-header nav ul.language-selector li span {
  margin: 0 0 0 .5rem;
  font-weight: bold;
}

header.page-header nav ul.language-selector li:first-of-type span {
  margin: 0 0 0 0;
}

header.page-header nav ul.main-menu ul {
  position: absolute;
  padding-top: 1.125rem;
  /* animate visibility and opacity!
     see: https://greywyvern.com/?post=337 
  */
  visibility: hidden;
  opacity: 0;
  transition: visibility 0s linear 0.5s, opacity 0.18s ease-in-out, max-height 0.25s ease-in-out;
}

/* header.page-header nav ul li:hover ul { */
header.page-header nav ul.main-menu li.selected ul {
  visibility: visible;
  opacity: 1;
  transition-delay: 0s;
}

header.page-header nav ul.main-menu ul li {
  margin: 0 0 .25rem 0;
  padding: 1rem;
  width: 100%;
  background: var(--header-background-color);
}

header.page-header nav ul ul li a {
  padding: 0;
  width: 100%;
}

header.page-header .logo-link {
  flex-shrink: 3;
}

header.page-header .logo-link img {
  width: 100%;
  max-width: 300px;
  height: auto;
 
}


/* ----------------------
   RESONSIVE MAIN MENU
    the checkbox hack in action!
    see: https://css-tricks.com/the-checkbox-hack/
*/
.main-menu-container {
  position: static;
  display: flex;
  flex-flow: row nowrap;
  justify-content: flex-end;
  align-items: flex-start;
  opacity: 1;
  padding-top: 16px;
  overflow: visible; /* the default */
}

.main-menu,
.language-selector {
  display: flex;
  position: relative;
  flex-flow: row nowrap;
  justify-content: flex-end;
  align-items: flex-start;
  height: auto;
  margin-bottom: 1rem;
}

/* -------------------------- 
  MENU ICON in pure HTML
*/

label.menu-icon {
  display: none;
  width: 40px; 
  height: 40px;
  position: relative; 
  border-radius: 4px; 
  cursor: pointer;
  margin: 0 !important;
  z-index: 7;
}

.menu-icon-line { 
  display: block; 
  position: absolute; 
  height: 3px; 
  background: #fff;
  border-radius: 2px;
  left: 0;
  right: 0;
  transition: 0.25s ease-in-out; 
  transform-origin: center; 
  padding: 0 !important;
}

.menu-icon-line:nth-child(1) { top: 10px; } 
.menu-icon-line:nth-child(2) { top: 50%; }
.menu-icon-line:nth-child(3) { top: 30px; }

#main-menu-toggle:checked + label.menu-icon .menu-icon-line:nth-child(1){
  transform: translateY(10px) rotate(-45deg);
}

#main-menu-toggle:checked + label.menu-icon .menu-icon-line:nth-child(2){
  opacity:0;
}

#main-menu-toggle:checked + label.menu-icon .menu-icon-line:nth-child(3){
  transform: translateY(-10px) rotate(45deg);
}
    
/* the Checkbox-Hack magic in action ...! */
#main-menu-toggle:checked ~ .main-menu-container {
  visibility: visible;
  opacity: 1;
  max-height: calc(100vh - 110px);
  max-width: 100vw;
  transition-delay: 0s;
}


/* -----------------------------------
   MENU ICON as FontAwesome web font
label.menu-icon {
  display: none;
  position: absolute;
  top: 18px;
  right: 18px;
  //font-size: 24px;
  z-index: 3;
  transition: all 300ms ease-in-out;
}

label.menu-icon::before {
  display: inline-block;
  color: var(--white);
  font-family: "Font Awesome 5 Free"; 
  font-weight: 900; 
  font-size: 3rem;
  margin: auto 0;
  content: "\f0c9";
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  -webkit-font-smoothing: antialiased;
}
*/


/* ------------------------------------------------------------------------------
   MAIN
*/

main,
.main-article,
.article-content {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}

main {
  grid-area: main;
  display: grid;
  grid-template-columns: auto;
  margin-top: 20px;
  margin-bottom: 100px;
  z-index: 2;
}
.home main {margin-top:80px;}

main .main-headline {
  font-family: Saira-Regular, Arial, Helvetica, sans-serif;
  font-size: 32px;
  color: var(--white);
  line-height: 40px;
  text-align: left;
  margin: 0px auto 100px auto;
  padding: 1.75em 2em;
  background-color: rgba(79,71,94,.55);
 font-weight: 600;
 letter-spacing: -1.6px;
}

main .main-article section a:hover {
  color: var(--hyperlink-hover);
  border-bottom: 1px solid var(--text-dark);
  text-decoration: none;
}

/* ------   body-class 'home'  -------------------------*/

body.home main .main-article .article-content {
  display: grid;
  grid-template-columns: 66.153% 33.847%;
  grid-row-gap: 100px;
}

body.home main .main-article .article-content div {
  margin: 0 !important;
}

body.home main .main-article .article-content > div {
  background-color: var(--white);
  padding: 3rem 0; /* i.e. 62px @ 16px reference */
}

body.home main .main-article .article-content > div:nth-child(odd) {
  padding-left: 5%;
  padding-top: 0;
}
body.home main .main-article .article-content > div:nth-child(even) {
  padding-left: 7.5%;
  padding-right: 9.545%;
}

body.home main aside,
body.home main article.main-article header {
  display: none;
}

body.home .main-article section h2 {
  margin-bottom: .875rem; 
}

body.home .infobox.Narrow .infobox_content {
  padding: 0;
 }


/* ------   body-class 'page'  -------------------------*/

body.page main article .article-content {
  display: grid;
  grid-template-columns: auto;
  grid-row-gap: 0;
}

body.page main article {
  background: var(--white);
  padding-left:  6.154%;/* >> 80px @ 16px root font size */
  padding-right:  3.231%; /* >> 42px @ 16px root font size */
  padding-top:  4.769%; /* >> 80px @ 16px root font size */
  padding-bottom:  6.154%; /* >> 80px @ 16px root font size */
}

body.page main article section section {
  /* overflow: hidden is CRUCIAL >> the contained <div>s need to float! 
     see: https://stackoverflow.com/questions/2021283/css-container-doesnt-stretch-to-accommodate-floats 
  */
  overflow: hidden; 
  margin-top: 2.75em;
  margin-bottom: 2.75em;
}

body.page .main-article h1 {
  margin-bottom: 0; 
}

body.page main article section section:not(:last-of-type) > div {
  /* margin-bottom: 1.75em; */
}

body.page main article section section > div.Wide,
body.page main article section section > div {
  float: left;
  width: 66.214%; /* i.e. 100 / 1178px section width * 780px column width */ 
}

body.page main article section section > div.Narrow {
  float: right;
  width: 30.985%;
}

body.page main article section section:after {
  content: "";  /* CLEARFIX */
  display: table;
  clear: both;
}

/* ------------------------------------
  ASIDE: TEASER and TEASER CONTAINER
    using CSS GRID

  i) 3-col layout:
      grid-template-columns: 1fr 1fr 1fr;

  ii) take-what-you-get:
      grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
*/

aside.teaser-wrapper .ZMSTeaserContainer {
  display: grid;
  justify-items: center;
  grid-template-columns: 1fr 1fr 1fr;
  grid-gap: 6.125rem; /* i.e. 98px at 16px root font-size */
  margin-top: 100px;
}

aside.teaser-wrapper .ZMSTeaserContainer > div {
  display: flex;
  flex-direction: column;
  max-width: 365px;
  width: 100%;
  float: none !important;
  background-color: var(--white);
}

aside.teaser-wrapper .ZMSTeaserContainer .infobox .infobox_content {
  padding: 20px 20px 30px 20px;
}

aside.teaser-wrapper .ZMSTeaserContainer .infobox.Narrow .image {
  height: auto !important; 
  padding-top: calc(100% * 248 / 365 );
}


/* ------------------------------------------------------------------------------
   FOOTER
*/
footer {
  grid-area: footer;
  /*margin-top: 100px;*/
  display: flex;
  flex-flow: row nowrap;
  justify-content: space-between;
  align-items: flex-start;
  padding: 3em 4em 4em 4em;
  background: rgba(79,71,94,0.7);
  width: 100%;
  z-index: 2;
  flex-direction: column;
}

footer div:first-child {
  flex-shrink: 0;
}

footer .flags {
  display: flex;
  flex-flow: column nowrap;
  justify-content: space-between;
  align-items: flex-start;
  flex-shrink: 3;
  padding-top: 30px;
}
.flags img {
    width: 30px;
    height: 25px;
}

footer .flagtext {
  margin-right: 1em;
  margin-bottom: 0.85em;
  padding-top: 4px;
  font-size: .75rem;
  line-height: 1rem;
  color: var(--white);
}

footer a,
footer p,
footer span {
  font-size: .85rem;
  vertical-align: text-top;
  line-height: 1.35rem;
  color: var(--white);
  margin: 0;
}

footer a:hover {
  color: var(--white);
}

footer img {
  margin: 0 .5em .25em 0;
  height: 20px;
  width: auto;
}


/* ----------------------------------
    BACK-TO-TOP Progress Indicator
 */

.progress-wrap {
  position: fixed;
  background-color: var(--text-dark);
  right: 50px;
  bottom: 50px;
  height: 46px;
  width: 46px;
  padding: 3px;
  cursor: pointer;
  display: block;
  border-radius: 50px;
  z-index: 5;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  -webkit-transition: all .18s linear;
  transition: all .18s linear;
}

.progress-wrap.active-progress {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.progress-wrap::after {
  position: absolute;
  font-family: 'Font Awesome 5 Free';
  content: '\f062';
  color: #ffffff;
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 5;
  -webkit-transition: all .18s linear;
  transition: all .18s linear; 
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
  opacity: .8;
  }

.progress-wrap:hover::after {
  opacity: 1;
}

.progress-wrap::before {
  position: absolute;
  font-family: 'Font Awesome 5 Free';
  content: '\f062';
  color: red;
  text-align: center;
  line-height: 46px;
  font-size: 24px;
  opacity: 0;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  left: 0;
  top: 0;
  height: 46px;
  width: 46px;
  cursor: pointer;
  display: block;
  z-index: 5;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
  display: inline-block;
  font-style: normal;
  font-variant: normal;
  text-rendering: auto;
  font-weight: 900;
  -webkit-font-smoothing: antialiased;
}
.progress-wrap:hover::before {
  opacity: 1;
}
.progress-wrap svg path { 
  fill: none; 
}
.progress-wrap svg.progress-circle path {
  stroke: #ffffff;
  stroke-width: 4;
  box-sizing: border-box;
  -webkit-transition: all 200ms linear;
  transition: all 200ms linear;
}


/* ------------------------------------------------------
    BOOTSRAP BREAKPOINTS

      Keyword 	Description 	Width
      sm 	      Small 	      >= 567px
      md 	      Medium 	      >= 768px
      lg 	      Large 	      >= 992px
      xl 	      Extra Large 	>=1200px
*/

@media only screen and (max-width: 1340px) {
  html {
    font-size: 16px;
  }

  #page-core {
    width: 1050px;
  }
}

@media only screen and (max-width: 1140px) {
  html {
    font-size: 15px;
  }

  #page-core {
    width: 949px;
  }

  footer {
    flex-flow: column nowrap;
    justify-content: space-between;
    align-items: flex-start;
  }

  footer .flags {
    display: flex;
    margin-left: 0;
    margin-top: 2em;
    padding-left: 0;
  }
}

@media only screen and (max-width: 991px) {
  html {
    font-size: 14px;
  }

  #page-core {
    width: 852px;
  }

  /* --------------------------
    SWITCH TO HAMBURGER MENU  
  */
  main {
    margin-top: 0;
  }

  .progress-wrap {
    right: 1rem;
    bottom: 1rem;
  }

  header.page-header {
    padding: 1em 0;
  }

  .logo-link {
    flex-shrink: 0;
    max-width: 250px;
  }

  label.menu-icon {
    display: block;
    top: 9px;
  }

  .main-menu-container { 
    position: absolute;
    visibility: hidden;
    overflow-x: hidden;
    overflow-y: auto;
    opacity: 0;
    max-height: 0;
    transition: visibility 0s linear 0.5s, max-height 0.2s ease-in-out, max-width 0.2s ease-in-out, opacity 0.35s ease-in-out;
    right: 0;
    top: 100%;
    width: 100%;
    padding-top: 4px;

    /* -----------------------------
     scroll container & flexbox
     see: https://medium.com/@stephenbunch/how-to-make-a-scrollable-container-with-dynamic-height-using-flexbox-5914a26ae336
    */
    flex: 1 1 100%;
    flex-flow: column-reverse nowrap;
    justify-content: flex-end;
    background-color: rgba(0,0,0,.85) !important; 
    min-height: 0;  /* for Firefox */
  }

  /** ----------------
       MAIN MENU
  */
  header.page-header nav ul.main-menu {
    flex-flow: column nowrap;
    justify-content: flex-start;
    flex-grow: 1;
    overflow: auto;
    min-height: 0;     /* for Firefox */
    margin-bottom: 4px;
    width: 100%;
  }

  header.page-header.scrolled-down nav .main-menu-container {
    max-height: 0 !important;
    opacity: 0 !important;
  } 
  
  header.page-header nav ul.main-menu ul {
    position: static;
    overflow: auto;
    max-height: 0;
    opacity: 0;
    margin: 0;
    padding: 0 !important;
  }

  header.page-header nav ul.main-menu li.active ul,
  header.page-header nav ul.main-menu li.selected ul {
    visibility: visible;
    opacity: 1;
    max-height: 100vh;
    transition-delay: 0s;
  }

  header.page-header nav ul.main-menu ul li,
  header.page-header nav ul.main-menu li {
    width: 100%;
    padding: 0;
    margin: 0;
    visibility: visible;
    opacity: 1;
  }

  header.page-header nav span:hover {
    border-bottom: none;
  }

  header.page-header nav ul.main-menu li a {
    display: block;
    padding: 1em 1em 1em 2em;
    margin: 0 0 4px 0;
    background-color: rgba(42, 84, 118, .5) !important;
  }

  header.page-header nav ul.main-menu ul li {
    background: transparent;
  }

  header.page-header nav ul.main-menu li.childpages ul li a {
    padding-left: 3em;
  }

  /*header.page-header nav ul.main-menu li a span {
    display: block;
    max-width: fit-content;
  }*/


  /** --------------
    LANGUAGE SELECTOR
   */

   header.page-header nav ul.language-selector {
    margin: 0 0 4px 0;
    width: 100%;
    padding: 1em;
    align-self: flex-end;
    background-color: rgba(42, 84, 118, .5);
  }

  header.page-header nav ul.language-selector li {
    margin-bottom: 0;
  }

  aside.teaser-wrapper .ZMSTeaserContainer {
    grid-template-columns: 1fr 1fr;
    justify-content: space-between;
    column-gap: auto;
    padding: 0;
  }

  footer p {
    margin-top: 2px;
    line-height: 1.5rem;
  }
}


@media only screen and (max-width: 870px) {
  html {
    font-size: 13px;
  }

  #page-core {
    width: 750px;
  }
}


@media only screen and (max-width: 767px) {
  html {
    /* FLUID TYPOGRAPHY !? 
    //font-size: calc(16px + 6 * ((100vw - 320px) / 680));
    //font-size: calc(12px + (24 - 12) * ((100vw - 400px) / (800 - 400)));
    */
    font-size: 16px;
  }
  
  header.page-header {
    padding: 1em;
  }

  /** --------------
    LANGUAGE SELECTOR
  */
   header.page-header nav ul.language-selector {
    margin: 0 0 4px auto;
  }

  main .main-headline {
    font-size: 1.5rem;
    line-height: 2rem;
    padding: 2em; 
  }

  #page-core {
    width: 100%;
    padding: 0 !important;
  }

  body.home main .main-article .article-content {
    grid-template-columns: 1fr;
    grid-row-gap: 0;
  }
  
  body.home main .main-article .article-content div {
    margin: 0 !important;
  } 
  
  body.home main .main-article .article-content > div {
    background-color: var(--light-grey);
    padding: 2em !important;
  }

  body.home main .main-article .article-content > div:nth-child(even):not(:last-of-type) {
    margin-bottom: 2em !important;
    margin-bottom: 100px !important;
  }

  body.page main article {
    padding: 3.875em 2.625em 5em 2.625em;
  }

  body.page main article section section > div,
  body.page main article section section > div.Wide  {
    float: none !important;
    width: 100%;
  }

  body.page main article section section > div.Narrow {
    float: none !important;
    width: 100%;
  }

  body.page main article .infobox.Narrow:not(.Blue) .infobox_content {
    padding-left: 0;
  }


  footer .flags {
    flex-flow: column wrap;
  }  
}


@media only screen and (max-width: 567px) {
  html {
    font-size: 16px;
  }

  aside.teaser-wrapper .ZMSTeaserContainer {
    grid-template-columns: 1fr;
    grid-gap: 100px;
  }
  aside.teaser-wrapper .ZMSTeaserContainer > div {
    max-width: 100%;
  }
}

@media screen and (min-width: 991px) {
header.page-header .logo-link img {    margin-top: 70px;}
.home main {margin-top: 50px;}
}