First I had an interview with HR, which was positive and then I had a second interview with one of the team, which was about the requirements of the role and my experience. At the end of the interview he asked me if I was married. I asked him why he asked this question and what it had to do with the position. He paused and stammered. I realized that he didn't expect me to question it. He told me that married people go on maternity leave if they have children. He spoke in a way to indicate that they didn't want this and then he said please don't misunderstand. I was rejected after this meeting.