Between the wall and the door (frame) there are exactly 60 cm. Therefore, I would rather tend towards a cabinet with a depth of 55 cm...?!
For a child or teenager, even 50 cm depth is enough. We have that ourselves.
and would you really prefer to place the bed directly against the wall of the door... isn’t it better opposite?
I would have it done by the carpenter. You can also work with rails, so that separated fronts can simply be pulled forward, with the front then belonging to a triangular container.
I once drew this. The arrows mean that you can push four containers forward. Like a drawer.
Ps drawn are 32 degrees DN
[ATTACH alt="113E0E83-E889-4763-A56F-A0A7C0D7614E.jpeg" type="full"]41449[/ATTACH]