It is now struggling to bring debts of € 300 billion ( $ 413.6 billion ) and a deficit of 12.7 percent of gross domestic product under control , restore investor confidence and comply to eurozone regulations .