The 14-year-old told the police that she had just got on the tram when the driver made a humiliating announcement on the intercom, saying that he would not drive anyone wearing a headscarf.
The girl said she didn't receive any support from the other passengers and got off the tram out of confusion.
For over a year, Germany has been struggling to cope with the massive refugee crisis, with hundreds of thousands of refugees fleeing their home countries in the Middle East. The growing influx of migrants raised security concerns among the local population and contributed to the rise of xenophobic sentiments across the country.
Many German are particularly concerned about traditional Muslim clothing. The refugee crisis has, for example, sparked the discussion on banning the traditional full-veiled female clothing, the burqa, across Europe. A poll conducted in Germany showed that 62 percent approve a burqa ban.
A heated debate also concerned headscarves which many Muslim women wear in their everyday life. In German schools, the wearing of headscarves is generally permitted. But many citizens are unhappy about it and call for imposing a headscarf ban or a certain age limit for wearing it.