
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
 *
 * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */

/* Switch / Toggle */

.tpl-switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.tpl-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.tpl-switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #e3e8e2;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
  border-radius: 34px;
}

.tpl-switch-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: #969696;
  -webkit-transition: 0.4s;
  -o-transition: 0.4s;
  transition: 0.4s;
  border-radius: 50%;
}

input:checked + .tpl-switch-slider {
  background-color: #63ac86;
}

input:focus + .tpl-switch-slider {
  -webkit-box-shadow: 0 0 1px #63ac86;
          box-shadow: 0 0 1px #63ac86;
}

input:checked + .tpl-switch-slider:before {
  background-color: #daf5d6;
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}

/* */
.form-select:not([multiple])[size="1"],
.form-select:where(select):not([multiple]):not([size]),
.uk-select:not([multiple]):not([size]) {
  padding-right: 30px;
  background-image: url("/images/template/pfeil_grau.svg");
  background-size: 18px;
  background-position: 95% 55%;
}

.form-check-input[type="checkbox"]:checked,
.uk-checkbox:checked,
.form-check-input[type="radio"]:checked,
.uk-radio:checked {
  background-image: url("/images/template/check.svg");
  background-size: cover;
}

/* */
form input.invalid,
form select.invalid {
  border-color: var(--warning-background)!important;
}

/* */

button.input-password-toggle {
  line-height: initial;
}

/* */

form .form-control-feedback {
  display: none;
}
form .control-group {
  margin: 0;
}
form .control-label {
  position: relative;
  margin-top: 18px;
}
form .control-label label {
  position: absolute;
  bottom: -40px;
  left: 24px;
  font-size: inherit;
  color: var(--text-muted);
  transition: all .125s ease-in-out;
  z-index: 100;
  user-select: none;
  pointer-events: none;
  touch-action: none;
}

form .input-select .control-label label,
form .tpl-feld-gefuellt .control-label label,
form .tpl-feld-fokussiert .control-label label {
  bottom: 0;
  font-size: 14px;
}


/* */

.cf-fields {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
  /* margin-left: -40px; */
}
.cf-fields > * {
  /* padding-left: 15px; */
}

.cf-control-label {
  position: relative;
  margin-top: 16px;
}
.cf-control-label .cf-label {
  position: absolute;
  bottom: -40px;
  left: 24px;
  font-size: inherit;
  color: var(--text-muted);
  transition: all .125s ease-in-out;
}
.tpl-feld-gefuellt .cf-control-label .cf-label,
.tpl-feld-fokussiert .cf-control-label .cf-label,
[data-type="dropdown"] .cf-control-label .cf-label {
  bottom: 0;
  font-size: 14px;
}

.cf-success-hideform.cf-success .cf-fields {
  display: none;
}

@media only screen and (min-width: 961px) {
  .cf-fields div[class~="uk-width-1-2@m"]:nth-of-type(odd) {
    padding-left: 7px;
  }
  .cf-fields div[class~="uk-width-1-2@m"]:nth-of-type(even) {
    padding-right: 7px;
  }
  .cf-fields div[class~="uk-width-1-3@m"] {
    padding-left: 7px;
    padding-right: 7px;
  }
  .cf-fields div[class~="uk-width-1-3@m"]:nth-of-type(2),
  .cf-fields div[class~="uk-width-1-3@m"]:nth-of-type(4),
  .cf-fields div[class~="uk-width-1-3@m"]:nth-of-type(6),
  .cf-fields div[class~="uk-width-1-3@m"]:nth-of-type(9) {
    padding-left: 0;
  }
  .cf-fields div[class~="uk-width-1-3@m"]:nth-of-type(8),
  .cf-fields div[class~="uk-width-1-3@m"]:nth-of-type(11) {
    padding-right: 0;
  }
}
