Hey Felicitus
Thanks for asking this question - I've been also trying a DIY auto-ranging circuit based on the traditional divider tree and also was stumped with the whole 'not blowing up your switch' issue.
Suggestions about using floating FETs are fine, but I couldn't work out how to drive the FET. This approach is awesome in it's simplicity!