Can I place the triangle farther than 30 m, for example before a curve where the vehicle can't be seen?Yes. The rules set only the minimum distance, and the point of the triangle is to warn drivers in time. If the vehicle is hard to see, it is better to place the triangle where drivers will notice it early
Do I need to put out the triangle if the vehicle has made an emergency stop where stopping is allowed?Yes, if, given the visibility, other drivers won't be able to see the car in time. The triangle is also required after a crash, and after an emergency stop where stopping is prohibited
What if the hazard lights don't work?The warning triangle is also put out when the hazard lights are broken or missing