/*
Theme Name: TV 1881 Altdorf e.V.
Author: Maximilian Greger
Version: 2.0
Author URI: https://greger.me/
Description: WordPress Theme für die Vereinshomepage des TV 1881 Altdorf e.V.
*/

* {
  padding: 0;
  margin: 0;
  border: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.1rem;
  color: #333;
}

.noscroll {
  overflow: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Maven Pro", sans-serif;
  font-weight: 800;
  color: #37474F;
}

h1 {
  font-size: 2.5rem;
  margin-top: 2rem;
  margin-bottom: 1.5rem;
}

h2 {
  font-size: 2rem;
  margin-top: 1.5em;
  margin-bottom: 1em;
}

h3 {
  font-size: 1.6em;
  margin-top: 1.5em;
  margin-bottom: 1em;
}

h4,
h5,
h6 {
  font-size: 1.3rem;
  margin-top: 1em;
  margin-bottom: .75em;
}

h1:first-child,
h2:first-child,
h3:first-child,
h4:first-child,
h5:first-child,
h6:first-child {
  margin-top: 0;
}

a {
  text-decoration: none;
  color: #d62032;
}

img {
  max-width: 100%;
  height: auto;
}

.outline {
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke-color: currentColor;
  -webkit-text-stroke-width: 1px
}

.content-wrapper-box {
  margin: 2rem;
  background-color: #eee;
  border-radius: 15px;
  overflow: hidden;
}

.content-wrapper-box-ele {
  padding: 2rem 0;
  max-width: calc(100% - 4em);
  margin: auto;
}

.content-wrapper-box-ele>* {
  max-width: 600px;
  max-width: calc(600px - 3rem);
  margin-left: auto !important;
}

.content-wrapper {
  padding: 5rem 2rem;
  margin: auto;
  max-width: 1200px;
}

.content-wrapper ul li,
.tva-abteilung-wrapper ul li {
  margin-left: 1rem;
}

.content-wrapper>*:first-child {
  margin-top: 0;
}

.content-wrapper>*:last-child {
  margin-bottom: 0;
}

.content-wrapper+.content-wrapper {
  padding-top: 0;
}

.content-wrapper p:last-child,
.content-wrapper li:last-child,
.content-wrapper a:last-child,
.tva-abteilung-wrapper p:last-child,
.tva-abteilung-wrapper li:last-child,
.tva-abteilung-wrapper a:last-child {
  margin-bottom: 0;
}


#main-head {
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 80;
}

#main-head a,
.header-top a {
  color: inherit;
}

.header-top {
  background: #ECEFF1;
  color: #333;
}

.menu-tva-leiste-container {
  margin-right: 1rem;
}

.topmenu {
  list-style: none;
  display: flex;
  justify-content: flex-end;
}

.topmenu li {
  display: flex;
  align-items: center;
}

.topmenu a {
  display: block;
  padding: .5em 0;
}

.topmenu li:after {
  content: '|';
  margin: 0 .25em;
}

.topmenu li:last-child:after {
  content: '';
  margin: 0;
}

.header-top-wrapper {
  max-width: 1200px;
  margin: auto;
  padding: 0 2rem;
}

.header-top-wrapper a {
  font-size: .9rem;
}

.header-main {
  background: #d62032;
  position: relative;
}

.header-main-wrapper {
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  padding: 0 2rem;
}

.header-logo {
  width: 100%;
  max-width: 6rem;
  position: relative;
  position: relative;
  z-index: 99;
}

.header-logo-img {
  position: absolute;
  top: 10px;
  left: 0;
  right: 0;
  width: 100%;
  z-index: 222;
}

.hauptmenu {
  list-style: none;
  display: flex;
}

.hauptmenu li {
  display: block;
  transition: background .2s ease-out;
  position: relative;
}

.hauptmenu>li>a {
  display: block;
  font-family: "Maven Pro", sans-serif;
  font-weight: 800;
  font-style: normal;
  padding: 1.5rem 1rem;
  cursor: pointer;
  font-size: 1.2rem;
}

.hauptmenu .current_page_item,
.hauptmenu .current-menu-parent,
.hauptmenu .current_page_ancestor,
.hauptmenu>li:hover {
  background: #af1b31;
}

.hauptmenu .sub-menu-wrap {
  position: absolute;
  background: #af1b31;
  display: none;
  margin: auto;
  min-width: 13.5rem;
  z-index: 9;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  overflow: hidden;
}

.hauptmenu>li.menu-btn {
  padding: 1rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hauptmenu>li.menu-btn.current_page_item,
.hauptmenu>li.menu-btn:hover {
  background: inherit;
}

.hauptmenu>li.menu-btn.current_page_item a,
.hauptmenu>li.menu-btn a:hover {
  background: #fff;
  color: #d62032 !important;
}

.hauptmenu>li.menu-btn a {
  padding: .25rem;
  border: 1px solid #fff;
  border-radius: 5px;
}

.hauptmenu li:last-child .sub-menu-wrap {
  right: 0;
}

.sub-menu-wrap li a {
  padding: 1em;
  padding-bottom: 0;
  display: block;
  font-size: 1.1rem;
}

.sub-menu-wrap li:last-child a {
  padding-bottom: 1rem;
}

li.has-mega-menu {
  position: inherit;
}


.header-nav .has-mega-menu .sub-menu-wrap {
  padding: 2em;
}

.header-nav .has-mega-menu .sub-menu-wrap a {
  padding: .25em;
}

.header-nav .has-mega-menu .sub-menu-wrap {
  position: absolute;
  background: #af1b31;
  padding: 2em;
  display: none;
  width: 100%;
  margin: auto;
  left: 0;
  right: 0;
}

.header-nav .has-mega-menu .sub-menu {
  max-width: 800px;
  margin: auto;
}

.header-nav .has-mega-menu .sub-menu {
  column-count: 4;
}

.menu-item-has-children:hover .sub-menu-wrap {
  display: block;
  opacity: 0;
  animation-name: sub-menu-fade;
  animation-duration: .4s;
  animation-fill-mode: forwards;

}

@keyframes sub-menu-fade {
  from {
    transform: translate3d(0, -15px, 0);
    opacity: 0.000000001;
  }

  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}

.menu-item {
  position: relative;
}

.menu-item.neu>a::before {
  content: 'NEU';
  font-size: 10px;
  display: inline-block;
  padding: 5px;
  margin-right: 5px;
  color: #fff;
  border-radius: 4px;
  border: 1px solid #fff;
  line-height: 10px;
}

/* Sprunglink für Tastaturnutzer: nur bei Fokus sichtbar */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 1000;
  padding: .75rem 1rem;
  background: #fff;
  color: #d62032;
  font-weight: 700;
  border-radius: 0 0 10px 0;
}

.skip-link:focus {
  left: 0;
}

/* Sichtbarer Fokus bei Tastaturbedienung */
#main-head a:focus-visible,
#main-head button:focus-visible,
.overlay-menu a:focus-visible {
  outline: 3px solid #fff;
  outline-offset: -3px;
}

.header-top a:focus-visible {
  outline: 2px solid #d62032;
  outline-offset: 2px;
}

.tva-content:focus {
  outline: 0;
}

/* Untermenüs öffnen auch bei Tastaturfokus, nicht nur beim Überfahren */
.hauptmenu > .menu-item-has-children:focus-within {
  background: #af1b31;
}

.hauptmenu > .menu-item-has-children:focus-within .sub-menu-wrap {
  display: block;
  opacity: 0;
  animation-name: sub-menu-fade;
  animation-duration: .4s;
  animation-fill-mode: forwards;
}

.hauptmenu > .menu-item-has-children.menu-geschlossen .sub-menu-wrap {
  display: none;
}

