If, on the basis of the results of the police investigation, the public prosecutor's office comes to the conclusion that the initial suspicion has been substantiated, it files charges or a criminal complaint with the competent court.
The main hearing begins with the judge calling the case. The defendant takes a seat in the center ("dock") and the judge takes the record (name, income, does the defendant plead guilty or not guilty). This is followed by the opening statements of the prosecution and then the defense counsel. The judge questions the defendant about the course of events. The prosecutor and defense counsel then have the right to ask questions. The defendant then takes a seat next to his defense attorney.
The witnesses are called in turn (one at a time) and questioned by the judge. Afterwards, the public prosecutor and the defense attorney have the right to ask questions to each witness. Even if a witness heavily incriminates you or tells the untruth, stay calm! You will not score any points with the court if you interrupt the court or a witness.
Furthermore, motions may be filed during the main hearing by the public prosecutor or by the defendant and his defense counsel in order to influence the course of the trial (e.g. to summon additional witnesses, to appoint an expert or to request an adjournment). The court decides whether to grant the motions.
Once all witnesses have been questioned and no further motions are filed, the court closes the evidentiary proceedings. The prosecutor and defense counsel make their closing arguments; the defendant has the last word ("e.g., I concur with the words of my defense counsel, would like to sincerely apologize for my actions, and ask the court for a lenient sentence").
The main proceedings end with the pronouncement of judgment (acquittal or guilty verdict). In any case, the pronouncement of the verdict still takes place during the main hearing (unlike in civil proceedings).