td {
  vertical-align: baseline;
}

body.impressum table tr td:first-child {
  padding-right: 10px;
}

label,
p.label {
  display: block;
  font-size: 1.4rem;
  margin: 0;
  padding: 10px 0 3px;
}

.kontakt input:not([type=radio], [type=checkbox]),
.kontakt select{
  height: 50px;
}

input,
textarea,
select {
  background-color: #e4e4e4;
  border: 1px solid #e4e4e4;
  color: #333;
  -webkit-transition: border .8s, background .8s, color .8s;
  transition: border .8s, background .8s, color .8s;
}

input:focus,
textarea:focus,
select:focus {
  background-color: rgb(var(--main-light-color));
  border-color: #b2b2b2;
}

textarea {
  height: 120px;
  padding: 5px 10px;
  width: 100%;
  -webkit-appearance: none;
}

input {
  margin: 1px 0;
  padding: 10px;
  width: 100%;
}

input[type="date"] {
  min-height: 38px;
}

input[type="date"],
input[type="text"] {
  -webkit-appearance: none;
}

select {
  margin: 1px 0;
  padding: 9px 10px;
  width: 100%;
}

ul,
ol{
  padding: 0 0 0 20px;
  margin: 0;
}

.contactform .buttons {
  margin: 2em 0 0;
  text-align: right;
}

.contactform hr {
  border: 1px solid #a0a0a0;
  border-width: 1px 0 0 0;
  margin: 0 0 2em 0;
}

.contactform-ta {
  width: 100%;
}

.contactform-cb {
  float: none;
  padding: 10px 0 0;
}

.contactform-cb label {
  display: block;
  font-size: 1.6rem;
  margin: 0 15px 0 0;
  overflow: hidden;
  padding: 0;
}

.contactform-cb input {
  background: none;
  border: 0;
  float: left;
  margin: 3px 6px 0 0;
  vertical-align: middle;
  width: auto;
}

.contactform-rb label {
  display: inline-block;
  font-size: 1.6rem;
  margin: 0 15px 0 0;
  overflow: hidden;
  padding: 0;
  vertical-align: middle;
}

.contactform-rb input {
  background: none;
  border: 0;
  display: inline-block;
  margin: 0 2px 0 0;
  vertical-align: middle;
  width: auto;
}

.contactform-sl > div {
  display: inline-block;
  margin-right: 25px;
}

#kkemail {
  display: none !important;
}

.optional-data {
  margin-bottom: 1.5em;
  max-height: 0;
  overflow: hidden;
  -webkit-transition: all 2s;
  transition: all 2s;
}

.optional-button {
  background-color: #625f5a;
  color: rgb(var(--main-light-color));
  cursor: pointer;
  display: inline-block;
  margin-bottom: 15px;
  padding: 5px 10px;
  vertical-align: middle;
}

.optional-button:after {
  border: 3px solid rgb(var(--main-light-color));
  border-radius: 2px;
  border-width: 0 3px 3px 0;
  content: '\00a0';
  display: inline-block;
  height: 6px;
  margin-left: 10px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  vertical-align: sub;
  width: 6px;
}

#see-optional {
  display: none;
}

#see-optional:checked + label {
  display: none;
}

#see-optional:checked + label + .optional-data {
  max-height: 500px;
}

.contactform .cols {
  margin-bottom: 15px;
}

.cols-loginform .error {
  text-align: center;
}

.cols.cols-form {
  margin-bottom: 15px;
  width: auto;
}

.cols-form > div {
  position: relative;
}

.cols-form > div:before,
.cols-form > div:after {
  content: '\00a0';
  opacity: 0;
  position: absolute;
  -webkit-transition: opacity .8s;
  transition: opacity .8s;
}

.has-error {
  position: relative;
}

.has-error input,
.has-error textarea {
  border: 1px solid #cf4646;
}

