/* =============================================================================
   General
   ========================================================================== */

@media (hover: hover) {
  a:hover {
    color: rgb(var(--c-primary));
  }
}

u {
  text-underline-offset: 4px;
}

a[rel="noopener"]::after,
a[rel="noreferrer"]::after,
a[rel="noopener noreferrer"]::after,
a[rel="noopener noreferrer nofollow"]::after,
a.external-link-new-window::after,
a.link-external::after {
  font-size: 12px;
  vertical-align: super;
}

hr {
  border-top: 1px solid rgb(var(--c-neutral-light));
}

input,
select,
textarea {
  border: 2px solid rgb(var(--c-neutral-light));
  padding: calc(0.6rem - 1px) 0.6rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

/* =============================================================================
   Tables
   ========================================================================== */

table.ce-table td {
  border: 2px solid rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-neutral-lighter));
  padding: 0.3rem 0.7rem;
}

table.ce-table th,
table.ce-table caption {
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
  font-family: var(--f-family-b);
  border: 2px solid rgb(var(--c-neutral-lightest));
  padding: 0.3rem 0.7rem;
}

/* =============================================================================
   Headlines
   ========================================================================== */

h1 a,
h2 a {
  color: rgb(var(--c-neutral-darker));
}

h3 a,
.-likeh3 a {
  color: rgb(var(--c-neutral-darker));
}

h4 a {
  color: rgb(var(--c-primary));
}

h4.-subheader {
  font-size: var(--f-size-l-1);
}

h4.-subheader a::before {
  content: "\f0c9";
  font-family: "FaRegular", sans-serif;
  margin-right: 0.5rem;
}

@media (hover: hover) {
  h1 a:hover,
  h2 a:hover {
    color: rgb(var(--c-primary));
  }
  h3 a:hover,
  .-likeh3 a:hover {
    color: rgb(var(--c-primary));
  }

  h4 a:hover {
    color: rgb(var(--c-neutral-darker));
  }
}

/* =============================================================================
   Standard contentelements
   ========================================================================== */

/* Uploads */
.uploads__item {
  background-color: rgb(var(--c-neutral-lighter));
}

.content > .frame:nth-child(2n) .uploads__item {
  background-color: rgb(var(--c-neutral-lightest));
}

.uploads__link {
  color: rgb(var(--c-neutral-dark));
}

.uploads__title {
  color: rgb(var(--c-primary));
  font-size: var(--f-size-l-1);
}

.uploads__description {
  font-family: var(--f-family);
}

.uploads__arrowpath {
  stroke: rgb(var(--c-primary));
}

@media (hover: hover) {
  .content > .frame:nth-child(2n) .uploads__item:hover,
  .uploads__item:hover {
    background-color: rgb(var(--c-primary));
  }

  .uploads__item:hover .uploads__link,
  .uploads__item:hover .uploads__title {
    color: rgb(var(--c-neutral-lightest));
  }

  .uploads__item:hover .uploads__arrowpath {
    stroke: rgb(var(--c-neutral-lightest));
  }
}

/* Images */
.-border img,
.-border iframe {
  border: 2px solid rgb(var(--c-neutral-light));
}

.gallery__item a[data-fancybox]::before,
.media__image a::before {
  background-color: rgba(var(--c-primary), 0.6);
}

/* Menus */
.frame-type-menu_pages li a,
.frame-type-menu_sitemap li a {
  color: rgb(var(--c-neutral-dark));
}

.frame-type-menu_sitemap > ul > li > a {
  text-transform: none;
  color: rgb(var(--c-primary));
}

/* Spaces */
.frame-space-before-extra-small {
  margin-top: var(--g-gap-s);
}

/* Partner slider (gkmb_ce) inside a container column: only as wide as the column
   (the default layout assumes the full page width) */
.grid__main .grid__col > .slider.-partner.grid__main {
  position: relative;
  display: block;
  margin-left: 0;
  margin-right: 0;
}

.grid__col > .slider.-partner > :is(.slider__prev, .slider__next) {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
}

.grid__col > .slider.-partner > .slider__prev {
  left: 0;
}

.grid__col > .slider.-partner > .slider__next {
  right: 0;
}

/* =============================================================================
   Frame layouts
   ========================================================================== */

/* 7-part image gallery */
.frame-layout-20 {
  padding: 0 !important;
  background-color: rgb(var(--c-neutral-lighter));
}

