Jake Thomas Patterson appeared in court in Wisconsin on Monday afternoon, accused of two first-degree murders and the kidnapping of 13-year-old Jayme Closs. The teenage girl dramatically escaped last week after her parents were shot dead in October and she was abducted.

A criminal complaint filed earlier on Monday said the Wisconsin man had shot and killed the couple, then snatched their 13-year-old daughter and held her captive for three months , typically keeping her under a bed for hours at a time.

She was warned that “bad things could happen to her” if anyone found her there. Jayme escaped last week and has been staying with relatives as she attempts to recover from the shock and trauma of her ordeal.

Patterson, 21, is charged with two counts of intentional homicide, kidnapping and burglary. Investigators believe he broke into the Closs home near Barron, Wisconsin, on 15 October, killed James and Denise Closs and kidnapped their daughter Jayme. It is understood from the complaint that Patterson allegedly chose Jayme as an abduction victim at random after spotting her getting on to a local school bus. Patterson, dressed in orange prison scrubs and wearing glasses, appeared by live video link from the Barron county jail during the court hearing on Monday afternoon, with a lawyer seated next to him.

He appeared calm and answered clearly and succinctly when asked legal questions relating to the proceedings by the judge, James Babler.

The complaint said Jayme was forced to go under a bed in Patterson’s remote cabin and that he would stack totes, laundry bins and barbell weights around her so she could not move without him noticing. The complaint says Jayme was kept up to 12 hours at a time with no food, water or bathroom breaks.

Jayme escaped last Thursday, the complaint said, after Patterson made her go under the bed and told her he would be gone for five or six hours. It said she pushed the bins away, crawled out, put on a pair of his shoes and fled the house.

Jayme Closs with her aunt/godmother Jennifer Naiberg Smith. Photograph: Family Handout/AFP/Getty Images

Patterson was arrested soon after Jayme found help, when she gave the police a description of her abductor’s vehicle. After she escaped the cabin she was rescued by a woman out walking a dog.

The woman then approached a neighbor’s house to call the police.

In court, state prosecutors said that Patterson had carefully planned his attack, shaving his head and face and showering immediately beforehand so as to minimize the risk of leaving DNA at the crime scene, then washing down his gun.

Patterson is accused of disabling the dome lights in his car and trunk so it could not be opened from the inside, the court heard. He approached the family’s home twice before the fatal attack, but backed off. He then made his third visit and gunned down the parents, gagged and secured Jayme with tape and dragged her to his car, prosecutors said.

Patterson sat expressionless during the hearing as district attorney Brian Wright asked for $5m cash bail, arguing that Patterson is a flight risk and a danger to the public. Babler granted the request, ordering Patterson to have no contact with Jayme or the members of the public who helped her after she escaped, if he posts bail.

The next hearing is set for 6 February.