#why-section {
  color: var(--bg-primary);
  font-size: 1.5rem;
  font-weight: 600;
  text-align: center;
  i {
    color: var(--brand-yellow);
    font-size: 4rem;
  }

  h3 {
    font-size: 2.5rem;
    color: var(--brand-yellow);
  }
}

#jobs {
  article {
    background-color: var(--bg-grey);
    border-radius: 2rem;
    padding: 2rem;
    /* Spalte ist gestrecktes Flex-Item -> 100% ist definit. Nicht
       -webkit-fill-available: Safari/iOS rechnet damit eine zu kleine Höhe. */
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: start;
  }
  h3 {
    margin: 1rem 0 0.5rem;
  }
  h4 {
    color: var(--brand-yellow);
    font-weight: 600;
  }
  ul {
    font-size: 1.1rem;
  }
  a {
    width: 100%;
    margin: auto 0 0;
    text-align: center;
    font-size: 1.2rem;
    i {
      font-size: 1.4rem;
    }
  }
  .img-wrapper {
    height: 22rem;
    aspect-ratio: 7/10;
    max-width: 100%;
    margin: 0 auto;

    img {
      height: 100%;
      object-fit: cover;
    }
  }
  .img-bg {
    height: 22rem;
    width: 100%;
    filter: blur(2rem);
    position: relative;
    margin-bottom: -22rem;
  }
}

.apply-form {
  height: 35rem;
  overflow: hidden;
  text-align: center;
  background-color: var(--bg-primary);
  border-radius: 2rem;
  .question {
    height: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: start;
    flex-wrap: wrap;
  }
  /* legend (Auswahlfragen) bzw. label (Textfragen) – wie zuvor der Absatz */
  .question-title {
    display: block;
    width: 100%;
    color: var(--brand-shadow);
    font-size: 1.5rem;
    line-height: inherit;
    margin-bottom: 1rem;

    /* Fokus wird beim Fragenwechsel per JS gesetzt, kein Rahmen nötig */
    &:focus {
      outline: none;
    }
  }
  .question-option {
    width: 12rem;
    height: 15rem;
    margin: -0.5rem 0.75rem 0.75rem;
    padding: 0;
    button,
    label {
      width: 100%;
      height: 100%;
      border: none;
      background-color: var(--bg-grey);
      border-radius: 1rem;
      padding: 0;
      transition: all 0.5s;

      &:hover,
      &:focus,
      &:focus-visible {
        transform: scale(0.95);
        border-radius: 0.9rem;
        cursor: pointer;
      }
    }
    input[type="checkbox"] {
      opacity: 0;
    }
    input[type="checkbox"]:checked + label {
      transform: scale(0.95);
      border-radius: 0.9rem;
    }
    .qo-title {
      width: 100%;
      height: 3.5rem;
      background-color: var(--brand-blue);
      color: var(--bg-primary);
      border-radius: 0 0 1rem 1rem;
      display: flex;
      justify-content: center;
      align-items: center;
    }
  }
  .question-option::after {
    content: "";
    height: 15rem;
    width: 12rem;
    position: absolute;
    background: linear-gradient(to right, var(--brand-blue), #005c99);
    margin-left: -12rem;
    z-index: -1;
    border-radius: 1rem;
  }
  .icon {
    font-size: 5rem;
    color: var(--brand-blue);
    height: calc(100% - 3.5rem);
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .button-wrapper {
    width: 100%;
  }
  input:not([type="checkbox"]) {
    border: 3px solid var(--brand-blue);
    border-radius: 0.5rem;
    padding: 0.5rem 1rem;
    width: min(20rem, 100%);
    background-color: var(--bg-primary);
    margin-bottom: 1rem;

    &:focus,
    &:active,
    &:focus-visible {
      outline: none;
      border-color: var(--brand-shadow);
    }
  }
  form#question-last {
    flex-direction: column;
    align-items: center;
  }
}

/* Mobile: Bewerbungs-Quiz wächst mit dem Inhalt, Optionen kleiner */
@media (max-width: 767.98px) {
  #why-section {
    font-size: 1.2rem;

    h3 {
      font-size: 1.9rem;
    }
  }

  #jobs article {
    padding: 1.25rem;
    border-radius: 1.5rem;
  }

  .apply-form {
    height: auto;
    min-height: 22rem;
    padding: 1rem 0;

    .question {
      height: auto;
    }

    .question-option,
    .question-option::after {
      width: 9rem;
      height: 11rem;
    }

    .question-option::after {
      margin-left: -9rem;
    }

    .question-option {
      margin: 0.25rem 0.4rem 0.6rem;
    }

    .icon {
      font-size: 3.5rem;
    }

    .qo-title {
      font-size: 0.9rem;
      line-height: 1.1;
      padding: 0 0.3rem;
    }
  }
}
