What is the difference between "stattdessen" und "anstatt"?
In the dictionaries, they both mean "instead" but their usage seems to be slightly different and not interchangeable.
this sentence was WRONG:
Wegen Baustellen musste man anstatt auf der Landstraße fahren
but this was correct:
Wegen Baustellen musste man stattdessen auf der Landstraße fahren
and this usage of anstatt was correct:
Wegen Baustellen musste man anstatt auf dem Radweg auf der Landstraße fahren
It also feels like I could say "Anstatt Kaffee nehme ich Tee" however it sounds wrong to use "stattdessen".
What is the difference between them and how can one use these terms correctly?