@font-face {
  font-family: 'IstokWeb';
  src: url('../fonts/istokweb/istokweb-regular.woff') format('woff'),
       url('../fonts/istokweb/istokweb-regular.woff2') format('woff2');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'IstokWeb';
  src: url('../fonts/istokweb/istokweb-italic.woff') format('woff'),
       url('../fonts/istokweb/istokweb-italic.woff2') format('woff2');
  font-weight: normal;
  font-style: italic;
}

@font-face {
  font-family: 'IstokWeb';
  src: url('../fonts/istokweb/istokweb-bold.woff') format('woff'),
       url('../fonts/istokweb/istokweb-bold.woff2') format('woff2');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'IstokWeb';
  src: url('../fonts/istokweb/istokweb-bolditalic.woff') format('woff'),
       url('../fonts/istokweb/istokweb-bolditalic.woff2') format('woff2');
  font-weight: bold;
  font-style: italic;
}

*, *:before, *:after {
/*  outline: 1px dotted rgba( 0, 0, 0, .1 );*/
  
  border: 0;
  margin: 0;
  padding: 0;
}

:root {
  /* --primary: #b43e83; */
  /* --primary: rgb(180,62,131); */
  /* --primary: #903373; */
  --primary: #96497d;
  --primary--soft: #96497d33;
}

html {
  overflow-x: hidden;
  -webkit-text-size-adjust: none;
}

body {
  background-color: #fff;
  color: #333;
  font-family: 'IstokWeb', helvetica, arial, sans-serif;
  font-size: 18px;
  line-height: 24px;
}

h1,
h2,
h3,
h4,
h5,
h6,
strong {
  font-family: 'IstokWeb', helvetica, arial, sans-serif;
  font-weight: bold;
}

h1 { 
  font-size: 24px;
  line-height: 32px;
  text-rendering: optimizeLegibility;
}

h2 {
  font-weight: bold;
  font-size: 20px;
  line-height: 26px;
  margin-top: 36px;
  text-rendering: optimizeLegibility;
}

h1 + h2 {
  margin-top: 24px;
}

h1 + h4 {
  font-size: 13px;
  margin-top: -20px;
}

h1,
h2,
h3,
h4,
h5,
h6,
ul,
p {
  font-weight: normal;
  margin-bottom: 12px;
}

ul,
ol {
  list-style: none inside;
}

a {
  color: var(--primary);
}

hr {
  border: 0;
  border-top: 1px solid rgba( 0, 0, 0, .1 );
  margin: 32px 0 0 0;
  padding: 32px 0 0 0;
}

#wrapper {
  margin: 12px auto;
  position: relative;
  max-width: 1000px;
  width: 100%;
}

#logo {
  background: url(../img/ui/tanzstelle.svg) no-repeat 0 0;
  display: block;
  height: 131px;
  margin: 72px auto 96px;
  margin: 140px auto 96px;
  position: relative;
  width: 467px;
}

#logo span {
  bottom: -25px;
  color: #000;
  font-size: 20px;
  position: absolute;
  text-decoration: none;
  right: -35px;
}

#main {
  margin-top: 48px;
}

@media ( min-width: 960px ) {
  #header {
    background-color: rgba( 255, 255, 255, .95 );
    left: 0;
    height: 94px;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 10;
  }

  @supports ( ( -webkit-backdrop-filter: blur(10px) ) or ( backdrop-filter: blur(10px) ) ) {
    #header {
      background-color: rgba( 255, 255, 255, .8 );
      backdrop-filter: saturate(180%) blur(10px);
      -webkit-backdrop-filter: saturate(180%) blur(10px);
    }
  }
}

@media ( min-width: 960px ) and ( max-height: 800px ) {
  /*
  #header {
    position: absolute;
    top: -140px;
    width: 100%;
  }
  */
}

#nav {
  display: block;
  margin: 0 auto;
  padding: 4px 0;
  position: relative;
  text-align: center;
  width: 930px;
}

#nav ul {
  display: inline-block;
}

#nav li {
  display: inline-block;
} 
  
#nav li.aktuelles ul {
  display: none;
}

@media ( min-width: 960px ) {
  #nav li.produktionen ul {
    display: none;
  }
}

#nav a {
  color: #666;
  display: inline-block;
  font-size: 15px;
  line-height: 18px;
  padding: 2px 6px;
  text-decoration: none;
  vertical-align: middle;
}