.has-error:before,
.has-error:after {
  background-color: #cf4646;
  border-radius: 2px;
  bottom: 14px;
  content: '\00a0';
  height: 14px;
  opacity: 1 !important;
  pointer-events: none;
  position: absolute;
  right: 20px;
  -webkit-transform: rotate(-45deg);
  transform: rotate(-45deg);
  width: 3px;
}

.has-error:after {
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
}

.has-success {
  position: relative;
}

.has-success input,
.has-success textarea {
  border: 1px solid #86a145;
}

.has-success:after {
  border-style: solid;
  border-color: #86a145;
  border-width: 0 3px 3px 0;
  border-radius: 2px;
  bottom: 15px;
  content: '\00a0';
  height: 12px;
  opacity: 1 !important;
  pointer-events: none;
  position: absolute;
  right: 20px;
  -webkit-transform: rotate(45deg);
  transform: rotate(45deg);
  width: 6px;
}

.error {
  color: #d80000;
  font-weight: bold;
}

.success {
  background: #006600;
  color: rgb(var(--main-light-color));
  font-size: 1.6rem;
  margin: 20px 0 0;
  padding: 20px;
  text-align: center;
}

/*
 * Buttons
 */
.cfweb-button button,
.button,
a.button,
.button-cta,
a.button-cta,
.button-dark,
a.button-dark {
  background: transparent;
  color: rgb(var(--main-dark-color));
  border: 2px solid rgb(var(--sub-highlight-color));
  border-radius: 25px;
  cursor: pointer;
  display: inline-block;
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 14px 30px;
  position: relative;
  text-decoration: none;
  text-transform: none;
  transition: all .4s linear;
  text-align: center;
}
a.button:hover,
a.button:focus,
.button:hover,
.button:focus{
  background: transparent;
  color: rgb(var(--sub-highlight-color));
  border-color: rgb(var(--main-highlight-color));
}

.cfweb-button button,
.button-cta,
a.button-cta{
  background: rgb(var(--sub-highlight-color));
  color: rgb(var(--main-light-color));
  border-color: rgb(var(--sub-highlight-color));
}
.cfweb-button button:hover,
.cfweb-button button:focus,
.button-cta:hover,
.button-cta:focus,
a.button-cta:hover,
a.button-cta:focus{
  background: rgb(156,79,103);
  color: rgb(var(--main-light-color));
  border-color: rgb(156,79,103);
}
.button-dark,
a.button-dark{
  background: rgb(var(--main-dark-color));
  color: rgb(var(--main-light-color));
  border-color: rgb(var(--main-dark-color));
}
.button-dark:hover,
.button-dark:focus,
a.button-dark:hover,
a.button-dark:focus{
  background: rgb(45,23,39);
  color: rgb(var(--main-light-color));
  border-color: rgb(45,23,39);
}
/*
 * Buttons Dark Background
 */
body.dark .button,
body.dark a.button{
  color: rgb(var(--main-light-color));
}
body.dark a.button:hover,
body.dark a.button:focus,
body.dark .button:hover,
body.dark .button:focus{
  color: rgb(var(--sub-highlight-color));
  border-color: rgb(var(--main-light-color));
}
body.dark .button-dark,
body.dark a.button-dark{
  background: rgb(var(--main-light-color));
  border-color: rgb(var(--main-light-color));
  color: rgb(var(--main-dark-color));
}
body.dark a.button-dark:hover,
body.dark a.button-dark:focus,
body.dark .button-dark:hover,
body.dark .button-dark:focus{
  background: rgb(45,23,39);
  color: rgb(var(--main-light-color));
  border-color: rgb(45,23,39);
}


