Fair Value Measurements and Derivatives - Effects of foreign currency forward which were not designated as hedging instruments (Details 6) - USD ($) $ in Thousands  | 
12 Months Ended | ||
|---|---|---|---|
Dec. 31, 2017  | 
Dec. 31, 2016  | 
Dec. 31, 2015  | 
|
| Not Designated as Hedging Instrument | Foreign currency forward contracts | |||
| Derivative Instruments, Gain (Loss) [Line Items] | |||
| Gain (loss) recognized in other income (expense), net | $ 0 | $ (6,133) | $ 684 | 
| X | ||||||||||
- Definition Amount of increase (decrease) in the fair value of derivatives recognized in the income statement. Reference 1: http://www.xbrl.org/2003/role/presentationRef 
  | 
| X | ||||||||||
- Definition Line items represent financial concepts included in a table. These concepts are used to disclose reportable information associated with domain members defined in one or many axes to the table. No definition available. 
  | 
| X | ||||||||||
- Details 
  | 
| X | ||||||||||
- Details 
  |