+
+
Datum
+
setFormData({ ...formData, date: e.target.value })}
+ style={{ width: '100%' }}
+ />
+
+
+
+
+
Schlafdauer (Minuten)
+
setFormData({ ...formData, duration_minutes: parseInt(e.target.value) || 0 })}
+ style={{ width: '100%' }}
+ min="1"
+ />
+
+ = {formatDuration(formData.duration_minutes)}
+
+
+
+
+
Qualität
+
+
+
+
+
+
+ {/* Toggle Detail View */}
+
+
+ {/* Detail Fields */}
+ {showDetail && (
+
+
+
+
Eingeschlafen (HH:MM)
+
setFormData({ ...formData, bedtime: e.target.value })}
+ style={{ width: '100%' }}
+ />
+
+
+
Aufgewacht (HH:MM)
+
setFormData({ ...formData, wake_time: e.target.value })}
+ style={{ width: '100%' }}
+ />
+
+
+
+
+
Aufwachungen
+
setFormData({ ...formData, wake_count: parseInt(e.target.value) || 0 })}
+ style={{ width: '100%' }}
+ min="0"
+ />
+
+
+
Schlafphasen (Minuten)
+
+
+
+
Tiefschlaf
+
setFormData({ ...formData, deep_minutes: parseInt(e.target.value) || '' })}
+ placeholder="—"
+ style={{ width: '100%' }}
+ min="0"
+ />
+
+
+
REM-Schlaf
+
setFormData({ ...formData, rem_minutes: parseInt(e.target.value) || '' })}
+ placeholder="—"
+ style={{ width: '100%' }}
+ min="0"
+ />
+
+
+
Leichtschlaf
+
setFormData({ ...formData, light_minutes: parseInt(e.target.value) || '' })}
+ placeholder="—"
+ style={{ width: '100%' }}
+ min="0"
+ />
+
+
+
Wach im Bett
+
setFormData({ ...formData, awake_minutes: parseInt(e.target.value) || '' })}
+ placeholder="—"
+ style={{ width: '100%' }}
+ min="0"
+ />
+
+
+
+ {plausibilityError && (
+
+
+ {plausibilityError}
+
+ )}
+
+ )}
+
+ {/* Action Buttons */}
+
+
+
+
+