@media ( min-width: 960px ) {
  #nav > ul > li > a {
    color: #333;
    font-size: 21px;
    font-weight: bold;
    line-height: 24px;
    text-transform: uppercase;
  }

  #nav > ul > li.pagepath > a {
    color: var(--primary);
  }

  #nav ul ul {
    /* border-top: 1px solid rgba( 0, 0, 0, .1 ); */
    border-top: 1px solid var(--primary);
    display: flex;
    left: 0;
    padding-top: 10px;
    position: absolute;
    top: 36px;
  }
  
  #nav ul ul li {
    align-items: center;
    display: flex;
    flex-direction: col;
    vertical-align: middle;
  }
  
  /* #nav ul ul li:nth-of-type(7) a { white-space: nowrap; } */
  
}

@media ( min-width: 960px ) and ( max-height: 800px ) and ( min-device-width: 1025px ) {
  #header {
    height: 36px;
  }
  #nav ul ul li {
    display: none;
  }
  #header:hover {
    height: 94px;
  }
  #nav:hover ul ul li {
    display: flex;
  }
}

#nav li.active > a,
#nav a:hover {
  color: var(--primary);
}

#nav a {
  transition: transform .15s ease-in-out;
}

#nav a:hover {
  transform: scale(1.1);
}

#kv {
  /* border-radius: .8rem; */
  /* box-shadow: 0 0 5px rgba( 0, 0, 0, .2 ); */
  max-height: 1053.66px;
  margin-left: calc( -1 * ( 50vw - 510px ) );
  max-width: 1580px;
  /* overflow: hidden; */
  width: calc( 100vw - 20px );
}

@media ( min-height: 801px ) {
  #kv {
    height: calc( 66.6875vw - 13px );
  }
}

@media ( max-height: 800px ) {
  #kv {
    margin: 0 auto;
    max-width: calc( 100% - 20px );
    position: relative;
  }
  #kv.map > a > img {
    position: absolute;
    top: 0;
  }
  #kv:before {
    content: '';
    display: block;
    padding-top: 66.66%;
    width: 100%;
  }
}

@media ( max-width: 999px ) and ( min-height: 801px ) {
  #kv {
    margin-left: 10px;
    margin-right: 10px;
    width: calc( 100% - 20px );
  }
}

@media ( min-width: 1601px ) and ( min-height: 801px ) {
  #kv {
    margin-left: -300px;
  }
}

#kv > img {
  border-radius: .8rem;
  box-shadow: 0 0 5px rgba( 0, 0, 0, .2 );
}


#kv.map iframe {
  height: 100%;
  width: 100%;
}

body.aktuelles #kv,
#kv.empty {
  display: none;
}

.aktuelles .list-item {
  border-top: 1px solid rgba( 0, 0, 0, .1 );
  margin-top: 24px;
  padding-top: 24px;
}

.home .aktuelles .list-item {
  margin-top: 8px;
  padding-top: 8px;
}

.home .aktuelles .list-item h1 {
  color: #666;
  font-size: 16px;
  line-height: 24px;
  text-transform: uppercase;
}

.home .aktuelles .list-item ul,
.home .aktuelles .list-item p {
  color: #666;
  font-size: 15px;
  line-height: 18px;
}

.sldr {
  position: relative;
  z-index: 0;
}

.sldr img {
  display: none;
  left: 0;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 0;
}

.sldr img:first-child {
  display: block;
}

.sldr img.next {
  z-index: 2;
}

.sldr img.selected {
  z-index: 4;
}

.sldr-nav {
  cursor: pointer;
  display: block;
  height: 100%;
  opacity: .33;
  position: absolute;
  top: 0;
  width: 50%;
  z-index: 20;
}

.sldr-nav:hover {
  opacity: 1;
}

#sldr-prv {
  background: url(../img/ui/icn-arrow-left.png) no-repeat 2% center;
  left: 0;
}

#sldr-nxt {
  background: url(../img/ui/icn-arrow-right.png) no-repeat 98% center;
  right: 0;
}

#breadcrumbs {
  font-size: 13px;
  padding: 0 !important;
}

@media ( max-width: 349px ) {
  #breadcrumbs {
    font-size: 11px;
  }
}

#breadcrumbs span {
  padding: 0 !important;
}

#breadcrumbs a {
  color: var(--primary);
}

