There are quite a few answers coming in...
Thanks for that already!
So my intention is not necessarily to make a legal little house out of it. It would be enough for me if within the next 2-3 years no one comes to my yard telling me that I have to tear the whole thing down and dispose of it at my own expense.
As I said, the little house has a foundation, which would probably also have to be removed.
The question would also be what the possible penalty could be, i.e. just demolition? Or even a fine? Back payments on property taxes? The authorities will surely come up with something.
Well, whatever. For the 2-3 years I would actually want to insulate it inside on a low-budget basis.
Roofing felt is also not particularly expensive, and you can often get wood for the repairs for free.
A question on the side:
Theoretically, it would also be okay for me to set up a caravan including a porch tent there, in case worst-case it comes to the point where the house has to go.
Now the question is what requires approval.
Can I pour a small "foundation" for a barbecue area?
For example, 50cm x 50cm including grill on top?
A small garden pond?
If large sums come in after finishing my studies, I would still like to live there ;).
Including renovation etc.
I really like the whole thing because of its sentimental value and it's nice and quiet there as well. It would actually be a shame if the whole thing fails one day.