.frame-layout-30 + .frame-layout-20 {
  padding-top: 50px !important;
}

.content__bottom > .frame.frame-layout-20:nth-child(odd),
.content > .frame.frame-layout-20:nth-child(2n) {
  background-color: rgb(var(--c-neutral-lightest));
}

.frame-layout-20 .gallery {
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 0;
  grid-auto-flow: dense;
}

.frame-layout-20 .gallery__item:nth-child(3) {
  grid-column: span 2;
}

.frame-layout-20 .gallery__item:nth-child(4) {
  grid-column: 2;
  grid-row: span 2;
}

.frame-layout-20 .gallery__item:nth-child(5) {
  grid-column: span 2;
  grid-row: 5;
}

.frame-layout-20 .gallery__item:nth-child(6),
.frame-layout-20 .gallery__item:nth-child(7) {
  grid-column: 1;
}

.frame-layout-20 > div.image {
  grid-column: span 5;
}

/* v12: images are rendered by b13/picture without the class "gallery__image" */
.frame-layout-20 .gallery__item picture {
  display: block;
  width: 100%;
  height: 100%;
}

.frame-layout-20 .gallery__item img {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.frame-layout-20 .gallery__item {
  width: 100%;
  height: 100%;
}

.frame-layout-20 .gallery__item a {
  display: block;
  width: 100%;
  height: 100%;
}

.frame-layout-20 .gallery__item {
  position: relative;
}

.frame-layout-20 figcaption {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  color: rgb(var(--c-neutral-lightest));
  font-family: var(--f-family-b);
  font-size: var(--f-size);
  font-style: normal;
}

.frame-layout-20 .caption__title {
  display: block;
  color: rgb(var(--c-neutral-lightest));
}

.frame-layout-20 .caption__link::after {
  content: "\f061";
  font-family: "FaSolid", sans-serif;
  margin-left: 0.3rem;
  font-size: var(--f-size-s-1);
}

/* no padding left column */
.frame-layout-30 {
  padding: var(--g-gap-s) 0 !important;
}

.frame-layout-30 > div {
  grid-column: span 5;
}

.frame-layout-30 > div > div:nth-child(2) {
  padding: 3rem 2rem;
}

.frame-layout-30 .grid__col > div {
  height: 100%;
}

/* Colored box */

@media (hover: hover) {
  .frame-layout-40 a:hover {
    color: rgb(var(--c-neutral-lightest));
  }
}

/* Background in gridelement */
:is(.frame-background, .frame-bg-image) {
  overflow: hidden;
  background: rgba(var(--c-primary), 0.8) !important;
  position: relative;
  color: rgb(var(--c-neutral-lightest));
}

:is(.frame-background, .frame-bg-image) h1,
:is(.frame-background, .frame-bg-image) h2,
:is(.frame-background, .frame-bg-image) h3,
:is(.frame-background, .frame-bg-image) h4,
:is(.frame-background, .frame-bg-image) a {
  color: rgb(var(--c-neutral-lightest));
}

:is(.frame-background, .frame-bg-image) .headline.-large::after {
  background: rgb(var(--c-neutral-lightest));
}

/* v12: background image of a frame is rendered as .bg-image (gkmb_base) */
.frame__backgroundimage,
.bg-image {
  width: 100%;
  height: 100%;
  z-index: -1;
  position: absolute;
  top: 0;
  left: 0;
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  -webkit-background-size: cover;
  background-attachment: fixed;
  grid-column: span 5 !important;
}

.frame__backgroundimage.mobileimagefullwidth {
  background-attachment: scroll !important;
}

/* =============================================================================
   RTE
   ========================================================================== */

@media (hover: hover) {
  .font__button:hover a {
    color: rgb(var(--c-neutral-lightest));
  }
  .font__button:hover,
  input[type="submit"]:hover {
    background: rgb(var(--c-neutral-darker));
    color: rgb(var(--c-neutral-lightest));
  }
}

div.-submitted,
button.-submitted {
  position: relative;
  overflow: hidden;
  display: inline-block;
}

div.-submitted::before,
button.-submitted::before {
  content: url(../Images/spinner.svg);
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1.5rem;
  height: 1.5rem;
  margin-top: -0.75rem;
  margin-left: -0.75rem;
  -webkit-animation: spin 2s linear infinite;
  -moz-animation: spin 2s linear infinite;
  animation: spin 2s linear infinite;
  z-index: 1;
}

div.-submitted::after,
button.-submitted::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  z-index: 0;
  background-color: rgb(var(--c-primary));
  top: 0;
  left: 0;
}

