/* =============================================================================
   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 {
  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-weight: var(--f-weight-n);
  text-transform: uppercase;
}

.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 {
  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));
}

/* 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;
}

.frame-bg-grey ul.f3-widget-paginator li {
  background: rgb(var(--c-neutral-lightest));
}

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: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 {
  content: '\f053';
  font-family: 'FaLight', sans-serif;
  font-weight: normal;
  font-style: normal;
  text-decoration: inherit;
  -webkit-font-smoothing: antialiased;
  height: auto;
  line-height: normal;
  vertical-align: baseline;
  font-size: var(--f-size);
}

ul.f3-widget-paginator li.next a::after {
  content: '\f054';
  font-family: 'FaLight', sans-serif;
  font-weight: normal;
  font-style: normal;
  text-decoration: inherit;
  -webkit-font-smoothing: antialiased;
  height: auto;
  line-height: normal;
  vertical-align: baseline;
  font-size: var(--f-size);
}

/* =============================================================================
   Menus
   ========================================================================== */

/* Metanav */
.metanav__link {
  color: rgb(var(--c-neutral-dark));
  text-transform: uppercase;
}

@media (hover: hover) {
  .metanav__link:hover {
    color: rgb(var(--c-primary));
  }
}

.metanav__nav {
  padding: 0.6rem 0;
}

/* =============================================================================
   Forms
   ========================================================================== */

input,
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;
}

/* =============================================================================
   Template
   ========================================================================== */

.content > .frame-bg-grey + .footer {
  background: rgb(var(--c-neutral-lightest));
}

.frame.footer {
  position: relative;
  overflow: hidden;
  border-bottom: 2px solid rgb(var(--c-neutral-lighter));
  background: rgb(var(--c-neutral-lighter));
}

.footer > svg {
  position: absolute;
  top: -10px;
  bottom: -10px;
  left: 4%;
  z-index: 0;
  height: 100%;
  max-width: 90%
}

.footer > div {
  position: relative;
  z-index: 1
}

.footer > svg path {
  fill: rgb(var(--c-neutral-lightest))
}

.content > .frame-bg-grey + .footer > svg path {
  fill: rgb(var(--c-neutral-lighter))
}

.footer div.footer__buttons {
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 100%;
  text-align: center;
  grid-column: none
}

.footer__buttons .font__button {
  margin: 0 2px
}

.topbutton {
  cursor: pointer
}

/* =============================================================================
   Media Queries
   ========================================================================== */

@media (min-width: 800px) {
  .content__menu {
    position: absolute;
    z-index: 600;
    overflow: visible;
    left: 2%;
    display: block;
  }

  .content__menu a {
    width: 10px;
    height: 10px;
    background: transparent;
    margin-bottom: 10px;
    cursor: pointer;
    border: 2px solid rgb(var(--c-primary));
    border-radius: 10px;
    -webkit-border-radius: 10px;
    -moz-border-radius: 10px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    line-height: 45px;
    transition: height 0.6s ease;
  }

  .content__menu a.active, .content__menu a:hover {
    background: rgb(var(--c-primary));
    height: 30px;
  }

  .content__menu.fixed {
    position: fixed;
  }

  .content__menuitem a::before {
    content: '';
    top: 50%;
    left: 13px;
    transform: translateY(-50%);
    border-width: 7px 5px 7px 0;
    border-right-color: rgb(var(--c-primary));
    border-top: 8px solid transparent;
    border-bottom: 8px solid transparent;
    position: absolute;
    width: 0;
    height: 0;
    border-style: solid;
    display: none;
  }

  .content__menuitem a::after {
    content: attr(data-tooltip);
    position: absolute;
    top: 50%;
    left: 18px;
    transform: translateY(-50%);
    background: rgb(var(--c-primary));
    padding: 5px 15px;
    -webkit-border-radius: 5px;
    -moz-border-radius: 5px;
    border-radius: 5px;
    white-space: nowrap;
    display: none;
    line-height: 25px;
    height: 35px;
    font-size: var(--f-size-s-1);
    color: rgb(var(--c-neutral-lightest));
  }

  .content__menuitem:hover a::after, .content__menuitem:hover a::before {
    display: block;
  }
}