:root {
  --orange: rgb(247, 147, 30);
  --darkred: rgb(133, 1, 22);
  --lightgray: #eee;
  --primary-color: var(--orange);
  --secondary-color: var(--darkred);

}

.tx-bb-jobs-questionnaire h3 {
  text-transform: none;
}

.tx_bbjobs {
}

.tx_bbjobs .btn-primary {
  --bs-btn-color: white;
  --bs-btn-bg: var(--primary-color);
}

.tx_bbjobs  #text {
    position: relative;
    color: #000;
    left: auto;
    top: auto;
    transform: none;
  }

  .tx-jobs-question {
  }
  .tx-jobs-answer {
  }

  .tx_bbjobs fieldset {
  }

  .tx_bbjobs .required {
    font-size: 9px;
  }

  .tx_bbjobs legend {
    display: inline-block;
    display: none;
    font-size: 12px;
    margin-left: 1em;
    margin-right: 1em;
    background-color: white;
    float: none;
    width: auto;
  }

/* LIST VIEW */

.toolbar-list {
  height: 30px;
  text-align: right;
  padding-right: 30px;
}

.toolbar-list li {
  list-style: none;
  display: inline-block;
  width: 30px;
  height: 30px;
  vertical-align: 40px;
  overflow: hidden;
  position: relative;
}
.toolbar-list li a {
  position: absolute;
  top: 0px;
  bottom:0px;
  left: 0px;
  right: 0px;
  text-indent: 40px;
}

.toolbar-list li:last-child {
  background-image: url(img/icn_tiles.svg);
  background-position: center center;
}
.toolbar-list li:first-child {
  background-image: url(img/icn_list.svg);
  background-position: center center;
}


  .tx-jobs-tiles {
    display: flex;
    align-content: flex-start;
    flex-wrap: wrap;
  }

 .tx-jobs-tiles .tx-jobs-tile {
    width: 100%;
    min-height: 220px;
    border: 5px solid var(--orange);
    text-align: center;
    position: relative;
    margin: 15px;
    border-radius: 10px;
    background-color: var(--orange);
 }
 @media (min-width: 768px) {
   .tx-jobs-tiles .tx-jobs-tile {
    width: calc(33.3% - 30px);
   }
 }

/* MODAL */

 @media (max-width: 767px) {
  .modal-body.p-5 {
    padding: 0px!important;
  }
 }

 .modal-body {
  overflow: scroll;
}

 .tx-jobs-tiles .tx-jobs-tile a {
  display: block;
  height: 100%;
  width: 100%;
  text-decoration: none;
  background: linear-gradient(180deg,rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.7) 100%);
  text-shadow: 0 0 5px #000;
  border-radius: 5px;
  color: white;
  font-size: 1.4em;
  letter-spacing: 0.05em;
 }
 .tx-jobs-tiles .tx-jobs-tile a:hover {
  color: var(--orange);
  background: linear-gradient(0deg,rgba(0, 0, 0, 0.1) 20%, rgba(0, 0, 0, 0.3) 70%, rgba(0, 0, 0, 0.7) 100%);
 }

 .tx-jobs-tiles .tx-jobs-tile .tx-jobs-tile-content {
  padding-bottom: 15px;
  display: block;
  position: absolute;
  bottom: 0px;
  left: 0px;
  width: 100%;
 }

  /* CHECKBOX */

  /* Container label */
.custom-checkbox, .custom-radio {
  display: block;
  position: relative;
  cursor: pointer;
  user-select: none;
  padding-top: .5em;
  padding-bottom: .5em;
}

.custom-checkbox label, .custom-radio label{
  padding-left: 45px;
}
  
  /* Hide default checkbox */
  .custom-checkbox input, .custom-radio input{
    position: absolute;
    opacity: 0;
    cursor: pointer;
    width: 100%;
    height: 100%;
    z-index: 10;
  }
  
  /* Custom box */
  .checkmark, .radiomark {
  position: absolute;
  top: .5em; left: 0;
  height: 30px; width: 30px;
  background-color: var(--lightgray);
  border-radius: 4px;
  }
  .radiomark {border-radius: 50%;}
  
  /* Hover effect */
  .custom-checkbox:hover input ~ .checkmark, .custom-radio:hover input ~ .radiomark  {
  background-color: #ccc;
  }
  
  /* Checked state */
  .custom-checkbox input:checked ~ .checkmark, .custom-radio:hover input:checked ~ .radiomark {
    background-color: var(--orange);
  }
  
  /* Checkmark tick */
  .checkmark::after, .radiomark::after {
    content: "";
    position: absolute;
    display: none;
  }
  
  .custom-checkbox input:checked ~ .checkmark::after, .custom-radio input:checked ~ .radiomark::after {
    display: block;
  }
  
  .custom-checkbox .checkmark::after {
    left: 8px;
    top: 0px;
    width: 15px;
    height: 22px;
    border: solid white;
    border-width: 0 5px 5px 0;
    transform: rotate(45deg);
  }
  .custom-radio .radiomark::after {
    left: 8px;
    top: 8px;
    width: 14px;
    height: 14px;
    border: solid var(--orange);
    border-width: 5px;
    border-radius: 50%;
  }

  input[type="checkbox"] {
    accent-color: var(--orange); /* custom check color */
  }

  input[type="radio"] {
    accent-color: var(--orange); /* custom check color */
  }

  input[type="text"], input[type="email"], textarea.form-control {
    background-color: var(--lightgray);
  }

  /* QUESTIONNAIRE */

      /* Indikatoren */
      .indicator-container {
        display: flex;
        justify-content: center;
        gap: 8px;
        margin-top: 40px;
        margin-bottom: 20px;
    }
    .indicator {
        width: 30px;
        height: 8px;
        border: 1px solid #999;
        background-color: transparent;
        transition: background-color 0.3s;
    }
    .indicator.active {
        background-color: var(--primary-color);
    }

    /* Inhaltscontainer */
    #tx-jobs-questions {
        position: relative;
        min-height: 540px;
    }

    /* Inhalte */
    .tx-jobs-question, .tx-jobs-not {
        position: absolute;
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
        width: 70%;
        padding: 20px;
        min-height: 100px;
        opacity: 0;
        pointer-events: none; /* verhindert Klicks auf unsichtbare Inhalte */
        transition: opacity 0.5s ease;
    }

    @media (max-width: 767px) {
      .tx-jobs-question, .tx-jobs-not {
        width: 90%;
      }
    }

    .tx-jobs-question.active {
        opacity: 1;
        pointer-events: auto;
    }

  .tx-jobs-question input#attachment {
    padding-top: 2em!important;
  }

  .tx-jobs-question textarea.form-control {
    height: 8em;
  }

.tx-jobs-not {
    opacity:0;
    right: 0px;
    bottom: 0px;
    text-align: center;
  }

    /* Buttons */
    .nav-buttons {
        margin-top: 20px;
        text-align: center;
    }
    button {
      padding: 8px 16px;
      margin: 0 5px;
      cursor: pointer;
  }
    button:disabled {
      opacity: 0.5;
      cursor: not-allowed;
  }

  button.big {
    font-size: 1.5em;
    display: block;
    width: 100%;
  }