#breadcrumbs i {
/*  outline: 1px dotted green;*/
  width: 5px !important;
}


body.home #breadcrumbs {
  visibility: hidden;
}

#content {
  position: relative;
  width: 100%;
  width: 50%;
}

.home #content {
  min-height: 600px;
}

@media ( max-width: 767px ) {
  #content {
    width: 100%;
  }
}

#content > p > img {
  max-width: 100%;
}

#content li {
  background: transparent url(../img/ui/li.gif) no-repeat 0 6px;
  padding-left: 12px;
}

@media ( min-width: 768px ) {
  #content .aktuelles {
    left: 150%;
    position: absolute;
    top: 0;
    width: calc( 50% );
  }
  #content .aktuelles h2 {
    margin-top: 0;
  }
}

@media ( max-width: 1020px ) {
  #content-wrapper {
    padding: 0 10px;
  }
}

ul#kursliste {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-bottom: 48px;
}

ul#kursliste li a {
  display: block;
  overflow: hidden;
  margin: 0 0 4px 0;
  padding: 0 0 6px 0;
  position: relative;
  text-decoration: none;
  transition: transform .2s ease-in-out;
}

ul#kursliste li a:hover {
  transform: scale(1.075);
}

ul#kursliste li a img {
  border-radius: .8rem;
}

ul#kursliste li a span {
/*  bottom: 8px;*/
/*  color: #fff;*/
  color: #333;
  display: block;
  font-size: 28px;
  font-size: 16px;
/*  font-weight: bold;*/
  line-height: 32px;
  line-height: 20px;
/*  left: 8px;*/
/*  position: absolute;*/
/*  text-shadow: 0 0 5px rgba( 0, 0, 0, .75 );*/
  width: 90%;
}

ul#kursliste li a:hover span {
  color: var(--primary);
   font-weight: bold;
}

ul#kursliste li {
  max-width: 250px;
}

ul#kursliste li img {
  width: 100%;
}

.colgrp {
  display: flex;
  width: 100%;
  width: 200%;
}

@media ( max-width: 767px ) {
  .colgrp {
    display: block;
    width: 100%;
  }
}

.col {
  flex: 1 1 50%;
}


.col img {
  width: 100%;
}

.coltxt {
  padding-right: 20px;
}

.colgrp .col img {
  border-radius: .8rem;
  width: calc( 100% - 1rem );
}

#bottom {
  background-color: #e5312a;
  background-color: var(--primary);
/*  background-color: #c31008;*/
/*  background-color: #505050;*/
}

#footer {
  color: #fff;
/*  color: #ccc;*/
  display: flex;
  margin: 60px auto 0;
  max-width: 1000px;
  padding: 20px 0;
  width: 100%;
}

@media ( max-width: 1020px ) {
  #footer {
    padding: 20px 10px;
    width: calc( 100% - 20px );
  }
}

@media ( max-width: 767px ) {
  #footer {
    display: block;
  }
}

#footer > p {
  flex: 1 1 50%;
}


#footer a {
  color: #fff;
/*  color: #ccc;*/
}

.addressblock i {
  margin-top: 2px;
  vertical-align: top;
}

.addressblock a span {
  display: inline-block;
}

@media ( min-width: 768px ) {
  #footer .right {
    text-align: right;
  }
}

/*p.facebook*/
a {
  text-decoration: none;
}

/* BEGIN HELPERS */

.last {
  margin-right: 0;
}

.print-only,
.printonly {
  display: none;
}

.hidden {
  display: none !important;
}

.clearer {
  clear: both;
}

/* END HELPERS */

@media ( min-width: 768px ) and ( max-width: 899px ) {
  #content {
/*    max-width: 540px;*/
  }
}

@media ( max-width: 959px ) {
  #wrapper {
    margin-top: 60px;
  }
  #nav {
    left: 0;
    min-height: 40px;
    position: fixed;
    text-align: left;
    top: 0;
  }
  body.mobilenavopen {
    height: 100vh;
    overflow: hidden;
    width: 100vw;
  }
  #mobilenav {
    cursor: pointer;
    height: 40px;
