The court told the Austrian Press Agency that the man will be held for 14 days as there is a danger that he may re-offend. After two weeks a detention review hearing will be held.
He was arrested on suspicion of attempted murder or trying to inflict deliberate, serious injury.
The 13-year-old, who is a talented runner, is recovering in hospital and is said to be doing well. She was shot as she and a group of friends were out walking in Großhöflein.
She was shot with a small caliber gun and hit in the pelvis. At first she assumed she had been hit by a firework but an x-ray examination showed she had a gunshot wound. She may need to have an operation.
Prosecutor Roland Koch said he could not comment on the suspect’s motive for the shooting as the investigation is still ongoing. A weapon was seized and the suspect was arrested at the weekend.