@-moz-keyframes spin {
  100% {
    -moz-transform: rotate(360deg);
  }
}
@-webkit-keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
  }
}
@keyframes spin {
  100% {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

.font__primarycolor {
  color: rgb(var(--c-primary));
}

.font__h3 {
  font-size: var(--f-size-l-3);
  font-family: var(--f-family-b);
  color: rgb(var(--c-neutral-darker));
  line-height: 130%;
  margin-bottom: 0.5rem;
}

.font__h4 {
  font-size: var(--f-size-l-2);
  font-family: var(--f-family-b);
  color: rgb(var(--c-neutral-darker));
  line-height: 130%;
  margin-bottom: 0.5rem;
}

/* =============================================================================
   Template
   ========================================================================== */

/* Header */

@supports (position: sticky) {
}

/* Footer */
.footer,
.footer__left > .frame,
.footer__right > .frame {
  background-color: rgb(var(--c-neutral-darker));
}

.footer,
.footer h1,
.footer h2,
.footer h3,
.footer h4,
.footer a {
  color: rgb(var(--c-neutral-lightest));
}

@media (hover: hover) {
  .footer a:hover {
    color: rgb(var(--c-neutral-lightest));
  }
}

.footer :is(.frame-background, .frame-bg-image) {
  background: transparent !important;
  z-index: 0;
}

.footer :is(.frame-background, .frame-bg-image) .grid__col {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  z-index: 10;
}

.footer :is(.frame-background, .frame-bg-image) .frame {
  background-color: rgb(var(--c-primary));
  padding: 2rem;
  max-width: 280px;
}

.footer .font__button,
.footer input[type="submit"] {
  background-color: transparent !important;
  border: 2px solid rgb(var(--c-neutral-lightest)) !important;
}

/* =============================================================================
   Menus
   ========================================================================== */

/* Modules */

.calendar::after {
  content: "\f073";
}

.search::after {
  content: "\f002";
}

/* Mainmenu */

.mainmenu.-active .mainmenu__background {
  opacity: 0.7;
}

.mainmenu.-active .mainmenu__sidebar {
  left: 0;
}

@media (hover: hover) {
  .mainmenu__link:hover {
    text-decoration: underline;
    color: rgb(var(--c-neutral-lightest));
    text-underline-offset: 4px;
  }
}

.mainmenu.-active .mainmenu__list.-level1 > .mainmenu__item {
  left: 0;
}

.mainmenu__list.-level3 .mainmenu__link {
  padding: 0rem 1.5rem 0.4rem 4rem;
}

.mainmenu.-active .mainmenu__arrow {
  opacity: 1;
}

/* Leftmenu */
.leftmenu__link {
  color: rgb(var(--c-neutral-dark));
}

.leftmenu__link.-active {
  color: rgb(var(--c-primary));
}

.leftmenu__list.-level1 > .leftmenu__item {
  border-bottom: 1px solid rgb(var(--c-neutral-light));
}

/* Metanav */
.metanav__link {
  color: rgb(var(--c-primary));
}

.metanav {
  padding: 0.6rem 0;
}

.metanav__separator::after {
  content: "•";
  color: rgb(var(--c-primary));
}

.socialmedia,
.socialmedia a {
  color: rgb(var(--c-primary));
}

@media (hover: hover) {
  .leftmenu__link:hover {
    color: rgb(var(--c-primary));
  }

  .breadcrumb__link:hover {
    color: rgb(var(--c-primary));
  }
  .metanav__link:hover {
    color: rgb(var(--c-neutral-darker));
  }
}

/* =============================================================================
   Media Queries
   ========================================================================== */
@media (min-width: 400px) {
/* Frame Layouts */
  .frame-layout-20 figcaption {
    bottom: 2rem;
    left: 2rem;
  }

  /* Layouts */
  .frame-layout-30 + .frame-layout-20 {
    padding-top: calc(
      50px + (100 - 50) * ((100vw - 400px) / (1600 - 400))
    ) !important;
  }

}

@media (min-width: 640px) {
/* 7-part image gallery */
  .frame-layout-20 .gallery {
    grid-template-columns: repeat(4, 1fr);
  }

  .frame-layout-20 .gallery__item:nth-child(4) {
    grid-column: 1/3;
    grid-row: span 2;
  }

  .frame-layout-20 .gallery__item:nth-child(5) {
    grid-column: 3/5;
    grid-row: 3;
  }

  .frame-layout-20 .gallery__item:nth-child(6) {
    grid-column: 3;
  }

  .frame-layout-20 .gallery__item:nth-child(7) {
    grid-column: 4;
  }

  /* Metanav */
  .socialmedia,
  .metanav__nav {
    grid-column: span 6;
  }

  .socialmedia {
    text-align: right;
  }

}

@media (min-width: 800px) {
  /* Footer */
  .footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .footer :is(.frame-background, .frame-bg-image) {
    height: 100%;
  }
}

@media (min-width: 1024px) {
  /* no padding left column */
  .frame-layout-30 > div {
    grid-column: 1/4;
  }

  .frame-layout-30 > div > div:nth-child(2) {
    padding: 4rem 0 4rem 2rem;
    display: flex;
    align-items: center;
  }

}

@media (min-width: 1280px) {
  /* Header */

  .top.-scroll .grid__top {
    display: grid;
    grid-template-columns: 60px 4fr 1fr;
  }

  /* Contentmenu */

  .contentmenu a.active {
    background: rgb(var(--c-primary));
  }

  @media (hover: hover) {
    .contentmenu a:hover {
      background: rgb(var(--c-primary));
    }
  }

  .contentmenu a.active {
    height: 40px;
  }

  .contentmenu.fixed {
    position: fixed;
  }

  @media (hover: hover) {
    .tooltip:hover:after,
    .tooltip:hover:before {
      display: block;
    }
  }

  /* Menus */

  @media (hover: hover) {
    .mainmenu__link:hover {
      text-decoration: none;
    }

    .mainmenu__link:hover {
      color: rgb(var(--c-primary));
    }
    .mainmenu__item:hover .mainmenu__list.-level2 {
      display: block !important;
    }
  }

  .mainmenu__item:last-child .mainmenu__list.-level2 {
    left: auto;
    right: 0;
  }

  .mainmenu__list.-level2 > .mainmenu__item > .mainmenu__link.-active {
    color: rgb(var(--c-neutral-lightest));
    background-color: rgb(var(--c-primary));
  }

  .mainmenu__list.-level1
    > .mainmenu__item:last-child
    > .mainmenu__list.-level2,
  .mainmenu__list.-level1
    > .mainmenu__item:nth-last-child(2)
    > .mainmenu__list.-level2 {
    right: 0;
    left: inherit;
  }

  /* 7-part image gallery */
  .frame-layout-20 .gallery {
    grid-template-columns: 1fr 1fr 0.5fr 1fr 1fr 1.5fr;
  }

  .frame-layout-20 .gallery__item:nth-child(3) {
    grid-column: 3/6;
  }

  .frame-layout-20 .gallery__item:nth-child(4) {
    grid-column: 6;
  }

  .frame-layout-20 .gallery__item:nth-child(5) {
    grid-column: 1/4;
    grid-row: 2;
  }

  .frame-layout-20 .gallery__item:nth-child(6) {
    grid-column: 4;
  }

  .frame-layout-20 .gallery__item:nth-child(7) {
    grid-column: 5;
  }
}

@media (min-width: 1580px) {
  /* General */
  html {
    font-size: 18px;
  }

  .content > .frame,
  .content__top,
  .content__bottom > .frame,
  .footer__left > .frame,
  .footer__right > .frame {
    padding-top: 100px;
    padding-bottom: 100px;
  }

  /* Layouts */
  .frame-layout-30 + .frame-layout-20 {
    padding-top: 100px !important;
  }

  /* Footer */
  .footer {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .footer__left .grid__main {
    grid-template-columns: calc(50vw - 725px) 1fr 3rem;
  }

  .footer__right .grid__main {
    grid-template-columns: 3rem 1fr calc(50vw - 725px);
  }

  .footer__left > .grid__main > div,
  .footer__right > .grid__main > div {
    grid-column: 2;
  }

  /* Header */
  .header__popup {
    bottom: 3rem;
    right: calc(50vw - 725px);
  }
}

/* External link icon in buttons */
a.font__button[rel]::after,
a[rel] > span.font__button::after {
  position: relative;
  top: -0.4em;
  line-height: 1;
  vertical-align: baseline;
}
