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

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

/* Plain tables from the RTE (class added by the parser) */
.contenttable {
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.contenttable caption,
.contenttable th {
  padding: 0.3em 0.5em;
  font-size: 120%;
  font-weight: var(--f-weight-sb);
  text-transform: uppercase;
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
  border: 2px solid rgb(var(--c-neutral-lightest));
}

.contenttable caption {
  text-align: center;
  border-bottom: none;
}

.contenttable th {
  text-align: left;
  vertical-align: top;
}

.contenttable td {
  padding: 0.3em 0.5em;
  background: rgb(var(--c-neutral-lighter));
  border: 2px solid rgb(var(--c-neutral-lightest));
}

/* Price tables from the RTE */
.specialtable {
  width: 100%;
  font-size: 100%;
  border: none;
  border-collapse: collapse;
  table-layout: fixed;
}

.specialtable td,
.specialtable th {
  padding: 0.3em 0.5em;
  vertical-align: middle;
  background: rgb(var(--c-neutral-lighter));
  border: 2px solid rgb(var(--c-neutral-lightest));
}

.specialtable th {
  border-top: none;
}

.specialtable tr:last-child td {
  border-bottom: none;
}

.specialtable td.emptywhitecell {
  background: rgb(var(--c-neutral-lighter));
}

.specialtable .tableheadred,
.specialtable .tableheaddarkgrey,
.specialtable .tableheadmiddlegrey,
.specialtable .tableheadbestprice {
  padding: 0.5em 0.8em;
  font-weight: var(--f-weight-sb);
  text-transform: uppercase;
  color: rgb(var(--c-neutral-lightest));
}

.specialtable .tableheadred {
  font-size: 120%;
  background: rgb(var(--c-primary));
}

.specialtable .tableheaddarkgrey {
  background: rgb(var(--c-neutral-medium));
}

.specialtable .tableheadmiddlegrey,
.specialtable .tableheadbestprice {
  background: rgb(var(--c-neutral));
}

.specialtable .tableheadbestprice {
  position: relative;
}

.specialtable .tableheadbestprice::after {
  content: '';
  position: absolute;
  top: -15px;
  left: -15px;
  width: 45px;
  height: 32px;
  background: url('../Images/Icons/bestprice.svg') no-repeat 0 0 / 45px 32px;
  transform: rotate(-8deg);
}

.fontsmall {
  font-size: 80%;
}

/* Tables with image strip on the left (frame_class custom-20/custom-21/indent-right) */
.frame-custom-20,
.frame-custom-21,
.frame-indent-right {
  position: relative;
}

.frame-custom-20::before,
.frame-custom-21::before,
.frame-indent-right::before {
  content: '';
  display: none;
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 15%;
  background-position: left center;
  background-repeat: no-repeat;
  background-size: cover;
}

.frame-custom-20::before {
  background-image: url(/fileadmin/content/Bewegen/Bilder/Grafiken/baum_gruen.png);
}

.frame-custom-21::before {
  background-image: url(/fileadmin/content/Bewegen/Bilder/Grafiken/fahne.png);
}

.frame-indent-right::before {
  background-image: url(/fileadmin/content/Bewegen/Bilder/Grafiken/teich.png);
}

.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
   ========================================================================== */

/* Gallery */
.content .gallery__item:last-child {
  margin-bottom: 1.5em;
}

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

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);
}

/* Tabs: align navigation with the inner grid */
.content > .frame-type-tabs > .tabs__nav {
  margin-right: 3%;
  margin-left: 3%;
}

@media (min-width: 1121px) {
  .content > .frame-type-tabs > .tabs__nav {
    margin-right: calc((100% - 1040px) / 2);
    margin-left: calc((100% - 1040px) / 2);
  }
}

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

/* Metanav */
.metanav {
  padding: 5px 0;
  text-align: right;
  background: rgb(var(--c-primary-dark));
}

.metanav__inner {
  width: 94%;
  margin: 0 auto;
}

.metanav__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  padding: 0;
}

.metanav__separator {
  display: none;
}

.metanav__link {
  margin-left: 20px;
  font-weight: var(--f-weight-n);
  color: rgb(var(--c-neutral-lightest));
}

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

/* Back to top */
.totop {
  display: none;
  position: fixed;
  right: 20px;
  bottom: 50px;
  width: 50px;
  height: 50px;
  cursor: pointer;
  z-index: 5000;
  background: url('../Images/Icons/top.svg') no-repeat center / contain;
}

.totop.-visible {
  display: block;
}

/* =============================================================================
   Content popup
   ========================================================================== */

.contentpopup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: var(--z-popup);
  overflow-y: auto;
  background: rgba(var(--c-neutral-darkest), 0.5);
}

.contentpopup.-visible {
  display: block;
}

.contentpopup__inner {
  position: absolute;
  top: 75px;
  left: 50%;
  width: 92%;
  max-width: 950px;
  margin-bottom: 75px;
  padding: 48px;
  background: rgb(var(--c-neutral-lightest));
  box-shadow: 0 0 20px 8px rgba(var(--c-neutral-darkest), 0.2);
  transform: translateX(-50%);
}

.contentpopup__close {
  position: absolute;
  top: 0;
  right: 0;
  padding: 0.5rem 1em;
  font-weight: var(--f-weight-b);
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
  cursor: pointer;
}

.contentpopup__content > .grid__main {
  display: block;
}

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

.footer {
  overflow: hidden;
}