/* Das mobile Menü steht im Quelltext jetzt hinter dem Header (sinnvolle Tab-Reihenfolge),
   bleibt optisch aber wie bisher unter Header und Wappen */
#mobiles-menue {
  z-index: 79;
}

/* Eingeloggt mit WordPress-Adminleiste: Auf schmalen Bildschirmen wird die Leiste absolut
   positioniert und landete (weil body position: relative hat) genau über dem Header.
   Fixiert am oberen Rand bleibt der Header frei; das mobile Menü rückt entsprechend tiefer. */
@media screen and (max-width: 600px) {
  .admin-bar #wpadminbar {
    position: fixed;
  }
}

.admin-bar .overlay-menu {
  top: 96px;
  height: calc(100% - 96px);
}

@media screen and (max-width: 782px) {
  .admin-bar .overlay-menu {
    top: 110px;
    height: calc(100% - 110px);
  }
}

/* Menü-Schaltfläche ist ein echter Button, sieht aber aus wie bisher */
button.navigation {
  margin: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.navigation,
.close {
  width: 2em;
  height: 2em;
  border-radius: 2px;
  transition: transform .3s ease-out;
  cursor: pointer;
  box-sizing: content-box;
  padding: 1em;
  display: none;
  position: relative;
  z-index: 999;
}

.close {
  display: block;
  margin: auto;
}

.navigation-wrapper {
  display: block;
  position: relative;
  height: 100%;
  width: 100%
}

.nav-line {
  display: block;
  width: 100%;
  height: 3px;
  background: #fff;
  position: absolute;
  box-sizing: border-box;
  -webkit-transition: transform .2s ease-out;
  -moz-transition: transform .2s ease-out;
  -ms-transition: transform .2s ease-out;
  -o-transition: transform .2s ease-out;
  transition: transform .2s ease-out;
  transform: translateY(-50%);
  will-change: transform;
}

.nav-line:nth-child(1) {
  width: 90%;
  top: 20%;
}

.nav-line:nth-child(2) {
  width: 80%;
  top: 50%;
}

.nav-line:nth-child(3) {
  top: 80%;
}

.navigation-open {
  transform: rotate(90deg);
}

.navigation-open .nav-line {
  width: 100%;
}

.navigation-open .nav-line:nth-child(1) {
  transform: rotate(45deg);
  top: 50%;
}

.navigation-open .nav-line:nth-child(2) {
  background: none;
  transform: translate3d(20px, 0, 0);
}

.navigation-open .nav-line:nth-child(3) {
  transform: rotate(-45deg);
  top: 50%;
}

.overlay-menu {
  position: fixed;
  top: 64px;
  right: 0;
  bottom: 0;
  left: 0;
  background: #d62032;
  color: #fff;
  padding: 2em;
  padding-top: 4rem;
  overflow: auto;
  width: 100%;
  height: 100%;
  height: calc(100% - 64px);
  z-index: 80;
  display: none;
  animation-name: overlay;
  animation-duration: .3s;
  animation-fill-mode: forwards;
  -webkit-touch-callout: none;
  /* iOS Safari */
  -webkit-user-select: none;
  /* Safari */
  -khtml-user-select: none;
  /* Konqueror HTML */
  -moz-user-select: none;
  /* Old versions of Firefox */
  -ms-user-select: none;
  /* Internet Explorer/Edge */
  user-select: none;
  /* Non-prefixed version, currently
                                supported by Chrome, Opera and Firefox */
}

@keyframes overlay {
  from {
    background: rgba(214, 32, 50, 0.000001)
  }

  to {
    background: rgba(214, 32, 50, 1)
  }
}

.overlay-menu-show {
  display: block;
}

.icon-angle-down {
  display: inline-block;
  margin-left: .5rem;
  width: 10px;
  height: 10px;
  background: url('assets/images/arrow.svg');
  background-size: cover;
  transition: transform .3s ease-out, -webkit-transform .3s ease-out
}

.icon-angle-down.icon-angle-up {
  transform: rotate(-180deg);
  -webkit-transform: rotate(-180deg)
}

.hauptmenu-mobile li,
.topmenu-mobile li {
  display: block;
  list-style: none;
  text-align: left;
  width: 100%;
  padding: 1rem;
  font-weight: 500;
}

.topmenu-mobile li {
  padding: .25rem 1rem;
}

.topmenu-mobile li:last-child {
  padding-bottom: 1rem;
}

.hauptmenu-mobile>li,
.topmenu-mobile>li {
  animation-name: fadeup;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  opacity: 0.001;
  -webkit-transform: translate3d(0, 100%, 0);
  transform: translate3d(0, 100%, 0);
}

.close {
  animation-name: fadeup;
  animation-duration: 1s;
  animation-fill-mode: forwards;
  opacity: 0.001;
  -webkit-transform: translate3d(0, 100%, 0);
  transform: translate3d(0, 100%, 0);
}

.topmenu-mobile a {
  color: #fff;
}

.hauptmenu-mobile a {
  font-family: "Maven Pro", sans-serif;
  font-style: normal;
  color: #fff;
  font-size: 1.3rem;
}

.hauptmenu-mobile .sub-menu {
  display: none;
  border-left: 2px solid #fff;
  margin-top: 1rem;
}

.hauptmenu-mobile .sub-menu a {
  font-family: "Source Sans 3";
  display: block;
}

.hauptmenu-mobile .sub-menu li {
  padding: .5rem;
  padding-left: 1rem;
}

.hauptmenu-mobile .sub-menu li:first-child {
  padding-top: 0;
}

.hauptmenu-mobile .sub-menu li:last-child {
  padding-bottom: 0;
}

@keyframes fadeup {
  from {
    opacity: 0.001;
    -webkit-transform: translate3d(0, 100%, 0);
    transform: translate3d(0, 100%, 0);
  }

  to {
    opacity: 1;
    -webkit-transform: none;
    transform: none;
  }
}

.hauptmenu-mobile li:nth-child(1) {
  animation-delay: .05s
}

.hauptmenu-mobile li:nth-child(2) {
  animation-delay: .1s
}

.hauptmenu-mobile li:nth-child(2) {
  animation-delay: .2s
}

.hauptmenu-mobile li:nth-child(3) {
  animation-delay: .3s
}

.hauptmenu-mobile li:nth-child(4) {
  animation-delay: .4s
}

.hauptmenu-mobile li:nth-child(5) {
  animation-delay: .5s
}

.hauptmenu-mobile li:nth-child(6) {
  animation-delay: .6s
}

.hauptmenu-mobile li:nth-child(7) {
  animation-delay: .7s
}

.topmenu-mobile li:nth-child(1) {
  animation-delay: .8s
}

.topmenu-mobile li:nth-child(2) {
  animation-delay: .85s
}

.topmenu-mobile li:nth-child(3) {
  animation-delay: .9s
}

.topmenu-mobile li:nth-child(4) {
  animation-delay: .95s
}

.topmenu-mobile li:nth-child(5) {
  animation-delay: 1s
}


/* Mobiles Menü: touchfreundliche Zeilen – die ganze Zeile ist antippbar (mind. 48 px hoch) */
.overlay-menu {
  padding: 3.5rem 1rem calc(2rem + env(safe-area-inset-bottom));
  overscroll-behavior: contain;
  -webkit-tap-highlight-color: transparent;
}

.hauptmenu-mobile li,
.topmenu-mobile li,
.topmenu-mobile li:last-child,
.hauptmenu-mobile .sub-menu li,
.hauptmenu-mobile .sub-menu li:first-child,
.hauptmenu-mobile .sub-menu li:last-child {
  padding: 0;
}

.hauptmenu-mobile > li {
  border-bottom: 1px solid rgba(255, 255, 255, .2);
}

.hauptmenu-mobile a,
.topmenu-mobile a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 3rem;
  padding: .7rem 1rem;
  border-radius: 10px;
  transition: background-color .15s ease-out;
}

