In principle, the provisions for ordinary prisoners apply to prisoners in detention. Nevertheless, there are numerous deviations and special provisions in detention.
The purpose of detention is to reduce the dangerousness of the offender to such an extent that they no longer pose a "danger". The focus is therefore on the treatment (psychiatric treatment, psychotherapy, addiction therapy, etc.) of the inmate. In contrast to prisoners, for example, inmates are not obliged to work.