The Greens performed well in German elections but they are having to adapt their policies to succeed.