/*
Theme Name: TC Lauterach
Author: Schiemer Software GmbH
Author URI: https://schiemer-software.com/
Description: TC Lauterach Theme
Version: 1.0
License: GNU General Public License v3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.html
*/

@font-face {
  font-family: 'PlusJakartaSans';
  src: url('fonts/PlusJakartaSans-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
}

* {
  font-family: 'PlusJakartaSans', sans-serif;
  /*outline: 1px solid #f00 !important;*/
}
:root {
  --text-grey: #ADA18E;
  --darker-grey: #5C564D;
  --tennis-red: #EB5938;
  --white: #ffffff;
  --black: #0D0D0D;

  --background-color: var(--black);
  --site-width: 1200px;
  --mobile-padding: 20px;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semi-bold: 600;
  --font-weight-bold: 700;

  background-color: var(--background-color);
  color: var(--text-grey);
  overflow-x: hidden;
  /* hide left right scrollbar on safari */
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

p {
  letter-spacing: 2px;
  font-size: 12px;
}
a {
  text-decoration: underline;
  color: var(--text-grey);
}


.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  height: 100px;
}
.header-wrapper {
  display: flex;
  justify-content: start;
  padding-left: 200px;
  align-items: center;
  flex-direction: row-reverse;
  max-width: var(--site-width);
  margin: 0 auto;
  width: 100%;
  z-index: 1001;
}
.max-width-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-direction: row-reverse;
  max-width: var(--site-width);
  margin: 0 auto;
  width: 100%;
}
.logo-a {
  display: flex;
  flex-direction: row;
  align-items: center;
}
.logo {
  position: absolute;
  left: calc((100% - var(--site-width)) / 2);
  max-width: 60px;
  padding-top: 30px;
}
.invisible {
  display: none;
}
.header-menu {
  position: fixed;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  background-color: var(--black);

  left: 0;
  bottom: 0;
  width: 100%;
  height: 100%;

  transform: translateY(100%);
  transition: transform 0.3s ease-out;
  z-index: 1000;
  --left-space: 30px;
}
.header-menu p {
  margin-left: var(--left-space);
  font-weight: 500;
  margin-bottom: 0;
}
.header-menu.active {
  transform: translateY(0);
}
.header-menu-list {
  margin-top: 100px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: start;
  width: var(--site-width);
}
.header-menu ul {
  list-style: none;
  padding: 0;
}
.header-menu .menu-item {
  position: relative;
  overflow: hidden;
}
.header-menu ul li {
  padding-block: 5px;
}
.header-menu ul li a {
  display: flex;
  flex-direction: row-reverse;
  text-decoration: none;

  font-size: 60px;
  font-weight: var(--font-weight-bold);
  color: var(--text-grey);
  padding-block: 5px;
  transition: transform 0.4s, opacity 0.4s;
}
.header-menu ul li:hover a:not(.header-menu-item-clone) {
  transform: translateY(-100%);
  opacity: 0;
}
.header-menu ul li.current-menu-item a {
  color: var(--darker-grey);
}
:root:has(.header-menu.active), body:has(.header-menu.active) {
  overflow: hidden;
  scrollbar-width: none;
}
.header-menu-item-clone {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  transform: translateY(100%);
  transition: transform 0.4s, opacity 0.4s;
}
.header-menu ul li:hover .header-menu-item-clone {
  transform: translateY(0);
  opacity: 1;
  color: var(--tennis-red);
}

.nav-toggle {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 13px; /* 15px -3px for the bars diveded by 2 must be an even number --> height must be an even number */
  width: 40px;

  position: fixed;
  /* calc left space site-width is the max-width of the content */
  right: calc((100% - var(--site-width)) / 2);
}
.nav-toggle .bar {
  height: 1px;
  width: 100%;
  background-color: var(--white);
  transition: all 100ms ease-in-out;

  --rotation-deg: 18deg;
}
.nav-toggle:hover {
  cursor: pointer;
}
.x:nth-of-type(1) {
  transition: all 100ms ease-in-out;
  transform: rotate(var(--rotation-deg));
  transform-origin: top left;
  width: 40px;
}
.x:nth-of-type(2) {
  transition: all 100ms ease-in-out;
  transform: rotate(calc(-1 * var(--rotation-deg)));
  transform-origin: bottom left;
  width: 40px;
}

@media screen and (max-width: 1200px) {
  .logo {
    margin-left: calc(var(--mobile-padding) + 2px);
    left: 0;
  }
  .nav-toggle {
    right: var(--mobile-padding);
  }
  .header-menu-list {
    width: 100%;
  }
  .sponsor-bar {
    left: 0 !important;
  }
}

@media screen and (max-width: 1000px) {
  /* disable custom cursor on mobile */
  .custom-cursor {
    display: none;
  }
  .link-grow {
    display: none;
  }
}


