The automation of passenger vehicles is becoming more and more widespread, leading to full autonomy of cars within the next years. Furthermore, sustainable electric mobility is gaining in importance. As racecars have been a development platform for technology that has later also been transferred to passenger vehicles, a race format for autonomous electric racecars called Roborace has been created. As electric racecars only store a limited amount of energy, an Energy Management Strategy (EMS) is needed to work out the time as well as the minimum energy trajectories for the track. At the same time, the technical limitations and component behavior in the electric powertrain must be taken into account when calculating the race trajectories. In this paper, we present a concept for a special type of EMS. This is based on the Optimal Control Problem (OCP) of generating a time-minimal global trajectory which is solved by the transcription via direct orthogonal collocation to a Nonlinear Programming Problem (NLPP). We extend this minimum lap time problem by adding our ideas for a holistic EMS. This approach proves the fundamental feasibility of the stated ideas, e.g. varying racepaths and velocities due to energy limitations, covered by the EMS. Also, the presented concept forms the basis for future work on meta-models of the powertrain's components that can be fed into the OCP to increase the validity of the control output of the EMS.