.cfweb-cols:has(+.cfweb-cols>.cfweb-col>input[type="file"]) .cfweb-text{
  padding: 30px 0 0;
}
.cfweb-cols:has(+.cfweb-cols>.cfweb-col>input[type="file"]) .cfweb-text p{
  padding: 0;
}
.cfweb-col:has(input[type="file"]){
  position: relative;
}
.cfweb-col:has(input[type="file"]):after{
  content: '';
  position: absolute;
  bottom: 21px;
  left: 15px;
  display: inline-block;
  width: 8px;
  height: 14px;
  border-right: 4px solid rgb(var(--sub-highlight-color));
  border-bottom: 4px solid rgb(var(--sub-highlight-color));
  transform: rotate(45deg);
  opacity: 0;
  transition: all .4s;
  pointer-events: none;
}
.cfweb-col:has(input[type="file"].has-file):after{
  opacity: 1;
}
input[type="file"] {
  font-size: 1.6rem;
  color: rgb(var(--main-dark-color));
  transition: all .4s;
}
input[type="file"].has-file{
  padding-left: 35px;
}
input[type="file"]::file-selector-button {
  font-size: 1.6rem;
  margin: 0 20px 0 0;
  background: rgb(var(--sub-highlight-color));
  color: rgb(var(--main-light-color));
  box-shadow: none;
  border: 1px solid rgb(var(--sub-highlight-color));
  border-radius: 20px;
  padding: 5px 10px;
  transition: all .4s;
}
input[type="file"]:hover::file-selector-button,
input[type="file"]:focus::file-selector-button {
  background: rgb(156,79,103);
  color: rgb(var(--main-light-color));
  border-color: rgb(156,79,103);
}

.cfweb-errors,
#wwform-errors{
  background-color: rgb(var(--main-light-color));
  padding: 15px;
  border-radius: 20px;
  margin-bottom: 30px;
}

.cfweb-cb {
  display: flex;
  justify-content: center;
}

.cfweb-field input,
.cfweb-field textarea{
  background-color: #fff;
  border: 1px solid #fff;
  box-shadow: 0 0 3px rgba(0, 0, 0, .12), 0 2px 5px rgba(0, 0, 0, .09);
  border-radius: 10px;
}
.cfweb-field input:focus-within,
.cfweb-field input:hover,
.cfweb-field textarea:focus-within,
.cfweb-field textarea:hover{
  border-color: rgb(var(--sub-highlight-color));
  outline: none;

}
input[type="radio"]{
  box-shadow: none;
  accent-color: rgb(var(--sub-highlight-color));
}

#disable-matomo{
  padding: 0 !important;
  margin-top: calc(var(--col-padding) * -1) !important;
}
#disable-matomo iframe{
  background-color: transparent !important;
}

/* class added via JS */
.col-txt .p-button-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 20px 10px;
}
.col-txt .p-button-wrapper[style*="text-align:center"]{
  justify-content: center;
}
.col-txt .p-button-wrapper[style*="text-align:right"]{
  justify-content: flex-end;
}

@media screen and (min-width: 640px) {
  .cfweb-cb {
    display: inline-block;
    margin-right: 20px;
  }
}

/* ab 1024px */
@media screen and (min-width: 1024px) {
  button:not([type="button"]),
  .button,
  a.button,
  .button-cta,
  a.button-cta,
  .button-dark,
  a.button-dark {
    font-size: 2.4rem;
  }
  .cfweb-errors,
  #wwform-errors{
    padding: 20px 30px;
  }
}


a.wwiframe-privacy-button{
  background: rgb(var(--sub-highlight-color));
  color: rgb(var(--main-light-color));
  border-color: rgb(var(--sub-highlight-color));
}
a.wwiframe-privacy-button:hover,
a.wwiframe-privacy-button:focus{
  background: rgb(156,79,103);
  color: rgb(var(--main-light-color)) !important;
  border-color: rgb(156,79,103);
}

/*
 * Icons
 */

.contact-lock {
  box-sizing: content-box;
  color: #c8c8c8;
  display: inline-block;
  margin-right: -15px;
  position: relative;
  -webkit-transform: scale(0.4);
  transform: scale(0.4);
  -webkit-transform-origin: left 20%;
  transform-origin: left 20%;
  vertical-align: middle;
  width: 32px;
}

