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

.iframe-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 30px;
  height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.iframe-container iframe,
.iframe-container object,
.iframe-container embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.text-center {
  text-align: center;
}

.fontsmall {
  font-size: var(--f-size-s-1);
}

.image-caption {
  margin-top: 0.2em;
  font-family: var(--f-family-i);
  font-size: var(--f-size-s-1);
}

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

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

.content .frame-bg-grey table.ce-table td,
.content > .frame:nth-child(2n) table.ce-table td {
  border: 2px solid rgb(var(--c-neutral-lighter));
  background: rgb(var(--c-neutral-lightest));
}

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

.content .frame-bg-grey table.ce-table th,
.content .frame-bg-grey table.ce-table caption {
  border: 2px solid rgb(var(--c-neutral-lighter));
}

.ios-scrollbar {
  padding-bottom: 20px;
  position: relative;
}

.ios-scrollbar::after {
  content: '\f178';
  font-family: 'FaLight', sans-serif;
  font-size: 15px;
  line-height: 100%;
  position: absolute;
  right: 0;
  bottom: 0;
}

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

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

.content .frame-bg-grey .uploads__item,
.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__arrowpath {
  stroke: rgb(var(--c-primary));
}

@media (hover: hover) {
  .content .frame-bg-grey .uploads__item:hover,
  .uploads__item:hover {
    background-color: rgb(var(--c-primary));
  }

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

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

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

/* Reference frame */
.frame-reference {
  padding: 2rem;
  border-radius: var(--b-radius);
  background: rgb(var(--c-neutral-darker));
  color: rgb(var(--c-neutral-lightest));
}

.frame-reference .gallery__item {
  overflow: hidden;
  border-radius: 50%;
  border: 2px solid rgb(var(--c-neutral-lightest));
}

/* Paginator */
ul.f3-widget-paginator {
  padding: 0;
  display: flex;
  flex-wrap: wrap;
}

ul.f3-widget-paginator li {
  list-style-type: none;
  width: 40px;
  height: 40px;
  margin: 0 5px 5px 0;
  background: rgb(var(--c-neutral-lighter));
  display: flex;
  justify-content: center;
  align-items: center;
}

ul.f3-widget-paginator a {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  width: 100%;
}

ul.f3-widget-paginator li.current {
  background: rgb(var(--c-primary));
  color: rgb(var(--c-neutral-lightest));
}

ul.f3-widget-paginator li.current a {
  color: rgb(var(--c-neutral-lightest));
}

@media (hover: hover) {
  ul.f3-widget-paginator li:not(.-ellipsis):hover {
    background: rgb(var(--c-primary));
    color: rgb(var(--c-neutral-lightest));
  }

  ul.f3-widget-paginator li:hover a {
    color: rgb(var(--c-neutral-lightest));
  }
}

ul.f3-widget-paginator li.previous a::after,
ul.f3-widget-paginator li.next a::after {
  font-family: 'FaLight', sans-serif;
  font-weight: normal;
  font-style: normal;
  font-size: var(--f-size);
  line-height: normal;
}

ul.f3-widget-paginator li.previous a::after {
  content: '\f053';
}

ul.f3-widget-paginator li.next a::after {
  content: '\f054';
}

/* =============================================================================
   Footer
   ========================================================================== */

.footer {
  position: relative;
  padding-top: var(--p);
  padding-bottom: var(--p);
  background: rgb(var(--c-neutral-darker));
  color: rgb(var(--c-neutral-lightest));
}

.footer::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 45%;
  background: url("../Images/footer_curve.svg") no-repeat center left;
  background-size: cover;
}

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

.footer a {
  text-transform: uppercase;
}

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

.footer__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-flow: column;
}

.footer__content {
  margin-bottom: 3em;
}

.footer__aside {
  display: flex;
  flex-flow: column;
  justify-content: flex-end;
  align-items: flex-start;
}

.footer__aside .metanav {
  align-self: stretch;
}

.footer__aside a {
  font-family: var(--f-family);
  text-transform: none;
}

.footer__service {
  display: block;
  flex: 1;
}

.footer .footer__aside a.footer__service::after {
  display: none;
}

.footer__servicetext {
  display: block;
  margin-bottom: 10px;
}

.footer__logo {
  display: block;
  width: 183px;
  height: 75px;
}

/* To top */
.footer__toplink {
  position: absolute;
  top: -30px;
  right: 0;
  z-index: 2;
  width: 60px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  background: rgb(var(--c-neutral-darker));
  transition: background 0.3s ease;
}

.footer__toplink::before {
  content: "\f30c";
  font-family: "FaSolid", sans-serif;
  font-size: 30px;
  color: rgb(var(--c-neutral-lightest));
}

@media (hover: hover) {
  .footer .footer__toplink:hover {
    background: rgb(var(--c-primary));
    text-decoration: none;
  }
}

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

/* Metanav */
.metanav__nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.6rem 0 0;
}

.metanav .metanav__link {
  margin: 0 10px;
  color: rgb(var(--c-neutral-lightest));
}

.metanav__separator::before {
  content: "\2219";
}

/* =============================================================================
   Forms
   ========================================================================== */

input:not([type="submit"]),
select,
textarea {
  border: 1px solid rgb(var(--c-neutral-light));
  padding: calc(0.6rem - 1px) 0.6rem;
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}

/* =============================================================================
   Media Queries
   ========================================================================== */

@media (min-width: 401px) {
  /* Footer */
  .footer__toplink {
    top: -40px;
    width: 80px;
    height: 80px;
  }

  .footer__toplink::before {
    font-size: 40px;
  }
}

@media (min-width: 641px) {
  /* Footer */
  .footer__inner {
    flex-flow: row;
    justify-content: space-between;
  }

  .footer__content {
    width: 50%;
    margin-bottom: 0;
  }
}

@media (min-width: 1581px) {
  /* Footer */
  .footer__toplink {
    top: -55px;
    width: 110px;
    height: 110px;
  }

  .footer__toplink::before {
    font-size: 50px;
  }
}

/* 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;
}
