.wwe3tbl {
  input[type="text"],
  input[type="search"],
  input[type="password"],
  input[type="number"],
  input[type="email"],
  input[type="tel"],
  input[type="date"],
  select,
  textarea {
    border: 1px solid $border_color;
    padding: 5px 20px;
    background-color: $bg_white;
    color: $text;
    display: block;
  }

  option {
    padding: 2px 5px;
  }

  textarea {
    height: 200px;
    line-height: 25px;
  }

  .otd_label {
    padding-top: 10px;
  }

  .otd_field {
    padding-bottom: 10px;

    .limit {
      padding: 5px 0 0 220px;
    }
  }

  .form_hidden {
    display: none;
  }

  .otr {
    clear: both;
    padding-bottom: 5px;
  }

  .th_label {
    width: 200px;
    padding-right: 20px;
    float: left;

    &.th_show_error {
      color: red;
      font-weight: bold;
    }
  }

  input.label {
    &.size2 {
      width: 60px;
    }
    &.size4 {
      width: 100px;
    }
  }

  .type_confirm_check,
  .type_checkbox {
    @include clearfix;

    input {
      float: left;
      margin-top: 3px;
    }

    input + label {
      float: right;
      width: calc(100% - 30px);
      padding: 0 20px 0 5px;

      a {
        &:hover {
          text-decoration: underline;
        }
      }
    }
  }

  .type_check,
  .type_radio {
    input + label {
      padding: 0 20px 0 5px;
      line-height: 27px;
    }
  }

  .tr_title {
    padding-top: 20px;
    font-size: 20px;
  }

  .label_suffix {
    padding-left: 5px;
  }

  .label_prefix {
    padding-right: 5px;
  }

  .bottest {
    display: none;
  }
}

// Texte
.wwe_form_container {
  .message {
    padding: 15px;
    margin-bottom: 20px;

    p {
      margin-bottom: 0;
    }
  }

  .form_prologue {
    padding-bottom: 15px;
  }

  .wwe_form_submit {
    color: $text_white;
    background: $link_color;
    padding: 0 40px 0 15px;
    line-height: 30px;
    cursor: pointer;
    display: inline-block;

    // iOS-Safari macht sonst Mist mit den Buttons...
    -webkit-appearance: none;
    -webkit-border-radius: 0;
  }
}

// mail_from=email;floating_label;bobby_preset=mail_from;...

.otr.floating_label {
  position: relative;

  label {
    position: absolute;
    top: 12px;
    left: 21px;
    transition: all .15s;
    user-select: none;
    cursor: text;
  }

  // erfordert https://github.com/sesubash/placeholder-shown-polyfill/blob/master/src/placeholder-shown-polyfill.js

  input:focus + label,
  textarea:focus + label,
  input:invalid:not(.placeholder-shown) + label,
  textarea:invalid:not(.placeholder-shown) + label,
  input:valid:not(.placeholder-shown) + label,
  textarea:valid:not(.placeholder-shown) + label { // Polyfill wg. Edge
    top: 0;
    font-size: 1.1rem;
    color: $text_grey;
  }

  // Placeholder verbergen
  ::-webkit-input-placeholder { color: transparent; }
  ::-moz-placeholder { color: transparent; }
  :-ms-input-placeholder { color: transparent; }
  input:-moz-placeholder { color: transparent; }
  textarea:-moz-placeholder { color: transparent; }
}

@media screen and (min-width: $break_cols) {
  .form_1_3 {
    width: calc(33.3% - 5px);
    float: left;
  }

  .form_2_3 {
    width: calc(66.6% - 5px);
    float: left;
  }

  .form_1_2 {
    width: calc(50% - 5px);
    float: left;
  }

  .form_3_4 {
    width: calc(75% - 5px);
    float: left;
  }

  .form_1_4 {
    width: calc(25% - 5px);
    float: left;
  }

  .form_col_middle {
    clear: none !important;
    position: relative;
    left: 10px;
  }

  .form_col_last {
    clear: none !important;
    float: right;
  }
}

.custom_upload {
  overflow: hidden;
  text-align: center;
  display: block;
  cursor: pointer;

  input {
    position: absolute;
    height: 0;
    width: 0;
    overflow: hidden;
  }

  span {
    display: inline-block;
    border: 1px solid $border_color;
    padding: 10px 20px;
    font-size: 13px;
    background: $bg_white;
    margin: 0 auto;
    max-width: 210px;
    overflow: hidden;
    white-space: nowrap;

    -o-text-overflow: ellipsis;
    text-overflow: ellipsis;
  }

  &:hover span {
    background: $bg_grey;
  }
}