/* form-styles.css - FÜR WO HNEN, HEIZEN, FAHRZEUGE, EEG */
* { margin: 0; padding: 0; box-sizing: border-box; }
body { 
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  min-height: 100vh;
  color: #333;
}
header { 
  background: white; 
  padding: 1.5rem 2rem; 
  box-shadow: 0 2px 10px rgba(0,0,0,0.1); 
  display: flex; 
  justify-content: space-between; 
  align-items: center; 
}
header h1 { color: #2c3e50; font-size: 1.8em; }
.btn { 
  padding: 0.75rem 1.5rem; 
  border: none; 
  border-radius: 6px; 
  text-decoration: none; 
  font-weight: 500; 
  cursor: pointer; 
  transition: all 0.3s; 
  display: inline-block; 
}
.btn-back { background: #6c757d; color: white; }
.btn-back:hover { background: #5a6268; }
.container { max-width: 800px; margin: 2rem auto; padding: 0 1rem; }
.form-group { 
  background: white; 
  padding: 1.5rem; 
  margin-bottom: 1rem; 
  border-radius: 8px; 
  box-shadow: 0 2px 8px rgba(0,0,0,0.1); 
}
.form-group h3 { 
  margin-bottom: 1rem; 
  color: #2c3e50; 
  border-bottom: 2px solid; 
  padding-bottom: 0.5rem; 
}
label { display: block; margin-bottom: 0.5rem; font-weight: 500; color: #555; }
input, select { 
  width: 100%; 
  padding: 0.75rem; 
  border: 2px solid #e1e5e9; 
  border-radius: 4px; 
  font-size: 1rem; 
  transition: border-color 0.3s; 
}

/* Einheitliche Darstellung fuer berechnete, nicht editierbare Felder */
input[readonly],
input:read-only,
textarea[readonly],
textarea:read-only,
.calc-readonly {
  background: #f7f8fa;
  color: #5a6470;
  border-color: #e3e7ed;
}

input[readonly]:focus,
input:read-only:focus,
textarea[readonly]:focus,
textarea:read-only:focus,
.calc-readonly:focus {
  border-color: #e3e7ed;
  box-shadow: none;
}

input[readonly]::placeholder,
input:read-only::placeholder,
textarea[readonly]::placeholder,
textarea:read-only::placeholder,
.calc-readonly::placeholder {
  color: #8a94a1;
}

input[readonly],
input:read-only,
textarea[readonly],
textarea:read-only,
.calc-readonly {
  -webkit-text-fill-color: #5a6470;
}

input:focus, select:focus { 
  outline: none; 
  border-color: var(--accent); 
  box-shadow: 0 0 0 3px rgba(var(--accent-rgb), 0.1); 
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.btn-primary { 
  background: var(--accent, #0f4c81); 
  color: #ffd166; 
  font-size: 1.1em; 
  padding: 1rem 2rem; 
  width: 100%; 
  margin-top: 1rem; 
}
.btn-primary:hover { 
  filter: brightness(0.9); 
  transform: translateY(-1px); 
  box-shadow: 0 4px 12px rgba(var(--accent-rgb), 0.4); 
}
.status { padding: 0.75rem; margin: 1rem 0; border-radius: 6px; font-weight: 500; }
.status-saved { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
@media (max-width: 768px) { 
  .form-row { grid-template-columns: 1fr; } 
  header { padding: 1rem; } 
  header h1 { font-size: 1.5em; } 
}