Career opportunities and political zeal: climbing the ranks in social democracy before World War I