.hauptmenu-mobile a:active,
.topmenu-mobile a:active {
  background-color: rgba(255, 255, 255, .15);
}

.hauptmenu-mobile > li > a {
  min-height: 3.5rem;
}

/* Pfeil rechts, großzügig antippbar */
.hauptmenu-mobile .icon-angle-down {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin: 0 .25rem 0 0;
}

.hauptmenu-mobile .sub-menu {
  margin: 0 0 .75rem 1rem;
}

.hauptmenu-mobile .sub-menu a {
  display: flex;
  min-height: 2.75rem;
  padding: .55rem 1rem;
  font-size: 1.1rem;
}

.hauptmenu-mobile .sub-menu .menu-item-uebersicht a {
  font-weight: 700;
}

.topmenu-mobile {
  margin-top: 1rem;
}

.topmenu-mobile a {
  min-height: 2.75rem;
  padding: .5rem 1rem;
  font-size: 1.05rem;
}

/* Einblenden der Menüpunkte: zügiger, damit das Menü sofort bedienbar ist */
.hauptmenu-mobile > li,
.topmenu-mobile > li {
  animation-duration: .35s;
}

.hauptmenu-mobile li:nth-child(1) { animation-delay: 0s }
.hauptmenu-mobile li:nth-child(2) { animation-delay: .04s }
.hauptmenu-mobile li:nth-child(3) { animation-delay: .08s }
.hauptmenu-mobile li:nth-child(4) { animation-delay: .12s }
.hauptmenu-mobile li:nth-child(5) { animation-delay: .16s }
.hauptmenu-mobile li:nth-child(6) { animation-delay: .2s }
.hauptmenu-mobile li:nth-child(7) { animation-delay: .24s }
.topmenu-mobile li:nth-child(n) { animation-delay: .28s }

@media (prefers-reduced-motion: reduce) {
  .overlay-menu,
  .hauptmenu-mobile > li,
  .topmenu-mobile > li {
    animation-duration: .01s;
    animation-delay: 0s;
  }
}


.frontpage-header-area {
  display: flex;
  gap: 2rem;
  margin: 2rem;
  flex-wrap: wrap;
}

.frontpage-header-slider {
  flex: 1 1 30rem;
  overflow: hidden;
  width: 50%;
}

.slider-start {
  height: 100%;
  border-radius: 15px;
  overflow: hidden;
}

.slider-start .swiper-slide {
  height: 100%;
}

.frontpage-header-btns {
  flex: 1 1 30rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  width: 50%;
}

.frontpage-header-btns-header h1 {
  margin: 0;
}

.swiperTicker {
  overflow: hidden;
}

.ticker-wrapper {
  padding: .5rem 1rem;
  border: 2px solid #CFD8DC;
  border-radius: 15px;
  display: flex;
  gap: .5rem;
}

.ticker-wrapper strong {
  white-space: nowrap;
}

.tva-abteilung-wrapper>.slider-start {
  max-width: 100%;
  padding: 0;
  border-radius: 0 0 15px 15px;
}

.tva-abteilung-wrapper>.slider-start:first-child {
  margin-top: 0;
}

.slider-start .swiper-slide {
  width: 100%;
  position: relative;
  min-height: 35em;
  background-position: 50% 20%;
  background-size: cover;
}

.start-slider-original-img {
  max-width: 1200px;
  margin: auto;
  position: relative;
  z-index: 10;
  width: 100%;
  display: block;
}

.start-slider-original .swiper-slide {
  height: auto;
  /* Höhe richtet sich nach dem Bild, sonst bleibt darunter ein unscharfer Streifen stehen */
  min-height: 0;
  overflow: hidden;
}

/* Auf breiten Bildschirmen die Bildkanten weich in den unscharfen Hintergrund auslaufen lassen */
@media (min-width: 1201px) {
  .start-slider-original-img {
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  }
}

.start-slider-original-bg {
  position: absolute;
  /* über den Rand hinausziehen, damit der Weichzeichner an den Kanten nicht ins Helle ausläuft */
  top: -40px;
  left: -40px;
  right: -40px;
  bottom: -40px;
  background-size: cover;
  background-position: center;
  z-index: -1;
  filter: blur(20px);
}

.slider-logo {
  max-width: 60%;
  display: block;
  margin-bottom: 2rem;
}

.slider-start .swiper-slide .swiper-slide-text {
  position: absolute;
  bottom: 0;
  max-width: 1200px;
  margin: auto;
  left: 0;
  right: 0;
  padding: 8rem 2rem 2rem 2rem;
  color: #fff;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.slider-start .swiper-slide .swiper-slide-text h2 {
  color: #fff;
  margin-bottom: 0;
}

.swiper-slide-text-box {
  display: block;
  margin: 1em 0;
}

.swiper-slide-text-box .btn {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.swiper-slide-text-box .btn:hover {
  background-color: #fff;
  color: #d62032;
}

.swiper-slide-text img {
  width: 40%;
  max-width: 20rem;
}

#tribe-events h1,
#tribe-events h2 {
  text-align: left;
  color: #333;
  margin: .5em 0;
}

.tribe-events-single-event-description a,
.tribe-events-single-event-description p a {
  color: #d62032;
}

.tribe-events-widget-link a {
  display: inline-block;
  padding: .4em;
  border: 2px solid #d62032;
  border-radius: 4px;
  font-weight: 700;
  transition: all .3s ease-out;
  font-size: 1.1rem;
}

.tribe-events-widget-link a:hover {
  background: #d62032;
  color: #fff;
}

.btn-gross {
  display: block;
  background: #d62032;
  padding: 2em 1em;
  color: #fff;
  font-family: "Maven Pro", sans-serif;
  font-weight: 800;
  font-style: normal;
  margin-top: 1em;
  transition: all .3s ease-out;
}

.btn-gross:hover {
  background: #af1b31;
}

.swiper-button-prev,
.swiper-button-next {
  color: #fff !important;
}

.swiper-pagination-bullet-active {
  background: #d62032 !important;
}

.tile-btn-wrapper {
  display: grid;
  grid-gap: 2rem;
  grid-template-columns: 1fr 1fr;
}

@media screen and (max-width:500px) {
  .tile-btn-wrapper {
    grid-template-columns: 1fr;
  }
}

.tile-btn {
  background-color: #d62032;
  position: relative;
  display: block;
  color: #fff;
  padding: 1em;
  height: 12em;
  flex-grow: 1;
  flex-basis: 17em;
  transition: all .3s ease-out;
  background-size: auto 95%;
  background-repeat: no-repeat;
  background-position: right bottom;
  border-radius: 10px;
}

.tile-btn:hover {
  background-color: #af1b31;
  transform: translate3d(5px, -5px, 0);
  -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
}

.tile-btn:hover .arrow {
  width: 10em
}

.tile-btn img {
  position: absolute;
  right: 0;
  bottom: 0;
  height: 95%;
}

.tile-btn h3 {
  color: #fff;
  margin: 0;
  text-align: left;
  font-size: 1.6rem;
  line-height: 1.8rem;
}

.icon {
  position: absolute;
  bottom: 2.5em;
  left: 1em;
  width: 80px;
  height: 20px;
  cursor: pointer;
}

.arrow {
  position: absolute;
  top: 25px;
  width: 5em;
  height: 5px;
  background-color: #fff;
  transition: all .3s ease-out;
}

.arrow::after,
.arrow::before {
  content: '';
  position: absolute;
  width: 20px;
  height: 5px;
  right: -8px;
  background-color: #fff;
}