.contact-lock:before {
  border: 3px solid;
  border-radius: 10px;
  content: '\00a0';
  display: block;
  height: 18px;
  margin: 0 auto;
  position: relative;
  width: 20px;
}

.contact-lock:after {
  background: #c8c8c8;
  border-radius: 6px;
  content: '\00a0';
  display: block;
  height: 24px;
  margin: -10px auto;
  position: relative;
}

.contact-lock .keyhole {
  left: 50%;
  position: absolute;
  top: 15px;
  -webkit-transform: translatex(-50%);
  transform: translatex(-50%);
  z-index: 1;
}

.contact-lock .keyhole:before {
  background: rgb(var(--main-light-color));
  border-radius: 50%;
  content: '\00a0';
  display: block;
  height: 8px;
  margin: .3em auto 0;
  position: relative;
  width: 8px;
}

.contact-lock .keyhole:after {
  background: rgb(var(--main-light-color));
  border-radius: 0;
  content: '\00a0';
  display: block;
  height: 8px;
  margin: -0.1em auto 0;
  position: relative;
  width: 4px;
}

.contact-calendar {
  border-radius: 4px;
  border-style: solid;
  border-width: 4px 2px 2px;
  bottom: 0;
  box-sizing: border-box;
  color: #767676;
  direction: ltr;
  font-style: normal;
  height: 28px;
  margin: 5px 1px 1px;
  pointer-events: none;
  position: absolute;
  right: 0px;
  text-align: left;
  text-indent: -9999px;
  -webkit-transform: scale(0.7);
  transform: scale(0.7);
  -webkit-transform-origin: top left;
  transform-origin: top left;
  width: 32px;
}

.contact-calendar:before,
.contact-calendar:after {
  content: '\00a0';
  pointer-events: none;
  position: absolute;
  width: 4px;
}

.contact-calendar:before {
  box-shadow: inset 0 0 0 32px, 6px 0, 12px 0, 18px 0, 0 6px, 6px 6px, 12px 6px, 18px 6px, 0 12px, 6px 12px, 12px 12px, 18px 12px;
  height: 4px;
  left: 3px;
  top: 3px;
}

.contact-calendar:after {
  border-radius: 4px;
  box-shadow: inset 0 0 0 32px, 16px 0;
  height: 8px;
  left: 4px;
  top: -8px;
}

input:focus + .calendar {
  color: #333;
}

/* ab 1024px */
@media screen and (min-width: 1024px) {
  body.impressum table tr td:first-child {
    padding-right: 70px;
  }
}

.video-wrapper:has(video[autoplay]) .pause-play-button,
.swiper.swiper-autoplay.swiper-initialized .pause-play-button{
  display: block !important;
}
.swiper:not(.swiper-autoplay):not(:has(video)) .pause-play-button{
  display: none;
}

.pause-play-button{
  position: absolute;
  bottom: 0;
  left: 0;
  aspect-ratio: 1/1;
  cursor: pointer;
  width: 20px;
  height: 20px;
  background: url('/images/icons/pause.svg') no-repeat center;
  background-size: contain;
  z-index: 11;
}
.pause-play-button.is-paused{
  background: url('/images/icons/play.svg') no-repeat center;
  background-size: contain;
}

/* Change order of first and second div in application form */
#wwform-A79315C6-7E1A-01F4-3420-38BDE06FAF19 {
  display: flex;
  flex-direction: column;
}

#wwform-A79315C6-7E1A-01F4-3420-38BDE06FAF19 > .cfweb-cols,
#wwform-A79315C6-7E1A-01F4-3420-38BDE06FAF19 > .cfweb-button {
  order: 2;
}

#wwform-A79315C6-7E1A-01F4-3420-38BDE06FAF19 > .cfweb-cols:nth-child(5) {
  order: 1;
}