@media screen and (max-width: 768px) {
  /* padding for the whole page */
  body {
    padding-inline: var(--mobile-padding);
    overflow-x: hidden;
  }
  .header-menu ul {
    padding: var(--mobile-padding);
    padding-top: 40px;
  }

  /* whole page */
  p, a {
    font-size: 15px;
  }

  /* header menu */
  .header-menu ul li a {
    font-size: 36px;
  }
  /* remove a animation on mobile */
  .header-menu ul li:hover a:not(.header-menu-item-clone) {
    transform: none !important;
    opacity: 1;
  }
  .header-menu ul li:hover .header-menu-item-clone {
    transform: none !important;
    opacity: 1;
  }
  .header-wrapper {
    padding-left: 50px;
  }

  /* home page */
  .home-row-section-item:hover { 
    transform: none;
  }
  .video-button, .booking-section hr::before {
    display: none !important;
  }
  .booking-section {
    gap: 70px !important
  }
  .booking-section img:first-of-type {
    top: -25% !important;
    right: -30px !important;
    left: unset !important;
  }
  .booking-section img:last-of-type {
    bottom: -25% !important;
    left: -30px !important;
    right: unset !important;
  }
  .home-h1 {
    font-size: 40px !important;
  }
  .left-text, .right-text {
    font-size: 40px !important;
  }
  .left-text {
    top: 28px !important;
  }
  .right-text {
    bottom: 30px !important;
  }
  .home-row-section {
    flex-direction: column !important;
    align-items: start !important;
  }
  .home-news-section {
    flex-direction: column !important;
    align-items: start !important;
  }
  .home-reverse {
    flex-direction: column-reverse !important;
  }

  /* Verein */
  .verein-table-row {
    flex-direction: column !important;
    align-items: start !important;
  }
  .verein-stats {
    flex-direction: column !important;
    gap: 20px !important;
  }
  .verein-gallery {
    flex-direction: column !important;
  }
  .verein-gallery figure {
    width: 100% !important;
  }
  .verein-p {
    letter-spacing: 1px;
  }

  /* Anlage */
  .anlage-grid .anlage-item:first-of-type {
    padding: 0 !important;
  }
  .anlage-grid .anlage-item:first-of-type h1 {
    font-size: 30px !important;
  }
  .anlage-grid .anlage-item:first-of-type:hover {
    background-color: transparent !important;
  }
  .anlage-item p {
    letter-spacing: 0.5px;
  }
  .anlage-item.active {
    transform: none !important;
  }
  .anlage-item:hover:not(.active) {
    color: var(--text-grey);
    background-color: var(--darker-grey) !important;
    transform: none !important;
  }
  .anlage-item:hover:not(.active) a {
    text-decoration: none;
  }
  .section-secondary-button {
    letter-spacing: 1px !important;
  }
  .index-grid-item hr {
    margin-top: 10px !important;
  }

  /* News */ 
  .index-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 2fr)) !important;
  }
  .index-grid-item:hover {
    transform: none !important;
  }
  .index-grid-item p {
    font-size: 12px !important;
    letter-spacing: 0.5px !important;
    line-height: 15px !important;
  }

  /* Forms */ 
  .wpforms-title {
    flex-direction: column !important;
  }
  .wpforms-title input {
    padding-inline: 0;
  }
  
  /* Posts */
  .article-go-back a {
    transition: none !important;
  }
  .article-go-back a:hover {
    width: 85px !important;
    transition: none !important;
  }
  .post-img, .post-gallery {
    width: 100vw !important;
    left: calc(-1 * var(--mobile-padding)) !important;
    position: relative !important;
  }
  .post-hp {
    font-size: 21px !important;
    padding-bottom: 10px !important;
  }
  .post-title-container {
    flex-direction: column !important;
  }
  .post-title-container figure {
    margin-top: 50px;
  }
  .post-gallery {
    flex-direction: column !important;
    margin: var(--mobile-padding) !important;
  }
  .post-gallery figure {
    width: calc(100% - 2 * var(--mobile-padding)) !important;
  }
  .post-title-right {
    padding-inline: unset !important;
    max-width: unset !important;
  }

  /* contact */
  .mobile-wrap, .contact-anfahrt {
    flex-wrap: wrap !important;
  }
  .contact-contact {
    padding-left: 0 !important;
  }
  .contact-contact span, .contact-contact a {
    font-size: 16px !important;
    line-height: 24px !important;
  }
  .contact-anfahrt {
    padding-inline: 0 !important;
  }
  .contact-anfahrt > div {
    padding-bottom: 40px;
  }
  .contact-h3, .contact-p {
    padding-bottom: 10px !important;
  }

  /* Projects */
  .project-table div:last-child {
    display: none;
  }
  .project-table h4 {
    font-size: 10px !important;
  }

  /* Join us */
  .join-section h2 {
    font-size: 26px !important;
  }
  /* first div in join-section */
  .join-section > div > div:first-of-type {
    flex-direction: column !important;
    align-items: start !important;
  }

  /* Training */
  .trainer-div {
    flex-direction: column !important;
  }
  .trainer-details {
    padding-inline: 0 !important;
  }
  .trainer-buttons {
    flex-direction: column !important;
    align-items: start !important;
  }

  /* footer */
  .footer-svg-div {
    display: block !important;
  }
  .footer-svg {
    margin-left: calc(-1 * var(--mobile-padding)) !important;
    width: calc(100% + calc(2 * var(--mobile-padding))) !important;
  }
  .footer-contact {
    text-align: left !important;
  }
  footer h2 {
    margin-bottom: 10px !important;
  }
  .footer-content {
    padding-top: 20px !important;
    padding-bottom: 20px !important;
    gap: 20px !important;
  }
  .footer-legal {
    flex-direction: column !important;
    align-items: start !important;
    gap: 20px;
  }
  .footer-legal a {
    padding-block: 5px;
  }
  .footer-legal ul {
    gap: 40px !important;
  }


  /* Game */ 
  .game-controls {
    margin-top: 0 !important;
  }
  .game-container {
    padding-top: 20 !important;
  }
  .game-canvas {
    height: fit-content !important;
  }




  .hidden-on-mobile {
    display: none !important;
  }
  .only-visible-on-mobile {
    display: block !important;
    opacity: 1 !important;
  }
  .word-break-on-mobile {
    word-break: break-all !important;
  }
}


