Hot water supply (and heating) in the caravan

Hi together, how does the hot water supply (and heating) in the caravan work in principle? I assume that there are in principle 2 possibilities: Something else? If I want to take a shower from time to time (in “emergency cases” we say warm in the WW, I probably need both (230 V and gas) or? Because if I am standing in a place without a power connection (should yes occur), I need gas – on the other hand, I would like to save the gas with the existing 230 V connection. And then it seems that there are still combinations of hot water preparation and heating, and there I somehow don’t get through. I found the most different (some optional) possibilities with various manufacturers/models such as: I now assume that the first two correspond to the above mentioned 2 possibilities. But what do you really need a Truma (or other manufacturer) thermal bath for? Is this keeping the heat longer? (both for hot water as well as heating?) If you don’t want to be camping in winter and as much as possible on the road – what do you really need, if you don’t use an electric heater?