.arrow::after {
  top: -5px;
  transform: rotate(45deg);
}

.arrow::before {
  top: 6px;
  transform: rotate(-45deg);
}

.highlight {
  font-weight: 700;
  color: #d62032;
}

.tva-abteilung-wrapper>* {
  max-width: 1200px;
  margin: 4rem auto;
  padding: 0 2rem;
}

.flex-box {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.flex-box-element {
  flex: 1 1 30em;
}

.flex-box-element>*:first-child {
  margin-top: 0;
}

.footer-wrapper {
  margin: -1rem;
  display: flex;
  color: #333;
  justify-content: space-between;
  flex-wrap: wrap;
  font-size: 1.1rem;
}

.footer-wrapper .textwidget p:last-child {
  margin-bottom: 0;
}

.tva-footer a {
  color: #333;
  font-weight: 500;
}

.tva-footer .content-wrapper {
  padding: 2rem;
}

.footer-top {
  background: #ECEFF1;
}

.footer-bottom {
  background: #F5F5F5;
}

.footer-bottom .content-wrapper {
  padding: 1rem 2rem;
}

.footer-top-box {
  margin: 2em 1em;
}

.footer-top-box>*:first-child {
  margin-top: 0;
}

.tva-footer img {
  height: 4em;
}

.footer-bottom-box {
  margin: 1em 1em;
}

.abteilung-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(250px, 100%), 1fr));
  grid-gap: 1rem;
}

.abteilung-item {
  transition: all .2s ease-out;
  display: block;
  border: 2px solid #CFD8DC;
  border-radius: 10px;
  overflow: hidden;
  transition: all .3s ease-out;
}

.abteilung-item .wp-post-image {
  height: 12rem;
  margin: auto;
  object-fit: cover;
}


.abteilung-item h4 {
  margin-bottom: 0;
}

.abteilung-item img {
  width: 100%;
}

.abteilung-item:hover {
  transform: translate3d(5px, -5px, 0);
  -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
}

.abteilung-item-content {
  padding: 1em;
}

.abteilung-header {
  height: 35em;
  background-size: cover;
  background-position: center;
  position: relative;
}


.abteilung-header-content {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  max-width: 1200px;
  margin: 0 auto;
  padding: 2em;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.abteilung-logo {
  max-width: 7em;
  position: relative;
  z-index: 50;
}

.abteilung-header-content-image-wrapper {
  align-self: flex-end;
}

.abteilung-header-content p,
.abteilung-header-content h1,
.abteilung-header-content h2 {
  color: #fff;
  text-align: left;
  display: inline;
  background: #d62032;
  padding: .25em;
}

.abteilung-header-content-box {
  margin-top: 1em;
  position: relative;
  z-index: 50;
}

.content-wrapper.single-post>*,
.content-wrapper.single-post .single-post-info {
  max-width: 800px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.single-post-info {
  margin: 2rem auto;
}

.single-post-info h1 {
  margin: 0;
}

.single-post-info-date {
  margin-top: .5rem;
}

.single-post-header-image {
  margin: auto;
  display: block;
}

.abteilung-event {
  display: flex;
  margin: .5em 0;
  transition: all .3s ease-out;
  overflow: hidden;
  background-color: #fff;
  border-radius: 10px;
}

.abteilung-event:hover {
  transform: translate3d(5px, -5px, 0);
  -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
  -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.25);
}

.tribe-events * {
  font-family: "Source Sans 3";
}

.abteilung-event-date {
  padding: .5em 1em;
  color: #fff;
  background: #d62032;
  align-self: stretch;
  text-align: center;
  display: flex;
  flex-shrink: 0;
  justify-content: center;
  flex-direction: column;
  border-top-left-radius: 10px;
  border-bottom-left-radius: 10px;
}

.abteilung-event-date-day {
  font-weight: 700;
  font-size: 1.5rem;
}

.abteilung-event-content {
  padding: 1em;
  flex-grow: 1;
  border: 2px solid #CFD8DC;
  border-left: 0;
  border-top-right-radius: 10px;
  border-bottom-right-radius: 10px;
}

.abteilung-event-content .highlight {
  color: #333;
}

.abteilung-event-content p {
  margin: 0;
}

.tribe-event-duration {
  text-align: center;
  font-weight: 700;
}


.angebot {
  display: block;
  margin-top: .5em;
  position: relative;
  overflow: hidden;
  border: 2px solid #CFD8DC;
  border-radius: 10px;
}

.angebot-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  padding: 1rem;
  transition: background .3s ease-out;
}

.angebot-active .angebot-header,
.angebot-header:hover {
  background: #CFD8DC;
}

.angebot-header h4 {
  margin: 0;
}

.arrow-box {
  width: 2rem;
  height: 2rem;
  position: relative;
  transition: transform .3s ease-out;
}

.arrow-box .line {
  width: 1.2rem;
  height: .25rem;
  background: #333;
  display: block;
  position: absolute;
  top: 25%;
}

.arrow-box .line:first-child {
  transform: rotate(-45deg);
  transform-origin: center right;
  right: 3.75px;
}

.arrow-box .line:last-child {
  transform: rotate(45deg);
  transform-origin: center left;
  left: 3.75px;
}

.angebot-active .arrow-box {
  transform: rotate(180deg);
}

.angebot p {
  margin: 0;
  margin-bottom: .5em;
}

.angebot p:last-child {
  margin-bottom: 0;
}

p.angebot-content-head {
  margin-bottom: 0;
  font-weight: 700;
}

.angebot h4 {
  color: #333;
  margin-top: 0;
  margin-bottom: 0;
}

p.angebot-typ {
  margin: 0;
  color: #d62032;
}

.angebot-content {
  display: none;
}

.angebot-content>div {
  margin: 1rem;
}

.archive-element {
  display: flex;
  margin-bottom: 1em;
  background: #ECEFF1;
  flex-wrap: wrap;
  flex-direction: row;
}

.archive-image {
  flex-grow: 1;
  flex-basis: 12em;
  align-self: stretch;
  background-color: #BDBDBD;
  background-size: cover;
  background-position: center;
  min-height: 10em;
}

.archive-content {
  padding: 2em;
  flex-basis: 20em;
  flex-grow: 2;
}

.archive-content p {
  color: #333;
}

/* Auswahlfelder mit Mehrfachauswahl in Formularen (Select2 aus dem CF7-Zusatz) im Stil der übrigen Felder */
body .wpcf7 .select2-container {
  display: block;
  width: 100% !important;
  margin-top: .35rem;
  font-size: 1.1rem;
}

body .wpcf7 .select2-container .select2-selection--multiple,
body .wpcf7 .select2-container .select2-selection--single {
  display: flex;
  align-items: center;
  min-height: 2.6rem;
  height: auto;
  padding: .25rem .5rem;
  border: 2px solid transparent;
  border-radius: 6px;
  background-color: #ECEFF1;
  cursor: text;
}

body .wpcf7 .select2-container--focus .select2-selection--multiple,
body .wpcf7 .select2-container--open .select2-selection--multiple,
body .wpcf7 .select2-container--open .select2-selection--single {
  border-color: #d62032;
  outline: 0;
}