.only-visible-on-mobile {
  display: none ;
  opacity: 0;
}
.word-break-on-mobile {
  word-break: keep-all;
}




/* Home page */
.home-img {
  width: 100%;
  margin: 0;
}
.ordinary-button {
  position: relative;
  display: inline-block;
  width: fit-content;
  border: 1px solid var(--white);
  border-radius: 25px;
  padding: 10px 20px;
  overflow: hidden;
  text-align: center;
  color: transparent;
  cursor: pointer;
  letter-spacing: 2px;
  font-size: 12px;
}
.ordinary-button .text, .section-button .text {
  display: block;
  position: absolute;
  width: fit-content;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  text-align: center;
  transition: transform 0.4s, opacity 0.4s;
  white-space: nowrap;
  color: var(--white);
}
.ordinary-button .old-text, .section-button .old-text {
  transform: translateY(-50%);
  opacity: 1;
}
.ordinary-button .new-text, .section-button .new-text {
  transform: translateY(150%);
  opacity: 0;
  color: var(--tennis-red);
}
.ordinary-button:hover .old-text, .section-button:hover .old-text {
  transform: translateY(-150%);
  opacity: 0;
}
.ordinary-button:hover .new-text, .section-button:hover .new-text {
  transform: translateY(-50%);
  opacity: 1;
}
.section-button {
  display: flex;
  flex-direction: row;
  position: relative;
  width: fit-content;
  gap: 50px;
  overflow: hidden;
  text-align: center;
  color: transparent;
  cursor: pointer;
  letter-spacing: 2px;
  font-size: 12px;
}
.section-button .text {
  left: 0;
}
.section-button .forward-arrow {
  display: inline-block;
  position: relative;
  color: var(--tennis-red);
  width: 80px !important;
  height: 80px !important;
  margin: 1px;
  border: 1px solid var(--tennis-red);
  border-radius: 50%;
}
.section-button:hover .forward-arrow {
  margin: 0px;
  border: 2px solid var(--tennis-red);
}
.section-button .forward-arrow img {
  position: absolute;
  top: 50%;
  left: 50%;
  height: 15px;
  transform: translate(-50%, -50%);
  filter: invert(42%) sepia(91%) saturate(1463%) hue-rotate(338deg) brightness(94%) contrast(95%);
  clip-path: inset(0 0 0 0);
  transition: clip-path 0.3s ease-in-out;
}
.section-button:hover .forward-arrow img {
  clip-path: inset(0 0 0 40%);
}
.section-button-text-grey > .old-text,
.button-text-grey > .old-text,
.button-grey > .old-text {
  color: var(--text-grey);
}
.button-grey {
  border: 1px solid var(--text-grey);
}
.section-secondary-button {
  color: var(--tennis-red);
  text-decoration: none;
  cursor: pointer;
  letter-spacing: 2px;
  font-size: 12px;
} 
.home-h1 {
  font-weight: var(--font-weight-bold);
  font-size: 70px;
  margin: 0;
  padding-bottom: 20px;
}
.tennis-red {
  color: var(--tennis-red) !important;
}
.centered {
  display: block;
  margin: 0 auto;
}
.home-sei-dabei {
  display: flex;
  justify-content: center;
  text-align: center;
  color: var(--white);
}
.home-row-section {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 50px;
  line-height: 22px;
}
.home-row-section div:last-of-type {
  width: 300px;
}
.home-news-section {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 50px;
  line-height: 22px;
}
.home-row-section p, .home-news-section p, .section-button {
  font-weight: var(--font-weight-semi-bold);
}
.home-row-section-title {
  max-width: 350px;
  padding-right: 50px;
}
.home-row-section-title .section-button {
  margin-top: 40px;
  flex: 1;
}
.home-row-section-item {
  flex: 1;
  transition: transform 0.3s;
}
.home-row-section-item hr {
  margin-top: 20px;
  width: 90%;
  border: 1px solid var(--text-grey);
}
.home-row-section-item:hover {
  position: relative;
  transform: translateY(-10px);
}
.home-hashtag-img {
  position: absolute;
  width: 100%;
  max-width: 550px;
  left: 0; 
  right: 0; 
  margin-inline: auto; 
  transform: translateY(-130px);
}
.wp-block-video {
  margin: 0;
}
.home-video-mask {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  border-radius: 600px;
  overflow: hidden;
  position: relative; /* Add this to make sure the child element can be centered */
}
.video-button {
  display: flex;
  justify-content: center;
  align-items: center;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center the button */
  width: 100%;
  color: var(--white);
  cursor: pointer;
}
.home-mehr-mobile-button {
  color: var(--tennis-red);
  text-decoration: none;
}
.home-mehr-mobile-button::after {
  content: url('assets/Pfeil.svg');
  filter: invert(48%) sepia(26%) saturate(6207%) hue-rotate(340deg) brightness(96%) contrast(91%);
  transform: rotate(180deg);
  margin-left: 20px;
}