.footer__top {
  display: none;
  position: relative;
  height: 40px;
  background: rgb(var(--c-neutral-lighter));
}

.footer__sitename {
  position: absolute;
  top: 0;
  left: 0;
  display: inline-block;
  height: 40px;
  padding: 0 15px;
  font-size: 133%;
  font-weight: var(--f-weight-n);
  line-height: 40px;
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary-dark));
  transition: all 0.3s ease 0s;
}

.footer__portalmenu {
  display: none;
  width: 94%;
  margin: 0 auto;
  text-align: right;
}

.footer__portallink {
  display: inline-block;
  margin-left: 20px;
  font-size: 133%;
  font-weight: var(--f-weight-n);
  line-height: 40px;
  color: rgb(var(--c-neutral-darkest));
}

.footer .footer__portallink[rel]::after {
  content: none;
}

.footer__bottom {
  position: relative;
  border-top: 2px solid rgb(var(--c-neutral-lightest));
}

.footer__bottom > .frame {
  display: block;
}

.footer-image,
.footer-address-right {
  display: none;
}

.footer-address-left {
  position: relative;
  padding: 20px 75px 0 0;
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary-dark));
}

.footer-address-address {
  padding: 0 20px 20px;
}

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

.footer-address-email a {
  display: block;
  padding: 7px 20px;
  text-transform: none;
  color: rgb(var(--c-neutral-lightest));
  background: rgb(var(--c-primary));
}

.footer-address-right {
  position: absolute;
  top: -20px;
  right: 0;
  width: 75px;
  height: 75px;
  line-height: 75px;
  text-align: center;
  background: rgb(var(--c-primary));
  transition: all 0.3s ease 0s;
}

.footer-address-right .iconfont {
  font-size: 0;
  line-height: 75px;
  color: rgb(var(--c-neutral-lightest));
}

.footer-address-right .iconfont::before {
  content: '\f3c5';
  font-size: 40px;
}

.footer-contactwrap {
  padding: 2em 3%;
}

@media (hover: hover) {
  .footer__sitename:hover {
    color: rgb(var(--c-neutral-lightest));
    background: rgb(var(--c-primary));
  }

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

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

/* =============================================================================
   Media Queries
   ========================================================================== */
/* =============================================================================
   Portal bar
   ========================================================================== */

.portalbar__menu .portalmenu .iconfont.-feiern::before {
  content: '';
  position: absolute;
  inset: 8px;
  background-color: currentColor;
  -webkit-mask: url('../Images/Icons/feiern.svg') no-repeat center / contain;
  mask: url('../Images/Icons/feiern.svg') no-repeat center / contain;
}

.portalmenu-icon-physio::before {
  content: '';
  position: absolute;
  inset: 8px;
  background-color: rgb(var(--c-primary-dark));
  -webkit-mask: url('../Images/Icons/physio.svg') no-repeat center / contain;
  mask: url('../Images/Icons/physio.svg') no-repeat center / contain;
}

/* =============================================================================
   Course information popup
   ========================================================================== */

.platzinfo__close {
  background: url('../Images/Icons/close-circle.svg') no-repeat center / contain;
}

.platzinfo__tab.-platz {
  background: url('../Images/Icons/flag-red.svg') no-repeat center / contain;
}

.platzinfo__tab.-platz.-inactive {
  background-image: url('../Images/Icons/flag-dark.svg');
}

.platzinfo__tab.-zeiten {
  background: url('../Images/Icons/clock-red.svg') no-repeat center / contain;
}

.platzinfo__tab.-zeiten.-inactive {
  background-image: url('../Images/Icons/clock-dark.svg');
}

.platzinfo__toggle {
  background: url('../Images/Icons/info.svg') no-repeat center / contain;
}

.platzinfo__toggle.-close {
  background-image: url('../Images/Icons/close-red.svg');
}

/* =============================================================================
   Backlink
   ========================================================================== */

.backlink__icon {
  background: url('../Images/Icons/back.svg') no-repeat center / contain;
}

@media (min-width: 701px) {
  /* Footer */
  .footer__top,
  .footer-image,
  .footer-address-right {
    display: block;
  }

  .footer-bottom-wrap {
    position: relative;
    display: flex;
  }

  .footer-image {
    width: 50%;
    background-position: center;
    background-size: cover;
  }

  .footer-addresswrap {
    position: absolute;
    top: 20px;
    right: 50%;
    z-index: 200;
    margin-right: -75px;
  }

  .footer-contactwrap {
    width: 50%;
    padding: 3.5em 3% 2em 115px;
  }
}

@media (min-width: 801px) {
  /* Footer */
  .footer__portalmenu {
    display: block;
  }
}

@media (min-width: 1081px) {
  /* Tables with image strip on the left */
  .frame-custom-20::before,
  .frame-custom-21::before,
  .frame-indent-right::before {
    display: block;
  }

  .frame-custom-20 table,
  .frame-custom-21 table,
  .frame-indent-right table {
    margin-left: 15%;
    width: 85%;
  }

  .specialtable td.emptywhitecell {
    background: rgb(var(--c-neutral-lightest));
  }
}

@media (min-width: 1121px) {
  /* Footer */
  .footer__portalmenu,
  .metanav__inner {
    width: 1040px;
  }

  .footer-contactwrap {
    padding-right: calc((100% - 1040px) / 2);
  }
}

@media (min-width: 1181px) {
  /* Back to top */
  .totop {
    right: calc((100% - 1040px) / 2 - 60px);
  }
}