/*    outline: 1px dotted green;*/
    position: fixed;
    right: 0;
    top: 0;
    width: 100vw;
    z-index: 10;
  }
  .mobilenavopen #mobilenav {
    height: 80px;
    width: 80px;
  }
  #mobilenav:after {
    content: '\f0c9';
    font-family: FontAwesome;
    position: absolute;
    right: 10px;
  }
  .mobilenavopen #mobilenav:after {
    content: '\f00d';
  }
  #nav {
    background-color: rgba( 255, 255, 255, .95 );
    border-bottom: 1px solid #eee;
    font-size: 21px;
    height: 40px;
    line-height: 40px;
    left: 0;
    margin: 0;
    overflow: hidden;
    position: fixed;
    top: 0;
    width: 100vw;
    z-index: 100;
  }
  @supports ( ( -webkit-backdrop-filter: blur(10px) ) or ( backdrop-filter: blur(10px) ) ) {
    #nav {
      background-color: rgba( 255, 255, 255, .8 );
      backdrop-filter: saturate(180%) blur(10px);
      -webkit-backdrop-filter: saturate(180%) blur(10px);
    }
  }
  .mobilenavopen #nav {
    border-bottom: 0;
    height: 100vh;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
  }
  .mobilenavopen #nav > ul {
    padding: 0 0 80px 0;
    position: relative;
    z-index: 2;
  }
  #nav ul li {
    display: none;
    margin-left: 0px;
  }
  .mobilenavopen #nav ul li ul li {
    margin-left: 20px;
  }
  .mobilenavopen #nav ul li,
  #nav ul li.pagepath,
  #nav ul li.active {
    display: block;
    line-height: 36px;
  }
  #nav ul li.pagepath > a {
    display: none;
  }
  #nav ul li a {
    color: #333;
    display: block;
    line-height: 40px;
    text-decoration: none;
  }
  .mobilenavopen #nav ul li a {
    display: block;
    margin-left: 0px;
  }
/*  .mobilenavopen #nav ul li.pagepath > a,*/
  .mobilenavopen #nav ul li.active > a {
    color: var(--primary);
    display: block;
  }
  ul#kursliste li a {
    font-size: 3vw;
    line-height: 3.33vw;
  }
}

@media ( max-width: 767px ) {
  #logo {
    background-size: 60vw 17.08vw;
    height: 17.08vw;
    margin: 24px auto 48px;
    width: 60vw;
  }

  #logo span {
    bottom: -5vw;
    font-size: 2.6vw;
    right: -4.56vw;
  }
  
  ul#kursliste {
    grid-template-columns: 1fr 1fr 1fr;
  }

  ul#kursliste li a {
    font-size: 4.5vw;
    line-height: 5vw;
  }
}

@media ( max-width: 539px ) {
  ul#kursliste {
    grid-template-columns: 1fr 1fr;
  }
}

#gallery p {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  width: 200%;
}

@media ( max-width: 767px ) {
  #gallery p {
    width: 100%;
  }
}

#gallery a {
  align-items: center;
  background-color: #eee;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 140px;
  height: 140px;
  margin-bottom: 8px;
  width: 140px;
}

#gallery a img {
	width: 100%;
}

.social-media {
  text-align: left;
}

.float-left {
  float: left;
  margin-right: 20px;
}

.float-right {
  float: right;
  margin-left: 20px;
}

#sponsors {
	background-color: #333;
	padding: 2rem;
	text-align: center;
}

#sponsors div {
	display: inline-block;
}

#sponsors img {
	height: 140px;
	margin: 0 10px;
}

.time2dance {
  padding-top: .8rem;
}

.stundenplan-wrapper {
  margin-bottom: 40px;
  max-width: 100vw;
  overflow-x: auto;
}

.stundenplan {
  /* background-color: #f1f2f3; */
  background-color: var(--primary--soft);
  border-radius: 12px;
  color: var(--primary);
  display: flex;
  font-size: 15px;
  gap: 1px;
  line-height: 1;
  padding: 4px;
  width: 992px;
}

.stundenplan p {
  margin: 0;
  min-height: 45px;
  padding: 4px;
}

@media ( max-width: 499px ) {
  .stundenplan {
    font-size: 11px;
    line-height: 1;
    width: 150vw;
  }

  .stundenplan p {
    /* min-height: 33px; */
  }
}

.tag {
  display: flex;
  flex-direction: column;
  gap: 1px;
  width: 20%;
}

.tag > div {
  padding: 4px;
}

.class--red {
  background-color: var(--primary);
  color: white;
}

.class--white {
  background-color: white;
  color: var(--primary);
}