.booking-section {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  gap: 100px;
  position: relative;
  margin-top: 100px;
  color: var(--darker-grey);
  transform: translateX(0);
  transition: none;
}
.booking-section hr {
  width: 80%;
  border: 0.5px solid var(--darker-grey);
}
.booking-section img:first-of-type {
  position: absolute;
  width: 100%;
  max-width: 200px;
  top: -14%;
  left: 10%;
}
.booking-section img:last-of-type {
  position: absolute;
  width: 100%;
  max-width: 200px;
  bottom: -14%;
  right: 10%;
}
.booking-section hr:first-of-type::before {
  content: url('assets/Platz-buchen-icon.svg');
  position: absolute;
  right: 10%;
  transform: translateY(-50%) translateX(50%);
  z-index: 1;
}
.left-text, .right-text {
  position: absolute;
  font-size: 70px;
  margin: 0;
  white-space: nowrap;
  z-index: 10;
}
.left-text {
  top: 25px;
  transform: translateX(-100%);
}
.right-text {
  bottom: 25px;
  transform: translateX(100%);
}
@keyframes move-right {
  from {
    left: 0;
  }
  to {
    left: 600px;
  }
}
@keyframes move-left {
  from {
    right: 0;
  }
  to {
    right: 600px;
  }
}
@keyframes move-right-mobile {
  from {
    left: 0px;
  }
  to {
    left: 100px;
  }
}
@keyframes move-left-mobile {
  from {
    right: 0px;
  }
  to {
    right: 100px;
  }
}


.home-h2 {
  font-weight: var(--font-weight-medium);
  font-size: 70px;
  margin: 0;
  margin-bottom: 80px;
}
.home-h3 {
  font-weight: var(--font-weight-medium);
  font-size: 42px;
}
.home-h4 {
  font-weight: var(--font-weight-medium);
  font-size: 21px;
  padding-bottom: 20px;
}
.green-text {
  color: var(--green);
}
.typewriter {
  overflow: hidden;
  border-right: .07em solid var(--green);
  margin: 0px auto;
  animation: 
    typing 3.5s steps(40, end),
    blink-caret .75s step-end infinite;
}
@keyframes typing {
  from { width: 0 }
  to { width: 100% }
}
@keyframes blink-caret {
  from, to { border-color: transparent }
  50% { border-color: var(--green); }
}
.scroll {
  writing-mode: vertical-rl;
  transform: rotate(-180deg);
}
.scroll-bar {
  height: 70px;
  width: 3px;
  background-color: var(--darker-grey);
  border-radius: 2px;
  z-index: 999;
}
.scroll-overlay {
  background-color: var(--white);
  border-radius: 2px;
  z-index: 998;
}
.scroll-div {
  align-self: flex-end;
}
.badges {
  display: flex;
  flex-direction: row;
  gap: 10px;
  padding-inline: 10px;
  position: absolute;
}
.badges p {
  font-size: 13px;
  color: var(--black);
  border: 1px solid var(--black);
  padding-inline: 10px;
  padding-block: 3px;
  border-radius: 25px;
}
.badge-white {
  color: var(--white) !important;
  border: 1px solid var(--white) !important;
}
.wp-block-button a {
  border: 1px solid var(--white);
  margin: 1px;
  padding: 12px 24px;
}
.wp-block-button a:hover {
  border: 2px solid var(--white);
  margin: 0;
}
.home-p {
  font-size: 14px;
  line-height: 20px;
  width: 330px;
}
.full-width {
  width: 100%;
}

.gallery-slider {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  align-items: center !important;

  overflow-x: auto;
  scroll-behavior: smooth;
  -ms-overflow-style: none;
  overflow-y: hidden;
  /* hide scrollbar horizontal on safari */
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  /* transition for scrollLeft */
  transition: scroll 0.3s ease;
}
.gallery-slider::-webkit-scrollbar {
  display: none;
}
.gallery-slider figure {
  scroll-snap-align: start;
  object-fit: cover;
  pointer-events: none;
  user-select: none;
}
.gallery-numbers {
  position: relative;
  display: flex;
  justify-content: start;
  margin-top: 10px;
  gap: 0;
}
.gallery-number,
.gallery-numbers button {
  display: inline-block;
  padding: 5px 10px;
  cursor: pointer;
  border: none;
  border-radius: 5px;
  background-color: var(--black);
  color: var(--white);
  font-family: 'PlusJakartaSans', sans-serif;
}
.gallery-number.active,
.gallery-numbers button.active {
  color: var(--green);
}

