BERLIN -- A German mother and her partner were convicted Tuesday over the repeated rape of the woman's young son and for selling him for sex on the internet. They were sentenced to prison in a case that has horrified the country.

News agency dpa reported that the Freiburg state court in southwestern Germany sentenced the woman, who has been identified only as Berrin T. in line with German privacy rules, to 12½ years in prison for rape, sexual abuse and forced prostitution.

Her partner, Christian L., was sentenced to 12 years. The court ruled that the man, who had a previous conviction for child abuse, must remain in preventive custody after serving his sentence.

Get Breaking News Delivered to Your Inbox

The 48-year-old woman and 39-year-old man were accused of repeatedly abusing and raping the boy, now 10, and selling him to other men on the darknet, an area of the internet that can be visited only by using special software, for more than two years. The abuse was filmed.

The pair and six others were arrested last fall. Several men have already been convicted in separate trials.

In Tuesday's verdict, the couple was ordered to pay a total 42,500 euros ($49,100) in compensation to the boy and another victim, a young girl.

Local authorities have been accused of failing to protect the boy, who now lives with a foster family. The mother's partner was supposed to be banned from having contact with children. Officials took the boy out of the family in March last year, but a local court sent him back weeks later.