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

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

.grid__col table.ce-table td {
  min-width: 0;
}

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

.page table.ce-table caption,
.page table.ce-table th {
  text-align: left;
  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;
}

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

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

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

.metanav__nav {
  padding: 0.6rem 0;
}

/* =============================================================================
   Container
   ========================================================================== */

/* Tabs: align navigation with the inner grid (frame itself has no grid) */
.content > .frame-type-tabs > .tabs__nav {
  margin-right: 4%;
  margin-left: 4%;
}

/* =============================================================================
   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
   ========================================================================== */
@media (min-width: 1580px) {
  .content > .frame-type-tabs > .tabs__nav {
    margin-right: calc((100% - 1440px) / 2);
    margin-left: calc((100% - 1440px) / 2);
  }
}

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

.footer {
  --footer-bg: var(--c-neutral-lightest);

  position: relative;
}

.page:has(.content > :is(.frame, .serviceslider):nth-last-child(1 of .frame, .serviceslider):nth-child(2n+1)) .footer,
.page.-withmenu .footer {
  --footer-bg: var(--c-neutral-lighter);

  background: rgb(var(--footer-bg));
}

.page:has(.content > :is(.frame, .serviceslider):nth-last-child(1 of .frame, .serviceslider):nth-child(2n+1):not(.frame-bgnews, .frame-type-dce_dceuid5, .frame-type-gkmb_gallery)) .footer::before,
.page.-withmenu .footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  z-index: 100;
  width: 100%;
  height: calc(110vw * 25 / 1840);
  pointer-events: none;
  background: url("../Images/Curves/weiss_unten_invertiert.svg") no-repeat center top / 110% auto;
}

.page:has(.content > :is(.frame, .serviceslider):nth-last-child(1 of .frame, .serviceslider):nth-child(2n):not(.frame-bgnews, .frame-type-dce_dceuid5, .frame-type-gkmb_gallery)) .footer::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  z-index: 100;
  width: 100%;
  height: calc(110vw * 25 / 1840);
  pointer-events: none;
  background: url("../Images/Curves/grau_unten.svg") no-repeat center top / 110% auto;
}

/* Area logos */
.footer-logos {
  margin-bottom: 1em;
  text-align: center;
}

.footer-logos a {
  display: inline-block;
  width: 60px;
  height: 60px;
  margin: 0 10px;
  font-size: 0;
  background: no-repeat center / contain;
}

.footer-logos a.schule {
  background-image: url("../Images/logo_golfschule.svg");
}

.footer-logos a.golf {
  background-image: url("../Images/logo_golf.svg");
}

.footer-logos a.gastro {
  background-image: url("../Images/logo_gastro.svg");
}

/* Newsletter subscription */
.newsletterabo-container {
  position: relative;
  max-width: 800px;
  margin: 2em auto 0;
}

.newsletterabo-headline {
  position: absolute;
  top: -13px;
  left: 20px;
  z-index: 1;
  padding: 0 10px;
  line-height: 1.7;
  color: rgb(var(--c-primary));
  background: rgb(var(--footer-bg, var(--c-neutral-lightest)));
}

.newsletterabo-container :is(input.newsletterabo_mail, input.newsletterabo_submit) {
  -webkit-appearance: none;
  appearance: none;
  box-sizing: border-box;
}

.newsletterabo-container input.newsletterabo_mail {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  padding: 0 1.8em;
  line-height: 48px;
  background: transparent;
  border: 1px solid rgb(var(--c-primary));
  border-radius: 0;
}

.newsletterabo-container input.newsletterabo_mail::placeholder {
  font-size: 86%;
}

.newsletterabo-container input.newsletterabo_submit {
  position: absolute;
  top: 0;
  right: 0;
  width: 50px;
  height: 48px;
  padding: 0;
  font-size: 0;
  border: none;
  border-radius: 0;
  background: rgb(var(--c-primary)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 16'%3E%3Cpath d='M0 8h28M21 1l7 7-7 7' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / 30px 16px;
}

.newsletterabo-container :is(input.newsletterabo_mail, input.newsletterabo_submit):focus {
  outline: 0;
  box-shadow: none;
}

@media (hover: hover) {
  .newsletterabo-container input.newsletterabo_submit:hover {
    background-color: rgb(var(--c-primary-dark));
  }
}

/* Metanav */
.metanav {
  padding: 0.3em 0;
  background: rgb(var(--c-neutral-lightest));
}

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

.metanav__item {
  display: inline-block;
}

.metanav__separator {
  display: none;
}

.metanav__link {
  margin: 0 10px;
  text-transform: uppercase;
  color: rgb(var(--c-neutral-dark));
}

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

/* =============================================================================
   Contentmenu
   ========================================================================== */

.contentmenu {
  display: none;
}

@media (min-width: 901px) {
  .contentmenu {
    position: absolute;
    top: 130px;
    left: 60px;
    z-index: 300;
    display: block;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .contentmenu.-fixed {
    position: fixed;
  }

  .contentmenu__item {
    position: relative;
    margin: 0;
    list-style: none;
  }

  .contentmenu__item a {
    position: relative;
    display: block;
    width: 12px;
    height: 12px;
    margin-bottom: 10px;
    background: rgb(var(--c-neutral-light));
    border: 1px solid rgb(var(--c-neutral-lightest));
    border-radius: 50%;
  }

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

  .contentmenu__item a::after {
    content: attr(data-title);
    position: absolute;
    top: 50%;
    left: calc(100% + 10px);
    padding: 6px 12px;
    font-size: 15px;
    line-height: 1.4;
    white-space: nowrap;
    color: rgb(var(--c-neutral-lightest));
    background: rgb(var(--c-primary));
    border-radius: 2px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-50%);
    transition: opacity 0.15s ease;
  }

  .contentmenu__item a::before {
    content: '';
    position: absolute;
    top: 50%;
    left: calc(100% + 5px);
    margin-top: -7px;
    border-style: solid;
    border-width: 7px 5px 7px 0;
    border-color: transparent rgb(var(--c-primary)) transparent transparent;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.15s ease;
  }
}

@media (min-width: 901px) and (hover: hover) {
  .contentmenu__item a:hover {
    background: rgb(var(--c-primary-dark));
  }

  .contentmenu__item a:hover::after,
  .contentmenu__item a:hover::before {
    opacity: 1;
  }
}

/* =============================================================================
   Scroll to top
   ========================================================================== */

.top-fixed {
  position: fixed;
  right: 3%;
  bottom: 2.5em;
  z-index: 300;
  display: none;
  width: 51px;
  height: 51px;
  border-radius: 50%;
  background: rgb(var(--c-primary)) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 30'%3E%3Cpath d='M10 29V2M2 10l8-8 8 8' fill='none' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center / 20px 30px;
}

.top-fixed.-visible {
  display: block;
}

@media (hover: hover) {
  .top-fixed:hover {
    background-color: rgb(var(--c-primary-dark));
  }
}