/* Verein */
.verein-img {
  margin: 0;
}
.verein-img img {
  border-radius: 20px;
  margin: 0;
  margin-bottom: 20px;
}
.verein-stats {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
}
.verein-stats div {
  background-color: var(--darker-grey);
  padding: 20px;
  border-radius: 20px;
  width: 100%;
}
.verein-stats .title {
  font-size: 22px;
  font-weight: var(--font-weight-bold);
}
.verein-about {
  display: flex;
  flex-direction: column;
  color: var(--tennis-red);
  writing-mode: vertical-rl;
  transform: rotate(180deg);
}
.verein-about::after {
  content: '';
  display: block;
  width: 50px;
  height: 1px;
  background-color: var(--text-grey);
  margin-top: 15px;
  transform: rotate(90deg);
  position: absolute;
  left: -8px;
  top: -50px;
}
.verein-about-mobile {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  font-size: 18px;
  letter-spacing: 2px;
}
.verein-about-mobile::before {
  content: '';
  width: 30px;
  height: 1px;
  background-color: var(--text-grey);
}
.verein-p {
  font-size: 18px;
  max-width: 700px;
  margin: 0 auto;
  line-height: 25px;
  font-weight: var(--font-weight-medium);
}
.verein-table {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.verein-table h1 {
  font-size: 32px;
  font-weight: var(--font-weight-semi-bold);
  color: var(--tennis-red);
  margin: 0;
}
.verein-table hr {
  width: 100%;
  border: 1px solid var(--text-grey);
}
.verein-table-row {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}
.verein-table-row a {
  text-decoration: none;
  color: var(--text-grey);
  letter-spacing: 2px;
  font-size: 12px;
  cursor: pointer;
  width: 300px;
  display: flex;
  align-items: center;
}
.verein-table-row a::before {
  content: url('assets/kreis+pfeil-klein-email.svg');
  margin-right: 10px;
}

/* Anlage */
.anlage-additional-info {
  display: none;
}
.anlage-additional-info a {
  display: flex;
  margin-bottom: 40px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 2px;
}
.anlage-additional-info a::before {
  content: url('assets/pfeil-zurück.svg');
  padding-right: 5px;
  transform: scale(0.7);
}
.anlage-additional-info a:hover {
  filter: invert(43%) sepia(79%) saturate(561%) hue-rotate(326deg) brightness(94%) contrast(95%);
}
.anlage-h3 {
  font-weight: var(--font-weight-bold);
  font-size: 50px;
  margin: 0;
  padding-bottom: 20px;
  color: var(--tennis-red);
}
.anlage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 20px;
}
.anlage-grid .anlage-item:first-of-type {
  background-color: transparent;
  cursor: unset !important;
}
.anlage-grid .anlage-item:first-of-type:hover {
  color: var(--text-grey);
  background-color: transparent;
  transform: none;
}
.anlage-item {
  display: flex;
  flex-direction: column;
  background-color: var(--darker-grey);
  border-radius: 10px;
  padding: 20px;
  gap: 10px;
  cursor: pointer;
}
.anlage-item h1 {
  margin: 0;
  font-size: 20px;
  font-weight: var(--font-weight-medium);
}
.anlage-item p {
  letter-spacing: 1px;
  line-height: 22px;
}
.anlage-item:hover, .anlage-item.active {
  color: var(--white);
  background-color: var(--tennis-red);
  transform: rotate(-3deg);
}
.anlage-item:hover a {
  text-decoration: underline;
}
.anlage-item:hover img, .anlage-item.active img {
  filter: brightness(0) invert(1);
}
.anlage-icon {
  display: flex; 
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.anlage-icon img {
  transform: scale(0.5);
}
.anlage-item a {
  cursor: pointer;
}
.anlage-img img {
  /* crop to make it smaller, but bigger height */
  object-fit: cover;
  object-position: right;
  width: 100%;
  height: 200px;
}

/* Form */
.info-popup-active {
  max-width: unset;
  width: calc(100% - 100px);
}

/* Posts */
.full-gallery {
  width: 100%;
  margin: 0;
}
.post-back-button, .gallery-back-button {
  display: flex;
  margin-bottom: 40px;
  cursor: pointer;
  font-size: 12px;
  letter-spacing: 2px;
}
.post-back-button::before, .gallery-back-button::before {
  content: url('assets/pfeil-zurück.svg');
  padding-right: 5px;
  transform: scale(0.7);
}
.post-back-button:hover, .gallery-back-button:hover {
  filter: invert(43%) sepia(79%) saturate(561%) hue-rotate(326deg) brightness(94%) contrast(95%);
}
.post-title-container {
  align-items: flex-start;
  gap: 40px;
}
.post-title-right {
  padding-inline: 40px;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  gap: 40px
}
.post-h1 {
  font-weight: var(--font-weight-semi-bold);
  line-height: 45px;
  letter-spacing: 2px;
}
.post-title-p {
  line-height: 25px;
  letter-spacing: 2px;
  font-size: 16px;
  font-weight: var(--font-weight-semi-bold);
}
.post-contact-p {
  font-size: 16px;
  line-height: 20px;
  letter-spacing: 1px;
  font-weight: var(--font-weight-medium);
}
.post-contact-p a {
  text-decoration: underline;
  color: var(--text-grey);
}

/* Projects */
.projects-content {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  max-width: var(--site-width);
  margin: 0 auto;
}
.project-facts {
  max-width: 1000px;
  margin: 0 auto;
}
.project-table {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  column-gap: 30px;
}
.project-table div {
  padding: 0 20px;
  border-top: 1px solid var(--white);
}
.project-table h4 {
  font-size: 12px;
  font-weight: var(--font-weight-medium);
  margin-bottom: 0;
}
.project-table p {
  margin-top: 10px;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.category-button {
  text-decoration: none;
  color: var(--white);
  border: 1px solid var(--white);
  border-radius: 25px;
  margin: 1px;
  padding: 12px 24px;
}
.category-button:hover {
  border: 2px solid var(--white);
  margin: 0;
}
.category-button.active {
  border: 2px solid var(--white);
  margin: 0;
}
.article-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  justify-content: start !important;
}
.post-categories {
  position: absolute;
}
.article-item {
  min-width: 150px;
  min-height: 400px;
}
.article-item img {
  width: 100%;
  max-width: 400px;
  height: fit-content;
  object-fit: cover;
}
.projects-next-button {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-inline: 5px;
}
.projects-next-button img {
  width: 40px;
}
/* mobile project dropdown */
  .custom-select {
    position: relative;
    width: 400px;
    max-width: 100%;
    font-size: 15px;
    color: var(--white);
    margin-top: 3rem;
    margin-bottom: 2rem;
  }
  .select-button {
    display: flex;
    justify-content: space-between;
    align-items: center;

    width: 100%;
    height: 40px;
    font-size: 15px;
    background-color: var(--black);
    padding: 0.675em 1em;
    border: 1px solid var(--white);
    cursor: pointer;
  }
  .selected-value {
    color: var(--white);
    text-align: left;
    text-transform: capitalize;
  }
  .arrow {
    content: url('assets/PfeilDropdown.svg');
    transition: transform ease-in-out 0.3s;
  }
  .select-dropdown {
    position: absolute;
    list-style: none;
    width: calc(100% - 10px);
    background-color: black;
    padding: 0px;
    margin-top: 10px;
    max-height: 300px;
    overflow-y: hidden;
    transition: 0.5s ease;

    transform: translateY(-10px);
    opacity: 0;
    visibility: hidden;
    z-index: 1000;
  }
  .select-dropdown:focus-within {
    box-shadow: none;
  }
  .select-dropdown li {
    position: relative;
    cursor: pointer;
    display: flex;
    align-items: center;
    background-color: var(--black);
    margin: 1px;
    height: 40px;
  }
  .select-dropdown li label {
    width: 100%;
    height: 100%;
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    gap: 1rem;
    align-items: center;
    font-family: 'PlusJakartaSans', sans-serif;
    font-size: 15px;
  }
  .select-dropdown::-webkit-scrollbar {
    width: 7px;
  }
  .select-dropdown::-webkit-scrollbar-track {
    background: var(--darker-grey);
    border-radius: 25px;
  }
  .select-dropdown::-webkit-scrollbar-thumb {
    background: var(--light-grey);
    border-radius: 25px;
  }
  .select-dropdown li:hover,
  .select-dropdown input:checked ~ label,
  .select-dropdown input:checked {
    background-color: var(--black);
    color: var(--light-grey);
  }
  .select-dropdown input:focus ~ label {
    background-color: var(--light-grey);
  }
  .select-dropdown input[type="radio"] {
    position: absolute;
    left: 0;
    opacity: 0;
  }
  .custom-select.active .arrow {
    transform: rotate(180deg);
  }
  .custom-select.active .select-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }
/* mobile project dropdown end */


/* Know-How */
.know-how-text {
  font-size: 32px;
  line-height: 36px;
}
.accordion {
  width: 100%;
  background-color: var(--black);
  border: none;
  border-top: 1px solid var(--white);
  text-align: left;
  padding: 15px;
  cursor: pointer;
  font-size: 32px;
  font-family: 'PlusJakartaSans', sans-serif;
  outline: none;
  color: var(--white);
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background-color 0.3s ease;
}
.accordion:hover {
  background-color: var(--darker-grey);
}
.accordion:after {
  content: url('assets/plus-icon.svg');
  transition: transform 0.3s ease; /* Added transition for rotation */
}
.accordion.active:after {
  transform: rotate(45deg); /* Rotate 45 degrees to make an "X" */
}
.accordion.last:after {
  content: none;
}
.accordion.last:hover, .accordion.last {
  background-color: var(--black);
  cursor: default;
}

.panel {
  max-height: 0;
  padding: 0 18px;
  background-color: var(--black);
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out; /* Smooth transition for panel */
  color: #fff;
}
.panel p {
  padding: 15px;
  font-size: 16px;
}
.panel.open {
    max-height: 200px; /* You can adjust the max-height as needed */
    padding: 15px 18px;
}

/* About */
.about-title {
  font-weight: var(--font-weight-medium);
  font-size: 50px;
  padding-bottom: 80px;
  margin: 0;
}
.about-contact-links {
  text-decoration: underline;
  color: var(--white);
}
.about-contact-links:hover {
  text-decoration: none;
}
.about-name {
  font-weight: var(--font-weight-bold);
}
.about-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 40px;
  padding-inline: 120px;
}
.about-grid figure {
  width: 100%;
}
.about-grid img {
  width: 100%;
  height: fit-content;
  object-fit: cover;
}

/* Contact */
.contact-contact {
  font-size: 24px;
  line-height: 40px;
  padding-left: 100px;
}
.contact-contact a {
  text-decoration: none;
  color: var(--white);
}
.contact-anfahrt {
  padding-inline: 100px;
}
.contact-p {
  font-size: 14px;
  line-height: 20px;
  max-width: 400px;
  padding-bottom: 20px;
}
.contact-h3 {
  font-weight: var(--font-weight-medium);
  font-size: 24px;
  padding-bottom: 20px;
}
/* animate underline on hover going from left to right */
.contact-a a {
  text-decoration: none;
  color: var(--white);
  position: relative;
}
.contact-a a::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 1px;
  bottom: 0;
  left: 0;
  background-color: var(--white);
  visibility: hidden;
  transform: scaleX(0);
  transform-origin: left;
  transition: all 0.3s ease-in-out 0s;
}
.contact-a a:hover::after {
  visibility: visible;
  transform: scaleX(1);
}
  

/* contact-div on multiple pages */
.padding-left {
  padding-left: 200px;
}