body .wpcf7 .select2-container .select2-selection__rendered {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .3rem;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

body .wpcf7 .select2-container .select2-selection__rendered li {
  margin: 0;
  padding: 0;
  list-style: none;
}

body .wpcf7 .select2-container .select2-rendered li.select2-search--inline,
body .wpcf7 .select2-container .select2-search--inline {
  flex: 1 1 4rem;
  min-width: 4rem;
  float: none;
}

body .wpcf7 .select2-container .select2-search--inline .select2-search__field {
  width: 100% !important;
  min-height: 1.9rem;
  margin: 0;
  padding: 0 .25rem;
  border: 0;
  background: transparent;
  font: inherit;
}

/* Aufgeklappt behalten Feld und Liste rundum ihre Ecken und Rahmen (Select2 kappt sie sonst an der Nahtstelle) */
body .wpcf7 .select2-container.select2-container--open .select2-selection--multiple,
body .wpcf7 .select2-container.select2-container--open .select2-selection--single,
body .wpcf7 .select2-container.select2-container--open.select2-container--below .select2-selection--multiple,
body .wpcf7 .select2-container.select2-container--open.select2-container--below .select2-selection--single,
body .wpcf7 .select2-container.select2-container--open.select2-container--above .select2-selection--multiple,
body .wpcf7 .select2-container.select2-container--open.select2-container--above .select2-selection--single {
  border: 2px solid #d62032;
  border-radius: 6px;
}

body .select2-container--default.select2-container--open .select2-dropdown.select2-dropdown--below,
body .select2-container--default.select2-container--open .select2-dropdown.select2-dropdown--above {
  border: 2px solid #CFD8DC;
  border-radius: 10px;
}

body .select2-container--default.select2-container--open .select2-dropdown.select2-dropdown--above {
  margin-top: -4px;
}

body.admin-bar .select2-container--default.select2-container--open .select2-dropdown.select2-dropdown--above {
  margin-top: calc(-4px - 32px);
}

/* gewählte Einträge als kleine Marken */
body .wpcf7 .select2-container .select2-selection__rendered li.select2-selection__choice {
  display: inline-flex;
  flex-direction: row-reverse;
  align-items: center;
  gap: .35rem;
  float: none;
  margin: 0;
  padding: .2rem .35rem .2rem .7rem;
  border: 0;
  border-radius: 999px;
  background: #d62032;
  color: #fff;
  font-size: .95rem;
  font-weight: 600;
  line-height: 1.3;
}

body .wpcf7 .select2-container .select2-selection__choice__remove {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.3rem;
  height: 1.3rem;
  margin: 0;
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  opacity: .8;
}

body .wpcf7 .select2-container .select2-selection__choice__remove:hover {
  background: rgba(255, 255, 255, .25);
  color: #fff;
  opacity: 1;
}

/* „Alle entfernen“ ausblenden – jede Marke hat ihr eigenes × */
body .wpcf7 .select2-container .select2-selection__clear {
  display: none;
}

/* aufgeklappte Liste (hängt am body, deshalb ohne .wpcf7) */
/* Eingeloggt verschiebt die Adminleiste die Seite um ihre Höhe; Select2 rechnet das doppelt ein */
body.admin-bar .select2-container--default.select2-container--open .select2-dropdown {
  margin-top: calc(4px - 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .select2-container--default.select2-container--open .select2-dropdown {
    margin-top: calc(4px - 46px);
  }
}

body .select2-container--default.select2-container--open .select2-dropdown {
  margin-top: 4px;
  border: 2px solid #CFD8DC;
  border-radius: 10px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .12);
  overflow: hidden;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.05rem;
}

body .select2-container--default .select2-results > .select2-results__options {
  max-height: 18rem;
  padding: .3rem;
}

body .select2-container--default .select2-results__option {
  margin: 0;
  padding: .55rem .75rem;
  border-radius: 6px;
  color: #333;
  line-height: 1.3;
}

body .select2-container--default .select2-results__option--highlighted[aria-selected],
body .select2-container--default .select2-results__option--highlighted.select2-results__option--selectable {
  background-color: #ECEFF1;
  color: #333;
}

body .select2-container--default .select2-results__option[aria-selected=true],
body .select2-container--default .select2-results__option--selected {
  background-color: transparent;
  color: #d62032;
  font-weight: 700;
}

body .select2-container--default .select2-results__option[aria-selected=true]::after,
body .select2-container--default .select2-results__option--selected::after {
  content: "✓";
  float: right;
}

body .select2-container--default .select2-search--dropdown .select2-search__field {
  padding: .45rem .6rem;
  border: 2px solid #CFD8DC;
  border-radius: 6px;
  font: inherit;
}

/* Tabellen in Inhalten (Block „Tabelle“ und klassische Tabellen) */
.wp-block-table {
  margin: 1rem 0 2rem;
  overflow-x: auto;
}

figure.wp-block-table table,
.content-wrapper table,
.tva-abteilung-wrapper table,
.tribe-events-content table {
  width: 100%;
  margin: 0;
  border: 2px solid #CFD8DC;
  border-radius: 15px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  text-align: left;
  font-variant-numeric: tabular-nums;
}

.content-wrapper > table,
.tva-abteilung-wrapper > table,
.tribe-events-content > table {
  margin: 1rem 0 2rem;
}

.wp-block-table table td,
.wp-block-table table th,
.content-wrapper td,
.content-wrapper th,
.tva-abteilung-wrapper td,
.tva-abteilung-wrapper th,
.tribe-events-content td,
.tribe-events-content th {
  padding: .7rem 1rem;
  border: 0;
  border-top: 1px solid #ECEFF1;
  text-align: left;
  vertical-align: top;
  line-height: 1.4;
}

.wp-block-table table tr:first-child > td,
.wp-block-table table tr:first-child > th,
.content-wrapper tr:first-child > td,
.content-wrapper tr:first-child > th,
.tva-abteilung-wrapper tr:first-child > td,
.tva-abteilung-wrapper tr:first-child > th,
.tribe-events-content tr:first-child > td,
.tribe-events-content tr:first-child > th {
  border-top: 0;
}

/* Kopfzeile */
.wp-block-table table thead,
.content-wrapper thead,
.tva-abteilung-wrapper thead,
.tribe-events-content thead {
  border: 0;
}

.wp-block-table table thead th,
.content-wrapper thead th,
.tva-abteilung-wrapper thead th,
.tribe-events-content thead th {
  background-color: #ECEFF1;
  color: #37474F;
  font-family: "Maven Pro", sans-serif;
  font-weight: 700;
  vertical-align: bottom;
}

.wp-block-table table tbody tr:first-child > td,
.wp-block-table table tbody tr:first-child > th,
.content-wrapper thead + tbody tr:first-child > td,
.tva-abteilung-wrapper thead + tbody tr:first-child > td,
.tribe-events-content thead + tbody tr:first-child > td {
  border-top: 2px solid #CFD8DC;
}

.wp-block-table table > tbody:first-child tr:first-child > td,
.wp-block-table table > tbody:first-child tr:first-child > th {
  border-top: 0;
}

/* Zeilenköpfe in der ersten Spalte */
.wp-block-table table tbody th,
.content-wrapper tbody th,
.tva-abteilung-wrapper tbody th,
.tribe-events-content tbody th {
  background-color: transparent;
  color: #37474F;
  font-weight: 700;
}

/* dezente Streifen und Hervorhebung beim Überfahren */
.wp-block-table table tbody tr:nth-child(even),
.content-wrapper tbody tr:nth-child(even),
.tva-abteilung-wrapper tbody tr:nth-child(even),
.tribe-events-content tbody tr:nth-child(even) {
  background-color: #F7F9FA;
}

.wp-block-table table tbody tr:hover,
.content-wrapper tbody tr:hover,
.tva-abteilung-wrapper tbody tr:hover,
.tribe-events-content tbody tr:hover {
  background-color: #ECEFF1;
}

.wp-block-table figcaption {
  margin-top: .5rem;
  font-size: .9rem;
  color: #78909C;
  text-align: left;
}

@media (max-width: 700px) {
  .wp-block-table table td,
  .wp-block-table table th,
  .content-wrapper td,
  .content-wrapper th,
  .tva-abteilung-wrapper td,
  .tva-abteilung-wrapper th {
    padding: .55rem .7rem;
    font-size: .95rem;
  }
}

label {
  display: block;
  padding: .75rem;
  border: 2px solid #ECEFF1;
  border-radius: 10px;
  margin-bottom: 1rem;
}

input[type=text],
input[type=email],
input[type=tel],
input[type=date],
input[type=number],
select,
textarea {
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.2rem;
  padding: .25rem;
  color: #333;
  margin-top: .25rem;
  width: 100%;
  max-width: 100%;
  background: #ECEFF1;
  border-radius: 5px;
}

.wpcf7-list-item label {
  border: 0;
}

.wpcf7-submit,
.btn,
input[type=submit] {
  display: inline-block;
  padding: .5rem;
  border: 2px solid #d62032;
  border-radius: 10px;
  margin-bottom: 1rem;
  font-family: "Source Sans 3", sans-serif;
  font-size: 1.2rem;
  background: inherit;
  color: #d62032;
  transition: all .3s ease-out;
}

.wpcf7-submit:hover,
.btn:hover {
  background: #d62032;
  color: #fff;
}

/* Buttons im Inhalt: etwas mehr Luft und Abstand zueinander */
.btn {
  padding: .5rem 1rem;
  margin-right: .5rem;
  margin-bottom: .75rem;
  font-weight: 600;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

/* Absatz mit der Klasse „btn“ und Link darin: die ganze Fläche ist klickbar */
p.btn {
  padding: 0;
}

p.btn > a {
  display: block;
  padding: .5rem 1rem;
  color: inherit;
  text-decoration: none;
}

p.btn br {
  display: none;
}

/* Mehrere Links in einem Button-Absatz: Jeder Link wird ein eigener Button,
   Trennzeichen dazwischen („|“, „<“, „>“) entfallen. */
p.btn:has(> a ~ a) {
  display: contents;
  font-size: 0;
}

p.btn:has(> a ~ a) > a,
p.btn:has(> a ~ a):hover > a {
  display: inline-block;
  padding: .5rem 1rem;
  border: 2px solid #d62032;
  border-radius: 10px;
  margin: 0 .5rem .75rem 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.25;
  background: transparent;
  color: #d62032;
  transition: all .3s ease-out;
}

p.btn:has(> a ~ a) > a:hover {
  background: #d62032;
  color: #fff;
}

.btn:hover,
p.btn:hover > a {
  color: #fff;
}

.wpcf7-submit:hover a,
.btn:hover a {
  color: #fff;
}

.btn.disable {
  cursor: not-allowed;
  border-color: grey;
  color: grey;
}

.btn.disable:hover {
  background-color: grey;
  color: #fff;
}

.wpcf7-form .form-flex {
  display: flex;
  flex-wrap: wrap;
  margin: .5rem -.5rem;
  margin-bottom: 0;
}

.wpcf7-form .form-flex>* {
  flex: 1 1 15rem;
  margin: .5rem;
}

.wpcf7-form .noedit {
  pointer-events: none;
  cursor: not-allowed;
}

.datepicker td,
.datepicker th {
  text-align: center;
}

video {
  display: block;
  max-width: 100%;
}

.video-container-wrapper {
  max-width: 100%;
  left: 0;
  right: 0;
  margin: auto;
}

.video-container {
  position: relative;
  padding-bottom: 56.25%;
  padding-top: 0;
  height: 0;
  overflow: hidden;
}

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

.text-icon {
  display: block;
  height: 1em;
  width: 1em;
  margin-right: .25em;
}

.kontakt-p {
  display: flex;
  flex-direction: row;
  align-items: center;
  margin: 0 !important;
}

.corona-flex {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.corona-flex-ele {
  flex: 1 1 15rem;
  padding: 1rem;
  border: 2px solid #CFD8DC;
  border-radius: 10px;
}

.corona-flex-ele p {
  margin-bottom: .5rem;
}

.corona-flex-ele h4 {
  border-bottom: 2px solid #CFD8DC;
  padding-bottom: 1rem;
}

.tva-laufzaehler-zahl-wrapper p {
  margin: 0;
}

.wpcf7 form .wpcf7-response-output {
  padding: 1.5rem;
  border-radius: 4px;
}

.vly {
  overflow: auto;
}

.vly table {
  width: 100%;
  min-width: 730px;
}

.vly thead {
  text-align: left;
}

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

.archive-nav-line {
  margin: 3rem auto 1rem auto;
  max-width: 20rem;
  height: 2px;
  background: #CFD8DC;
}

.wp-block-file {
  border-radius: 10px;
  border: 2px solid #ECEFF1;
  display: inline-flex;
  overflow: hidden;
}

.wp-block-file a {
  padding: .5rem;
  display: block;
  margin-bottom: 0;
}

.wp-block-file a.wp-block-file__button {
  background: #d62032;
  border-radius: 0;
  font-size: 1.1rem;
}


.tribe-common .tribe-common-c-btn:focus,
.tribe-common .tribe-common-c-btn:hover,
.tribe-common a.tribe-common-c-btn:focus,
.tribe-common a.tribe-common-c-btn:hover {
  background-color: #af1b31;
}

.tribe-common .tribe-common-c-btn,
.tribe-common a.tribe-common-c-btn {
  background-color: #d62032;
}

.tribe-events .tribe-events-c-ical__link {
  border: 1px solid #d62032;
  color: #d62032;
}

.tribe-events .tribe-events-c-ical__link:active,
.tribe-events .tribe-events-c-ical__link:focus,
.tribe-events .tribe-events-c-ical__link:hover {
  background-color: #d62032;
  color: #fff;
}

.tribe-common .tribe-common-c-svgicon {
  stroke: #d62032;
  color: #d62032
}

.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date,
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-link {
  color: #d62032
}

#tribe-events,
#tribe-events-pg-template,
.tribe-events-pg-template {
  padding: 6rem 2rem;
}


.single-tribe_events a.tribe-events-gcal,
.single-tribe_events a.tribe-events-gcal:hover,
.single-tribe_events a.tribe-events-ical,
.single-tribe_events a.tribe-events-ical:hover {
  color: #d62032;
}

@media (min-width:782px) {
  .tva-content .wp-block-column:not(:first-child) {
    margin-left: 5em;
  }
}

@media (min-width:600px) and (max-width:781px) {
  .tva-content .wp-block-column:nth-child(2n) {
    margin-left: 1rem;
  }

  .wp-block-column:not(:only-child) {
    flex-basis: 100% !important;
    flex-grow: 0
  }
}

@media (max-width : 799px) {

  h1 {
    font-size: 2rem;
  }

  .swiper-slide-text-box p {
    font-size: 1em;
  }

  .swiper-slide-text-box {
    margin: .5em 0;
  }

  .swiper-slide-text-box h2 {
    font-size: 1.5rem;
  }

  .swiper-slide-text-box .btn {
    font-size: 1rem;
  }

  .slider-start .swiper-slide {
    height: 25em;
    min-height: auto;
  }

  .start-slider-original .swiper-slide {
    height: auto;
  }

  .abteilung-header {
    height: 20em;
  }

  .tile-btn {
    height: 13em;
  }

  .abteilung-header-content-box-wrapper p {
    font-size: 1em;
  }

  .abteilung-header-content-box-wrapper h1,
  .abteilung-header-content-box-wrapper h2 {
    font-size: 1.5em;
  }

  .footer-wrapper {
    justify-content: flex-start;
  }

  .wp-block-columns {
    margin: -1rem;
  }

  .wp-block-column {
    margin: 1rem;
  }

  .header-logo {
    max-width: 4rem;
  }

  .swiper-fly-btn {
    width: 3rem;
    height: 3rem;
  }


}


.swiper-btns {
  display: inline-flex;
  margin-top: 2rem;
}

.swiper-btns svg {
  width: 2rem;
  cursor: pointer;
  transition: all .3s ease-out;
}

.swiper-btns .swiper-button-disabled svg {
  opacity: 0.4;
}

.tva-btn-next {
  margin-right: .5rem;
}

.popup {
  position: fixed;
  z-index: 9999;
  padding: 2rem;
  background: #d62032;
  color: #fff;
  top: 50%;
  left: 50%;
  transform: translate3d(-50%, -50%, 0);
  -webkit-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.75);
  -moz-box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.75);
  box-shadow: 0px 0px 15px 0px rgba(0, 0, 0, 0.75);
  border-radius: 10px;
  width: 90%;
  max-width: 40rem;
  animation: zooinger .3s ease-out;
}

@keyframes zooinger {
  from {
    opacity: 0;
    transform: translate3d(-50%, 0, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(-50%, -50%, 0);
  }
}

.popup * {
  color: #fff;
}

.popup-close {
  text-decoration: underline;
  cursor: pointer;
}

@media (max-width : 550px) {
  .news-item {
    max-width: inherit !important;
  }
}

@media (min-width: 990px) and (max-width: 1106px) {
  .hauptmenu>li>a {
    padding: 1.5rem .5rem;
    font-size: 1.1rem;
  }
}

@media (max-width : 990px) {

  .header-nav {
    display: none;
  }

  .navigation {
    display: block;
  }

  .header-logo {
    max-width: 4em;
  }

  .header-top {
    display: none;
  }

  .icon-angle-down {
    height: 15px;
    width: 15px;
  }

}

.newsletter-box input[type="text"],
.newsletter-box input[type="email"],
.newsletter-box input[type="tel"],
.newsletter-box input[type="date"],
.newsletter-box textarea {
  padding: .5em;
  font-size: 1.1rem;
  background: #f5f5f5;
  width: 100%;
}

.swiper-slide {
  transition-property: all;
}


#searchform>div {
  display: flex;
}

#searchform input[type=text] {
  display: block;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
  margin-top: 0;
}