/* News Page - index.php */
.index-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 50px;
  justify-content: start;
}
.index-grid-item {
  transition: transform 0.3s ease-in-out;
}
.index-grid-item:hover {
  transform: translateY(-10px);
}
.index-grid-item hr {
  width: 90%;
  margin-top: 20px;
  margin-left: 0;
  border: 1px solid var(--text-grey);
}
.index-grid-item img {
  width: 100%;
  object-fit: cover;
}
.index-grid-item p {
  width: 90%;
  line-height: 22px;
}

/* Posts - single.php */
.content-area {
  display: inline-block;
}
.content-thin {
  width: 70%;
}
.content-full-width {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  display: flex;
  justify-content: center;
}
.spacer {
  height: 50px;
}
.small-spacer {
  height: 100px;
}
.bigger-spacer {
  height: 200px;
}
.article-full {
  width: 100%;
}
.post-img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  height: auto;
}
.post-gallery {
  width: 100%;
  margin: 0 auto;
}
.post-gallery-item-wf {
  /* flex: make it so that two columns are use  */
  flex: 1 0 50%;
}
.post-hp {
  font-size: 32px;
  padding-bottom: 20px;
}



/* 'Margin: 0 auto' centers block content on the page */
.wrap {
  width: 100%;
  margin: 0 auto;
}



/* Footer */
footer * {
  z-index: 10;
}
.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  margin: 0 auto;

  max-width: var(--site-width);
  padding-top: 40px;
  padding-bottom: 150px;
  line-height: 1.5em;
  color: var(--white);
}
.footer-content h2 {
  font-weight: var(--font-weight-medium);
}
.footer-lust {
  min-width: 300px;
  text-align: center;
}
.footer-right-aligned {
  text-align: right;
}
.footer-content a {
  color: var(--white);
  text-decoration: none;
}
.footer-content ul {
  list-style: none;
}
.footer-legal {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  padding-block: 10px;
  max-width: var(--site-width);
  margin: 0 auto;
}
.footer-legal ul {
  display: flex;
  flex-direction: row;
  justify-content: end;
  align-items: center;
  gap: 20px;
  list-style: none;
  padding-left: 0;
  margin: 0;
  flex: 1;
}
.footer-legal a {
  color: var(--white);
  text-decoration: none;
}
.footer-svg-div {
  display: flex;
  justify-content: center;
}
.footer-svg {
  width: 100%;
  max-width: var(--site-width);
  margin: 0 auto;
  margin-block: 100px;
}
.footer-svg-text {
  font-family: 'PlusJakartaSans', sans-serif;
  font-weight: var(--font-weight-bold);
}
.footer-legal a, .footer-contact, .footer-social {
  flex: 1;
}
.footer-social {
  text-align: center;
}
.footer-social img {
  margin: 5px;
}
.footer-img {
  position: absolute;
  width: 100%;
  max-width: 550px;
  left: 0; 
  right: 0; 
  margin-inline: auto; 
  transform: translateY(-130px);
}