#searchform input[type=submit] {
  display: block;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
  margin-bottom: 0;
}

.sucheintrag {
  display: block;
  margin: auto;
  border: 2px solid #CFD8DC;
  border-radius: 10px;
  overflow: hidden;
  transition: all .3s ease-out;
  margin-bottom: 1rem;
  padding: 1rem;
}

.sucheintrag h2 {
  margin: 0 0 .5rem 0;
}

.sucheintrag .btn {
  margin-top: .5rem;
}


.frontpage-footer {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
}

.frontpage-footer__left {
  background-color: #d62032;
  color: #fff;
  padding: 2rem;
}

.frontpage-footer__left>* {
  max-width: 568px;
  margin-left: auto;
}

.frontpage-footer__right {
  background-color: #F5F5F5;
  padding: 2rem;
}


.frontpage-footer__left h3 {
  color: #fff;
}

.frontpage-footer__left a {
  color: #fff;
}


.ticker {
  width: 100%;
  height: 20px;
  overflow: hidden;
  position: relative;
}

.ticker-item {
  display: inline-block;
  height: 20px;
  line-height: 20px;
  white-space: nowrap;
  position: absolute;
}

li.kurs-list-ele {
  margin-left: 0 !important;
}

/* Tribe Events Calendar List - Event Categories */
.tribe-events-calendar-list__event-categories {
  margin: 0.5rem 0;
  padding: 0.25rem 0;
  font-size: 0.9em;
  border-top: 1px solid #ECEFF1;
  padding-top: 0.5rem;
}

.tribe-events-calendar-list__event-categories-label {
  font-weight: 600;
  color: #37474F;
  margin-right: 0.25rem;
}

.tribe-events-calendar-list__event-categories-list {
  color: #d62032;
  font-weight: 500;
}

/* Responsive Anpassungen für Event-Kategorien */
@media (max-width: 768px) {
  .tribe-events-calendar-list__event-categories {
    font-size: 0.85em;
    margin: 0.25rem 0;
  }

  .tribe-events-calendar-list__event-categories-label {
    display: block;
    margin-bottom: 0.1rem;
  }
}


.tribe-event-category-badge {
  background-color: #d62032;
  color: #fff;
  padding: 2px 5px!important;
  border-radius: 4px;
  font-size: 0.8em;
  margin-right: 0.3em;
  text-transform: capitalize;
  display: inline-block;
}

/* Startseite: ruhigere Abstände, Band hinter den Terminen, „Unser Verein“ zweispaltig */
/* gleicher Takt für alle Abschnitte: 4rem Luft oben und unten, 1.5rem zwischen Überschrift und Inhalt */
.tva-front-page .content-wrapper {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* direkt unter dem Kopfbereich, der schon eigenen Abstand mitbringt */
.tva-front-page > .content-wrapper.tva-slider {
  padding-top: 2.5rem;
}

.tva-front-page .tva-slider-kopf,
.tva-start-verein > h2 {
  margin-bottom: 1.5rem;
}

/* „Unser Verein“ und der Bewegungspark gehören zusammen */
.tva-front-page .content-wrapper.tva-start-verein {
  padding-bottom: 2.5rem;
}

.tva-front-page .content-wrapper.tva-start-park {
  padding-top: 0;
}

.tva-start-band {
  background: #F5F7F8;
}

.tva-start-verein-spalten {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
  gap: 2rem 3rem;
  align-items: center;
}

.tva-start-verein video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  background: #263238;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  object-fit: cover;
}

.tva-start-verein img {
  display: block;
  width: 100%;
  height: auto;
}

/* Bewegungspark mit Förder-Hinweistafel */
.tva-park {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  border: 2px solid #CFD8DC;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}

.tva-park-bild img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 16rem;
  object-fit: cover;
}

.tva-park-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
  padding: 2rem 2.25rem;
}

.tva-park-text h2,
.tva-park-text p {
  margin: 0;
}

.tva-park-text h2 {
  font-size: 1.6rem;
}

.tva-park-text .btn {
  margin: 0;
}

a.tva-foerderung {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: .5rem;
  padding-top: 1.25rem;
  border-top: 2px solid #ECEFF1;
  color: #333;
  text-decoration: none;
}

.tva-foerderung img {
  flex-shrink: 0;
  width: 8.5rem;
  height: auto;
  border-radius: 6px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .15);
  transition: transform .2s ease-out;
}

a.tva-foerderung:hover img,
a.tva-foerderung:focus-visible img {
  transform: scale(1.04);
}

.tva-foerderung-text {
  display: flex;
  flex-direction: column;
  gap: .15rem;
  font-size: .9rem;
  line-height: 1.35;
  color: #546E7A;
}

.tva-foerderung-text strong {
  color: #263238;
}

.tva-foerderung-link {
  font-weight: 600;
  color: #d62032;
}

@media (max-width: 800px) {
  .tva-park {
    grid-template-columns: minmax(0, 1fr);
  }

  .tva-park-text {
    padding: 1.5rem;
  }
}

@media (max-width: 420px) {
  a.tva-foerderung {
    flex-direction: column;
    align-items: flex-start;
  }
}

.frontpage-footer__left,
.frontpage-footer__right {
  padding: 2.5rem 2rem;
}

.frontpage-footer__right > * {
  max-width: 568px;
}

.frontpage-footer p {
  margin-top: 0;
  margin-bottom: .75rem;
}

.frontpage-footer p:last-child {
  margin-bottom: 0;
}

.tva-oeffnungszeiten {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: .25rem 1.5rem;
  margin: 0 0 .75rem;
}

.tva-oeffnungszeiten dt {
  font-weight: 600;
}