/* WPForm customization */
.wpforms-submit {
  font-family: 'PlusJakartaSans', sans-serif;
  text-decoration: none;
  color: var(--tennis-red);
  background-color: var(--black);
  border: 1px solid var(--tennis-red);
  border-radius: 25px;
  padding: 12px 24px;
  margin-top: 50px;
  margin-bottom: 1px;
  /* center button */
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.wpforms-submit:hover {
  margin-top: 49px;
  margin-bottom: 0px;
  border: 2px solid var(--tennis-red);
}
.wpforms-form {
  font-family: 'PlusJakartaSans', sans-serif;
  font-size: 1em;
  color: var(--text-grey);
}
::placeholder{
  color: var(--text-grey);
}
.wpforms-field-medium {
  color: var(--text-grey);
  background-color: var(--black);
  border: none;
  border-bottom: 1px solid var(--text-grey);
  padding: 10px;
  max-width: none !important;
  border-radius: 0px;
  -webkit-border-radius: 0px;
}
.wpforms-field-medium:focus {
  outline: none;
}
.wpforms-field-full-border textarea {
  color: var(--text-grey);
  background-color: var(--black);
  border: 1px solid var(--text-grey);
  padding: 10px;
  border-radius: 0px;
  -webkit-border-radius: 0px;
}
.wpforms-field-full-border textarea:focus {
  outline: none;
}
.wpforms-field-full-width {
  flex: 1 0 100% !important;
}
.wpforms-field-container {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 25px;
}
.wpforms-field {
  flex: 1 0 45%;
  padding-top: 0 !important;
  min-width: 250px;
  border-radius: 0px;
  -webkit-border-radius: 0px;
}
.wpforms-field ul {
  display: inline;
  list-style: none;
  padding-left: 0;
  padding-bottom: 20px;
  margin-bottom: 5px;
  border-radius: 0px;
  -webkit-border-radius: 0px;
}
.wpforms-field li {
  display: inline-block;
  padding-left: 20px;
  padding-right: 10px;
  padding-block: 5px;
  margin: 5px;
  border: 1px solid var(--text-grey) !important;
  border-radius: 25px;
}
.wpforms-container ul li {
  margin-right: 5px;
  margin-bottom: 5px;
}
.wpforms-field li input[type="radio"] {
  display: none;
}
.wpforms-field li.wpforms-selected {
  background-color: var(--text-grey);
  color: var(--black);
}
.wpforms-selected input[type="checkbox"] {
  accent-color: var(--white);
  border-radius: 0px;
  -webkit-border-radius: 0px;
}
.wpforms-payment-price {
  appearance: unset !important;
  border: 1px solid var(--white) !important;
  border-radius: 0px !important;
  -webkit-border-radius: 0px !important;
}
.wpforms-payment-price:checked {
  background-image: url('assets/Checkbox.svg');
  filter: invert(100%);
  border-radius: 0px;
  -webkit-border-radius: 0px;
}
.wpforms-title {
  display: flex;
}
.wpforms-title label {
  font-size: 28px;
  font-weight: var(--font-weight-medium);
  min-width: fit-content;
}
.wpforms-title input {
  font-size: 12px;
  border: none;
}
.wpforms-title input::placeholder {
  color: var(--tennis-red);
}
.wpforms-legal-checkboxes {
  padding: 0px !important;
  margin: 0px !important;
}
.wpforms-legal-checkboxes li {
  border: none !important;
  padding-inline: 0px;
}
.wpforms-legal-checkboxes li.wpforms-selected {
  background-color: var(--black);
  color: var(--text-grey);
}
.wpforms-legal-checkboxes input {
  appearance: unset !important;
  border: 1px solid var(--text-grey) !important;
  border-radius: 0px !important;
  -webkit-border-radius: 0px !important;
}
.wpforms-legal-checkboxes input:checked {
  background-image: url('assets/Checkbox.svg');
  filter: invert(50%);
  border-radius: 0px;
  -webkit-border-radius: 0px;
}
.wpforms-vmm li {
  padding-inline: 20px;
}
.wpforms-vmm label {
  vertical-align: middle !important;
}
.wpforms-vmm legend {
  margin-bottom: 10px;
}
.wpforms-vmm legend > span {
  color: var(--tennis-red) !important;
  font-size: 12px;
}
.wpforms-vmm .wpforms-required-label {
  display: none;
}
.wpforms-mitgliedsform label {
  vertical-align: middle !important;
}
.wpforms-field-half-width input {
  width: calc(50% - 12.5px) !important;
}

/* Info Popup */
.info-icon {
  content: url('assets/info-icon.svg');
  display: inline-block;
  vertical-align: middle;
  margin-left: 5px;
  width: 20px;
  transform: scale(0.7);
}
.info-popup-active {
  display: block;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: var(--black);
  padding: 20px;
  padding-bottom: 60px;
  border: 1px solid var(--tennis-red);
  border-radius: 25px;
  max-width: 400px;
  z-index: 1000;
}
.info-popup-active h3 {
  color: var(--tennis-red);
  text-decoration: underline;
  font-weight: var(--font-weight-regular);
}
.info-popup-active p {
  color: var(--white);
  font-weight: var(--font-weight-regular);
  letter-spacing: 1px;
}
.info-select-button {
  color: var(--tennis-red);
  text-decoration: underline;
  cursor: pointer;
}
.info-close-button {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}
.info-close-button::after {
  content: url('assets/close-icon.svg');
  transform: scale(0.7);
  cursor: pointer;
}
.info-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

/* Kontakt Page */
.mapster-wp-maps-container {
  width: 100%;
}

/* Posts */
.article-go-back {
  position: fixed;
  display: flex;
  justify-content: space-between;
  padding-block: 5px;
  padding-inline: 10px;
  border: 1px solid var(--white);
  border-radius: 25px;
  text-decoration: none;
  color: var(--white);
  width: 85px;
  transition: width 0.3s ease;
}
.article-go-back:hover {
  background-color: var(--background-color);
  width: 95px;
  transition: width 0.3s ease;
}

.post-sidebar-min-width {
  min-width: 400px;
}
.blog-image-full-width {
  width: 100%;
  margin: 0;
}
.post-no-gap {
  gap: 0;
}
.post-right-align {
  align-items: flex-end !important;
}
.no-decoration-link {
  color: var(--black);
  text-decoration: none;
  line-height: 1.5em;
}

/* Mitglied werden Page */
.join-section h2, .trainer-div h2 {
  font-size: 36px;
  font-weight: var(--font-weight-bold);
  color: var(--tennis-red);
}
.join-section .ordinary-button, .trainer-div .ordinary-button {
  min-width: fit-content;
  border: 1px solid var(--text-grey);
  height: 15px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  padding-inline: 10px;
}
.join-section .ordinary-button .old-text, .trainer-div .ordinary-button .old-text {
  color: var(--text-grey);
}
.join-section .ordinary-button .old-text, .join-section .ordinary-button .new-text, .join-section .ordinary-button,
.trainer-div .ordinary-button .old-text, .trainer-div .ordinary-button .new-text, .trainer-div .ordinary-button {
  letter-spacing: 1px;
}
.join-text {
  max-width: 800px;
}
.join-text p {
  letter-spacing: 1px;
  line-height: normal;
}
.join-section hr {
  color: var(--text-grey);
}

/* Trainer Page */
.trainer-div img:first-child {
  width: 400px;
}
.trainer-div p {
  max-width: 800px;
  letter-spacing: 1px;
  line-height: normal;
}
.trainer-details {
  padding-inline: 50px;
}
.trainer-banner-img {
  margin: 0;
}
.trainer-banner-img img {
  border-radius: 25px;
  margin: 0;
  margin-bottom: 20px;
}
.trainer-img {
  margin: 0;
}
.trainer-img img {
  border-radius: 15px;
  margin: 0;
  margin-bottom: 20px;
}
.trainer-buttons {
  flex-direction: row;
}