.tva-oeffnungszeiten dd {
  margin: 0;
}

@media (max-width: 800px) {
  .tva-start-verein-spalten {
    grid-template-columns: minmax(0, 1fr);
  }

  .tva-start-verein img {
    max-width: 28rem;
    margin: 0 auto;
  }

  .tva-front-page .content-wrapper {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* Kontakt und Geschäftsstelle: Text an der Inhaltsspalte der Seite ausrichten.
   Die Trennlinie liegt in der Seitenmitte, die Inhaltsspalte ist 1200px breit mit 2rem Innenabstand:
   links also höchstens 600px - 2rem (Abstand zur Mitte) - 2rem (Rand der Spalte) breit, rechtsbündig. */
.frontpage-footer__left {
  padding-left: 2rem;
  padding-right: 2rem;
}

.frontpage-footer__left > * {
  max-width: calc(600px - 4rem);
  margin-left: auto;
}

.frontpage-footer__right {
  padding-left: 2.5rem;
}

.frontpage-footer__right > * {
  max-width: calc(600px - 4.5rem);
  margin-left: 0;
}

/* Startseite: Übersicht aller Sportarten als Kacheln mit Symbol */
.tva-sportarten-kopf {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-bottom: 1.5rem;
}

.tva-sportarten-kopf h2,
.tva-sportarten-kopf .btn {
  margin: 0;
}

.content-wrapper ul.tva-sportarten-liste {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.content-wrapper ul.tva-sportarten-liste > li {
  margin: 0;
  padding: 0;
  list-style: none;
}

a.tva-sportart {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: .75rem;
  height: 100%;
  padding: 1.25rem .75rem 1rem;
  border: 2px solid #ECEFF1;
  border-radius: 15px;
  background: #fff;
  color: #37474F;
  text-align: center;
  text-decoration: none;
  transition: border-color .2s ease-out, transform .2s ease-out, box-shadow .2s ease-out;
}

a.tva-sportart:hover,
a.tva-sportart:focus-visible {
  border-color: #d62032;
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .1);
}

.tva-sportart-symbol {
  display: block;
  width: 3.25rem;
  height: 3.25rem;
  color: #d62032;
}

.tva-sportart-symbol svg {
  display: block;
  width: 100%;
  height: 100%;
}

.tva-sportart-name {
  font-family: "Maven Pro", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  /* lange Namen trennen, aber mit mindestens fünf Buchstaben vor und nach dem Trennstrich
     (Herzsport-gruppe statt Herzsportgrup-pe) */
  max-width: 100%;
  hyphens: auto;
  hyphenate-limit-chars: 10 5 5;
  -webkit-hyphenate-limit-before: 5;
  -webkit-hyphenate-limit-after: 5;
  overflow-wrap: break-word;
}

@media (max-width: 500px) {
  .content-wrapper ul.tva-sportarten-liste {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .6rem;
  }

  a.tva-sportart {
    padding: 1rem .4rem .8rem;
  }

  .tva-sportart-symbol {
    width: 2.5rem;
    height: 2.5rem;
  }

  .tva-sportart-name {
    font-size: .85rem;
  }
}

/* ---------------------------------------------------------------------------------------------
 * Fließtext: einheitliche Abstände und Zeilenhöhe für Texte aus dem Editor – egal ob sie direkt
 * auf der Seite, in Spalten oder in Gruppen stehen. Die Regeln haben bewusst kein Gewicht
 * (:where), damit Karten, Slider und andere Bausteine ihre eigenen Abstände behalten.
 * ------------------------------------------------------------------------------------------- */

:where(.content-wrapper, .tva-abteilung-wrapper, .wp-block-column, .wp-block-group, .wp-block-group__inner-container, .wp-block-media-text__content, .wp-block-quote, .wp-block-details, .is-root-container) > :where(p, ul, ol, dl, blockquote, pre, figure, .wp-block-image, .wp-block-buttons, .wp-block-file, .wp-block-embed) {
  margin-bottom: 1.1em;
}

:where(.content-wrapper, .tva-abteilung-wrapper, .wp-block-column, .wp-block-group, .wp-block-group__inner-container, .wp-block-media-text__content, .wp-block-quote, .wp-block-details, .is-root-container) > :where(p, ul, ol, dl, blockquote) {
  line-height: 1.6;
}

:where(.content-wrapper, .tva-abteilung-wrapper, .wp-block-column, .wp-block-group, .wp-block-group__inner-container, .wp-block-media-text__content, .wp-block-quote, .wp-block-details, .is-root-container) > :where(h1, h2, h3, h4, h5, h6) {
  line-height: 1.25;
}

:where(.content-wrapper, .tva-abteilung-wrapper, .wp-block-column, .wp-block-group, .wp-block-group__inner-container, .wp-block-media-text__content, .wp-block-details, .is-root-container) > :where(ul, ol) > li + li {
  margin-top: .3em;
}

/* Überschrift direkt nach Text: etwas mehr Luft nach oben als nach unten */
:where(.content-wrapper, .wp-block-column, .wp-block-group, .wp-block-group__inner-container) > :is(h2, h3, h4, h5, h6) {
  margin-bottom: .6em;
}

:where(.wp-block-column, .wp-block-group, .wp-block-group__inner-container, .wp-block-media-text__content, .wp-block-quote, .wp-block-details) > :where(:last-child) {
  margin-bottom: 0;
}

/* leere Absätze, die nur als Abstandshalter gedacht waren */
:where(.content-wrapper, .tva-abteilung-wrapper, .wp-block-column, .wp-block-group) > p:empty {
  display: none;
}

/* Abteilungs- und Teamseiten: Jeder Baustein ist ein eigener Abschnitt mit großem Abstand.
   Überschriften, Absätze und Listen, die direkt aufeinander folgen, gehören aber zusammen. */
.tva-abteilung-wrapper > :is(p, ul, ol, h1, h2, h3, h4, h5, h6) {
  margin-bottom: 1.1em;
}

.tva-abteilung-wrapper > :is(h1, h2, h3, h4, h5, h6) {
  margin-bottom: .6em;
}

.tva-abteilung-wrapper > :is(p, ul, ol, h1, h2, h3, h4, h5, h6) + :is(p, ul, ol) {
  margin-top: 0;
}

.tva-abteilung-wrapper > :is(p, ul, ol) + :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 1.8em;
}

.tva-abteilung-wrapper > :is(h1, h2, h3, h4, h5, h6) + :is(h1, h2, h3, h4, h5, h6) {
  margin-top: 0;
}

.tva-abteilung-wrapper > :is(p, ul, ol):last-child {
  margin-bottom: 4rem;
}

/* Tabellen, die in Spalten oder Gruppen zwischen Text stehen */
.wp-block-column > table:not(:last-child),
.wp-block-group > table:not(:last-child),
.wp-block-column > figure.wp-block-table:not(:last-child),
.wp-block-group > figure.wp-block-table:not(:last-child) {
  margin-bottom: 1.1em;
}

/* Seitentitel im Kopfbild ist die Hauptüberschrift (h1), sieht aber aus wie bisher */
.abteilung-header-content h1 {
  margin: 0;
  font-size: 2rem;
}

/* nur für Screenreader und Suchmaschinen */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 799px) {
  .abteilung-header-content h1 {
    font-size: 1.5em;
  }
}

/* Buttons nebeneinander und untereinander: gleiche Abstände, unabhängig von der Zeilenhöhe */
p.btn,
p.btn:has(> a ~ a) > a {
  vertical-align: top;
}

/* der letzte Link im Absatz behält seinen Abstand nach unten (sonst klebt der nächste Button daran) */
p.btn.btn:has(> a ~ a) > a:last-child {
  margin-bottom: .75rem;
}
